diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 00000000000..ec2953a1611 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,11 @@ +reviews: + path_filters: + - "!app/config/specs/**" + - "!docs/examples/**" + - "!docs/references/**" + - "!docs/sdks/**" + auto_review: + base_branches: + - main + - 1.6.x + - 1.7.x \ No newline at end of file diff --git a/.env b/.env index f6a6a7f642f..4980315c9ae 100644 --- a/.env +++ b/.env @@ -2,6 +2,7 @@ _APP_ENV=development _APP_EDITION=self-hosted _APP_LOCALE=en _APP_WORKER_PER_CORE=6 +_APP_COMPRESSION_MIN_SIZE_BYTES=1024 _APP_CONSOLE_WHITELIST_ROOT=disabled _APP_CONSOLE_WHITELIST_EMAILS= _APP_CONSOLE_SESSION_ALERTS=enabled @@ -14,14 +15,19 @@ _APP_SYSTEM_TEAM_EMAIL=team@appwrite.io _APP_EMAIL_SECURITY=security@appwrite.io _APP_EMAIL_CERTIFICATES=certificates@appwrite.io _APP_SYSTEM_RESPONSE_FORMAT= +_APP_CUSTOM_DOMAIN_DENY_LIST= _APP_OPTIONS_ABUSE=disabled _APP_OPTIONS_ROUTER_PROTECTION=disabled _APP_OPTIONS_FORCE_HTTPS=disabled -_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS=disabled +_APP_OPTIONS_ROUTER_FORCE_HTTPS=disabled _APP_OPENSSL_KEY_V1=your-secret-key _APP_DOMAIN=traefik _APP_DOMAIN_FUNCTIONS=functions.localhost -_APP_DOMAIN_TARGET=localhost +_APP_DOMAIN_SITES=sites.localhost +_APP_DOMAIN_TARGET_CNAME=test.appwrite.io +_APP_DOMAIN_TARGET_A=127.0.0.1 +_APP_DOMAIN_TARGET_AAAA=::1 +_APP_RULES_FORMAT=md5 _APP_REDIS_HOST=redis _APP_REDIS_PORT=6379 _APP_REDIS_PASS= @@ -37,6 +43,7 @@ _APP_STORAGE_S3_ACCESS_KEY= _APP_STORAGE_S3_SECRET= _APP_STORAGE_S3_REGION=us-east-1 _APP_STORAGE_S3_BUCKET= +_APP_STORAGE_S3_ENDPOINT= _APP_STORAGE_DO_SPACES_ACCESS_KEY= _APP_STORAGE_DO_SPACES_SECRET= _APP_STORAGE_DO_SPACES_REGION=us-east-1 @@ -66,24 +73,28 @@ _APP_SMS_FROM=+123456789 _APP_SMS_PROJECTS_DENY_LIST= _APP_STORAGE_LIMIT=30000000 _APP_STORAGE_PREVIEW_LIMIT=20000000 -_APP_FUNCTIONS_SIZE_LIMIT=30000000 +_APP_COMPUTE_SIZE_LIMIT=30000000 _APP_FUNCTIONS_TIMEOUT=900 -_APP_FUNCTIONS_BUILD_TIMEOUT=900 -_APP_FUNCTIONS_CPUS=8 -_APP_FUNCTIONS_MEMORY=8192 -_APP_FUNCTIONS_INACTIVE_THRESHOLD=600 -_APP_FUNCTIONS_MAINTENANCE_INTERVAL=600 -_APP_FUNCTIONS_RUNTIMES_NETWORK=runtimes +_APP_SITES_TIMEOUT=30 +_APP_COMPUTE_BUILD_TIMEOUT=900 +_APP_COMPUTE_CPUS=8 +_APP_COMPUTE_MEMORY=8192 +_APP_COMPUTE_INACTIVE_THRESHOLD=600 +_APP_COMPUTE_MAINTENANCE_INTERVAL=600 +_APP_COMPUTE_RUNTIMES_NETWORK=runtimes _APP_EXECUTOR_SECRET=your-secret-key -_APP_EXECUTOR_HOST=http://proxy/v1 +_APP_EXECUTOR_HOST=http://exc1/v1 _APP_FUNCTIONS_RUNTIMES=php-8.0,node-18.0,python-3.9,ruby-3.1 +_APP_SITES_RUNTIMES=static-1,node-22,flutter-3.29 _APP_MAINTENANCE_INTERVAL=86400 -_APP_MAINTENANCE_DELAY= +_APP_MAINTENANCE_START_TIME=12:00 _APP_MAINTENANCE_RETENTION_CACHE=2592000 _APP_MAINTENANCE_RETENTION_EXECUTION=1209600 _APP_MAINTENANCE_RETENTION_ABUSE=86400 _APP_MAINTENANCE_RETENTION_AUDIT=1209600 +_APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE=15778800 _APP_USAGE_AGGREGATION_INTERVAL=30 +_APP_STATS_RESOURCES_INTERVAL=30 _APP_MAINTENANCE_RETENTION_USAGE_HOURLY=8640000 _APP_MAINTENANCE_RETENTION_SCHEDULES=86400 _APP_USAGE_STATS=enabled @@ -107,3 +118,5 @@ _APP_MESSAGE_EMAIL_TEST_DSN= _APP_MESSAGE_PUSH_TEST_DSN= _APP_WEBHOOK_MAX_FAILED_ATTEMPTS=10 _APP_PROJECT_REGIONS=default +_APP_FUNCTIONS_CREATION_ABUSE_LIMIT=5000 +_APP_STATS_USAGE_DUAL_WRITING_DBS=database_db_main \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 00000000000..6d73787d00d --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1,120 @@ +name: Benchmark +concurrency: + group: '${{ github.workflow }}-${{ github.ref }}' + cancel-in-progress: true +env: + IMAGE: appwrite-dev + CACHE_KEY: 'appwrite-dev-${{ github.event.pull_request.head.sha }}' +'on': + - pull_request +jobs: + setup: + name: Setup & Build Appwrite Image + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build Appwrite + uses: docker/build-push-action@v6 + with: + context: . + push: false + tags: '${{ env.IMAGE }}' + load: true + cache-from: type=gha + cache-to: 'type=gha,mode=max' + outputs: 'type=docker,dest=/tmp/${{ env.IMAGE }}.tar' + build-args: | + DEBUG=false + TESTING=true + VERSION=dev + - name: Cache Docker Image + uses: actions/cache@v4 + with: + key: '${{ env.CACHE_KEY }}' + path: '/tmp/${{ env.IMAGE }}.tar' + benchmarking: + name: Benchmark + runs-on: ubuntu-latest + needs: setup + permissions: + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Load Cache + uses: actions/cache@v4 + with: + key: '${{ env.CACHE_KEY }}' + path: '/tmp/${{ env.IMAGE }}.tar' + fail-on-cache-miss: true + - name: Load and Start Appwrite + run: | + sed -i 's/traefik/localhost/g' .env + docker load --input /tmp/${{ env.IMAGE }}.tar + docker compose up -d + sleep 10 + - name: Install Oha + run: | + echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ stable main" | sudo tee /etc/apt/sources.list.d/azlux.list + sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg https://azlux.fr/repo.gpg + sudo apt update + sudo apt install oha + - name: Benchmark PR + run: 'oha -z 180s http://localhost/v1/health/version -j > benchmark.json' + - name: Cleaning + run: docker compose down -v + - name: Installing latest version + run: | + rm docker-compose.yml + rm .env + curl https://appwrite.io/install/compose -o docker-compose.yml + curl https://appwrite.io/install/env -o .env + sed -i 's/_APP_OPTIONS_ABUSE=enabled/_APP_OPTIONS_ABUSE=disabled/g' .env + docker compose up -d + sleep 10 + - name: Benchmark Latest + run: oha -z 180s http://localhost/v1/health/version -j > benchmark-latest.json + - name: Prepare comment + run: | + echo '## :sparkles: Benchmark results' > benchmark.txt + echo ' ' >> benchmark.txt + echo "- Requests per second: $(jq -r '.summary.requestsPerSec|tonumber?|floor|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json)" >> benchmark.txt + echo "- Requests with 200 status code: $(jq -r '.statusCodeDistribution."200"|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json)" >> benchmark.txt + echo "- P99 latency: $(jq -r '.latencyPercentiles.p99' benchmark.json )" >> benchmark.txt + echo " " >> benchmark.txt + echo " " >> benchmark.txt + echo "## :zap: Benchmark Comparison" >> benchmark.txt + echo " " >> benchmark.txt + echo "| Metric | This PR | Latest version | " >> benchmark.txt + echo "| --- | --- | --- | " >> benchmark.txt + echo "| RPS | $(jq -r '.summary.requestsPerSec|tonumber?|floor|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json) | $(jq -r '.summary.requestsPerSec|tonumber|floor|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark-latest.json) | " >> benchmark.txt + echo "| 200 | $(jq -r '.statusCodeDistribution."200"|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json) | $(jq -r '.statusCodeDistribution."200"|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark-latest.json) | " >> benchmark.txt + echo "| P99 | $(jq -r '.latencyPercentiles.p99' benchmark.json ) | $(jq -r '.latencyPercentiles.p99' benchmark-latest.json ) | " >> benchmark.txt + - name: Save results + uses: actions/upload-artifact@v4 + if: '${{ !cancelled() }}' + with: + name: benchmark.json + path: benchmark.json + retention-days: 7 + - name: Find Comment + if: github.event.pull_request.head.repo.full_name == github.repository + uses: peter-evans/find-comment@v3 + id: fc + with: + issue-number: '${{ github.event.pull_request.number }}' + comment-author: 'github-actions[bot]' + body-includes: Benchmark results + - name: Comment on PR + if: github.event.pull_request.head.repo.full_name == github.repository + uses: peter-evans/create-or-update-comment@v4 + with: + comment-id: '${{ steps.fc.outputs.comment-id }}' + issue-number: '${{ github.event.pull_request.number }}' + body-path: benchmark.txt + edit-mode: replace diff --git a/.github/workflows/cleanup-cache.yml b/.github/workflows/cleanup-cache.yml index 6e20b8f8793..8f25fe5ef62 100644 --- a/.github/workflows/cleanup-cache.yml +++ b/.github/workflows/cleanup-cache.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cleanup run: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 050f80b10a4..a40f07ceda0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,8 +13,13 @@ on: schedule: - cron: '0 16 * * 0' +permissions: + contents: read + jobs: analyze: + permissions: + security-events: write name: Analyze runs-on: ubuntu-latest @@ -29,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 899c27a1352..02edd579230 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000000..80d880244c7 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,47 @@ +name: Nightly Security Scan +on: + schedule: + - cron: '0 0 * * *' # 12am UTC daily runtime + workflow_dispatch: + +jobs: + scan-image: + name: Scan Docker Image + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Build the Docker image + run: docker build . -t appwrite_image:latest + - name: Run Trivy vulnerability scanner on image + uses: aquasecurity/trivy-action@0.20.0 + with: + image-ref: 'appwrite_image:latest' + format: 'sarif' + output: 'trivy-image-results.sarif' + ignore-unfixed: 'false' + severity: 'CRITICAL,HIGH' + - name: Upload Docker Image Scan Results + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: 'trivy-image-results.sarif' + + scan-code: + name: Scan Code + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Run Trivy vulnerability scanner on filesystem + uses: aquasecurity/trivy-action@0.20.0 + with: + scan-type: 'fs' + format: 'sarif' + output: 'trivy-fs-results.sarif' + severity: 'CRITICAL,HIGH' + - name: Upload Code Scan Results + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: 'trivy-fs-results.sarif' diff --git a/.github/workflows/pr-scan.yml b/.github/workflows/pr-scan.yml index af510ccc3b4..eded58985d6 100644 --- a/.github/workflows/pr-scan.yml +++ b/.github/workflows/pr-scan.yml @@ -1,17 +1,22 @@ name: PR Security Scan -on: - pull_request: +on: + pull_request_target: types: [opened, synchronize, reopened] - workflow_dispatch: + jobs: scan: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - - name: Check out code + - name: Check out code uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 submodules: 'recursive' + - name: Build the Docker image uses: docker/build-push-action@v5 with: @@ -19,6 +24,7 @@ jobs: push: false load: true tags: pr_image:${{ github.sha }} + - name: Run Trivy vulnerability scanner on image uses: aquasecurity/trivy-action@0.20.0 with: @@ -26,6 +32,7 @@ jobs: format: 'json' output: 'trivy-image-results.json' severity: 'CRITICAL,HIGH' + - name: Run Trivy vulnerability scanner on source code uses: aquasecurity/trivy-action@0.20.0 with: @@ -34,10 +41,11 @@ jobs: format: 'json' output: 'trivy-fs-results.json' severity: 'CRITICAL,HIGH' - - name: Process and post Trivy scan results + + - name: Process Trivy scan results + id: process-results uses: actions/github-script@v7 with: - github-token: ${{secrets.GITHUB_TOKEN}} script: | const fs = require('fs'); let commentBody = '## Security Scan Results for PR\n\n'; @@ -79,9 +87,19 @@ jobs: commentBody += 'Please contact the core team for assistance.'; } - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: commentBody - }); + core.setOutput('comment-body', commentBody); + - name: Find Comment + uses: peter-evans/find-comment@v3 + id: fc + with: + issue-number: ${{ github.event.pull_request.number }} + comment-author: 'github-actions[bot]' + body-includes: Security Scan Results for PR + + - name: Create or update comment + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.pull_request.number }} + comment-id: ${{ steps.fc.outputs.comment-id }} + body: ${{ steps.process-results.outputs.comment-body }} + edit-mode: replace diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f914e662d35..c78156ca04d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 submodules: recursive @@ -26,7 +26,7 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4475a498094..862d6694663 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -28,7 +28,7 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker diff --git a/.github/workflows/sdk-preview.yml b/.github/workflows/sdk-preview.yml new file mode 100644 index 00000000000..92b4f454cbb --- /dev/null +++ b/.github/workflows/sdk-preview.yml @@ -0,0 +1,33 @@ +name: "Console SDK Preview" + +on: + pull_request: + paths: + - 'app/config/specs/*-latest-console.json' + + +jobs: + setup: + name: Setup & Build Console SDK + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Load and Start Appwrite + run: | + docker compose build + docker compose up -d + docker compose exec appwrite sdks --platform=console --sdk=web --version=latest --git=no + sudo chown -R $USER:$USER ./app/sdks/console-web + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Build and Publish SDK + working-directory: ./app/sdks/console-web + run: | + npm install + npm run build + npx pkg-pr-new publish --comment=update diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml new file mode 100644 index 00000000000..04f8c822c7e --- /dev/null +++ b/.github/workflows/static-analysis.yml @@ -0,0 +1,16 @@ +name: "Static code analysis" + +on: [pull_request] +jobs: + lint: + name: CodeQL + runs-on: ubuntu-latest + + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Run CodeQL + run: | + docker run --rm -v $PWD:/app composer:2.6 sh -c \ + "composer install --profile --ignore-platform-reqs && composer check" \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 633bd46ea48..a7fc1cf0c63 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,23 +8,47 @@ env: IMAGE: appwrite-dev CACHE_KEY: appwrite-dev-${{ github.event.pull_request.head.sha }} -on: [pull_request] +on: [ pull_request ] jobs: + check_database_changes: + name: Check if utopia-php/database changed + runs-on: ubuntu-latest + outputs: + database_changed: ${{ steps.check.outputs.database_changed }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Fetch base branch + run: git fetch origin ${{ github.event.pull_request.base.ref }} + + - name: Check for utopia-php/database changes + id: check + run: | + if git diff origin/${{ github.event.pull_request.base.ref }} HEAD -- composer.lock | grep -q '"name": "utopia-php/database"'; then + echo "Database version changed, going to run all mode tests." + echo "database_changed=true" >> "$GITHUB_ENV" + echo "database_changed=true" >> "$GITHUB_OUTPUT" + else + echo "database_changed=false" >> "$GITHUB_ENV" + echo "database_changed=false" >> "$GITHUB_OUTPUT" + fi + setup: name: Setup & Build Appwrite Image runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build Appwrite - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: . push: false @@ -39,7 +63,7 @@ jobs: VERSION=dev - name: Cache Docker Image - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -51,10 +75,10 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -66,6 +90,9 @@ jobs: docker compose up -d sleep 10 + - name: Logs + run: docker compose logs appwrite + - name: Doctor run: docker compose exec -T appwrite doctor @@ -81,10 +108,10 @@ jobs: needs: setup steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -95,6 +122,14 @@ jobs: docker load --input /tmp/${{ env.IMAGE }}.tar docker compose up -d sleep 10 + + - name: Wait for Open Runtimes + timeout-minutes: 3 + run: | + while ! docker compose logs openruntimes-executor | grep -q "Executor is ready."; do + echo "Waiting for Executor to come online" + sleep 1 + done - name: Run General Tests run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/General --debug @@ -103,6 +138,73 @@ jobs: name: E2E Service Test runs-on: ubuntu-latest needs: setup + strategy: + fail-fast: false + matrix: + service: [ + Account, + Avatars, + Console, + Databases, + Functions, + FunctionsSchedule, + GraphQL, + Health, + Locale, + Projects, + Realtime, + Sites, + Proxy, + Storage, + Tokens, + Teams, + Users, + Webhooks, + VCS, + Messaging, + Migrations + ] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Load Cache + uses: actions/cache@v4 + with: + key: ${{ env.CACHE_KEY }} + path: /tmp/${{ env.IMAGE }}.tar + fail-on-cache-miss: true + + - name: Load and Start Appwrite + run: | + docker load --input /tmp/${{ env.IMAGE }}.tar + docker compose up -d + sleep 30 + + - name: Wait for Open Runtimes + timeout-minutes: 3 + run: | + while ! docker compose logs openruntimes-executor | grep -q "Executor is ready."; do + echo "Waiting for Executor to come online" + sleep 1 + done + + - name: Run ${{ matrix.service }} tests with Project table mode + run: | + echo "Using project tables" + export _APP_DATABASE_SHARED_TABLES= + export _APP_DATABASE_SHARED_TABLES_V1= + + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug --exclude=devKeys + + e2e_shared_mode_test: + name: E2E Shared Mode Service Test + runs-on: ubuntu-latest + needs: [ setup, check_database_changes ] + if: needs.check_database_changes.outputs.database_changed == 'true' strategy: fail-fast: false matrix: @@ -113,25 +215,34 @@ jobs: Console, Databases, Functions, + FunctionsSchedule, GraphQL, Health, Locale, Projects, Realtime, + Sites, + Proxy, Storage, Teams, Users, Webhooks, VCS, Messaging, + Migrations, + Tokens ] + tables-mode: [ + 'Shared V1', + 'Shared V2', + ] steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -141,88 +252,111 @@ jobs: run: | docker load --input /tmp/${{ env.IMAGE }}.tar docker compose up -d - sleep 25 + sleep 30 - - name: Run ${{matrix.service}} Tests - run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug + - name: Wait for Open Runtimes + timeout-minutes: 3 + run: | + while ! docker compose logs openruntimes-executor | grep -q "Executor is ready."; do + echo "Waiting for Executor to come online" + sleep 1 + done - - name: Run ${{matrix.service}} Shared Tables Tests - run: _APP_DATABASE_SHARED_TABLES=database_db_main docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug + - name: Run ${{ matrix.service }} tests with ${{ matrix.tables-mode }} table mode + run: | + if [ "${{ matrix.tables-mode }}" == "Shared V1" ]; then + echo "Using shared tables V1" + export _APP_DATABASE_SHARED_TABLES=database_db_main + export _APP_DATABASE_SHARED_TABLES_V1=database_db_main + elif [ "${{ matrix.tables-mode }}" == "Shared V2" ]; then + echo "Using shared tables V2" + export _APP_DATABASE_SHARED_TABLES=database_db_main + export _APP_DATABASE_SHARED_TABLES_V1= + fi + + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug --exclude=devKeys - benchamrking: - name: Benchmark + e2e_dev_keys: + name: E2E Service Test (Dev Keys) runs-on: ubuntu-latest needs: setup + strategy: + fail-fast: false steps: - - name: Checkout repository - uses: actions/checkout@v3 + - name: checkout + uses: actions/checkout@v4 + - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar fail-on-cache-miss: true + - name: Load and Start Appwrite run: | - sed -i 's/traefik/localhost/g' .env - docker load --input /tmp/${{ env.IMAGE }}.tar + docker load --input /tmp/${{ env.IMAGE }}.tar + sed -i 's/_APP_OPTIONS_ABUSE=disabled/_APP_OPTIONS_ABUSE=enabled/' .env docker compose up -d - sleep 10 - - name: Install Oha + sleep 30 + + - name: Run Projects tests with dev keys in ${{ matrix.tables-mode }} table mode run: | - echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ stable main" | sudo tee /etc/apt/sources.list.d/azlux.list - sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg https://azlux.fr/repo.gpg - sudo apt update - sudo apt install oha - - name: Benchmark PR - run: oha -z 180s http://localhost/v1/health/version -j > benchmark.json - - name: Cleaning - run: docker compose down -v - - name: Installing latest version + echo "Using project tables" + export _APP_DATABASE_SHARED_TABLES= + export _APP_DATABASE_SHARED_TABLES_V1= + + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/Projects --debug --group=devKeys + + e2e_dev_keys_shared_mode: + name: E2E Shared Mode Service Test (Dev Keys) + runs-on: ubuntu-latest + needs: [ setup, check_database_changes ] + if: needs.check_database_changes.outputs.database_changed == 'true' + strategy: + fail-fast: false + matrix: + tables-mode: [ + 'Shared V1', + 'Shared V2', + ] + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: Load Cache + uses: actions/cache@v4 + with: + key: ${{ env.CACHE_KEY }} + path: /tmp/${{ env.IMAGE }}.tar + fail-on-cache-miss: true + + - name: Load and Start Appwrite run: | - rm docker-compose.yml - rm .env - curl https://appwrite.io/install/compose -o docker-compose.yml - curl https://appwrite.io/install/env -o .env - sed -i 's/_APP_OPTIONS_ABUSE=enabled/_APP_OPTIONS_ABUSE=disabled/g' .env + docker load --input /tmp/${{ env.IMAGE }}.tar + sed -i 's/_APP_OPTIONS_ABUSE=disabled/_APP_OPTIONS_ABUSE=enabled/' .env docker compose up -d - sleep 10 - - name: Benchmark Latest - run: oha -z 180s http://localhost/v1/health/version -j > benchmark-latest.json - - name: Prepare comment + sleep 30 + + - name: Run Projects tests with dev keys in ${{ matrix.tables-mode }} table mode run: | - echo '## :sparkles: Benchmark results' > benchmark.txt - echo ' ' >> benchmark.txt - echo "- Requests per second: $(jq -r '.summary.requestsPerSec|tonumber?|floor|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json)" >> benchmark.txt - echo "- Requests with 200 status code: $(jq -r '.statusCodeDistribution."200"|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json)" >> benchmark.txt - echo "- P99 latency: $(jq -r '.latencyPercentiles.p99' benchmark.json )" >> benchmark.txt - echo " " >> benchmark.txt - echo " " >> benchmark.txt - echo "## :zap: Benchmark Comparison" >> benchmark.txt - echo " " >> benchmark.txt - echo "| Metric | This PR | Latest version | " >> benchmark.txt - echo "| --- | --- | --- | " >> benchmark.txt - echo "| RPS | $(jq -r '.summary.requestsPerSec|tonumber?|floor|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json) | $(jq -r '.summary.requestsPerSec|tonumber|floor|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark-latest.json) | " >> benchmark.txt - echo "| 200 | $(jq -r '.statusCodeDistribution."200"|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark.json) | $(jq -r '.statusCodeDistribution."200"|tostring|[while(length>0;.[:-3])|.[-3:]]|reverse|join(",")' benchmark-latest.json) | " >> benchmark.txt - echo "| P99 | $(jq -r '.latencyPercentiles.p99' benchmark.json ) | $(jq -r '.latencyPercentiles.p99' benchmark-latest.json ) | " >> benchmark.txt - - name: Save results - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: benchmark.json - path: benchmark.json - retention-days: 7 - - name: Find Comment - uses: peter-evans/find-comment@v3 - id: fc - with: - issue-number: ${{ github.event.pull_request.number }} - comment-author: 'github-actions[bot]' - body-includes: Benchmark results - - name: Comment on PR - uses: peter-evans/create-or-update-comment@v4 - with: - comment-id: ${{ steps.fc.outputs.comment-id }} - issue-number: ${{ github.event.pull_request.number }} - body-path: benchmark.txt - edit-mode: replace + if [ "${{ matrix.tables-mode }}" == "Shared V1" ]; then + echo "Using shared tables V1" + export _APP_DATABASE_SHARED_TABLES=database_db_main + export _APP_DATABASE_SHARED_TABLES_V1=database_db_main + elif [ "${{ matrix.tables-mode }}" == "Shared V2" ]; then + echo "Using shared tables V2" + export _APP_DATABASE_SHARED_TABLES=database_db_main + export _APP_DATABASE_SHARED_TABLES_V1= + fi + + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/Projects --debug --group=devKeys diff --git a/.gitignore b/.gitignore index 5ae03e2a56c..600a6aeb08b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /node_modules/ /tests/resources/storage/ /tests/resources/functions/**/code.tar.gz +/tests/resources/sites/**/code.tar.gz /app/sdks/* /.idea/ !/.idea/workspace.xml @@ -16,3 +17,4 @@ dev/yasd_init.php .phpunit.result.cache Makefile appwrite.json +/.zed/ \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 478b62fc8df..78375bb1f02 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,6 +7,7 @@ tasks: docker pull composer command: | docker run --rm --interactive --tty \ + --user "$(id -u):$(id -g)" \ --volume $PWD:/app \ composer install \ --ignore-platform-reqs \ @@ -23,11 +24,3 @@ vscode: extensions: - ms-azuretools.vscode-docker - zobo.php-intellisense - -github: - # https://www.gitpod.io/docs/prebuilds#github-specific-configuration - prebuilds: - # enable for pull requests coming from forks (defaults to false) - pullRequestsFromForks: true - # add a check to pull requests (defaults to true) - addCheck: false diff --git a/CHANGES.md b/CHANGES.md index e6649d795eb..62db3d525eb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,259 @@ +# Version 1.6.1 + +## What's Changed + +### Notable changes + +* Remove JPEG fallback for webp by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8746 +* Add heic and avif support by @lohanidamodar in https://github.com/appwrite/appwrite/pull/7718 +* Add new runtimes by @Meldiron in https://github.com/appwrite/appwrite/pull/8771 +* Remove audits deletion by @shimonewman in https://github.com/appwrite/appwrite/pull/8766 +* Bump assistant by @loks0n in https://github.com/appwrite/appwrite/pull/8801 +* Change max queries values to 500 by @fogelito in https://github.com/appwrite/appwrite/pull/8802 +* Allow '.wav' as 'audio/x-wav' as well by @basert in https://github.com/appwrite/appwrite/pull/8846 +* Use 1 instead of 0.5 cpu for default function specification by @loks0n in https://github.com/appwrite/appwrite/pull/8848 +* Update function runtimes by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8781 +* Add a realtime heartbeat by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/8943 + +### Fixes + +* Trigger functions event only if event is not paused by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8526 +* Update docker-compose to restart usage-dump by @feschaffa in https://github.com/appwrite/appwrite/pull/8642 +* Fix typo in scheduler base by @fogelito in https://github.com/appwrite/appwrite/pull/8691 +* Add domain and force HTTPS env vars to mail worker by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8722 +* Fix webp by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8732 +* Ignore junction tables by @fogelito in https://github.com/appwrite/appwrite/pull/8728 +* Fix logger throwing fatal error by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8724 +* Fix missing protocol for testing SMTP by @byawitz in https://github.com/appwrite/appwrite/pull/8749 +* Make create execution async loose by @loks0n in https://github.com/appwrite/appwrite/pull/8707 +* Fix invalid cursor value by @fogelito in https://github.com/appwrite/appwrite/pull/8109 +* Fix target deletes by @abnegate in https://github.com/appwrite/appwrite/pull/8833 +* Fix translation commas by @loks0n in https://github.com/appwrite/appwrite/pull/8892 +* Fix Migrations having source creds being overwritten and add Migration tests by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8897 +* Fix validator usage for updating string size by @abnegate in https://github.com/appwrite/appwrite/pull/8890 +* Fix create user event not triggering by @loks0n in https://github.com/appwrite/appwrite/pull/8718 +* Improve error handling and logging in the database worker by @fogelito in https://github.com/appwrite/appwrite/pull/8944 +* Remove inaccurate info about leaving the URL parameter empty by @ebenezerdon in https://github.com/appwrite/appwrite/pull/8963 +* Ensure indexes are updated when updating an attribute key by @fogelito in https://github.com/appwrite/appwrite/pull/8971 +* Remove duplicate dart-2.16 runtime template by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8972 +* Fix team invites with existing session by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/9006 +* Improve handling of HTTP requests by dispatching to safe workers by @Meldiron in https://github.com/appwrite/appwrite/pull/9016 +* Fix users create session secret by @stnguyen90 in https://github.com/appwrite/appwrite/pull/9019 +* Fix swoole task warning by @Meldiron in https://github.com/appwrite/appwrite/pull/9025 + +### Miscellaneous + +* Update Init copy by @adityaoberai in https://github.com/appwrite/appwrite/pull/8557 +* Fix security scan permissions and comment by @EVDOG4LIFE in https://github.com/appwrite/appwrite/pull/8525 +* Add Trivy security scans by @btme0011 in https://github.com/appwrite/appwrite/pull/6876 +* Update database stack by @abnegate in https://github.com/appwrite/appwrite/pull/8564 +* Bump database by @abnegate in https://github.com/appwrite/appwrite/pull/8573 +* Sync main with 1.5.x by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8589 +* Add AWS to one-click installs by @byawitz in https://github.com/appwrite/appwrite/pull/8593 +* Update Init copy in readme by @adityaoberai in https://github.com/appwrite/appwrite/pull/8618 +* Sync main into 1.6.x by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8685 +* Sync 1.6.x into main by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8686 +* Feat coroutines by @Meldiron in https://github.com/appwrite/appwrite/pull/7826 +* Sync main into 1.6.x by @Meldiron in https://github.com/appwrite/appwrite/pull/8719 +* Sentence casing endpoint API reference by @choir241 in https://github.com/appwrite/appwrite/pull/8617 +* DB storage metrics by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8404 +* Fix exception thrown when optional array attribute does not exist by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8391 +* Add projects channels to realtime by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/8735 +* Base for console roles support by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8565 +* Remove DB disk storage calculation by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8745 +* Messaging adapter default values by @shimonewman in https://github.com/appwrite/appwrite/pull/8742 +* Add payload response type by @loks0n in https://github.com/appwrite/appwrite/pull/8720 +* Fix flaky functions tests by @loks0n in https://github.com/appwrite/appwrite/pull/8682 +* Migrations Backups by @fogelito in https://github.com/appwrite/appwrite/pull/8186 +* Add test for response and request filters by @vermakhushboo in https://github.com/appwrite/appwrite/pull/8697 +* Bump version in SECURITY.md by @EVDOG4LIFE in https://github.com/appwrite/appwrite/pull/8755 +* Add originalId attribute to databases collection by @fogelito in https://github.com/appwrite/appwrite/pull/8764 +* Fix Walter References by @ItzNotABug in https://github.com/appwrite/appwrite/pull/8757 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8769 +* Move new attributes by @abnegate in https://github.com/appwrite/appwrite/pull/8777 +* Add ping endpoint by @loks0n in https://github.com/appwrite/appwrite/pull/8761 +* Fix GitHub action caching by @loks0n in https://github.com/appwrite/appwrite/pull/8772 +* Chore release ruby SDK by @abnegate in https://github.com/appwrite/appwrite/pull/8767 +* Call migration success on success by @abnegate in https://github.com/appwrite/appwrite/pull/8782 +* Update utopia-php/system to 0.9.0 by @basert in https://github.com/appwrite/appwrite/pull/8780 +* Move createDocument from api to worker by @vermakhushboo in https://github.com/appwrite/appwrite/pull/8776 +* Add missing indexes by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8803 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8809 +* Fix typo in BLR region by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8756 +* Add tests for project variables by @vermakhushboo in https://github.com/appwrite/appwrite/pull/8815 +* Replace 'Expires' with 'Cache-Control: private' header to avoid CDN caching by @basert in https://github.com/appwrite/appwrite/pull/8836 +* Allow blocking based on resource attributes by @basert in https://github.com/appwrite/appwrite/pull/8812 +* Check if resource is blocked inside functions worker by @basert in https://github.com/appwrite/appwrite/pull/8855 +* Fix missing allow attribute by @abnegate in https://github.com/appwrite/appwrite/pull/8889 +* Revert function execution order by @basert in https://github.com/appwrite/appwrite/pull/8857 +* Use resource type constants by @basert in https://github.com/appwrite/appwrite/pull/8895 +* Update Database lib by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8680 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8917 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8923 +* Update database for transaction counter fixes with retries by @abnegate in https://github.com/appwrite/appwrite/pull/8927 +* Validate string permissions by @fogelito in https://github.com/appwrite/appwrite/pull/8929 +* Add PubSub adapter support by @basert in https://github.com/appwrite/appwrite/pull/8905 +* List memberships as client by @loks0n in https://github.com/appwrite/appwrite/pull/8913 +* Fix XDebug Extension not being removed by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8891 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8946 +* Use utopia compression by @loks0n in https://github.com/appwrite/appwrite/pull/8938 +* Make compression minimum size configurable by @loks0n in https://github.com/appwrite/appwrite/pull/8947 +* Revert "Update database" by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8949 +* Fix setpaused by @loks0n in https://github.com/appwrite/appwrite/pull/8948 +* Use getDocument instead of find() for rules by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8951 +* Remove double fetch from migrations worker by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8956 +* Fix memberships privacy MFA by @loks0n in https://github.com/appwrite/appwrite/pull/8969 +* Add telemetry by @basert in https://github.com/appwrite/appwrite/pull/8960 +* Send migration errors individually by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8959 +* Add console sdk previews by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/8990 +* Unset index length by @fogelito in https://github.com/appwrite/appwrite/pull/8978 +* Update base to 0.9.5 by @basert in https://github.com/appwrite/appwrite/pull/9005 +* Sync main into 1.6.x by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/9011 +* Improved shared tables V2 by @abnegate in https://github.com/appwrite/appwrite/pull/9013 +* Ensure backwards compatibility for 1.6.x by @christyjacob4 in https://github.com/appwrite/appwrite/pull/9018 + +# Version 1.6.0 + +## What's Changed + +### Notable changes + +* Allow execution filter attributes in [#7607](https://github.com/appwrite/appwrite/pull/7607) +* Add dynamic API keys for function executions in [#7512](https://github.com/appwrite/appwrite/pull/7512) +* Add metrics for successful and failed builds in [#8210](https://github.com/appwrite/appwrite/pull/8210) +* Update logging config to use a DSN approach in [#8187](https://github.com/appwrite/appwrite/pull/8187) +* Add projects.createJWT endpoint for dynamic keys in [#8213](https://github.com/appwrite/appwrite/pull/8213) +* Add users.createJWT() endpoint for local function development in [#8207](https://github.com/appwrite/appwrite/pull/8207) +* Added cancel build endpoint in [#7605](https://github.com/appwrite/appwrite/pull/7605) +* Add CLI as a function deployment type in [#8215](https://github.com/appwrite/appwrite/pull/8215) +* Add vcs.getRepositoryContents() endpoint in [#8330](https://github.com/appwrite/appwrite/pull/8330) +* Add appwrite version in function variables in [#8336](https://github.com/appwrite/appwrite/pull/8336) +* Add support for scheduled executions in [#8243](https://github.com/appwrite/appwrite/pull/8243) +* Add endpoint to delete execution in [#8337](https://github.com/appwrite/appwrite/pull/8337) +* OPR v4 support in [#8323](https://github.com/appwrite/appwrite/pull/8323) +* Mock OTP and phone numbers in [#7565](https://github.com/appwrite/appwrite/pull/7565) +* Support scheduled executions in [#8355](https://github.com/appwrite/appwrite/pull/8355) +* Add alert for new sessions in [#8315](https://github.com/appwrite/appwrite/pull/8315) +* Update delete authenticator to remove OTP Validation in [#8367](https://github.com/appwrite/appwrite/pull/8367) +* Track project last activity in [#8366](https://github.com/appwrite/appwrite/pull/8366) +* Containerize the console in [#8406](https://github.com/appwrite/appwrite/pull/8406) +* Implement MBSeconds Metric on 1.5.X in [#8385](https://github.com/appwrite/appwrite/pull/8385) +* Support JWTs without session ID in [#8420](https://github.com/appwrite/appwrite/pull/8420) +* 1.6.x sdks in [#8359](https://github.com/appwrite/appwrite/pull/8359) +* Base migration for 1.6.x in [#8417](https://github.com/appwrite/appwrite/pull/8417) +* 1.6.x migrations and filters in [#8403](https://github.com/appwrite/appwrite/pull/8403) +* Add APPWRITE_REGION in function variables in [#8394](https://github.com/appwrite/appwrite/pull/8394) +* Support dynamic keys for domain executions in [#8428](https://github.com/appwrite/appwrite/pull/8428) +* Bump DBIP to latest version in [#8467](https://github.com/appwrite/appwrite/pull/8467) +* Automatically restart function on crash in [#8473](https://github.com/appwrite/appwrite/pull/8473) +* Don't send session alerts for otp and magic-url logins in [#8459](https://github.com/appwrite/appwrite/pull/8459) +* Mark 4XX executions as successful in [#8493](https://github.com/appwrite/appwrite/pull/8493) +* Add dynamic keys in builds in [#8492](https://github.com/appwrite/appwrite/pull/8492) +* Allow deployment queries on type and size in [#8515](https://github.com/appwrite/appwrite/pull/8515) +* Add OTP email template in [#8501](https://github.com/appwrite/appwrite/pull/8501) +* Update console links in [#8523](https://github.com/appwrite/appwrite/pull/8523) +* Add multipart support in [#8477](https://github.com/appwrite/appwrite/pull/8477) +* Separate deployment sizes in [#8556](https://github.com/appwrite/appwrite/pull/8556) +* Add go runtime in [#8572](https://github.com/appwrite/appwrite/pull/8572) +* Add react native platform in [#8562](https://github.com/appwrite/appwrite/pull/8562) +* Merge deployments and build storage metrics together in API in [#8443](https://github.com/appwrite/appwrite/pull/8443) +* Support string attribute resizing in [#8597](https://github.com/appwrite/appwrite/pull/8597) +* Support renaming attributes in [#8544](https://github.com/appwrite/appwrite/pull/8544) +* Add VCS vars to deployments & executions in [#8631](https://github.com/appwrite/appwrite/pull/8631) +* Function storage metrics in [#8668](https://github.com/appwrite/appwrite/pull/8668) +* External messaging usage count in [#8672](https://github.com/appwrite/appwrite/pull/8672) + +### Fixes + +* Fix execution duration in [#8357](https://github.com/appwrite/appwrite/pull/8357) +* Fix file size calculations in [#8432](https://github.com/appwrite/appwrite/pull/8432) +* Fix disabled function logging in [#8398](https://github.com/appwrite/appwrite/pull/8398) +* Fix function redeployments in [#8434](https://github.com/appwrite/appwrite/pull/8434) +* Add value to variables template in [#8483](https://github.com/appwrite/appwrite/pull/8483) +* Fix build size limits in [#8396](https://github.com/appwrite/appwrite/pull/8396) +* Fix deployment method name in [#8490](https://github.com/appwrite/appwrite/pull/8490) +* Fix function disconnecting from git in [#8500](https://github.com/appwrite/appwrite/pull/8500) +* Increase buckets metadata in [#8452](https://github.com/appwrite/appwrite/pull/8452) +* Fix deploy from git with space in [#8517](https://github.com/appwrite/appwrite/pull/8517) +* Fix missing build logs in [#8484](https://github.com/appwrite/appwrite/pull/8484) +* Delete team memberships synchronously in [#8217](https://github.com/appwrite/appwrite/pull/8217) +* Fix Anyof validator in specs in [#8543](https://github.com/appwrite/appwrite/pull/8543) +* Fix missing function variables in [#8554](https://github.com/appwrite/appwrite/pull/8554) +* Fix deadlock in [#8609](https://github.com/appwrite/appwrite/pull/8609) +* Fix domain execution stats in [#8608](https://github.com/appwrite/appwrite/pull/8608) +* Update console redirect to include query params in [#8619](https://github.com/appwrite/appwrite/pull/8619) +* Update abuse-key for mfa challenge endpoints in [#8649](https://github.com/appwrite/appwrite/pull/8649) +* Fix cross-project scheduler stability in [#8641](https://github.com/appwrite/appwrite/pull/8641) +* Fix vcs deployment size in [#8640](https://github.com/appwrite/appwrite/pull/8640) +* Fix logging behaviour for Functions in [#8627](https://github.com/appwrite/appwrite/pull/8627) +* Add retention env vars to deletes worker in [#8662](https://github.com/appwrite/appwrite/pull/8662) +* Fix scheduled executions data in [#8639](https://github.com/appwrite/appwrite/pull/8639) + +### Miscellaneous + +* Sync 1.6.x with main in [#8163](https://github.com/appwrite/appwrite/pull/8163) +* Remove build ID from rebuild deployment endpoint in [#8214](https://github.com/appwrite/appwrite/pull/8214) +* 1.6.x specs in [#8304](https://github.com/appwrite/appwrite/pull/8304) +* Sync with main in [#8295](https://github.com/appwrite/appwrite/pull/8295) +* Fix 1.6.x failing tests in [#8333](https://github.com/appwrite/appwrite/pull/8333) +* Ensure CI/CD works in [#8350](https://github.com/appwrite/appwrite/pull/8350) +* Update specs in [#8356](https://github.com/appwrite/appwrite/pull/8356) +* Sync main to 1.6.x in [#8430](https://github.com/appwrite/appwrite/pull/8430) +* Add scheduledAt in execution response model in [#8425](https://github.com/appwrite/appwrite/pull/8425) +* Move functions marketplace to appwrite in [#8427](https://github.com/appwrite/appwrite/pull/8427) +* Refactor deployment check in function tests in [#8444](https://github.com/appwrite/appwrite/pull/8444) +* Add ci/cd benchmark in [#8414](https://github.com/appwrite/appwrite/pull/8414) +* Upgrade SDK version in [#8465](https://github.com/appwrite/appwrite/pull/8465) +* Improve session alert in [#8399](https://github.com/appwrite/appwrite/pull/8399) +* Address review comments in [#8422](https://github.com/appwrite/appwrite/pull/8422) +* Add scopes to function template in [#8496](https://github.com/appwrite/appwrite/pull/8496) +* Update benchmark comment in [#8507](https://github.com/appwrite/appwrite/pull/8507) +* Add key to runtime model in [#8503](https://github.com/appwrite/appwrite/pull/8503) +* Upgrade logger in [#8497](https://github.com/appwrite/appwrite/pull/8497) +* Change default email addresses in [#8466](https://github.com/appwrite/appwrite/pull/8466) +* Improve scheduled executions in [#8412](https://github.com/appwrite/appwrite/pull/8412) +* Sync 1.5.x into main in [#8509](https://github.com/appwrite/appwrite/pull/8509) +* Sync 1.6 with main in [#8529](https://github.com/appwrite/appwrite/pull/8529) +* Fix templates CORS in [#8528](https://github.com/appwrite/appwrite/pull/8528) +* Update size to specification for variable runtimes in [#8537](https://github.com/appwrite/appwrite/pull/8537) +* Add boundary to multipart header in [#8539](https://github.com/appwrite/appwrite/pull/8539) +* Support manual templates in [#8527](https://github.com/appwrite/appwrite/pull/8527) +* Reorder runtimes in [#8540](https://github.com/appwrite/appwrite/pull/8540) +* Fix 1.6 bugs in [#8358](https://github.com/appwrite/appwrite/pull/8358) +* Add seconds precision to scheduledAt in [#8546](https://github.com/appwrite/appwrite/pull/8546) +* Update docker base image in [#8485](https://github.com/appwrite/appwrite/pull/8485) +* Update create execution return type in [#8542](https://github.com/appwrite/appwrite/pull/8542) +* Default fallback to for templateBranch in [#8547](https://github.com/appwrite/appwrite/pull/8547) +* Fix env vars functions test in [#8555](https://github.com/appwrite/appwrite/pull/8555) +* Fix session alerts in [#8550](https://github.com/appwrite/appwrite/pull/8550) +* Add runtime controls in [#8384](https://github.com/appwrite/appwrite/pull/8384) +* Revert request type to json in create execution in [#8563](https://github.com/appwrite/appwrite/pull/8563) +* Sync 1.6.x Filters and Migrations with latest in [#8553](https://github.com/appwrite/appwrite/pull/8553) +* Update sdks in [#8551](https://github.com/appwrite/appwrite/pull/8551) +* Update Docs in [#8567](https://github.com/appwrite/appwrite/pull/8567) +* Headers validator benchmark in [#8561](https://github.com/appwrite/appwrite/pull/8561) +* Fix go version in [#8571](https://github.com/appwrite/appwrite/pull/8571) +* Update dependencies in [#8574](https://github.com/appwrite/appwrite/pull/8574) +* Upgrade console in [#8575](https://github.com/appwrite/appwrite/pull/8575) +* 1.6.x logging test in [#8580](https://github.com/appwrite/appwrite/pull/8580) +* Bump console sdk in [#8581](https://github.com/appwrite/appwrite/pull/8581) +* Update sdks in [#8582](https://github.com/appwrite/appwrite/pull/8582) +* Add changelogs for dart and flutter in [#8587](https://github.com/appwrite/appwrite/pull/8587) +* Add payload validator in [#8594](https://github.com/appwrite/appwrite/pull/8594) +* Update geodb in [#8615](https://github.com/appwrite/appwrite/pull/8615) +* Update createdeployment methodtype to upload in [#8616](https://github.com/appwrite/appwrite/pull/8616) +* Remove tenant in document filter in [#8624](https://github.com/appwrite/appwrite/pull/8624) +* Improve mail datetime format in [#8628](https://github.com/appwrite/appwrite/pull/8628) +* Fix router function execution logging in [#8625](https://github.com/appwrite/appwrite/pull/8625) +* Add Functions templates async test in [#8622](https://github.com/appwrite/appwrite/pull/8622) +* Update console in [#8629](https://github.com/appwrite/appwrite/pull/8629) +* 1.6.1 in [#8630](https://github.com/appwrite/appwrite/pull/8630) +* Update version in [#8646](https://github.com/appwrite/appwrite/pull/8646) +* Phone auth metric rename in [#8648](https://github.com/appwrite/appwrite/pull/8648) +* Pretty print specs in [#8643](https://github.com/appwrite/appwrite/pull/8643) +* Fix messaging metrics in [#8674](https://github.com/appwrite/appwrite/pull/8674) +* Bump console to 5.0.6 in [#8585](https://github.com/appwrite/appwrite/pull/8585) + # Version 1.5.10 ## What's Changed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d3a7d060b05..7746ef99afe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -We would ❤️ you to contribute to Appwrite and help make it better! We want contributing to Appwrite to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, and new docs, as well as updates and tweaks, blog posts, workshops, and more. +We would :heart: you to contribute to Appwrite and help make it better! We want contributing to Appwrite to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, and new docs, as well as updates and tweaks, blog posts, workshops, and more. ## Here for Hacktoberfest? If you're here to contribute during Hacktoberfest, we're so happy to see you here. Appwrite has been a long-time participant of Hacktoberfest and we welcome you, whatever your experience level. This year, we're **only taking contributions for issues tagged** `hacktoberfest`, so we can focus our resources to support your contributions. @@ -9,13 +9,13 @@ You can [find issues using this query](https://github.com/search?q=org%3Aappwrit ## How to Start? -If you are worried or don’t know where to start, check out the next section that explains what kind of help we could use and where you can get involved. You can send your questions to [@appwrite](https://twitter.com/appwrite) on Twitter or to anyone from the [Appwrite team on Discord](https://appwrite.io/discord). You can also submit an issue, and a maintainer can guide you! +If you are worried or don’t know where to start, check out the next section that explains what kind of help we could use and where you can get involved. You can send your questions to [@appwrite on Twitter](https://twitter.com/appwrite) or to anyone from the [Appwrite team on Discord](https://appwrite.io/discord). You can also submit an issue, and a maintainer can guide you! ## Code of Conduct Help us keep Appwrite open and inclusive. Please read and follow our [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md). -## Submit a Pull Request 🚀 +## Submit a Pull Request :rocket: Branch naming convention is as following @@ -65,13 +65,13 @@ Now, go a step further by running the linter using the following command to manu composer lint ``` -This will give you a list of errors to rectify. If you need more information on the errors, you can pass in additional command line arguments to get more verbose information. More lists of available arguments can be found [here](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage). A very useful command line argument is `--report=diff`. This will give you the expected changes by the linter for easy fixing of formatting issues. +This will give you a list of errors to rectify. If you need more information on the errors, you can pass in additional command line arguments to get more verbose information. More lists of available arguments can be found [on PHP_Codesniffer usage Wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage). A very useful command line argument is `--report=diff`. This will give you the expected changes by the linter for easy fixing of formatting issues. ```bash composer lint --report=diff ``` -5. Push changes to GitHub. +5. Push changes to GitHub ``` $ git push origin [name_of_your_new_branch] @@ -163,6 +163,28 @@ Other containes should be named the same as their service, for example `redis` s - [Encryption](https://medium.com/searchencrypt/what-is-encryption-how-does-it-work-e8f20e340537#:~:text=Encryption%20is%20a%20process%20that,%2C%20or%20decrypt%2C%20the%20information.) - [Hashing](https://searchsqlserver.techtarget.com/definition/hashing#:~:text=Hashing%20is%20the%20transformation%20of,it%20using%20the%20original%20value.) +## Modules + +As Appwrite grows, we noticed approach of having all service endpoints in `app/controllers/api/[service].php` is not maintainable. Not only it creates massive files, it also doesnt contain all product's features such as workers or tasks. While there might still be some occurances of those controller files, we avoid it in all new development, and gradually migrate existing controllers to **HTTP modules**. + +### HTTP Endpoints + +Every endpoint file follows below structure, making it consistent with HTTP REST endpoint path: + +``` +src/Appwrite/Platform/Modules/[service]/Http/[resource]/[action].php +``` + +Tips and tricks: + +1. If endpoint doesn't have resource, use service name as resource name too +> Example: `Modules/Sites/Http/Sites/Get.php` + +2. If there are multiple resources, use then all in folder structure +> Example: `Modules/Sites/Http/Deployments/Builds/Create.php` + +3. Action can only be `Get`, `Create`, `Update`, `Delete` or `XList` + ## Architecture Appwrite's current structure is a combination of both [Monolithic](https://en.wikipedia.org/wiki/Monolithic_application) and [Microservice](https://en.wikipedia.org/wiki/Microservices) architectures. @@ -301,7 +323,7 @@ Adding a new dependency should have vital value for the product with minimum pos ## Introducing New Features -We would 💖 you to contribute to Appwrite, but we also want to ensure Appwrite is loyal to its vision and mission statement 🙏. +We would :sparkling_heart: you to contribute to Appwrite, but we also want to ensure Appwrite is loyal to its vision and mission statement :pray:. For us to find the right balance, please open an issue explaining your ideas before introducing a new pull request. @@ -319,10 +341,13 @@ These are the current metrics we collect usage stats for: | users | Total number of users per project| | executions | Total number of executions per project | | databases | Total number of databases per project | +| databases.storage | Total amount of storage used by all databases per project (in bytes) | | collections | Total number of collections per project | | {databaseInternalId}.collections | Total number of collections per database| +| {databaseInternalId}.storage | Sum of database storage (in bytes) | | documents | Total number of documents per project | | {databaseInternalId}.{collectionInternalId}.documents | Total number of documents per collection | +| {databaseInternalId}.{collectionInternalId}.storage | Sum of database storage used by the collection (in bytes) | | buckets | Total number of buckets per project | | files | Total number of files per project | | {bucketInternalId}.files.storage | Sum of files.storage per bucket (in bytes) | @@ -364,7 +389,7 @@ In file `app/controllers/shared/api.php` On the database listener, add to an exi ```php case $document->getCollection() === 'teams': - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_TEAMS, $value); // per project break; ``` @@ -376,10 +401,10 @@ In that case you need also to handle children removal using addReduce() method c ```php case $document->getCollection() === 'buckets': //buckets - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_BUCKETS, $value); // per project if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage + $queueForStatsUsage ->addReduce($document); } break; @@ -425,16 +450,16 @@ public function __construct() ->inject('dbForProject') ->inject('queueForFunctions') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('log') - ->callback(fn (Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Log $log) => $this->action($message, $dbForProject, $queueForFunctions, $queueForEvents, $queueForUsage, $log)); + ->callback(fn (Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, StatsUsage $queueForStatsUsage, Log $log) => $this->action($message, $dbForProject, $queueForFunctions, $queueForEvents, $queueForStatsUsage, $log)); } ``` and then trigger the queue with the new metric like so: ```php -$queueForUsage +$queueForStatsUsage ->addMetric(METRIC_BUILDS, 1) ->addMetric(METRIC_BUILDS_STORAGE, $build->getAttribute('size', 0)) ->addMetric(METRIC_BUILDS_COMPUTE, (int)$build->getAttribute('duration', 0) * 1000) @@ -610,6 +635,18 @@ If you need to clear the cache, you can do so by running the following command: docker compose exec redis redis-cli FLUSHALL ``` +## Using preview domains locally + +Appwrite Functions are automatically given a domain you can visit to execute the function. This domain has format `[SOMETHING].functions.localhost` unless you changed `_APP_DOMAIN_FUNCTIONS` environment variable. This default value works great when running Appwrite locally, but it can be impossible to use preview domains with Cloud woekspaces such as Gitpod or GitHub Codespaces. + +To use preview domains on Cloud workspaces, you can visit hostname provided by them, and supply function's preview domain as URL parameter: + +``` +https://8080-appwrite-appwrite-mjeb3ebilwv.ws-eu116.gitpod.io/ping?preview=672b3c7eab1ac523ccf5.functions.localhost +``` + +The path was set to `/ping` intentionally. Visiting `/` for preview domains might trigger Console background worker, and trigger redirect to Console without our preview URL param. Visiting different path ensures this doesnt happen. + ## Tutorials From time to time, our team will add tutorials that will help contributors find their way in the Appwrite source code. Below is a list of currently available tutorials: @@ -625,7 +662,7 @@ Pull requests are great, but there are many other ways you can help Appwrite. ### Blogging & Speaking -Blogging, speaking about, or creating tutorials about one of Appwrite’s many features are great ways to get the word out about Appwrite. Mention [@appwrite](https://twitter.com/appwrite) on Twitter and/or [email team@appwrite.io](mailto:team@appwrite.io) so we can give pointers and tips and help you spread the word by promoting your content on the different Appwrite communication channels. Please add your blog posts and videos of talks to our [Awesome Appwrite](https://github.com/appwrite/awesome-appwrite) repo on GitHub. +Blogging, speaking about, or creating tutorials about one of Appwrite’s many features are great ways to get the word out about Appwrite. Mention [@appwrite on Twitter](https://twitter.com/appwrite) and/or [email team@appwrite.io](mailto:team@appwrite.io) so we can give pointers and tips and help you spread the word by promoting your content on the different Appwrite communication channels. Please add your blog posts and videos of talks to our [Awesome Appwrite](https://github.com/appwrite/awesome-appwrite) repo on GitHub. ### Presenting at Meetups diff --git a/Dockerfile b/Dockerfile index 4dc996fe89f..30b017b5731 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM composer:2.0 as composer +FROM composer:2.0 AS composer ARG TESTING=false ENV TESTING=$TESTING @@ -12,7 +12,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \ --no-plugins --no-scripts --prefer-dist \ `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` -FROM appwrite/base:0.9.2 as final +FROM appwrite/base:0.10.1 AS final LABEL maintainer="team@appwrite.io" @@ -28,6 +28,8 @@ RUN \ apk add boost boost-dev; \ fi +RUN apk add libwebp + WORKDIR /usr/src/code COPY --from=composer /usr/local/src/vendor /usr/src/code/vendor @@ -42,12 +44,14 @@ COPY ./dev /usr/src/code/dev # Set Volumes RUN mkdir -p /storage/uploads && \ + mkdir -p /storage/imports && \ mkdir -p /storage/cache && \ mkdir -p /storage/config && \ mkdir -p /storage/certificates && \ mkdir -p /storage/functions && \ mkdir -p /storage/debug && \ chown -Rf www-data.www-data /storage/uploads && chmod -Rf 0755 /storage/uploads && \ + chown -Rf www-data.www-data /storage/imports && chmod -Rf 0755 /storage/imports && \ chown -Rf www-data.www-data /storage/cache && chmod -Rf 0755 /storage/cache && \ chown -Rf www-data.www-data /storage/config && chmod -Rf 0755 /storage/config && \ chown -Rf www-data.www-data /storage/certificates && chmod -Rf 0755 /storage/certificates && \ @@ -66,6 +70,7 @@ RUN chmod +x /usr/local/bin/doctor && \ chmod +x /usr/local/bin/sdks && \ chmod +x /usr/local/bin/specs && \ chmod +x /usr/local/bin/ssl && \ + chmod +x /usr/local/bin/screenshot && \ chmod +x /usr/local/bin/test && \ chmod +x /usr/local/bin/upgrade && \ chmod +x /usr/local/bin/vars && \ @@ -83,17 +88,18 @@ RUN chmod +x /usr/local/bin/doctor && \ chmod +x /usr/local/bin/worker-messaging && \ chmod +x /usr/local/bin/worker-migrations && \ chmod +x /usr/local/bin/worker-webhooks && \ - chmod +x /usr/local/bin/worker-usage && \ - chmod +x /usr/local/bin/worker-usage-dump + chmod +x /usr/local/bin/worker-stats-usage && \ + chmod +x /usr/local/bin/stats-resources && \ + chmod +x /usr/local/bin/worker-stats-resources # Letsencrypt Permissions RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/ # Enable Extensions -RUN if [ "$DEBUG" == "true" ]; then cp /usr/src/code/dev/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini; fi -RUN if [ "$DEBUG" == "true" ]; then mkdir -p /tmp/xdebug; fi +RUN if [ "$DEBUG" = "true" ]; then cp /usr/src/code/dev/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini; fi +RUN if [ "$DEBUG" = "true" ]; then mkdir -p /tmp/xdebug; fi RUN if [ "$DEBUG" = "false" ]; then rm -rf /usr/src/code/dev; fi -RUN if [ "$DEBUG" = "false" ]; then rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so; fi +RUN if [ "$DEBUG" = "false" ]; then rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20230831/xdebug.so; fi EXPOSE 80 diff --git a/README-CN.md b/README-CN.md index 5e0cbab4c4b..a81d99c3c3a 100644 --- a/README-CN.md +++ b/README-CN.md @@ -1,8 +1,8 @@ -> 好消息!Appwrite 云现已进入公开测试版!立即访问 cloud.appwrite.io 注册,体验无忧的托管服务。今天就加入我们的云端吧!☁️🎉 +> 好消息!Appwrite 云现已进入公开测试版!立即访问 cloud.appwrite.io 注册,体验无忧的托管服务。今天就加入我们的云端吧!:cloud: :tada:

- Appwrite Logo + Appwrite banner with logo and slogan build like a team of hundreds

适用于[Flutter/Vue/Angular/React/iOS/Android/* 等等平台 *]的完整后端服务 @@ -36,6 +36,8 @@ Appwrite 可以提供给开发者用户验证,外部授权,用户数据读 内容: + +- [开始](#开始) - [安装](#安装) - [Unix](#unix) - [Windows](#windows) @@ -54,6 +56,9 @@ Appwrite 可以提供给开发者用户验证,外部授权,用户数据读 - [订阅我们](#订阅我们) - [版权说明](#版权说明) +## 开始 +要轻松开始使用Appwrite,您可以[**免费注册Appwrite Cloud**](https://cloud.appwrite.io/)。在Appwrite Cloud公开测试版期间,您可以完全免费使用Appwrite,而且我们不会收集您的信用卡信息。 + ## 安装 Appwrite 的容器化服务器只需要一行指令就可以运行。您可以使用 docker-compose 在本地主机上运行 Appwrite,也可以在任何其他容器化工具(如 [Kubernetes](https://kubernetes.io/docs/home/)、[Docker Swarm](https://docs.docker.com/engine/swarm/) 或 [Rancher](https://rancher.com/docs/))上运行 Appwrite。 @@ -67,7 +72,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:1.5.10 + appwrite/appwrite:1.6.2 ``` ### Windows @@ -79,7 +84,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:1.5.10 + appwrite/appwrite:1.6.2 ``` #### PowerShell @@ -89,7 +94,7 @@ docker run -it --rm ` --volume /var/run/docker.sock:/var/run/docker.sock ` --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ` --entrypoint="install" ` - appwrite/appwrite:1.5.10 + appwrite/appwrite:1.6.2 ``` 运行后,可以在浏览器上访问 http://localhost 找到 Appwrite 控制台。在非 Linux 的本机主机上完成安装后,服务器可能需要几分钟才能启动。 @@ -98,7 +103,42 @@ docker run -it --rm ` ### 从旧版本升级 -如果您从旧版本升级 Appwrite 服务器,则应在设置完成后使用 Appwrite 迁移工具。有关这方面的更多信息,请查看 [安装文档](https://appwrite.io/docs/installation)。 +如果您从旧版本升级 Appwrite 服务器,则应在设置完成后使用 Appwrite 迁移工具。有关这方面的更多信息,请查看 [安装文档](https://appwrite.io/docs/self-hosting)。 + +## 一键配置 + +除了在本地运行 Appwrite,您还可以使用预配置的设置启动 Appwrite。这样可以让您快速启动并运行 Appwrite,而无需在本地计算机上安装 Docker。 + +请从以下提供商中选择一个: + + + + + + + + +
+ + DigitalOcean Logo +
DigitalOcean
+ +
+ + Gitpod Logo +
Gitpod
+ +
+ + Akamai Logo +
Akamai Compute
+ +
+ + AWS Logo +
AWS Marketplace
+ +
## 入门 @@ -146,29 +186,25 @@ docker run -it --rm ` 以下是当前支持的平台和语言列表。如果您想帮助我们为您选择的平台添加支持,您可以访问我们的 [SDK 生成器](https://github.com/appwrite/sdk-generator) 项目并查看我们的 [贡献指南](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md)。 #### 客户端 - -- ✅   [Web](https://github.com/appwrite/sdk-for-web) (由 Appwrite 团队维护) -- ✅   [Flutter](https://github.com/appwrite/sdk-for-flutter) (由 Appwrite 团队维护) -- ✅   [Apple](https://github.com/appwrite/sdk-for-apple) (由 Appwrite 团队维护) -- ✅   [Android](https://github.com/appwrite/sdk-for-android) (由 Appwrite 团队维护) -- ✅   [React Native](https://github.com/appwrite/sdk-for-react-native) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Web](https://github.com/appwrite/sdk-for-web) (由 Appwrite 团队维护) +* :white_check_mark:   [Flutter](https://github.com/appwrite/sdk-for-flutter) (由 Appwrite 团队维护) +* :white_check_mark:   [Apple](https://github.com/appwrite/sdk-for-apple) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Android](https://github.com/appwrite/sdk-for-android) (由 Appwrite 团队维护) #### 服务器 - -- ✅   [NodeJS](https://github.com/appwrite/sdk-for-node) (由 Appwrite 团队维护) -- ✅   [PHP](https://github.com/appwrite/sdk-for-php) (由 Appwrite 团队维护) -- ✅   [Dart](https://github.com/appwrite/sdk-for-dart) (由 Appwrite 团队维护) -- ✅   [Deno](https://github.com/appwrite/sdk-for-deno) (由 Appwrite 团队维护) -- ✅   [Ruby](https://github.com/appwrite/sdk-for-ruby) (由 Appwrite 团队维护) -- ✅   [Python](https://github.com/appwrite/sdk-for-python) (由 Appwrite 团队维护) -- ✅   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) (由 Appwrite 团队维护) -- ✅   [Swift](https://github.com/appwrite/sdk-for-swift) (由 Appwrite 团队维护) -- ✅   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [NodeJS](https://github.com/appwrite/sdk-for-node) (由 Appwrite 团队维护) +* :white_check_mark:   [PHP](https://github.com/appwrite/sdk-for-php) (由 Appwrite 团队维护) +* :white_check_mark:   [Dart](https://github.com/appwrite/sdk-for-dart) - (由 Appwrite 团队维护) +* :white_check_mark:   [Deno](https://github.com/appwrite/sdk-for-deno) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Ruby](https://github.com/appwrite/sdk-for-ruby) (由 Appwrite 团队维护) +* :white_check_mark:   [Python](https://github.com/appwrite/sdk-for-python) (由 Appwrite 团队维护) +* :white_check_mark:   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Apple](https://github.com/appwrite/sdk-for-apple) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **公测** (由 Appwrite 团队维护) #### 开发者社区 - -- ✅   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (维护者 [Michael Gangolf](https://github.com/m1ga/)) -- ✅   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (维护者 [fenix-hub @GodotNuts](https://github.com/fenix-hub)) +* :white_check_mark:   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (维护者 [Michael Gangolf](https://github.com/m1ga/)) +* :white_check_mark:   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (维护者 [fenix-hub @GodotNuts](https://github.com/fenix-hub)) 找不到需要的的 SDK? - 欢迎通过发起 PR 来帮助我们完善 Appwrite 的软件生态环境 [SDK 生成器](https://github.com/appwrite/sdk-generator)! diff --git a/README.md b/README.md index 8305d78ef0c..c3585dbb68a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -> Our Appwrite Init event has concluded. You can check out all the new and upcoming features [on our Init website](https://appwrite.io/init) 🚀 +> [Get started with Appwrite](https://apwr.dev/appcloud)

- Appwrite Logo + Appwrite banner, with logo and text saying

Appwrite is a backend platform for developing Web, Mobile, and Flutter applications. Built with the open source community and optimized for developer experience in the coding languages you love. @@ -12,11 +12,11 @@ -[![We're Hiring](https://img.shields.io/static/v1?label=We're&message=Hiring&color=blue&style=flat-square)](https://appwrite.io/company/careers) -[![Hacktoberfest](https://img.shields.io/static/v1?label=hacktoberfest&message=ready&color=191120&style=flat-square)](https://hacktoberfest.appwrite.io) -[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord?r=Github) -[![Build Status](https://img.shields.io/github/actions/workflow/status/appwrite/appwrite/tests.yml?branch=master&label=tests&style=flat-square)](https://github.com/appwrite/appwrite/actions) -[![X Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) +[![We're Hiring label](https://img.shields.io/static/v1?label=We're&message=Hiring&color=blue&style=flat-square)](https://appwrite.io/company/careers) +[![Hacktoberfest label](https://img.shields.io/static/v1?label=hacktoberfest&message=ready&color=191120&style=flat-square)](https://hacktoberfest.appwrite.io) +[![Discord label](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord?r=Github) +[![Build Status label](https://img.shields.io/github/actions/workflow/status/appwrite/appwrite/tests.yml?branch=master&label=tests&style=flat-square)](https://github.com/appwrite/appwrite/actions) +[![X Account label](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) @@ -24,11 +24,9 @@ English | [简体中文](README-CN.md) -[**Announcing Appwrite Cloud Public Beta! Sign up today!**](https://cloud.appwrite.io) - Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster. -Using Appwrite, you can easily integrate your app with user authentication and multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, and [more services](https://appwrite.io/docs). +Using Appwrite, you can easily integrate your app with user authentication and multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, messaging, and [more services](https://appwrite.io/docs).


@@ -37,13 +35,14 @@ Using Appwrite, you can easily integrate your app with user authentication and m

-![Appwrite](public/images/github.png) +![Appwrite project dashboard showing various Appwrite features](public/images/github.png) -Find out more at: [https://appwrite.io](https://appwrite.io) +Find out more at: [https://appwrite.io](https://appwrite.io). Table of Contents: -- [Installation](#installation) +- [Getting Started](#getting-started) +- [Self-Hosting](#self-hosting) - [Unix](#unix) - [Windows](#windows) - [CMD](#cmd) @@ -51,7 +50,7 @@ Table of Contents: - [Upgrade from an Older Version](#upgrade-from-an-older-version) - [One-Click Setups](#one-click-setups) - [Getting Started](#getting-started) - - [Services](#services) + - [Products](#products) - [SDKs](#sdks) - [Client](#client) - [Server](#server) @@ -62,11 +61,14 @@ Table of Contents: - [Follow Us](#follow-us) - [License](#license) -## Installation +## Getting Started +The easiest way to get started with Appwrite is by [signing up for Appwrite Cloud](https://cloud.appwrite.io/). While Appwrite Cloud is in public beta, you can build with Appwrite completely free, and we won't collect you credit card information. + +## Self-Hosting Appwrite is designed to run in a containerized environment. Running your server is as easy as running one command from your terminal. You can either run Appwrite on your localhost using docker-compose or on any other container orchestration tool, such as [Kubernetes](https://kubernetes.io/docs/home/), [Docker Swarm](https://docs.docker.com/engine/swarm/), or [Rancher](https://rancher.com/docs/). -The easiest way to start running your Appwrite server is by running our docker-compose file. Before running the installation command, make sure you have [Docker](https://www.docker.com/products/docker-desktop) installed on your machine: +Before running the installation command, make sure you have [Docker](https://www.docker.com/products/docker-desktop) installed on your machine: ### Unix @@ -75,7 +77,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:1.5.10 + appwrite/appwrite:1.6.2 ``` ### Windows @@ -87,7 +89,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:1.5.10 + appwrite/appwrite:1.6.2 ``` #### PowerShell @@ -97,7 +99,7 @@ docker run -it --rm ` --volume /var/run/docker.sock:/var/run/docker.sock ` --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ` --entrypoint="install" ` - appwrite/appwrite:1.5.10 + appwrite/appwrite:1.6.2 ``` Once the Docker installation is complete, go to http://localhost to access the Appwrite console from your browser. Please note that on non-Linux native hosts, the server might take a few minutes to start after completing the installation. @@ -106,7 +108,7 @@ For advanced production and custom installation, check out our Docker [environme ### Upgrade from an Older Version -If you are upgrading your Appwrite server from an older version, you should use the Appwrite migration tool once your setup is completed. For more information regarding this, check out the [Installation Docs](https://appwrite.io/docs/installation). +If you are upgrading your Appwrite server from an older version, you should use the Appwrite migration tool once your setup is completed. For more information regarding this, check out the [Installation Docs](https://appwrite.io/docs/self-hosting). ## One-Click Setups @@ -134,6 +136,12 @@ Choose from one of the providers below:
Akamai Compute + + + AWS Logo +
AWS Marketplace
+ + @@ -186,34 +194,34 @@ Below is a list of currently supported platforms and languages. If you would lik #### Client -- ✅   [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team) -- ✅   [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team) -- ✅   [Apple](https://github.com/appwrite/sdk-for-apple) (Maintained by the Appwrite Team) -- ✅   [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team) -- ✅   [React Native](https://github.com/appwrite/sdk-for-react-native) - **Beta** (Maintained by the Appwrite Team) +- :white_check_mark:   [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team) +- :white_check_mark:   [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team) +- :white_check_mark:   [Apple](https://github.com/appwrite/sdk-for-apple) (Maintained by the Appwrite Team) +- :white_check_mark:   [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team) +- :white_check_mark:   [React Native](https://github.com/appwrite/sdk-for-react-native) - **Beta** (Maintained by the Appwrite Team) #### Server -- ✅   [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team) -- ✅   [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team) -- ✅   [Dart](https://github.com/appwrite/sdk-for-dart) (Maintained by the Appwrite Team) -- ✅   [Deno](https://github.com/appwrite/sdk-for-deno) (Maintained by the Appwrite Team) -- ✅   [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team) -- ✅   [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team) -- ✅   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) (Maintained by the Appwrite Team) -- ✅   [Swift](https://github.com/appwrite/sdk-for-swift) (Maintained by the Appwrite Team) -- ✅   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Beta** (Maintained by the Appwrite Team) +- :white_check_mark:   [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team) +- :white_check_mark:   [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team) +- :white_check_mark:   [Dart](https://github.com/appwrite/sdk-for-dart) (Maintained by the Appwrite Team) +- :white_check_mark:   [Deno](https://github.com/appwrite/sdk-for-deno) (Maintained by the Appwrite Team) +- :white_check_mark:   [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team) +- :white_check_mark:   [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team) +- :white_check_mark:   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) (Maintained by the Appwrite Team) +- :white_check_mark:   [Swift](https://github.com/appwrite/sdk-for-swift) (Maintained by the Appwrite Team) +- :white_check_mark:   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Beta** (Maintained by the Appwrite Team) #### Community -- ✅   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (Maintained by [Michael Gangolf](https://github.com/m1ga/)) -- ✅   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (Maintained by [fenix-hub @GodotNuts](https://github.com/fenix-hub)) +- :white_check_mark:   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (Maintained by [Michael Gangolf](https://github.com/m1ga/)) +- :white_check_mark:   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (Maintained by [fenix-hub @GodotNuts](https://github.com/fenix-hub)) Looking for more SDKs? - Help us by contributing a pull request to our [SDK Generator](https://github.com/appwrite/sdk-generator)! ## Architecture -![Appwrite Architecture](docs/specs/overview.drawio.svg) +![Appwrite Architecture showing how Appwrite is built and the services and tools it uses](docs/specs/overview.drawio.svg) Appwrite uses a microservices architecture that was designed for easy scaling and delegation of responsibilities. In addition, Appwrite supports multiple APIs, such as REST, WebSocket, and GraphQL to allow you to interact with your resources by leveraging your existing knowledge and protocols of choice. @@ -223,7 +231,7 @@ The Appwrite API layer was designed to be extremely fast by leveraging in-memory All code contributions, including those of people having commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code. -We truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md). +We truly :heart: pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md). ## Security diff --git a/SECURITY.md b/SECURITY.md index a17a55e3680..d5901533fbe 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -11,6 +11,7 @@ | 1.3.x | :white_check_mark: | | 1.4.x | :white_check_mark: | | 1.5.x | :white_check_mark: | +| 1.6.x | :white_check_mark: | ## Reporting a Vulnerability diff --git a/app/assets/dbip/dbip-country-lite-2024-08.mmdb b/app/assets/dbip/dbip-country-lite-2024-08.mmdb deleted file mode 100644 index fccac208492..00000000000 Binary files a/app/assets/dbip/dbip-country-lite-2024-08.mmdb and /dev/null differ diff --git a/app/assets/dbip/dbip-country-lite-2024-09.mmdb b/app/assets/dbip/dbip-country-lite-2024-09.mmdb new file mode 100644 index 00000000000..43d6bcdeeab Binary files /dev/null and b/app/assets/dbip/dbip-country-lite-2024-09.mmdb differ diff --git a/app/cli.php b/app/cli.php index 9a022eaacc3..0f0e48bf7df 100644 --- a/app/cli.php +++ b/app/cli.php @@ -1,12 +1,16 @@ getAll(supported: false)); + +// require controllers after overwriting runtimes +require_once __DIR__ . '/controllers/general.php'; Authorization::disable(); @@ -35,8 +48,7 @@ $adapters[] = $pools ->get($value) ->pop() - ->getResource() - ; + ->getResource(); } return new Cache(new Sharding($adapters)); @@ -46,7 +58,7 @@ return $register->get('pools'); }, ['register']); -CLI::setResource('dbForConsole', function ($pools, $cache) { +CLI::setResource('dbForPlatform', function ($pools, $cache) { $sleep = 3; $maxAttempts = 5; $attempts = 0; @@ -61,9 +73,9 @@ ->pop() ->getResource(); - $dbForConsole = new Database($dbAdapter, $cache); + $dbForPlatform = new Database($dbAdapter, $cache); - $dbForConsole + $dbForPlatform ->setNamespace('_console') ->setMetadata('host', \gethostname()) ->setMetadata('project', 'console'); @@ -72,7 +84,7 @@ $collections = Config::getParam('collections', [])['console']; $last = \array_key_last($collections); - if (!($dbForConsole->exists($dbForConsole->getDatabase(), $last))) { /** TODO cache ready variable using registry */ + if (!($dbForPlatform->exists($dbForPlatform->getDatabase(), $last))) { /** TODO cache ready variable using registry */ throw new Exception('Tables not ready yet.'); } @@ -88,15 +100,19 @@ throw new Exception("Console is not ready yet. Please try again later."); } - return $dbForConsole; + return $dbForPlatform; }, ['pools', 'cache']); -CLI::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, $cache) { +CLI::setResource('console', function () { + return new Document(Config::getParam('console')); +}, []); + +CLI::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, $cache) { $databases = []; // TODO: @Meldiron This should probably be responsibility of utopia-php/pools - return function (Document $project) use ($pools, $dbForConsole, $cache, &$databases) { + return function (Document $project) use ($pools, $dbForPlatform, $cache, &$databases) { if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; + return $dbForPlatform; } try { @@ -108,8 +124,9 @@ if (isset($databases[$dsn->getHost()])) { $database = $databases[$dsn->getHost()]; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -130,10 +147,10 @@ ->getResource(); $database = new Database($dbAdapter, $cache); - $databases[$dsn->getHost()] = $database; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -151,22 +168,68 @@ return $database; }; -}, ['pools', 'dbForConsole', 'cache']); +}, ['pools', 'dbForPlatform', 'cache']); + +CLI::setResource('getLogsDB', function (Group $pools, Cache $cache) { + $database = null; + return function (?Document $project = null) use ($pools, $cache, $database) { + if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + return $database; + } + + $dbAdapter = $pools + ->get('logs') + ->pop() + ->getResource(); + + $database = new Database( + $dbAdapter, + $cache + ); + + $database + ->setSharedTables(true) + ->setNamespace('logsV1') + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_TASK) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + // set tenant + if ($project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + } + + return $database; + }; +}, ['pools', 'cache']); -CLI::setResource('queue', function (Group $pools) { - return $pools->get('queue')->pop()->getResource(); +CLI::setResource('queueForStatsUsage', function (Publisher $publisher) { + return new StatsUsage($publisher); +}, ['publisher']); +CLI::setResource('queueForStatsResources', function (Publisher $publisher) { + return new StatsResources($publisher); +}, ['publisher']); +CLI::setResource('publisher', function (Group $pools) { + return $pools->get('publisher')->pop()->getResource(); }, ['pools']); -CLI::setResource('queueForFunctions', function (Connection $queue) { - return new Func($queue); -}, ['queue']); -CLI::setResource('queueForDeletes', function (Connection $queue) { - return new Delete($queue); -}, ['queue']); -CLI::setResource('queueForCertificates', function (Connection $queue) { - return new Certificate($queue); -}, ['queue']); +CLI::setResource('queueForFunctions', function (Publisher $publisher) { + return new Func($publisher); +}, ['publisher']); +CLI::setResource('queueForDeletes', function (Publisher $publisher) { + return new Delete($publisher); +}, ['publisher']); +CLI::setResource('queueForCertificates', function (Publisher $publisher) { + return new Certificate($publisher); +}, ['publisher']); CLI::setResource('logError', function (Registry $register) { return function (Throwable $error, string $namespace, string $action) use ($register) { + Console::error('[Error] Timestamp: ' . date('c', time())); + Console::error('[Error] Type: ' . get_class($error)); + Console::error('[Error] Message: ' . $error->getMessage()); + Console::error('[Error] File: ' . $error->getFile()); + Console::error('[Error] Line: ' . $error->getLine()); + Console::error('[Error] Trace: ' . $error->getTraceAsString()); + $logger = $register->get('logger'); if ($logger) { @@ -174,7 +237,7 @@ $log = new Log(); $log->setNamespace($namespace); - $log->setServer(\gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($error->getMessage()); @@ -185,31 +248,54 @@ $log->addExtra('file', $error->getFile()); $log->addExtra('line', $error->getLine()); $log->addExtra('trace', $error->getTraceAsString()); + $log->addExtra('detailedTrace', $error->getTrace()); $log->setAction($action); $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Usage stats log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } - - Console::warning("Failed: {$error->getMessage()}"); - Console::warning($error->getTraceAsString()); }; }, ['register']); +CLI::setResource('executor', fn () => new Executor(fn (string $projectId, string $deploymentId) => System::getEnv('_APP_EXECUTOR_HOST'))); + +CLI::setResource('telemetry', fn () => new NoTelemetry()); + $platform = new Appwrite(); -$platform->init(Service::TYPE_TASK); +$args = $platform->getEnv('argv'); + +if (!isset($args[0])) { + Console::error('Missing task name'); + Console::exit(1); +} +\array_shift($args); +$taskName = $args[0]; +$platform->init(Service::TYPE_TASK); $cli = $platform->getCli(); $cli ->error() ->inject('error') - ->action(function (Throwable $error) { - Console::error($error->getMessage()); + ->inject('logError') + ->action(function (Throwable $error, callable $logError) use ($taskName) { + call_user_func_array($logError, [ + $error, + 'Task', + $taskName, + ]); + + Timer::clearAll(); }); -$cli->run(); +$cli->shutdown()->action(fn () => Timer::clearAll()); + +run($cli->run(...)); diff --git a/app/config/avatars/credit-cards.php b/app/config/avatars/credit-cards.php index eb76c576cf2..52760bf9dc0 100644 --- a/app/config/avatars/credit-cards.php +++ b/app/config/avatars/credit-cards.php @@ -16,5 +16,6 @@ 'union-china-pay' => ['name' => 'Union China Pay', 'path' => __DIR__ . '/credit-cards/union-china-pay.png'], 'visa' => ['name' => 'Visa', 'path' => __DIR__ . '/credit-cards/visa.png'], 'mir' => ['name' => 'MIR', 'path' => __DIR__ . '/credit-cards/mir.png'], - 'maestro' => ['name' => 'Maestro', 'path' => __DIR__ . '/credit-cards/maestro.png'] + 'maestro' => ['name' => 'Maestro', 'path' => __DIR__ . '/credit-cards/maestro.png'], + 'rupay' => ['name' => 'Rupay', 'path' => __DIR__ . '/credit-cards/rupay.png'] ]; diff --git a/app/config/avatars/credit-cards/rupay.png b/app/config/avatars/credit-cards/rupay.png new file mode 100644 index 00000000000..dfb95e98441 Binary files /dev/null and b/app/config/avatars/credit-cards/rupay.png differ diff --git a/app/config/collections.php b/app/config/collections.php index 56c17619677..533dee57a8c 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1,12 +1,18 @@ $common['files']]; + +// no more required. +unset($common['files']); /** * $collection => id of the parent collection where this will be inserted @@ -17,6090 +23,12 @@ * indexes => list of indexes */ -$commonCollections = [ - 'cache' => [ - '$collection' => Database::METADATA, - '$id' => 'cache', - 'name' => 'Cache', - 'attributes' => [ - [ - '$id' => 'resource', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'resourceType', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mimeType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'accessedAt', - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => 'signature', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => '_key_accessedAt', - 'type' => Database::INDEX_KEY, - 'attributes' => ['accessedAt'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => '_key_resource', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resource'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'users' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('users'), - 'name' => 'Users', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('email'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 320, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('phone'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, // leading '+' and 15 digitts maximum by E.164 format - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('labels'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('passwordHistory'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('password'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => 'hash', // Hashing algorithm used to hash the password - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => Auth::DEFAULT_ALGO, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('hashOptions'), // Configuration of hashing algorithm - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => Auth::DEFAULT_ALGO_OPTIONS, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('passwordUpdate'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('prefs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => new \stdClass(), - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('registration'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('emailVerification'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('phoneVerification'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('reset'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mfa'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mfaRecoveryCodes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('authenticators'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryAuthenticators'], - ], - [ - '$id' => ID::custom('sessions'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQuerySessions'], - ], - [ - '$id' => ID::custom('tokens'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryTokens'], - ], - [ - '$id' => ID::custom('challenges'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryChallenges'], - ], - [ - '$id' => ID::custom('memberships'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryMemberships'], - ], - [ - '$id' => ID::custom('targets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryTargets'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['userSearch'], - ], - [ - '$id' => ID::custom('accessedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_email'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['email'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_phone'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['phone'], - 'lengths' => [16], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_status'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['status'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_passwordUpdate'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['passwordUpdate'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_registration'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['registration'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_emailVerification'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['emailVerification'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_phoneVerification'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['phoneVerification'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => '_key_accessedAt', - 'type' => Database::INDEX_KEY, - 'attributes' => ['accessedAt'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'tokens' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('tokens'), - 'name' => 'Tokens', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('userAgent'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('ip'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 45, // https://stackoverflow.com/a/166157/2299554 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'authenticators' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('authenticators'), - 'name' => 'Authenticators', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('verified'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => false, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'challenges' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('challenges'), - 'name' => 'Challenges', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('token'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], [ - '$id' => ID::custom('code'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'sessions' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('sessions'), - 'name' => 'Sessions', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerUid'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerAccessToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('providerAccessTokenExpiry'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('providerRefreshToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('userAgent'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('ip'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 45, // https://stackoverflow.com/a/166157/2299554 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('countryCode'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('osCode'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('osName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('osVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientCode'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientEngine'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientEngineVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deviceName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deviceBrand'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deviceModel'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('factors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('mfaUpdatedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_provider_providerUid'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['provider', 'providerUid'], - 'lengths' => [128, 128], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'identities' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('identities'), - 'name' => 'Identities', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerUid'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerEmail'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 320, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerAccessToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('providerAccessTokenExpiry'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('providerRefreshToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - // Used to store data from provider that may or may not be sensitive - '$id' => ID::custom('secrets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_userInternalId_provider_providerUid'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['userInternalId', 'provider', 'providerUid'], - 'lengths' => [11, 128, 128], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_provider_providerUid'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['provider', 'providerUid'], - 'lengths' => [128, 128], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_provider'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['provider'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerUid'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerUid'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerEmail'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerEmail'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerAccessTokenExpiry'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerAccessTokenExpiry'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'teams' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('teams'), - 'name' => 'Teams', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('total'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('prefs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => new \stdClass(), - 'array' => false, - 'filters' => ['json'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_total'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['total'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'memberships' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('memberships'), - 'name' => 'Memberships', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('teamInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('teamId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('roles'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('invited'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('joined'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('confirm'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_unique'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['teamInternalId', 'userInternalId'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_team'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['teamInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_teamId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['teamId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_invited'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['invited'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_joined'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['joined'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_confirm'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['confirm'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'buckets' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('buckets'), - 'name' => 'Buckets', - 'attributes' => [ - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 128, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('fileSecurity'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 1, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('maximumFileSize'), - 'type' => Database::VAR_INTEGER, - 'signed' => false, - 'size' => 8, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('allowedFileExtensions'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 64, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => true, - ], - [ - '$id' => 'compression', - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 10, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('encryption'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('antivirus'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_fulltext_name'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_enabled'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_fileSecurity'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['fileSecurity'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_maximumFileSize'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['maximumFileSize'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_encryption'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['encryption'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_antivirus'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['antivirus'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ] - ], - - 'stats' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('stats'), - 'name' => 'Stats', - 'attributes' => [ - [ - '$id' => ID::custom('metric'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('region'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('value'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 8, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('time'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('period'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 4, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_time'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['time'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], - ], - [ - '$id' => ID::custom('_key_period_time'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['period', 'time'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_metric_period_time'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['metric', 'period', 'time'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], - ], - ], - ], - - 'providers' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('providers'), - 'name' => 'Providers', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('credentials'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('options'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => ['providerSearch'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_provider'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['provider'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_type'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['type'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_enabled_type'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled', 'type'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ] - ], - ], - - 'messages' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('messages'), - 'name' => 'Messages', - 'attributes' => [ - [ - '$id' => ID::custom('providerType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => 'processing', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('topics'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 21845, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('users'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 21845, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('targets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 21845, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduledAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('scheduleInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deliveredAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('deliveryErrors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('deliveredTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => ['messageSearch'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'topics' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('topics'), - 'name' => 'Topics', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('subscribe'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('emailTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('smsTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('pushTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('targets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryTopicTargets'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => ['topicSearch'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'subscribers' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('subscribers'), - 'name' => 'Subscribers', - 'attributes' => [ - [ - '$id' => ID::custom('targetId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('targetInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('topicId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('topicInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_targetId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['targetId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_targetInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['targetInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_topicId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['topicId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_topicInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['topicInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_unique_target_topic'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['targetInternalId', 'topicInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'targets' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('targets'), - 'name' => 'Targets', - 'attributes' => [ - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sessionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sessionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('identifier'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('expired'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => false, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_providerInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_identifier'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['identifier'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], -]; - -$projectCollections = array_merge([ - 'databases' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('databases'), - 'name' => 'Databases', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'size' => 256, - 'required' => true, - 'signed' => true, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'attributes' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('attributes'), - 'name' => 'Attributes', - 'attributes' => [ - [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('databaseId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => false, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('key'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('error'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('size'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('required'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('default'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['casting'], - ], - [ - '$id' => ID::custom('signed'), - 'type' => Database::VAR_BOOLEAN, - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('array'), - 'type' => Database::VAR_BOOLEAN, - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('format'), - 'type' => Database::VAR_STRING, - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('formatOptions'), - 'type' => Database::VAR_STRING, - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => new stdClass(), - 'array' => false, - 'filters' => ['json', 'range', 'enum'], - ], - [ - '$id' => ID::custom('filters'), - 'type' => Database::VAR_STRING, - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('options'), - 'type' => Database::VAR_STRING, - 'size' => 16384, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_db_collection'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['databaseInternalId', 'collectionInternalId'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - ], - ], - - 'indexes' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('indexes'), - 'name' => 'Indexes', - 'attributes' => [ - [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('databaseId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => false, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('key'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('error'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('attributes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('lengths'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('orders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 4, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_db_collection'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['databaseInternalId', 'collectionInternalId'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - ], - ], - - 'functions' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('functions'), - 'name' => 'Functions', - 'attributes' => [ - [ - '$id' => ID::custom('execute'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('live'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerBranch'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRootDirectory'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerSilentMode'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('logging'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('runtime'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deployment'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('vars'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryVariables'], - ], - [ - '$id' => ID::custom('varsProject'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryProjectVariables'], - ], - [ - '$id' => ID::custom('events'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('schedule'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('timeout'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('version'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 8, - 'signed' => true, - 'required' => false, - 'default' => 'v4', - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('entrypoint'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('commands'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('specification'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => false, - 'required' => false, - 'default' => APP_FUNCTION_SPECIFICATION_DEFAULT, - 'filters' => [], - ], - [ - '$id' => ID::custom('scopes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_enabled'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerRepositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerRepositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_repositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['repositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_repositoryInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['repositoryInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_runtime'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['runtime'], - 'lengths' => [64], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_deployment'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['deployment'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'deployments' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('deployments'), - 'name' => 'Deployments', - 'attributes' => [ - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('buildInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('buildId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('entrypoint'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('commands'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('path'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryName'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRepositoryOwner'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRepositoryUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitHash'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitAuthorUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitAuthor'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitMessage'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerBranch'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerBranchUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRootDirectory'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommentId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 2048, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('size'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('metadata'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('chunksTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('chunksUploaded'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('activate'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => false, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_resource'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_resource_type'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_size'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['size'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_buildId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['buildId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_activate'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['activate'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'builds' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('builds'), - 'name' => 'Builds', - 'attributes' => [ - [ - '$id' => ID::custom('startTime'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('endTime'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('duration'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('size'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('runtime'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => true, - 'default' => 'processing', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('path'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => 'local', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('source'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => '', - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_deployment'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['deploymentId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'executions' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('executions'), - 'name' => 'Executions', - 'attributes' => [ - [ - '$id' => ID::custom('functionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('functionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('trigger'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('duration'), - 'type' => Database::VAR_FLOAT, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('errors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('requestMethod'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('requestPath'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('requestHeaders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('responseStatusCode'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('responseHeaders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduledAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('scheduleInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_function'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['functionId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_trigger'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['trigger'], - 'lengths' => [32], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_status'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['status'], - 'lengths' => [32], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_requestMethod'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['requestMethod'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_requestPath'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['requestPath'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_deployment'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['deploymentId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_responseStatusCode'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['responseStatusCode'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_duration'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['duration'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'variables' => [ - '$collection' => Database::METADATA, - '$id' => 'variables', - 'name' => 'variables', - 'attributes' => [ - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'key', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'value', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 8192, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'] - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => '_key_resourceInternalId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [], - ], - [ - '$id' => '_key_resourceType', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceId_resourceType', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId', 'resourceType'], - 'lengths' => [Database::LENGTH_KEY, 100], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => '_key_uniqueKey', - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['resourceId', 'key', 'resourceType'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY, 100], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => '_key_key', - 'type' => Database::INDEX_KEY, - 'attributes' => ['key'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'migrations' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('migrations'), - 'name' => 'Migrations', - 'attributes' => [ - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('stage'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('source'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 8192, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('credentials'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65536, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('resources'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('statusCounters'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 3000, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('resourceData'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 131070, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('errors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => '_key_status', - 'type' => Database::INDEX_KEY, - 'attributes' => ['status'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_stage', - 'type' => Database::INDEX_KEY, - 'attributes' => ['stage'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_source', - 'type' => Database::INDEX_KEY, - 'attributes' => ['source'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ] - ], - ], -], $commonCollections); - -$consoleCollections = array_merge([ - 'projects' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('projects'), - 'name' => 'Projects', - 'attributes' => [ - [ - '$id' => ID::custom('teamInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('teamId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('region'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('description'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('database'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logo'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('url'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('version'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalCountry'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalState'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalCity'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalAddress'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalTaxId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'accessedAt', - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('services'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('apis'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('smtp'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('templates'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, // TODO make sure size fits - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('auths'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('oAuthProviders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('platforms'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryPlatforms'], - ], - [ - '$id' => ID::custom('webhooks'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryWebhooks'], - ], - [ - '$id' => ID::custom('keys'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryKeys'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_team'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['teamId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'schedules' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('schedules'), - 'name' => 'schedules', - 'attributes' => [ - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceUpdatedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('schedule'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => new \stdClass(), - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('active'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('region'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 10, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_region_resourceType_resourceUpdatedAt'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['region', 'resourceType', 'resourceUpdatedAt'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_region_resourceType_projectId_resourceId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['region', 'resourceType', 'projectId', 'resourceId'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'platforms' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('platforms'), - 'name' => 'platforms', - 'attributes' => [ - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('key'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('store'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('hostname'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_project'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'keys' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('keys'), - 'name' => 'keys', - 'attributes' => [ - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scopes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('accessedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('sdks'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_project'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_accessedAt', - 'type' => Database::INDEX_KEY, - 'attributes' => ['accessedAt'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'webhooks' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('webhooks'), - 'name' => 'webhooks', - 'attributes' => [ - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('url'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('httpUser'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('httpPass'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption? - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('security'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('events'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('signatureKey'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('attempts'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_project'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'certificates' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('certificates'), - 'name' => 'Certificates', - 'attributes' => [ - [ - '$id' => ID::custom('domain'), - 'type' => Database::VAR_STRING, - 'format' => '', - // The maximum total length of a domain name or number is 255 characters. - // https://datatracker.ietf.org/doc/html/rfc2821#section-4.5.3.1 - // https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.2 - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('issueDate'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('renewDate'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('attempts'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('updated'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_domain'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['domain'], - 'lengths' => [255], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'realtime' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('realtime'), - 'name' => 'Realtime Connections', - 'attributes' => [ - [ - '$id' => ID::custom('container'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('timestamp'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('value'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], //TODO: use json filter - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_timestamp'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['timestamp'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], - ], - ] - ], - - 'rules' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('rules'), - 'name' => 'Rules', - 'attributes' => [ - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('domain'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('certificateId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_domain'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['domain'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceInternalId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceType', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'installations' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('installations'), - 'name' => 'installations', - 'attributes' => [ - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerInstallationId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('organization'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('personal'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => false, - 'array' => false, - ], - ], - 'indexes' => [ - - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerInstallationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerInstallationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'repositories' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('repositories'), - 'name' => 'repositories', - 'attributes' => [ - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerPullRequestIds'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_installationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerRepositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerRepositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_resourceId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceInternalId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_resourceType'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'vcsComments' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('vcsComments'), - 'name' => 'vcsComments', - 'attributes' => [ - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerCommentId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerPullRequestId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerBranch'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_installationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerRepositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerRepositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerPullRequestId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerPullRequestId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerBranch'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerBranch'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'vcsCommentLocks' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('vcsCommentLocks'), - 'name' => 'vcsCommentLocks', - 'attributes' => [], - 'indexes' => [] - ], -], $commonCollections); - -$bucketCollections = [ - 'files' => [ - '$collection' => ID::custom('buckets'), - '$id' => ID::custom('files'), - '$name' => 'Files', - 'attributes' => [ - [ - 'array' => false, - '$id' => ID::custom('bucketId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('bucketInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('path'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('signature'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mimeType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('metadata'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 75000, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('sizeOriginal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 8, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sizeActual'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 8, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('algorithm'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('comment'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLCipher'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLTag'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLIV'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('chunksTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('chunksUploaded'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_bucket'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['bucketId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_signature'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['signature'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_mimeType'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['mimeType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_sizeOriginal'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['sizeOriginal'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_chunksTotal'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['chunksTotal'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_chunksUploaded'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['chunksUploaded'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ] - ], -]; - -$dbCollections = [ - 'collections' => [ - '$collection' => ID::custom('databases'), - '$id' => ID::custom('collections'), - 'name' => 'Collections', - 'attributes' => [ - [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('databaseId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'size' => 256, - 'required' => true, - 'signed' => true, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('documentSecurity'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('attributes'), - 'type' => Database::VAR_STRING, - 'size' => 1000000, - 'required' => false, - 'signed' => true, - 'array' => false, - 'filters' => ['subQueryAttributes'], - ], - [ - '$id' => ID::custom('indexes'), - 'type' => Database::VAR_STRING, - 'size' => 1000000, - 'required' => false, - 'signed' => true, - 'array' => false, - 'filters' => ['subQueryIndexes'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_enabled'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_documentSecurity'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['documentSecurity'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ] -]; - - $collections = [ - 'projects' => $projectCollections, - 'console' => $consoleCollections, - 'buckets' => $bucketCollections, - 'databases' => $dbCollections + 'buckets' => $buckets, + 'databases' => $databases, + 'projects' => array_merge($projects, $common), + 'console' => array_merge($platform, $common), + 'logs' => $logs, ]; return $collections; diff --git a/app/config/collections/common.php b/app/config/collections/common.php new file mode 100644 index 00000000000..e77d5403d21 --- /dev/null +++ b/app/config/collections/common.php @@ -0,0 +1,2683 @@ + [ + '$collection' => Database::METADATA, + '$id' => 'cache', + 'name' => 'Cache', + 'attributes' => [ + [ + '$id' => 'resource', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'resourceType', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mimeType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'accessedAt', + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => 'signature', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => '_key_resource', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resource'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'users' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('users'), + 'name' => 'Users', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('email'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 320, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('phone'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, // leading '+' and 15 digitts maximum by E.164 format + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('labels'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('passwordHistory'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('password'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => 'hash', // Hashing algorithm used to hash the password + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => Auth::DEFAULT_ALGO, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('hashOptions'), // Configuration of hashing algorithm + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => Auth::DEFAULT_ALGO_OPTIONS, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('passwordUpdate'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('prefs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => new \stdClass(), + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('registration'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('emailVerification'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('phoneVerification'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('reset'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mfa'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mfaRecoveryCodes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('authenticators'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryAuthenticators'], + ], + [ + '$id' => ID::custom('sessions'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQuerySessions'], + ], + [ + '$id' => ID::custom('tokens'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryTokens'], + ], + [ + '$id' => ID::custom('challenges'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryChallenges'], + ], + [ + '$id' => ID::custom('memberships'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryMemberships'], + ], + [ + '$id' => ID::custom('targets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryTargets'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['userSearch'], + ], + [ + '$id' => ID::custom('accessedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_email'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['email'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_phone'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['phone'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_status'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_passwordUpdate'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['passwordUpdate'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_registration'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['registration'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_emailVerification'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['emailVerification'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_phoneVerification'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['phoneVerification'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'tokens' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('tokens'), + 'name' => 'Tokens', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('userAgent'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('ip'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 45, // https://stackoverflow.com/a/166157/2299554 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'authenticators' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('authenticators'), + 'name' => 'Authenticators', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('verified'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'challenges' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('challenges'), + 'name' => 'Challenges', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('token'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], [ + '$id' => ID::custom('code'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'sessions' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('sessions'), + 'name' => 'Sessions', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerUid'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerAccessToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('providerAccessTokenExpiry'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('providerRefreshToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('userAgent'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('ip'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 45, // https://stackoverflow.com/a/166157/2299554 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('countryCode'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('osCode'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('osName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('osVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientCode'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientEngine'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientEngineVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deviceName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deviceBrand'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deviceModel'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('factors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('mfaUpdatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_provider_providerUid'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['provider', 'providerUid'], + 'lengths' => [128, 128], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'identities' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('identities'), + 'name' => 'Identities', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerUid'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, // Decrease to 128 as in index length? + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerEmail'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 320, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerAccessToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('providerAccessTokenExpiry'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('providerRefreshToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + // Used to store data from provider that may or may not be sensitive + '$id' => ID::custom('secrets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('scopes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'required' => false, + 'signed' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_userInternalId_provider_providerUid'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['userInternalId', 'provider', 'providerUid'], + 'lengths' => [11, 128, 128], // providerUid is length 2000! + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_provider_providerUid'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['provider', 'providerUid'], + 'lengths' => [128, 128], // providerUid is length 2000! + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_provider'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['provider'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerUid'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerUid'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerEmail'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerEmail'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerAccessTokenExpiry'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerAccessTokenExpiry'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'teams' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('teams'), + 'name' => 'Teams', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('total'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('prefs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => new \stdClass(), + 'array' => false, + 'filters' => ['json'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_total'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['total'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'memberships' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('memberships'), + 'name' => 'Memberships', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('teamInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('teamId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('roles'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('invited'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('joined'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('confirm'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_unique'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['teamInternalId', 'userInternalId'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_team'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['teamInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_teamId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['teamId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_invited'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['invited'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_joined'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['joined'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_confirm'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['confirm'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_roles'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['roles'], + 'lengths' => [128], + 'orders' => [], + ], + ], + ], + + 'buckets' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('buckets'), + 'name' => 'Buckets', + 'attributes' => [ + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 128, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('fileSecurity'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 1, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('maximumFileSize'), + 'type' => Database::VAR_INTEGER, + 'signed' => false, + 'size' => 8, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('allowedFileExtensions'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 64, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => true, + ], + [ + '$id' => 'compression', + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 10, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('encryption'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('antivirus'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_fulltext_name'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_fileSecurity'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['fileSecurity'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_maximumFileSize'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['maximumFileSize'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_encryption'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['encryption'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_antivirus'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['antivirus'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ] + ], + + 'stats' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('stats'), + 'name' => 'Stats', + 'attributes' => [ + [ + '$id' => ID::custom('metric'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('value'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('time'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('period'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 4, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + [ + '$id' => ID::custom('_key_period_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_metric_period_time'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['metric', 'period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + ], + ], + + 'providers' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('providers'), + 'name' => 'Providers', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('credentials'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('options'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => ['providerSearch'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_provider'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['provider'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['type'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled', 'type'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ] + ], + ], + + 'messages' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('messages'), + 'name' => 'Messages', + 'attributes' => [ + [ + '$id' => ID::custom('providerType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => 'processing', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('topics'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 21845, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('users'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 21845, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('targets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 21845, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduledAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('scheduleInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deliveredAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('deliveryErrors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('deliveredTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => ['messageSearch'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'topics' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('topics'), + 'name' => 'Topics', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('subscribe'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('emailTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('smsTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('pushTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('targets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryTopicTargets'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => ['topicSearch'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'subscribers' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('subscribers'), + 'name' => 'Subscribers', + 'attributes' => [ + [ + '$id' => ID::custom('targetId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('targetInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('topicId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('topicInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_targetId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['targetId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_targetInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['targetInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_topicId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['topicId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_topicInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['topicInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_unique_target_topic'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['targetInternalId', 'topicInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'targets' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('targets'), + 'name' => 'Targets', + 'attributes' => [ + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sessionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sessionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('identifier'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('expired'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_providerInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_identifier'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['identifier'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_expired'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['expired'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_session_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['sessionInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + // note that this is not required for console & projects. + 'files' => [ + '$collection' => ID::custom('buckets'), + '$id' => ID::custom('files'), + '$name' => 'Files', + 'attributes' => [ + [ + 'array' => false, + '$id' => ID::custom('bucketId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('bucketInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('path'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('signature'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mimeType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('metadata'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 75000, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('sizeOriginal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sizeActual'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('algorithm'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('comment'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLCipher'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLTag'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLIV'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('chunksTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('chunksUploaded'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'transformedAt', + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_bucket'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['bucketId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_signature'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['signature'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_mimeType'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['mimeType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_sizeOriginal'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['sizeOriginal'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_chunksTotal'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['chunksTotal'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_chunksUploaded'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['chunksUploaded'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_transformedAt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['transformedAt'], + 'lengths' => [], + 'orders' => [], + ] + ] + ], +]; diff --git a/app/config/collections/databases.php b/app/config/collections/databases.php new file mode 100644 index 00000000000..995caecb7fe --- /dev/null +++ b/app/config/collections/databases.php @@ -0,0 +1,126 @@ + [ + '$collection' => ID::custom('databases'), + '$id' => ID::custom('collections'), + 'name' => 'Collections', + 'attributes' => [ + [ + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('databaseId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'size' => 256, + 'required' => true, + 'signed' => true, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('documentSecurity'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('attributes'), + 'type' => Database::VAR_STRING, + 'size' => 1000000, + 'required' => false, + 'signed' => true, + 'array' => false, + 'filters' => ['subQueryAttributes'], + ], + [ + '$id' => ID::custom('indexes'), + 'type' => Database::VAR_STRING, + 'size' => 1000000, + 'required' => false, + 'signed' => true, + 'array' => false, + 'filters' => ['subQueryIndexes'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_documentSecurity'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['documentSecurity'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ] +]; diff --git a/app/config/collections/logs.php b/app/config/collections/logs.php new file mode 100644 index 00000000000..069dcf5a4bc --- /dev/null +++ b/app/config/collections/logs.php @@ -0,0 +1,94 @@ + ID::custom(Database::METADATA), + '$id' => ID::custom('stats'), + 'name' => 'stats', + 'attributes' => [ + [ + '$id' => ID::custom('metric'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('value'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('time'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('period'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 4, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + [ + '$id' => ID::custom('_key_period_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_metric_period_time'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['metric', 'period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + ], +]; + +return $logsCollection; diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php new file mode 100644 index 00000000000..60f181df664 --- /dev/null +++ b/app/config/collections/platform.php @@ -0,0 +1,1894 @@ + [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('projects'), + 'name' => 'Projects', + 'attributes' => [ + [ + '$id' => ID::custom('teamInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('teamId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('description'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('database'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logo'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('url'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('version'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalCountry'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalState'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalCity'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalAddress'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalTaxId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'accessedAt', + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('services'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('apis'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('smtp'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('templates'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1_000_000, // TODO make sure size fits + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('auths'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('oAuthProviders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('platforms'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryPlatforms'], + ], + [ + '$id' => ID::custom('webhooks'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryWebhooks'], + ], + [ + '$id' => ID::custom('keys'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryKeys'], + ], + [ + '$id' => ID::custom('devKeys'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryDevKeys'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('pingCount'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('pingedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_team'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['teamId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_pingCount'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['pingCount'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_pingedAt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['pingedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_database'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['database'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_region_accessed_at'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'schedules' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('schedules'), + 'name' => 'schedules', + 'attributes' => [ + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceUpdatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('schedule'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => new \stdClass(), + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('active'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 10, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_region_resourceType_resourceUpdatedAt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'resourceType', 'resourceUpdatedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_region_resourceType_projectId_resourceId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'resourceType', 'projectId', 'resourceId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_project_id_region'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId', 'region'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_region_rt_active'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'resourceType', 'active'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'platforms' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('platforms'), + 'name' => 'platforms', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('key'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('store'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('hostname'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'keys' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('keys'), + 'name' => 'keys', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scopes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('accessedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('sdks'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'devKeys' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('devKeys'), + 'name' => 'Dev keys', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('accessedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('sdks'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'webhooks' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('webhooks'), + 'name' => 'webhooks', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('url'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('httpUser'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('httpPass'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption? + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('security'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('events'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('signatureKey'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('attempts'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'certificates' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('certificates'), + 'name' => 'Certificates', + 'attributes' => [ + [ + '$id' => ID::custom('domain'), + 'type' => Database::VAR_STRING, + 'format' => '', + // The maximum total length of a domain name or number is 255 characters. + // https://datatracker.ietf.org/doc/html/rfc2821#section-4.5.3.1 + // https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.2 + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('issueDate'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('renewDate'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('attempts'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('updated'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_domain'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['domain'], + 'lengths' => [255], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'realtime' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('realtime'), + 'name' => 'Realtime Connections', + 'attributes' => [ + [ + '$id' => ID::custom('container'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('timestamp'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('value'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], //TODO: use json filter + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_timestamp'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['timestamp'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + ] + ], + + 'rules' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('rules'), + 'name' => 'Rules', + 'attributes' => [ + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('domain'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), // 'api', 'redirect', 'deployment' (site or function) + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('trigger'), // 'manual', 'deployment', '' (empty) + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('redirectUrl'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('redirectStatusCode'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentResourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentResourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentResourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentVcsProviderBranch'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('certificateId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('owner'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => '', // "Appwrite" or empty string + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_domain'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['domain'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_type', + 'type' => Database::INDEX_KEY, + 'attributes' => ['type'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_trigger', + 'type' => Database::INDEX_KEY, + 'attributes' => ['trigger'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_deploymentResourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentResourceType'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_deploymentResourceId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentResourceId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_deploymentResourceInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentResourceInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_deploymentId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_deploymentInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_deploymentVcsProviderBranch', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentVcsProviderBranch'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_owner'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['owner'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_region'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_piid_riid_rt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId', 'deploymentInternalId', 'deploymentResourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'installations' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('installations'), + 'name' => 'installations', + 'attributes' => [ + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerInstallationId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('organization'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('personal'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('personalAccessToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('personalAccessTokenExpiry'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('personalRefreshToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + ], + 'indexes' => [ + + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerInstallationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerInstallationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'repositories' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('repositories'), + 'name' => 'repositories', + 'attributes' => [ + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerPullRequestIds'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resourceId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resourceType'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_piid_riid_rt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId', 'resourceInternalId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'vcsComments' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('vcsComments'), + 'name' => 'vcsComments', + 'attributes' => [ + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerCommentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerPullRequestId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerPullRequestId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerPullRequestId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerBranch'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerBranch'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_piid_prid_rt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId', 'providerRepositoryId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'vcsCommentLocks' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('vcsCommentLocks'), + 'name' => 'vcsCommentLocks', + 'attributes' => [], + 'indexes' => [] + ], +]; diff --git a/app/config/collections/projects.php b/app/config/collections/projects.php new file mode 100644 index 00000000000..48a0938a1c4 --- /dev/null +++ b/app/config/collections/projects.php @@ -0,0 +1,2513 @@ + [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('databases'), + 'name' => 'Databases', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'size' => 256, + 'required' => true, + 'signed' => true, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('originalId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => null, + 'array' => false, + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'attributes' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('attributes'), + 'name' => 'Attributes', + 'attributes' => [ + [ + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('databaseId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('key'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('error'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('size'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('required'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('default'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['casting'], + ], + [ + '$id' => ID::custom('signed'), + 'type' => Database::VAR_BOOLEAN, + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('array'), + 'type' => Database::VAR_BOOLEAN, + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('format'), + 'type' => Database::VAR_STRING, + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('formatOptions'), + 'type' => Database::VAR_STRING, + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => new stdClass(), + 'array' => false, + 'filters' => ['json', 'range', 'enum'], + ], + [ + '$id' => ID::custom('filters'), + 'type' => Database::VAR_STRING, + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('options'), + 'type' => Database::VAR_STRING, + 'size' => 16384, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_db_collection'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['databaseInternalId', 'collectionInternalId'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + ], + ], + + 'indexes' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('indexes'), + 'name' => 'Indexes', + 'attributes' => [ + [ + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('databaseId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('key'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('error'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('attributes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('lengths'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('orders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 4, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_db_collection'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['databaseInternalId', 'collectionInternalId'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + ], + ], + + 'functions' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('functions'), + 'name' => 'Functions', + 'attributes' => [ + [ + '$id' => ID::custom('execute'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('live'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRootDirectory'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerSilentMode'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('logging'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('runtime'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentCreatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('latestDeploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('latestDeploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('latestDeploymentCreatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('latestDeploymentStatus'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('vars'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryVariables'], + ], + [ + '$id' => ID::custom('varsProject'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryProjectVariables'], + ], + [ + '$id' => ID::custom('events'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('schedule'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('timeout'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('version'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 8, + 'signed' => true, + 'required' => false, + 'default' => 'v5', + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('entrypoint'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('commands'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('specification'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => false, + 'required' => false, + 'default' => APP_COMPUTE_SPECIFICATION_DEFAULT, + 'filters' => [], + ], + [ + '$id' => ID::custom('scopes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_repositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['repositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_repositoryInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['repositoryInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_runtime'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['runtime'], + 'lengths' => [64], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_deploymentId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'sites' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('sites'), + 'name' => 'Sites', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('live'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRootDirectory'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerSilentMode'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('logging'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('framework'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('outputDirectory'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('buildCommand'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('installCommand'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('fallbackFile'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentCreatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('deploymentScreenshotLight'), // File ID from 'screenshots' Console bucket + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentScreenshotDark'), // File ID from 'screenshots' Console bucket + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('latestDeploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('latestDeploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('latestDeploymentCreatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('latestDeploymentStatus'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('vars'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryVariables'], + ], + [ + '$id' => ID::custom('varsProject'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryProjectVariables'], + ], + [ + '$id' => ID::custom('timeout'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('specification'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => false, + 'required' => false, + 'default' => APP_COMPUTE_SPECIFICATION_DEFAULT, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildRuntime'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => true, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('adapter'), // ssr or static; named this way as it's a term in SSR frameworks + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_repositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['repositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_repositoryInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['repositoryInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_framework'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['framework'], + 'lengths' => [64], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_deploymentId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + 'deployments' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('deployments'), + 'name' => 'Deployments', + 'attributes' => [ + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('entrypoint'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('buildCommands'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('buildOutput'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('sourcePath'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryName'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRepositoryOwner'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRepositoryUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitHash'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitAuthorUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitAuthor'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitMessage'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerBranchUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRootDirectory'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommentId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 2048, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('sourceSize'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sourceMetadata'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('sourceChunksTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sourceChunksUploaded'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('activate'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('screenshotLight'), // File ID from 'screenshots' Console bucket + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('screenshotDark'), // File ID from 'screenshots' Console bucket + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 32, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildStartedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('buildEndedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('buildDuration'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildSize'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('totalSize'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => 'waiting', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildPath'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildLogs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('adapter'), // ssr or static; named this way as it's a term in SSR frameworks + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('fallbackFile'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_resource'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resource_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_sourceSize'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['sourceSize'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_buildSize'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['buildSize'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_totalSize'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['totalSize'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_buildDuration'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['buildDuration'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_activate'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['activate'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['type'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_status'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resourceId_resourceType'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_resource_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'executions' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('executions'), + 'name' => 'Executions', + 'attributes' => [ + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('trigger'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('duration'), + 'type' => Database::VAR_FLOAT, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('errors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('requestMethod'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('requestPath'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('requestHeaders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('responseStatusCode'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('responseHeaders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('scheduledAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('scheduleInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_resource'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId', 'resourceType', 'resourceId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_trigger'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['trigger'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_status'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_requestMethod'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['requestMethod'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_requestPath'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['requestPath'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_deployment'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_responseStatusCode'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['responseStatusCode'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_duration'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['duration'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_function_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'variables' => [ + '$collection' => Database::METADATA, + '$id' => 'variables', + 'name' => 'variables', + 'attributes' => [ + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'key', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'value', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 8192, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'] + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => '_key_resourceInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [], + ], + [ + '$id' => '_key_resourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceId_resourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId', 'resourceType'], + 'lengths' => [Database::LENGTH_KEY, 100], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => '_key_uniqueKey', + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['resourceId', 'key', 'resourceType'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY, 100], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => '_key_key', + 'type' => Database::INDEX_KEY, + 'attributes' => ['key'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_resource_internal_id_resource_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'migrations' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('migrations'), + 'name' => 'Migrations', + 'attributes' => [ + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('stage'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('source'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 8192, // reduce size + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('destination'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, // make true after patch script + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('credentials'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65536, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('options'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65536, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('resources'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('statusCounters'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 3000, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('resourceData'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 131070, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('errors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => '_key_status', + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_stage', + 'type' => Database::INDEX_KEY, + 'attributes' => ['stage'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_source', + 'type' => Database::INDEX_KEY, + 'attributes' => ['source'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resource_id', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_DESC], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ] + ], + ], + + 'resourceTokens' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('resourceTokens'), + 'name' => 'Resource Tokens', + 'attributes' => [ + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('accessedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => '_key_expiry_date', + 'type' => Database::INDEX_KEY, + 'attributes' => ['expire'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => '_key_resourceInternalId_resourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], +]; diff --git a/app/config/console.php b/app/config/console.php new file mode 100644 index 00000000000..e37c9b7836a --- /dev/null +++ b/app/config/console.php @@ -0,0 +1,53 @@ + ID::custom('console'), + '$internalId' => ID::custom('console'), + 'name' => 'Appwrite', + '$collection' => ID::custom('projects'), + 'description' => 'Appwrite core engine', + 'logo' => '', + 'teamId' => null, + 'webhooks' => [], + 'keys' => [], + 'platforms' => [ + [ + '$collection' => ID::custom('platforms'), + 'name' => 'Localhost', + 'type' => Origin::CLIENT_TYPE_WEB, + 'hostname' => 'localhost', + ], // Current host is added on app init + ], + 'region' => 'fra', + 'legalName' => '', + 'legalCountry' => '', + 'legalState' => '', + 'legalCity' => '', + 'legalAddress' => '', + 'legalTaxId' => '', + 'auths' => [ + 'mockNumbers' => [], + 'invites' => System::getEnv('_APP_CONSOLE_INVITES', 'enabled') === 'enabled', + 'limit' => (System::getEnv('_APP_CONSOLE_WHITELIST_ROOT', 'enabled') === 'enabled') ? 1 : 0, // limit signup to 1 user + 'duration' => Auth::TOKEN_EXPIRATION_LOGIN_LONG, // 1 Year in seconds + 'sessionAlerts' => System::getEnv('_APP_CONSOLE_SESSION_ALERTS', 'disabled') === 'enabled' + ], + 'authWhitelistEmails' => (!empty(System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null))) ? \explode(',', System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null)) : [], + 'authWhitelistIPs' => (!empty(System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null))) ? \explode(',', System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null)) : [], + 'oAuthProviders' => [ + 'githubEnabled' => true, + 'githubSecret' => System::getEnv('_APP_CONSOLE_GITHUB_SECRET', ''), + 'githubAppid' => System::getEnv('_APP_CONSOLE_GITHUB_APP_ID', '') + ], +]; + +return $console; diff --git a/app/config/errors.php b/app/config/errors.php index dc6dcd5daf3..6d9d29a8ead 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -24,6 +24,11 @@ 'description' => 'Access to this API is forbidden.', 'code' => 401, ], + Exception::GENERAL_RESOURCE_BLOCKED => [ + 'name' => Exception::GENERAL_RESOURCE_BLOCKED, + 'description' => 'Access to this resource is blocked.', + 'code' => 401, + ], Exception::GENERAL_UNKNOWN_ORIGIN => [ 'name' => Exception::GENERAL_UNKNOWN_ORIGIN, 'description' => 'The request originated from an unknown origin. If you trust this domain, please list it as a trusted platform in the Appwrite console.', @@ -76,7 +81,7 @@ ], Exception::GENERAL_ROUTE_NOT_FOUND => [ 'name' => Exception::GENERAL_ROUTE_NOT_FOUND, - 'description' => 'The requested route was not found. Please refer to the API docs and try again.', + 'description' => 'Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.', 'code' => 404, ], Exception::GENERAL_CURSOR_NOT_FOUND => [ @@ -344,11 +349,6 @@ 'description' => 'Team with the requested ID could not be found.', 'code' => 404, ], - Exception::TEAM_INVITE_ALREADY_EXISTS => [ - 'name' => Exception::TEAM_INVITE_ALREADY_EXISTS, - 'description' => 'User has already been invited or is already a member of this team', - 'code' => 409, - ], Exception::TEAM_INVITE_NOT_FOUND => [ 'name' => Exception::TEAM_INVITE_NOT_FOUND, 'description' => 'The requested team invitation could not be found.', @@ -356,7 +356,7 @@ ], Exception::TEAM_INVALID_SECRET => [ 'name' => Exception::TEAM_INVALID_SECRET, - 'description' => 'The team invitation secret is invalid. Please request a new invitation and try again.', + 'description' => 'The team invitation secret is invalid. Please request a new invitation and try again.', 'code' => 401, ], Exception::TEAM_MEMBERSHIP_MISMATCH => [ @@ -375,6 +375,13 @@ 'code' => 409, ], + /** Console */ + Exception::RESOURCE_ALREADY_EXISTS => [ + 'name' => Exception::RESOURCE_ALREADY_EXISTS, + 'description' => 'Resource with the requested ID already exists. Please choose a different ID and try again.', + 'code' => 409, + ], + /** Membership */ Exception::MEMBERSHIP_NOT_FOUND => [ 'name' => Exception::MEMBERSHIP_NOT_FOUND, @@ -481,6 +488,23 @@ 'code' => 403, ], + /** Tokens */ + Exception::TOKEN_NOT_FOUND => [ + 'name' => Exception::TOKEN_NOT_FOUND, + 'description' => 'The requested file token could not be found.', + 'code' => 404, + ], + Exception::TOKEN_EXPIRED => [ + 'name' => Exception::TOKEN_EXPIRED, + 'description' => 'The requested file token has expired.', + 'code' => 401, + ], + Exception::TOKEN_RESOURCE_TYPE_INVALID => [ + 'name' => Exception::TOKEN_RESOURCE_TYPE_INVALID, + 'description' => 'The resource type for the token is invalid.', + 'code' => 400, + ], + /** VCS */ Exception::INSTALLATION_NOT_FOUND => [ 'name' => Exception::INSTALLATION_NOT_FOUND, @@ -520,7 +544,7 @@ 'code' => 404, ], Exception::FUNCTION_ENTRYPOINT_MISSING => [ - 'name' => Exception::FUNCTION_RUNTIME_UNSUPPORTED, + 'name' => Exception::FUNCTION_ENTRYPOINT_MISSING, 'description' => 'Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".', 'code' => 404, ], @@ -534,6 +558,28 @@ 'description' => 'Function Template with the requested ID could not be found.', 'code' => 404, ], + Exception::FUNCTION_RUNTIME_NOT_DETECTED => [ + 'name' => Exception::FUNCTION_RUNTIME_NOT_DETECTED, + 'description' => 'Function runtime could not be detected.', + 'code' => 400, + ], + Exception::FUNCTION_EXECUTE_PERMISSION_MISSING => [ + 'name' => Exception::FUNCTION_EXECUTE_PERMISSION_MISSING, + 'description' => 'To execute function using domain, execute permissions must include "any" or "guests".', + 'code' => 401, + ], + + /** Sites */ + Exception::SITE_NOT_FOUND => [ + 'name' => Exception::SITE_NOT_FOUND, + 'description' => 'Site with the requested ID could not be found.', + 'code' => 404, + ], + Exception::SITE_TEMPLATE_NOT_FOUND => [ + 'name' => Exception::SITE_TEMPLATE_NOT_FOUND, + 'description' => 'Site Template with the requested ID could not be found.', + 'code' => 404, + ], /** Builds */ Exception::BUILD_NOT_FOUND => [ @@ -556,6 +602,16 @@ 'description' => 'Build with the requested ID is already completed and cannot be canceled.', 'code' => 400, ], + Exception::BUILD_CANCELED => [ + 'name' => Exception::BUILD_CANCELED, + 'description' => 'Build with the requested ID has been canceled.', + 'code' => 400, + ], + Exception::BUILD_FAILED => [ + 'name' => Exception::BUILD_FAILED, + 'description' => 'Build with the requested ID failed. Please check the logs for more information.', + 'code' => 400, + ], /** Deployments */ Exception::DEPLOYMENT_NOT_FOUND => [ @@ -577,6 +633,13 @@ 'code' => 400, ], + /** Logs */ + Exception::LOG_NOT_FOUND => [ + 'name' => Exception::LOG_NOT_FOUND, + 'description' => 'Log with the requested ID could not be found.', + 'code' => 404, + ], + /** Databases */ Exception::DATABASE_NOT_FOUND => [ 'name' => Exception::DATABASE_NOT_FOUND, @@ -593,6 +656,11 @@ 'description' => 'Database timed out. Try adjusting your queries or adding an index.', 'code' => 408 ], + Exception::DATABASE_QUERY_ORDER_NULL => [ + 'name' => Exception::DATABASE_QUERY_ORDER_NULL, + 'description' => 'The order attribute had a null value. Cursor pagination requires all documents order attribute values are non-null.', + 'code' => 400, + ], /** Collections */ Exception::COLLECTION_NOT_FOUND => [ @@ -681,7 +749,7 @@ ], Exception::ATTRIBUTE_LIMIT_EXCEEDED => [ 'name' => Exception::ATTRIBUTE_LIMIT_EXCEEDED, - 'description' => 'The maximum number of attributes has been reached.', + 'description' => 'The maximum number or size of attributes for this collection has been reached.', 'code' => 400, ], Exception::ATTRIBUTE_VALUE_INVALID => [ @@ -699,6 +767,11 @@ 'description' => 'The relationship value is invalid.', 'code' => 400, ], + Exception::ATTRIBUTE_INVALID_RESIZE => [ + 'name' => Exception::ATTRIBUTE_INVALID_RESIZE, + 'description' => "Existing data is too large for new size, truncate your existing data then try again.", + 'code' => 400, + ], /** Indexes */ Exception::INDEX_NOT_FOUND => [ @@ -721,6 +794,11 @@ 'description' => 'Index invalid.', 'code' => 400, ], + Exception::INDEX_DEPENDENCY => [ + 'name' => Exception::INDEX_DEPENDENCY, + 'description' => 'Attribute cannot be renamed or deleted. Please remove the associated index first.', + 'code' => 409, + ], /** Project Errors */ Exception::PROJECT_NOT_FOUND => [ @@ -791,7 +869,7 @@ Exception::RULE_VERIFICATION_FAILED => [ 'name' => Exception::RULE_VERIFICATION_FAILED, 'description' => 'Domain verification failed. Please check if your DNS records are correct and try again.', - 'code' => 401, + 'code' => 400, 'publish' => true ], Exception::PROJECT_SMTP_CONFIG_INVALID => [ @@ -834,6 +912,11 @@ 'description' => 'Variable with the same ID already exists in this project. Try again with a different ID.', 'code' => 409, ], + Exception::VARIABLE_CANNOT_UNSET_SECRET => [ + 'name' => Exception::VARIABLE_CANNOT_UNSET_SECRET, + 'description' => 'Secret variables cannot be marked as non-secret. Please re-create the variable if this is your intention.', + 'code' => 400, + ], Exception::GRAPHQL_NO_QUERY => [ 'name' => Exception::GRAPHQL_NO_QUERY, 'description' => 'Param "query" is not optional.', diff --git a/app/config/events.php b/app/config/events.php index 5378502faf0..0bfddf4f1f3 100644 --- a/app/config/events.php +++ b/app/config/events.php @@ -217,6 +217,34 @@ ], ] ], + 'sites' => [ + '$model' => Response::MODEL_SITE, + '$resource' => true, + '$description' => 'This event triggers on any sites event.', + 'deployments' => [ + '$model' => Response::MODEL_DEPLOYMENT, + '$resource' => true, + '$description' => 'This event triggers on any deployments event.', + 'create' => [ + '$description' => 'This event triggers when a deployment is created.', + ], + 'delete' => [ + '$description' => 'This event triggers when a deployment is deleted.' + ], + 'update' => [ + '$description' => 'This event triggers when a deployment is updated.' + ], + ], + 'create' => [ + '$description' => 'This event triggers when a site is created.' + ], + 'delete' => [ + '$description' => 'This event triggers when a site is deleted.', + ], + 'update' => [ + '$description' => 'This event triggers when a site is updated.', + ] + ], 'functions' => [ '$model' => Response::MODEL_FUNCTION, '$resource' => true, diff --git a/app/config/frameworks.php b/app/config/frameworks.php new file mode 100644 index 00000000000..f4d8ec7ffa7 --- /dev/null +++ b/app/config/frameworks.php @@ -0,0 +1,312 @@ + [ + 'key' => 'analog', + 'name' => 'Analog', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/analog/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/analog/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist/analog', + 'startCommand' => 'bash helpers/analog/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist/analog/public', + 'startCommand' => 'bash helpers/server.sh', + 'fallbackFile' => 'index.html' + ] + ] + ], + 'angular' => [ + 'key' => 'angular', + 'name' => 'Angular', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/angular/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/angular/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist/angular', + 'startCommand' => 'bash helpers/angular/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist/angular/browser', + 'startCommand' => 'bash helpers/server.sh', + 'fallbackFile' => 'index.csr.html' + ] + ] + ], + 'nextjs' => [ + 'key' => 'nextjs', + 'name' => 'Next.js', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/next-js/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/next-js/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './.next', + 'startCommand' => 'bash helpers/next-js/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './out', + 'startCommand' => 'bash helpers/server.sh', + ] + ] + ], + 'react' => [ + 'key' => 'react', + 'name' => 'React', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/server.sh', + 'fallbackFile' => 'index.html' + ] + ] + ], + 'nuxt' => [ + 'key' => 'nuxt', + 'name' => 'Nuxt', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/nuxt/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/nuxt/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './.output', + 'startCommand' => 'bash helpers/nuxt/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run generate', + 'installCommand' => 'npm install', + 'outputDirectory' => './output/public', + 'startCommand' => 'bash helpers/server.sh', + ] + ] + ], + 'vue' => [ + 'key' => 'vue', + 'name' => 'Vue.js', + 'screenshotSleep' => 5000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/server.sh', + 'fallbackFile' => 'index.html' + ] + ] + ], + 'sveltekit' => [ + 'key' => 'sveltekit', + 'name' => 'SvelteKit', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/sveltekit/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/sveltekit/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './build', + 'startCommand' => 'bash helpers/sveltekit/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './build', + 'startCommand' => 'bash helpers/server.sh', + ] + ] + ], + 'astro' => [ + 'key' => 'astro', + 'name' => 'Astro', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/astro/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/astro/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/astro/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/server.sh', + ] + ] + ], + 'remix' => [ + 'key' => 'remix', + 'name' => 'Remix', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'bundleCommand' => 'bash /usr/local/server/helpers/remix/bundle.sh', + 'envCommand' => 'source /usr/local/server/helpers/remix/env.sh', + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './build', + 'startCommand' => 'bash helpers/remix/server.sh', + ], + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './build/client', + 'startCommand' => 'bash helpers/server.sh', + ] + ] + ], + 'lynx' => [ + 'key' => 'lynx', + 'name' => 'Lynx', + 'screenshotSleep' => 5000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/server.sh', + 'fallbackFile' => 'index.html' + ] + ] + ], + 'flutter' => [ + 'key' => 'flutter', + 'name' => 'Flutter', + 'screenshotSleep' => 5000, + 'buildRuntime' => 'flutter-3.29', + 'runtimes' => getVersions($templateRuntimes['FLUTTER']['versions'], 'flutter'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'flutter build web --release -t lib/main.dart', + 'installCommand' => 'flutter pub get', + 'outputDirectory' => './build/web', + 'startCommand' => 'bash helpers/server.sh', + ], + ], + ], + 'react-native' => [ + 'key' => 'react-native', + 'name' => 'React Native', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/server.sh', + 'fallbackFile' => 'index.html' + ] + ] + ], + 'vite' => [ + 'key' => 'vite', + 'name' => 'Vite', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'outputDirectory' => './dist', + 'startCommand' => 'bash helpers/server.sh', + ], + ] + ], + 'other' => [ + 'key' => 'other', + 'name' => 'Other', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'node-22', + 'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'), + 'adapters' => [ + 'static' => [ + 'key' => 'static', + 'buildCommand' => '', + 'installCommand' => '', + 'outputDirectory' => './', + 'startCommand' => 'bash helpers/server.sh', + ], + ] + ], +]; diff --git a/app/config/function-templates.php b/app/config/function-templates.php deleted file mode 100644 index 4b58cc44be8..00000000000 --- a/app/config/function-templates.php +++ /dev/null @@ -1,2048 +0,0 @@ - [ - 'name' => 'node', - 'versions' => ['21.0', '20.0', '19.0', '18.0', '16.0', '14.5'] - ], - 'PYTHON' => [ - 'name' => 'python', - 'versions' => ['3.12', '3.11', '3.10', '3.9', '3.8'] - ], - 'DART' => [ - 'name' => 'dart', - 'versions' => ['3.3', '3.1', '3.0', '2.19', '2.18', '2.17', '2.16', '2.16'] - ], - 'GO' => [ - 'name' => 'go', - 'versions' => ['1.23'] - ], - 'PHP' => [ - 'name' => 'php', - 'versions' => ['8.3', '8.2', '8.1', '8.0'] - ], - 'BUN' => [ - 'name' => 'bun', - 'versions' => ['1.0'] - ], - 'RUBY' => [ - 'name' => 'ruby', - 'versions' => ['3.3', '3.2', '3.1', '3.0'] - ], -]; - -function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $versionsDenyList = []) -{ - return array_map(function ($version) use ($runtime, $commands, $entrypoint, $providerRootDirectory) { - return [ - 'name' => $runtime['name'] . '-' . $version, - 'commands' => $commands, - 'entrypoint' => $entrypoint, - 'providerRootDirectory' => $providerRootDirectory - ]; - }, array_filter($runtime['versions'], function ($version) use ($versionsDenyList) { - return !in_array($version, $versionsDenyList); - })); -} - -return [ - [ - 'icon' => 'icon-lightning-bolt', - 'id' => 'starter', - 'name' => 'Starter function', - 'tagline' => - 'A simple function to get started. Edit this function to explore endless possibilities with Appwrite Functions.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['starter'], - 'runtimes' => [ - ...getRuntimes(TEMPLATE_RUNTIMES['NODE'], 'npm install', 'src/main.js', 'node/starter'), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/starter' - ), - ...getRuntimes(TEMPLATE_RUNTIMES['DART'], 'dart pub get', 'lib/main.dart', 'dart/starter'), - ...getRuntimes(TEMPLATE_RUNTIMES['GO'], '', 'main.go', 'go/starter'), - ...getRuntimes( - TEMPLATE_RUNTIMES['PHP'], - 'composer install', - 'src/index.php', - 'php/starter' - ), - ...getRuntimes(TEMPLATE_RUNTIMES['BUN'], 'bun install', 'src/main.ts', 'bun/starter'), - ...getRuntimes(TEMPLATE_RUNTIMES['RUBY'], 'bundle install', 'lib/main.rb', 'ruby/starter'), - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [], - 'scopes' => ["users.read"] - ], - [ - 'icon' => 'icon-upstash', - 'id' => 'query-upstash-vector', - 'name' => 'Query Upstash Vector', - 'tagline' => 'Vector database that stores text embeddings and context retrieval for LLMs', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/query-upstash-vector' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'UPSTASH_URL', - 'description' => 'The endpoint to connect to your Upstash Vector database. Learn more.', - 'value' => '', - 'placeholder' => 'https://resolved-mallard-84564-eu1-vector.upstash.io', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'UPSTASH_TOKEN', - 'description' => 'Authentication token to access your Upstash Vector database. Learn more.', - 'value' => '', - 'placeholder' => - 'oe4wNTbwHVLcDNa6oceZfhBEABsCNYh43ii6Xdq4bKBH7mq7qJkUmc4cs3ABbYyuVKWZTxVQjiNjYgydn2dkhABNes4NAuDpj7qxUAmZYqGJT78', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-redis', - 'id' => 'query-redis-labs', - 'name' => 'Query Redis Labs', - 'tagline' => 'Key-value database with advanced caching capabilities.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/query-redis-labs' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'REDIS_HOST', - 'description' => 'The endpoint to connect to your Redis database. Learn more.', - 'value' => '', - 'placeholder' => 'redis-13258.c35.eu-central-1-1.ec2.redns.redis-cloud.com', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'REDIS_PASSWORD', - 'description' => 'Authentication password to access your Redis database. Learn more.', - 'value' => '', - 'placeholder' => 'efNNehiACfcZiwsTAjcK6xiwPyu6Dpdq', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-neo4j', - 'id' => 'query-neo4j-auradb', - 'name' => 'Query Neo4j AuraDB', - 'tagline' => 'Graph database with focus on relations between data.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/query-neo4j-auradb' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'NEO4J_URI', - 'description' => 'The endpoint to connect to your Neo4j database. Learn more.', - 'value' => '', - 'placeholder' => 'neo4j+s://4tg4mddo.databases.neo4j.io', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'NEO4J_USER', - 'description' => 'Authentication user to access your Neo4j database. Learn more.', - 'value' => '', - 'placeholder' => 'neo4j', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'NEO4J_PASSWORD', - 'description' => 'Authentication password to access your Neo4j database. Learn more.', - 'value' => '', - 'placeholder' => 'mCUc4PbVUQN-_NkTLJLisb6ccnwzQKKhrkF77YMctzx', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-mongodb', - 'id' => 'query-mongo-atlas', - 'name' => 'Query MongoDB Atlas', - 'tagline' => - 'Realtime NoSQL document database with geospecial, graph, search, and vector suport.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/query-mongo-atlas' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'MONGO_URI', - 'description' => 'The endpoint to connect to your Mongo database. Learn more.', - 'value' => '', - 'placeholder' => - 'mongodb+srv://appwrite:Yx42hafg7Q4fgkxe@cluster0.7mslfog.mongodb.net/?retryWrites=true&w=majority&appName=Appwrite', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-neon', - 'id' => 'query-neon-postgres', - 'name' => 'Query Neon Postgres', - 'tagline' => - 'Reliable SQL database with replication, point-in-time recovery, and pgvector support.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/query-neon-postgres' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'PGHOST', - 'description' => 'The endpoint to connect to your Postgres database. Learn more.', - 'value' => '', - 'placeholder' => 'ep-still-sea-a792sh84.eu-central-1.aws.neon.tech', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'PGDATABASE', - 'description' => 'Name of our Postgres database. Learn more.', - 'value' => '', - 'placeholder' => 'main', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'PGUSER', - 'description' => 'Name of our Postgres user for authentication. Learn more.', - 'value' => '', - 'placeholder' => 'main_owner', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'PGPASSWORD', - 'description' => 'Password of our Postgres user for authentication. Learn more.', - 'value' => '', - 'placeholder' => 'iQCfaUaaWB3B', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'ENDPOINT_ID', - 'description' => 'Endpoint ID provided for your Postgres database. Learn more.', - 'value' => '', - 'placeholder' => 'ep-still-sea-a792sh84', - 'required' => true, - 'type' => 'text' - ] - ] - ], - [ - 'icon' => 'icon-open-ai', - 'id' => 'prompt-chatgpt', - 'name' => 'Prompt ChatGPT', - 'tagline' => 'Ask questions and let OpenAI GPT-3.5-turbo answer.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/prompt-chatgpt' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/prompt_chatgpt' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PHP'], - 'composer install', - 'src/index.php', - 'php/prompt-chatgpt' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['DART'], - 'dart pub get', - 'lib/main.dart', - 'dart/prompt_chatgpt' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'OPENAI_API_KEY', - 'description' => 'A unique key used to authenticate with the OpenAI API. This is a paid service and you will be charged for each request made to the API. Learn more.', - 'value' => '', - 'placeholder' => 'sk-wzG...vcy', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'OPENAI_MAX_TOKENS', - 'description' => 'The maximum number of tokens that the OpenAI response should contain. Be aware that OpenAI models read and write a maximum number of tokens per API call, which varies depending on the model. For GPT-3.5-turbo, the limit is 4096 tokens. Learn more.', - 'value' => '512', - 'placeholder' => '512', - 'required' => false, - 'type' => 'number' - ] - ] - ], - [ - 'icon' => 'icon-discord', - 'id' => 'discord-command-bot', - 'name' => 'Discord Command Bot', - 'tagline' => 'Simple command using Discord Interactions.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['messaging'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install && npm run setup', - 'src/main.js', - 'node/discord-command-bot' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt && python src/setup.py', - 'src/main.py', - 'python/discord_command_bot' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['GO'], - '', - 'main.go', - 'go/discord-command-bot' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'DISCORD_PUBLIC_KEY', - 'description' => 'Public Key of your application in Discord Developer Portal. Learn more.', - 'value' => '', - 'placeholder' => 'db9...980', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'DISCORD_APPLICATION_ID', - 'description' => 'ID of your application in Discord Developer Portal. Learn more.', - 'value' => '', - 'placeholder' => '427...169', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'DISCORD_TOKEN', - 'description' => 'Bot token of your application in Discord Developer Portal. Learn more.', - 'value' => '', - 'placeholder' => 'NDI...LUfg', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-perspective-api', - 'id' => 'analyze-with-perspectiveapi', - 'name' => 'Analyze with PerspectiveAPI', - 'tagline' => 'Automate moderation by getting toxicity of messages.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/analyze-with-perspectiveapi' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'PERSPECTIVE_API_KEY', - 'description' => 'Google Perspective API key. It authenticates your function, allowing it to interact with the API. Learn more.', - 'value' => '', - 'placeholder' => 'AIzaS...fk-fuM', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-pangea', - 'id' => 'censor-with-redact', - 'name' => 'Censor with Redact', - 'tagline' => - 'Censor sensitive information from a provided text string using Redact API by Pangea.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/censor-with-redact' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/censor_with_redact' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['DART'], - 'dart pub get', - 'lib/main.dart', - 'dart/censor_with_redact' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'PANGEA_REDACT_TOKEN', - 'description' => 'Access token for the Pangea Redact API. Learn more.', - 'value' => '', - 'placeholder' => 'pts_7p4...5wl4', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-document', - 'id' => 'generate-pdf', - 'name' => 'Generate PDF', - 'tagline' => 'Document containing sample invoice in PDF format.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes(TEMPLATE_RUNTIMES['NODE'], 'npm install', 'src/main.js', 'node/generate-pdf') - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [] - ], - [ - 'icon' => 'icon-github', - 'id' => 'github-issue-bot', - 'name' => 'GitHub issue bot', - 'tagline' => - 'Automate the process of responding to newly opened issues in a GitHub repository.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['dev-tools'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/github-issue-bot' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'GITHUB_TOKEN', - 'description' => 'A personal access token from GitHub with the necessary permissions to post comments on issues. Learn more.', - 'value' => '', - 'placeholder' => 'ghp_1...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'GITHUB_WEBHOOK_SECRET', - 'description' => 'The secret used to verify that the webhook request comes from GitHub. Learn more.', - 'value' => '', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-bookmark', - 'id' => 'url-shortener', - 'name' => 'URL shortener', - 'tagline' => 'Generate URL with short ID and redirect to the original URL when visited.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/url-shortener' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database to store the short URLs. Learn more.', - 'value' => 'urlShortener', - 'placeholder' => 'urlShortener', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection to store the short URLs. Learn more.', - 'value' => 'urls', - 'placeholder' => 'urls', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'SHORT_BASE_URL', - 'description' => 'The domain to use for the short URLs. You can use your functions subdomain or a custom domain.', - 'value' => '', - 'placeholder' => 'https://shortdomain.io', - 'required' => true, - 'type' => 'url' - ] - ], - 'scopes' => ["databases.read", "databases.write", "collections.write", "attributes.write", "documents.read", "documents.write"] - ], - [ - 'icon' => 'icon-algolia', - 'id' => 'sync-with-algolia', - 'name' => 'Sync with Algolia', - 'tagline' => 'Intuitive search bar for any data in Appwrite Databases.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/sync-with-algolia' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/sync_with_algolia' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PHP'], - 'composer install', - 'src/index.php', - 'php/sync-with-algolia' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the Appwrite database that contains the collection to sync. Learn more.', - 'placeholder' => '64a55...7b912', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection in the Appwrite database to sync. Learn more.', - 'placeholder' => '7c3e8...2a9f1', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'ALGOLIA_APP_ID', - 'description' => 'The ID of the application in Algolia. Learn more.', - 'placeholder' => 'OFCNCOG2CU', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'ALGOLIA_ADMIN_API_KEY', - 'description' => 'The admin API Key for your Algolia service. Learn more.', - 'placeholder' => 'fd0aa...136a8', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'ALGOLIA_INDEX_ID', - 'description' => 'The ID of the index in Algolia where the documents are to be synced. Learn more.', - 'placeholder' => 'my_index', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'ALGOLIA_SEARCH_API_KEY', - 'description' => 'The search API Key for your Algolia service. This key is used for searching the synced index. Learn more.', - 'placeholder' => 'bf2f5...df733', - 'required' => true, - 'type' => 'password' - ], - ], - 'scopes' => ["databases.read", "collections.read", "documents.read"] - ], - [ - 'icon' => 'icon-meilisearch', - 'id' => 'sync-with-meilisearch', - 'name' => 'Sync with Meilisearch', - 'tagline' => 'Intuitive search bar for any data in Appwrite Databases.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['databases'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/sync-with-meilisearch' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/sync-with-meilisearch' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PHP'], - 'composer install', - 'src/index.php', - 'php/sync-with-meilisearch' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['BUN'], - 'bun install', - 'src/main.ts', - 'bun/sync-with-meilisearch' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['RUBY'], - 'bundle install', - 'lib/main.rb', - 'ruby/sync-with-meilisearch' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the Appwrite database that contains the collection to sync. Learn more.', - 'placeholder' => '64a55...7b912', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection in the Appwrite database to sync. Learn more.', - 'placeholder' => '7c3e8...2a9f1', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'MEILISEARCH_ENDPOINT', - 'description' => 'The host URL of the Meilisearch server. Learn more.', - 'placeholder' => 'http://127.0.0.1:7700', - 'required' => true, - 'type' => 'url' - ], - [ - 'name' => 'MEILISEARCH_ADMIN_API_KEY', - 'description' => 'The admin API key for Meilisearch. Learn more.', - 'placeholder' => 'masterKey1234', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'MEILISEARCH_SEARCH_API_KEY', - 'description' => 'API Key for Meilisearch search operations. Learn more.', - 'placeholder' => 'searchKey1234', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'MEILISEARCH_INDEX_NAME', - 'description' => 'Name of the Meilisearch index to which the documents will be synchronized. Learn more.', - 'placeholder' => 'appwrite_index', - 'required' => true, - 'type' => 'text' - ], - ], - 'scopes' => ["databases.read", "collections.read", "documents.read"] - ], - [ - 'icon' => 'icon-vonage', - 'id' => 'whatsapp-with-vonage', - 'name' => 'WhatsApp with Vonage', - 'tagline' => 'Simple bot to answer WhatsApp messages.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['messaging'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/whatsapp-with-vonage' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/whatsapp_with_vonage' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['DART'], - 'dart pub get', - 'lib/main.dart', - 'dart/whatsapp-with-vonage' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PHP'], - 'composer install', - 'src/index.php', - 'php/whatsapp-with-vonage' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['BUN'], - 'bun install', - 'src/main.ts', - 'bun/whatsapp-with-vonage' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['RUBY'], - 'bundle install', - 'lib/main.rb', - 'ruby/whatsapp-with-vonage' - ), - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'VONAGE_API_KEY', - 'description' => 'API Key to use the Vonage API. Learn more.', - 'value' => '', - 'placeholder' => '62...97', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'VONAGE_API_SECRET', - 'description' => 'Secret to use the Vonage API. Learn more.', - 'placeholder' => 'Zjc...5PH', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'VONAGE_API_SIGNATURE_SECRET', - 'description' => 'Secret to verify the JWT token sent by Vonage. Learn more.', - 'placeholder' => 'NXOi3...IBHDa', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'VONAGE_WHATSAPP_NUMBER', - 'description' => 'Vonage WhatsApp number to send messages from. Learn more.', - 'placeholder' => '+14000000102', - 'required' => true, - 'type' => 'phone' - ] - ] - ], - [ - 'icon' => 'icon-bell', - 'id' => 'push-notification-with-fcm', - 'name' => 'Push notification with FCM', - 'tagline' => 'Send push notifications to your users using Firebase Cloud Messaging (FCM).', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['messaging'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/push-notification-with-fcm' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'FCM_PROJECT_ID', - 'description' => 'A unique identifier for your FCM project. Learn more.', - 'value' => '', - 'placeholder' => 'mywebapp-f6e57', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'FCM_CLIENT_EMAIL', - 'description' => 'Your FCM service account email. Learn more.', - 'placeholder' => 'fcm-adminsdk-2f0de@test-f7q57.iam.gserviceaccount.com', - 'required' => true, - 'type' => 'email' - ], - [ - 'name' => 'FCM_PRIVATE_KEY', - 'description' => 'A unique private key used to authenticate with FCM. Learn more.', - 'placeholder' => '0b683...75675', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'FCM_DATABASE_URL', - 'description' => 'URL of your FCM database. Learn more.', - 'placeholder' => 'https://my-app-f298e.firebaseio.com', - 'required' => true, - 'type' => 'url' - ] - ] - ], - [ - 'icon' => 'icon-mail', - 'id' => 'email-contact-form', - 'name' => 'Email contact form', - 'tagline' => 'Sends an email with the contents of a HTML form.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/email-contact-form' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PYTHON'], - 'pip install -r requirements.txt', - 'src/main.py', - 'python/email_contact_form' - ), - ...getRuntimes( - TEMPLATE_RUNTIMES['PHP'], - 'composer install', - 'src/index.php', - 'php/email-contact-form' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'SMTP_HOST', - 'description' => 'The address of your SMTP server. Many STMP providers will provide this information in their documentation. Some popular providers include: Mailgun, SendGrid, and Gmail.', - 'value' => '', - 'placeholder' => 'smtp.mailgun.org', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'SMTP_PORT', - 'description' => 'The port of your STMP server. Commnly used ports include 25, 465, and 587.', - 'placeholder' => '25', - 'required' => true, - 'type' => 'number' - ], - [ - 'name' => 'SMTP_USERNAME', - 'description' => 'The username for your SMTP server. This is commonly your email address.', - 'placeholder' => 'no-reply@mywebapp.org', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'SMTP_PASSWORD', - 'description' => 'The password for your SMTP server.', - 'placeholder' => '5up3r5tr0ngP4ssw0rd', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'SUBMIT_EMAIL', - 'description' => 'The email address to send form submissions to.', - 'placeholder' => 'me@mywebapp.org', - 'required' => true, - 'type' => 'email' - ], - [ - 'name' => 'ALLOWED_ORIGINS', - 'description' => 'An optional comma-separated list of allowed origins for CORS (defaults to *). This is an important security measure to prevent malicious users from abusing your function.', - 'value' => '', - 'placeholder' => 'https://mywebapp.org,https://mywebapp.com', - 'required' => false, - 'type' => 'text' - ] - ] - ], - [ - 'icon' => 'icon-stripe', - 'id' => 'subscriptions-with-stripe', - 'name' => 'Subscriptions with Stripe', - 'tagline' => 'Receive recurring card payments and grant subscribers extra permissions.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/subscriptions-with-stripe' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'STRIPE_SECRET_KEY', - 'description' => 'Secret for sending requests to the Stripe API. Learn more.', - 'placeholder' => 'sk_test_51J...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'STRIPE_WEBHOOK_SECRET', - 'description' => 'Secret used to validate the Stripe Webhook signature. Learn more.', - 'placeholder' => 'whsec_...', - 'required' => true, - 'type' => 'password' - ] - ], - 'scopes' => ["users.read", "sessions.write", "users.write"] - ], - [ - 'icon' => 'icon-stripe', - 'id' => 'payments-with-stripe', - 'name' => 'Payments with Stripe', - 'tagline' => 'Receive card payments and store paid orders.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/payments-with-stripe' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'STRIPE_SECRET_KEY', - 'description' => 'Secret for sending requests to the Stripe API. Learn more.', - 'placeholder' => 'sk_test_51J...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'STRIPE_WEBHOOK_SECRET', - 'description' => 'Secret used to validate the Stripe Webhook signature. Learn more.', - 'placeholder' => 'whsec_...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database to store paid orders. Learn more.', - 'value' => 'orders', - 'placeholder' => 'orders', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection to store paid orders. Learn more.', - 'value' => 'orders', - 'placeholder' => 'orders', - 'required' => false, - 'type' => 'text' - ] - ], - 'scopes' => ["databases.read", "databases.write", "collections.write", "attributes.write", "documents.read", "documents.write"] - ], - [ - 'icon' => 'icon-chat', - 'id' => 'text-generation-with-huggingface', - 'name' => 'Text generation', - 'tagline' => 'Generate text using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 30, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/text-generation-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-translate', - 'id' => 'language-translation-with-huggingface', - 'name' => 'Language translation', - 'tagline' => 'Translate text using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 30, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/language-translation-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-eye', - 'id' => 'image-classification-with-huggingface', - 'name' => 'Image classification', - 'tagline' => 'Classify images using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => ['buckets.*.files.*.create'], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install && npm run setup', - 'src/main.js', - 'node/image-classification-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the responses are stored. Learn more.', - 'value' => 'ai', - 'placeholder' => 'ai', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the responses are stored. Learn more.', - 'value' => 'image_classification', - 'placeholder' => 'image_classification', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where the images are stored. Learn more.', - 'value' => 'image_classification', - 'placeholder' => 'image_classification', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ], - 'scopes' => ["databases.read", "databases.write", "collections.read", "collections.write", "attributes.write", "documents.read", "documents.write", "buckets.read", "buckets.write", "files.read"] - ], - [ - 'icon' => 'icon-eye', - 'id' => 'object-detection-with-huggingface', - 'name' => 'Object detection', - 'tagline' => 'Detect objects in images using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => ['buckets.*.files.*.create'], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install && npm run setup', - 'src/main.js', - 'node/object-detection-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the responses are stored. Learn more.', - 'value' => 'ai', - 'placeholder' => 'ai', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the responses are stored. Learn more.', - 'value' => 'object_detection', - 'placeholder' => 'object_detection', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where the images are stored. Learn more.', - 'value' => 'object_detection', - 'placeholder' => 'object_detection', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ], - "scopes" => ["databases.read", "databases.write", "collections.read", "collections.write", "attributes.write", "documents.read", "documents.write", "buckets.read", "buckets.write", "files.read"] - ], - [ - 'icon' => 'icon-text', - 'id' => 'speech-recognition-with-huggingface', - 'name' => 'Speech recognition', - 'tagline' => 'Transcribe audio to text using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => ['buckets.*.files.*.create'], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install && npm run setup', - 'src/main.js', - 'node/speech-recognition-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the responses are stored. Learn more.', - 'value' => 'ai', - 'placeholder' => 'ai', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the responses are stored. Learn more.', - 'value' => 'speech_recognition', - 'placeholder' => 'speech_recognition', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where audio is stored. Learn more.', - 'value' => 'speech_recognition', - 'placeholder' => 'speech_recognition', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ], - "scopes" => ["databases.read", "databases.write", "collections.read", "collections.write", "attributes.write", "documents.read", "documents.write", "buckets.read", "buckets.write", "files.read"] - ], - [ - 'icon' => 'icon-chat', - 'id' => 'text-to-speech-with-huggingface', - 'name' => 'Text to speech', - 'tagline' => 'Convert text to speech using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => ['databases.*.collections.*.documents.*.create'], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install && npm run setup', - 'src/main.js', - 'node/text-to-speech-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the responses are stored. Learn more.', - 'value' => 'ai', - 'placeholder' => 'ai', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the responses are stored. Learn more.', - 'value' => 'speech_recognition', - 'placeholder' => 'speech_recognition', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where audio is stored. Learn more.', - 'value' => 'speech_recognition', - 'placeholder' => 'speech_recognition', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ], - "scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'generate-with-replicate', - 'name' => 'Generate with Replicate', - 'tagline' => "Generate text, audio and images using Replicate's API.", - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 300, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/generate-with-replicate' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'REPLICATE_API_KEY', - 'description' => 'A unique key used to authenticate with the Replicate API. Learn more.', - 'value' => '', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'generate-with-together-ai', - 'name' => 'Generate with Together AI', - 'tagline' => "Generate text and images using Together AI's API.", - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 300, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/generate-with-together-ai' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'TOGETHER_API_KEY', - 'description' => 'A unique key used to authenticate with the Together AI API. Learn more.', - 'value' => '', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where audio is stored. Learn more.', - 'placeholder' => 'generated_speech', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["buckets.write", "files.read", "files.write"] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'chat-with-perplexity-ai', - 'name' => 'Chat with Perplexity AI', - 'tagline' => 'Create a chatbot using the Perplexity AI API.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/chat-with-perplexity-ai' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'PERPLEXITY_API_KEY', - 'description' => 'A unique key used to authenticate with the Perplexity API. Learn more.', - 'placeholder' => 'pplex-68...999', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'PERPLEXITY_MAX_TOKENS', - 'description' => 'The maximum number of tokens to generate. Learn more.', - 'placeholder' => '512', - 'required' => false, - 'type' => 'number' - ] - ] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'generate-with-replicate', - 'name' => 'Generate with Replicate', - 'tagline' => "Generate text, audio and images using Replicate's API.", - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 300, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/generate-with-replicate' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'REPLICATE_API_KEY', - 'description' => 'A unique key used to authenticate with the Replicate API. Learn more.', - 'value' => '', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-document-search', - 'id' => 'sync-with-pinecone', - 'name' => 'Sync with Pinecone', - 'tagline' => "Sync your Appwrite database with Pinecone's vector database.", - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 30, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/sync-with-pinecone' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'OPENAI_API_KEY', - 'description' => 'A unique key used to authenticate with the OpenAI API. This is a paid service and you will be charged for each request made to the API. Learn more.', - 'value' => '', - 'placeholder' => 'sk-wzG...vcy', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'PINECONE_API_KEY', - 'description' => 'A unique key used to authenticate with the Pinecone API. Learn more.', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'PINECONE_INDEX_NAME', - 'description' => 'The name of the index in Pinecone. Learn more.', - 'placeholder' => 'my-index', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the documents are stored. Learn more.', - 'placeholder' => 'my-database', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the documents are stored. Learn more.', - 'placeholder' => 'my-collection', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["databases.read", "collections.read", "documents.read"] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'rag-with-langchain', - 'name' => 'RAG with LangChain', - 'tagline' => 'Generate text using a LangChain RAG model', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 30, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/rag-with-langchain' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'OPENAI_API_KEY', - 'description' => 'A unique key used to authenticate with the OpenAI API. This is a paid service and you will be charged for each request made to the API. Learn more.', - 'value' => '', - 'placeholder' => 'sk-wzG...vcy', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'PINECONE_API_KEY', - 'description' => 'A unique key used to authenticate with the Pinecone API. Learn more.', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'PINECONE_INDEX_NAME', - 'description' => 'The name of the index in Pinecone. Learn more.', - 'placeholder' => 'my-index', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the documents are stored. Learn more.', - 'placeholder' => 'my-database', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the documents are stored. Learn more.', - 'placeholder' => 'my-collection', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["databases.read", "collections.read", "documents.read"] - ], - [ - 'icon' => 'icon-chat', - 'id' => 'speak-with-elevenlabs', - 'name' => 'Speak with ElevenLabs', - 'tagline' => 'Convert text to speech using the ElevenLabs API.', - 'permissions' => ['any'], - 'cron' => '', - 'events' => [], - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/speak-with-elevenlabs' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'ELEVENLABS_API_KEY', - 'description' => 'A unique key used to authenticate with the ElevenLabs API. Learn more.', - 'placeholder' => 'd03xxxxxxxx26', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database where the responses are stored. Learn more.', - 'placeholder' => 'my-database', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection where the responses are stored. Learn more.', - 'placeholder' => 'my-collection', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where audio is stored. Learn more.', - 'placeholder' => 'generated_speech', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'speak-with-lmnt', - 'name' => 'Speak with LMNT', - 'tagline' => 'Convert text to speech using the LMNT API.', - 'permissions' => ['any'], - 'cron' => '', - 'events' => [], - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/speak-with-lmnt' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'LMNT_API_KEY', - 'description' => 'A unique key used to authenticate with the LMNT API. Learn more.', - 'placeholder' => 'd03xxxxxxxx26', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where audio is stored. Learn more.', - 'placeholder' => 'generated_speech', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'chat-with-anyscale', - 'name' => 'Chat with AnyScale', - 'tagline' => 'Create a chatbot using the AnyScale API.', - 'permissions' => ['any'], - 'cron' => '', - 'events' => [], - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/chat-with-anyscale' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'ANYSCALE_API_KEY', - 'description' => 'A unique key used to authenticate with the AnyScale API. Learn more.', - 'placeholder' => 'd03xxxxxxxx26', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'ANYSCALE_MAX_TOKENS', - 'description' => 'The maximum number of tokens that Anyscale responses should contain. Learn more.', - 'placeholder' => '', - 'required' => false, - 'type' => 'number' - ] - ] - ], - [ - 'icon' => 'icon-music-note', - 'id' => 'music-generation-with-huggingface', - 'name' => 'Music generation', - 'tagline' => 'Generate music from a text prompt using the Hugging Face inference API.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install && npm run setup', - 'src/main.js', - 'node/music-generation-with-huggingface' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_BUCKET_ID', - 'description' => 'The ID of the bucket where generated music is stored. Learn more.', - 'value' => 'generated_music', - 'placeholder' => 'generated_music', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'HUGGINGFACE_ACCESS_TOKEN', - 'description' => 'Secret for sending requests to the Hugging Face API. Learn more.', - 'placeholder' => 'hf_MUvn...', - 'required' => true, - 'type' => 'password' - ] - ], - "scopes" => ["buckets.read", "buckets.write", "files.read", "files.write"] - ], - [ - 'icon' => 'icon-chip', - 'id' => 'generate-with-fal-ai', - 'name' => 'Generate with fal.ai', - 'tagline' => "Generate images using fal.ai's API.", - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 300, - 'useCases' => ['ai'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/generate-with-fal-ai' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'FAL_API_KEY', - 'description' => 'A unique key used to authenticate with the fal.ai API. Learn more.', - 'value' => '', - 'placeholder' => 'd1efb...aec35', - 'required' => true, - 'type' => 'password' - ] - ] - ], - [ - 'icon' => 'icon-currency-dollar', - 'id' => 'subscriptions-with-lemon-squeezy', - 'name' => 'Subscriptions with Lemon Squeezy', - 'tagline' => 'Receive recurring card payments and grant subscribers extra permissions.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/subscriptions-with-lemon-squeezy' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'LEMON_SQUEEZY_API_KEY', - 'description' => 'API key for sending requests to the Lemon Squeezy API. Learn more.', - 'placeholder' => 'eyJ0eXAiOiJ...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'LEMON_SQUEEZY_WEBHOOK_SECRET', - 'description' => 'Secret used to validate the Lemon Squuezy Webhook signature. Learn more.', - 'placeholder' => 'abcd...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'LEMON_SQUEEZY_STORE_ID', - 'description' => 'Store ID required to create a checkout using the Lemon Squeezy API. Learn more.', - 'placeholder' => '123456', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'LEMON_SQUEEZY_VARIANT_ID', - 'description' => 'Variant ID of a product required to create a checkout using the Lemon Squeezy API. Learn more.', - 'placeholder' => 'abcd...', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["users.read", "users.write"] - ], - [ - 'icon' => 'icon-currency-dollar', - 'id' => 'payments-with-lemon-squeezy', - 'name' => 'Payments with Lemon Squeezy', - 'tagline' => 'Receive card payments and store paid orders.', - 'permissions' => ['any'], - 'events' => [], - 'cron' => '', - 'timeout' => 15, - 'useCases' => ['utilities'], - 'runtimes' => [ - ...getRuntimes( - TEMPLATE_RUNTIMES['NODE'], - 'npm install', - 'src/main.js', - 'node/payments-with-lemon-squeezy' - ) - ], - 'instructions' => 'For documentation and instructions check out file.', - 'vcsProvider' => 'github', - 'providerRepositoryId' => 'templates', - 'providerOwner' => 'appwrite', - 'providerVersion' => '0.2.*', - 'variables' => [ - [ - 'name' => 'APPWRITE_DATABASE_ID', - 'description' => 'The ID of the database to store paid orders. Learn more.', - 'value' => 'orders', - 'placeholder' => 'orders', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'APPWRITE_COLLECTION_ID', - 'description' => 'The ID of the collection to store paid orders. Learn more.', - 'value' => 'orders', - 'placeholder' => 'orders', - 'required' => false, - 'type' => 'text' - ], - [ - 'name' => 'LEMON_SQUEEZY_API_KEY', - 'description' => 'API key for sending requests to the Lemon Squeezy API. Learn more.', - 'placeholder' => 'eyJ0eXAiOiJ...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'LEMON_SQUEEZY_WEBHOOK_SECRET', - 'description' => 'Secret used to validate the Lemon Squuezy Webhook signature. Learn more.', - 'placeholder' => 'abcd...', - 'required' => true, - 'type' => 'password' - ], - [ - 'name' => 'LEMON_SQUEEZY_STORE_ID', - 'description' => 'Store ID required to create a checkout using the Lemon Squeezy API. Learn more.', - 'placeholder' => '123456', - 'required' => true, - 'type' => 'text' - ], - [ - 'name' => 'LEMON_SQUEEZY_VARIANT_ID', - 'description' => 'Variant ID of a product required to create a checkout using the Lemon Squeezy API. Learn more.', - 'placeholder' => 'abcd...', - 'required' => true, - 'type' => 'text' - ] - ], - "scopes" => ["users.read", "users.write"] - ] -]; diff --git a/app/config/locale/continents.php b/app/config/locale/continents.php index 2f1ffc0a537..611c725ef1e 100644 --- a/app/config/locale/continents.php +++ b/app/config/locale/continents.php @@ -1,11 +1,46 @@ [ + 'name' => 'Africa', + 'latitude' => 8.7832, + 'longitude' => 34.5085 + ], + 'AN' => [ + 'name' => 'Antarctica', + 'latitude' => -82.8628, + 'longitude' => 135.0000 + ], + 'AS' => [ + 'name' => 'Asia', + 'latitude' => 34.0479, + 'longitude' => 100.6197 + ], + 'EU' => [ + 'name' => 'Europe', + 'latitude' => 54.5260, + 'longitude' => 15.2551 + ], + 'NA' => [ + 'name' => 'North America', + 'latitude' => 54.5260, + 'longitude' => -105.2551 + ], + 'OC' => [ + 'name' => 'Oceania', + 'latitude' => -22.7359, + 'longitude' => 140.0188 + ], + 'SA' => [ + 'name' => 'South America', + 'latitude' => -8.7832, + 'longitude' => -55.4915 + ], ]; diff --git a/app/config/locale/countries.php b/app/config/locale/countries.php index bd2cbbbaaa0..adfc5d76a61 100644 --- a/app/config/locale/countries.php +++ b/app/config/locale/countries.php @@ -1,209 +1,210 @@ ['name' => 'Afghanistan', 'latitude' => 33.0, 'longitude' => 66.0], + 'AO' => ['name' => 'Angola', 'latitude' => -12.5, 'longitude' => 18.5], + 'AL' => ['name' => 'Albania', 'latitude' => 41.0, 'longitude' => 20.0], + 'AD' => ['name' => 'Andorra', 'latitude' => 42.5, 'longitude' => 1.6], + 'AE' => ['name' => 'United Arab Emirates', 'latitude' => 24.0, 'longitude' => 54.0], + 'AR' => ['name' => 'Argentina', 'latitude' => -34.0, 'longitude' => -64.0], + 'AM' => ['name' => 'Armenia', 'latitude' => 40.0, 'longitude' => 45.0], + 'AG' => ['name' => 'Antigua and Barbuda', 'latitude' => 17.05, 'longitude' => -61.8], + 'AU' => ['name' => 'Australia', 'latitude' => -25.0, 'longitude' => 135.0], + 'AT' => ['name' => 'Austria', 'latitude' => 47.3, 'longitude' => 13.3], + 'AZ' => ['name' => 'Azerbaijan', 'latitude' => 40.5, 'longitude' => 47.5], + 'BI' => ['name' => 'Burundi', 'latitude' => -3.5, 'longitude' => 30.0], + 'BE' => ['name' => 'Belgium', 'latitude' => 50.8, 'longitude' => 4.0], + 'BJ' => ['name' => 'Benin', 'latitude' => 9.5, 'longitude' => 2.25], + 'BF' => ['name' => 'Burkina Faso', 'latitude' => 13.0, 'longitude' => -2.0], + 'BD' => ['name' => 'Bangladesh', 'latitude' => 24.0, 'longitude' => 90.0], + 'BG' => ['name' => 'Bulgaria', 'latitude' => 43.0, 'longitude' => 25.0], + 'BH' => ['name' => 'Bahrain', 'latitude' => 26.0, 'longitude' => 50.5], + 'BS' => ['name' => 'Bahamas', 'latitude' => 24.25, 'longitude' => -76.0], + 'BA' => ['name' => 'Bosnia and Herzegovina', 'latitude' => 44.0, 'longitude' => 18.0], + 'BY' => ['name' => 'Belarus', 'latitude' => 53.0, 'longitude' => 28.0], + 'BZ' => ['name' => 'Belize', 'latitude' => 17.25, 'longitude' => -88.75], + 'BO' => ['name' => 'Bolivia', 'latitude' => -17.0, 'longitude' => -65.0], + 'BR' => ['name' => 'Brazil', 'latitude' => -10.0, 'longitude' => -55.0], + 'BB' => ['name' => 'Barbados', 'latitude' => 13.17, 'longitude' => -59.53], + 'BN' => ['name' => 'Brunei', 'latitude' => 4.5, 'longitude' => 114.67], + 'BT' => ['name' => 'Bhutan', 'latitude' => 27.5, 'longitude' => 90.5], + 'BW' => ['name' => 'Botswana', 'latitude' => -22.0, 'longitude' => 24.0], + 'CF' => ['name' => 'Central African Republic', 'latitude' => 7.0, 'longitude' => 21.0], + 'CA' => ['name' => 'Canada', 'latitude' => 60.0, 'longitude' => -95.0], + 'CH' => ['name' => 'Switzerland', 'latitude' => 47.0, 'longitude' => 8.0], + 'CL' => ['name' => 'Chile', 'latitude' => -30.0, 'longitude' => -71.0], + 'CN' => ['name' => 'China', 'latitude' => 35.0, 'longitude' => 105.0], + 'CI' => ['name' => 'Côte d\'Ivoire', 'latitude' => 8.0, 'longitude' => -5.0], + 'CM' => ['name' => 'Cameroon', 'latitude' => 6.0, 'longitude' => 12.0], + 'CD' => ['name' => 'Democratic Republic of the Congo', 'latitude' => -2.5, 'longitude' => 23.5], + 'CG' => ['name' => 'Republic of the Congo', 'latitude' => -1.0, 'longitude' => 15.0], + 'CO' => ['name' => 'Colombia', 'latitude' => 4.0, 'longitude' => -72.0], + 'KM' => ['name' => 'Comoros', 'latitude' => -12.17, 'longitude' => 44.25], + 'CV' => ['name' => 'Cape Verde', 'latitude' => 16.0, 'longitude' => -24.0], + 'CR' => ['name' => 'Costa Rica', 'latitude' => 10.0, 'longitude' => -84.0], + 'CU' => ['name' => 'Cuba', 'latitude' => 21.5, 'longitude' => -80.0], + 'CY' => ['name' => 'Cyprus', 'latitude' => 35.0, 'longitude' => 33.0], + 'CZ' => ['name' => 'Czech Republic', 'latitude' => 49.75, 'longitude' => 15.5], + 'DE' => ['name' => 'Germany', 'latitude' => 51.0, 'longitude' => 9.0], + 'DJ' => ['name' => 'Djibouti', 'latitude' => 11.5, 'longitude' => 43.0], + 'DM' => ['name' => 'Dominica', 'latitude' => 15.42, 'longitude' => -61.33], + 'DK' => ['name' => 'Denmark', 'latitude' => 56.0, 'longitude' => 10.0], + 'DO' => ['name' => 'Dominican Republic', 'latitude' => 19.0, 'longitude' => -70.67], + 'DZ' => ['name' => 'Algeria', 'latitude' => 28.0, 'longitude' => 3.0], + 'EC' => ['name' => 'Ecuador', 'latitude' => -2.0, 'longitude' => -77.5], + 'EG' => ['name' => 'Egypt', 'latitude' => 27.0, 'longitude' => 30.0], + 'ER' => ['name' => 'Eritrea', 'latitude' => 15.0, 'longitude' => 39.0], + 'ES' => ['name' => 'Spain', 'latitude' => 40.0, 'longitude' => -4.0], + 'EE' => ['name' => 'Estonia', 'latitude' => 59.0, 'longitude' => 26.0], + 'ET' => ['name' => 'Ethiopia', 'latitude' => 8.0, 'longitude' => 38.0], + 'FI' => ['name' => 'Finland', 'latitude' => 64.0, 'longitude' => 26.0], + 'FJ' => ['name' => 'Fiji', 'latitude' => -18.0, 'longitude' => 175.0], + 'FR' => ['name' => 'France', 'latitude' => 46.0, 'longitude' => 2.0], + 'FM' => ['name' => 'Micronesia', 'latitude' => 6.92, 'longitude' => 158.25], + 'GA' => ['name' => 'Gabon', 'latitude' => -1.0, 'longitude' => 11.75], + 'GB' => ['name' => 'United Kingdom', 'latitude' => 54.0, 'longitude' => -2.0], + 'GE' => ['name' => 'Georgia', 'latitude' => 42.0, 'longitude' => 43.5], + 'GH' => ['name' => 'Ghana', 'latitude' => 8.0, 'longitude' => -2.0], + 'GN' => ['name' => 'Guinea', 'latitude' => 11.0, 'longitude' => -10.0], + 'GM' => ['name' => 'Gambia', 'latitude' => 13.47, 'longitude' => -16.57], + 'GW' => ['name' => 'Guinea-Bissau', 'latitude' => 12.0, 'longitude' => -15.0], + 'GQ' => ['name' => 'Equatorial Guinea', 'latitude' => 2.0, 'longitude' => 10.0], + 'GR' => ['name' => 'Greece', 'latitude' => 39.0, 'longitude' => 22.0], + 'GD' => ['name' => 'Grenada', 'latitude' => 12.12, 'longitude' => -61.67], + 'GT' => ['name' => 'Guatemala', 'latitude' => 15.5, 'longitude' => -90.25], + 'GY' => ['name' => 'Guyana', 'latitude' => 5.0, 'longitude' => -59.0], + 'HK' => ['name' => 'Hong Kong', 'latitude' => 22.25, 'longitude' => 114.17], + 'HN' => ['name' => 'Honduras', 'latitude' => 15.0, 'longitude' => -86.5], + 'HR' => ['name' => 'Croatia', 'latitude' => 45.17, 'longitude' => 15.5], + 'HT' => ['name' => 'Haiti', 'latitude' => 19.0, 'longitude' => -72.42], + 'HU' => ['name' => 'Hungary', 'latitude' => 47.0, 'longitude' => 20.0], + 'ID' => ['name' => 'Indonesia', 'latitude' => -5.0, 'longitude' => 120.0], + 'IN' => ['name' => 'India', 'latitude' => 20.0, 'longitude' => 77.0], + 'IE' => ['name' => 'Ireland', 'latitude' => 53.0, 'longitude' => -8.0], + 'IR' => ['name' => 'Iran', 'latitude' => 32.0, 'longitude' => 53.0], + 'IQ' => ['name' => 'Iraq', 'latitude' => 33.0, 'longitude' => 44.0], + 'IS' => ['name' => 'Iceland', 'latitude' => 65.0, 'longitude' => -18.0], + 'IL' => ['name' => 'Israel', 'latitude' => 31.5, 'longitude' => 34.75], + 'IT' => ['name' => 'Italy', 'latitude' => 42.83, 'longitude' => 12.83], + 'JM' => ['name' => 'Jamaica', 'latitude' => 18.25, 'longitude' => -77.5], + 'JO' => ['name' => 'Jordan', 'latitude' => 31.0, 'longitude' => 36.0], + 'JP' => ['name' => 'Japan', 'latitude' => 36.0, 'longitude' => 138.0], + 'KZ' => ['name' => 'Kazakhstan', 'latitude' => 48.0, 'longitude' => 68.0], + 'KE' => ['name' => 'Kenya', 'latitude' => 1.0, 'longitude' => 38.0], + 'KG' => ['name' => 'Kyrgyzstan', 'latitude' => 41.0, 'longitude' => 75.0], + 'KH' => ['name' => 'Cambodia', 'latitude' => 13.0, 'longitude' => 105.0], + 'KI' => ['name' => 'Kiribati', 'latitude' => 1.42, 'longitude' => 173.0], + 'KN' => ['name' => 'Saint Kitts and Nevis', 'latitude' => 17.33, 'longitude' => -62.75], + 'KR' => ['name' => 'South Korea', 'latitude' => 37.0, 'longitude' => 127.5], + 'KW' => ['name' => 'Kuwait', 'latitude' => 29.34, 'longitude' => 47.66], + 'LA' => ['name' => 'Laos', 'latitude' => 18.0, 'longitude' => 105.0], + 'LB' => ['name' => 'Lebanon', 'latitude' => 33.83, 'longitude' => 35.83], + 'LR' => ['name' => 'Liberia', 'latitude' => 6.5, 'longitude' => -9.5], + 'LY' => ['name' => 'Libya', 'latitude' => 25.0, 'longitude' => 17.0], + 'LC' => ['name' => 'Saint Lucia', 'latitude' => 13.88, 'longitude' => -61.13], + 'LI' => ['name' => 'Liechtenstein', 'latitude' => 47.17, 'longitude' => 9.53], + 'LK' => ['name' => 'Sri Lanka', 'latitude' => 7.0, 'longitude' => 81.0], + 'LS' => ['name' => 'Lesotho', 'latitude' => -29.5, 'longitude' => 28.5], + 'LT' => ['name' => 'Lithuania', 'latitude' => 56.0, 'longitude' => 24.0], + 'LU' => ['name' => 'Luxembourg', 'latitude' => 49.75, 'longitude' => 6.17], + 'LV' => ['name' => 'latitudevia', 'latitude' => 57.0, 'longitude' => 25.0], + 'MA' => ['name' => 'Morocco', 'latitude' => 32.0, 'longitude' => -5.0], + 'MC' => ['name' => 'Monaco', 'latitude' => 43.73, 'longitude' => 7.4], + 'MD' => ['name' => 'Moldova', 'latitude' => 47.0, 'longitude' => 29.0], + 'MG' => ['name' => 'Madagascar', 'latitude' => -20.0, 'longitude' => 47.0], + 'MV' => ['name' => 'Maldives', 'latitude' => 3.25, 'longitude' => 73.0], + 'MX' => ['name' => 'Mexico', 'latitude' => 23.0, 'longitude' => -102.0], + 'MH' => ['name' => 'Marshall Islands', 'latitude' => 9.0, 'longitude' => 168.0], + 'MK' => ['name' => 'North Macedonia', 'latitude' => 41.83, 'longitude' => 22.0], + 'ML' => ['name' => 'Mali', 'latitude' => 17.0, 'longitude' => -4.0], + 'MT' => ['name' => 'Malta', 'latitude' => 35.83, 'longitude' => 14.58], + 'MM' => ['name' => 'Myanmar', 'latitude' => 22.0, 'longitude' => 98.0], + 'ME' => ['name' => 'Montenegro', 'latitude' => 42.5, 'longitude' => 19.3], + 'MN' => ['name' => 'Mongolia', 'latitude' => 46.0, 'longitude' => 105.0], + 'MZ' => ['name' => 'Mozambique', 'latitude' => -18.25, 'longitude' => 35.0], + 'MR' => ['name' => 'Mauritania', 'latitude' => 20.0, 'longitude' => -12.0], + 'MU' => ['name' => 'Mauritius', 'latitude' => -20.28, 'longitude' => 57.55], + 'MW' => ['name' => 'Malawi', 'latitude' => -13.5, 'longitude' => 34.0], + 'MY' => ['name' => 'Malaysia', 'latitude' => 2.5, 'longitude' => 112.5], + 'NA' => ['name' => 'Namibia', 'latitude' => -22.0, 'longitude' => 17.0], + 'NE' => ['name' => 'Niger', 'latitude' => 16.0, 'longitude' => 8.0], + 'NG' => ['name' => 'Nigeria', 'latitude' => 10.0, 'longitude' => 8.0], + 'NI' => ['name' => 'Nicaragua', 'latitude' => 13.0, 'longitude' => -85.0], + 'NL' => ['name' => 'Netherlands', 'latitude' => 52.5, 'longitude' => 5.75], + 'NO' => ['name' => 'Norway', 'latitude' => 62.0, 'longitude' => 10.0], + 'NP' => ['name' => 'Nepal', 'latitude' => 28.0, 'longitude' => 84.0], + 'NR' => ['name' => 'Nauru', 'latitude' => -0.53, 'longitude' => 166.92], + 'NZ' => ['name' => 'New Zealand', 'latitude' => -41.0, 'longitude' => 174.0], + 'OM' => ['name' => 'Oman', 'latitude' => 21.0, 'longitude' => 57.0], + 'PK' => ['name' => 'Pakistan', 'latitude' => 30.0, 'longitude' => 70.0], + 'PS' => ['name' => 'Palestine', 'latitude' => 31.9, 'longitude' => 35.2], + 'PA' => ['name' => 'Panama', 'latitude' => 9.0, 'longitude' => -80.0], + 'PE' => ['name' => 'Peru', 'latitude' => -10.0, 'longitude' => -76.0], + 'PH' => ['name' => 'Philippines', 'latitude' => 13.0, 'longitude' => 122.0], + 'PW' => ['name' => 'Palau', 'latitude' => 7.5, 'longitude' => 134.5], + 'PG' => ['name' => 'Papua New Guinea', 'latitude' => -6.0, 'longitude' => 147.0], + 'PL' => ['name' => 'Poland', 'latitude' => 52.0, 'longitude' => 20.0], + 'KP' => ['name' => 'North Korea', 'latitude' => 40.0, 'longitude' => 127.0], + 'PT' => ['name' => 'Portugal', 'latitude' => 39.5, 'longitude' => -8.0], + 'PY' => ['name' => 'Paraguay', 'latitude' => -23.0, 'longitude' => -58.0], + 'QA' => ['name' => 'Qatar', 'latitude' => 25.5, 'longitude' => 51.25], + 'RO' => ['name' => 'Romania', 'latitude' => 46.0, 'longitude' => 25.0], + 'RU' => ['name' => 'Russia', 'latitude' => 60.0, 'longitude' => 100.0], + 'RW' => ['name' => 'Rwanda', 'latitude' => -2.0, 'longitude' => 30.0], + 'SA' => ['name' => 'Saudi Arabia', 'latitude' => 25.0, 'longitude' => 45.0], + 'SD' => ['name' => 'Sudan', 'latitude' => 15.0, 'longitude' => 30.0], + 'SN' => ['name' => 'Senegal', 'latitude' => 14.0, 'longitude' => -14.0], + 'SG' => ['name' => 'Singapore', 'latitude' => 1.37, 'longitude' => 103.8], + 'SB' => ['name' => 'Solomon Islands', 'latitude' => -8.0, 'longitude' => 159.0], + 'SL' => ['name' => 'Sierra Leone', 'latitude' => 8.5, 'longitude' => -11.5], + 'SV' => ['name' => 'El Salvador', 'latitude' => 13.83, 'longitude' => -88.92], + 'SM' => ['name' => 'San Marino', 'latitude' => 43.77, 'longitude' => 12.42], + 'SO' => ['name' => 'Somalia', 'latitude' => 10.0, 'longitude' => 49.0], + 'RS' => ['name' => 'Serbia', 'latitude' => 44.0, 'longitude' => 21.0], + 'SS' => ['name' => 'South Sudan', 'latitude' => 8.0, 'longitude' => 30.0], + 'ST' => ['name' => 'São Tomé and Príncipe', 'latitude' => 1.0, 'longitude' => 7.0], + 'SR' => ['name' => 'Suriname', 'latitude' => 4.0, 'longitude' => -56.0], + 'SK' => ['name' => 'Slovakia', 'latitude' => 48.67, 'longitude' => 19.5], + 'SI' => ['name' => 'Slovenia', 'latitude' => 46.0, 'longitude' => 15.0], + 'SE' => ['name' => 'Sweden', 'latitude' => 62.0, 'longitude' => 15.0], + 'SZ' => ['name' => 'Eswatini', 'latitude' => -26.5, 'longitude' => 31.5], + 'SC' => ['name' => 'Seychelles', 'latitude' => -4.58, 'longitude' => 55.67], + 'SY' => ['name' => 'Syria', 'latitude' => 35.0, 'longitude' => 38.0], + 'TD' => ['name' => 'Chad', 'latitude' => 15.0, 'longitude' => 19.0], + 'TG' => ['name' => 'Togo', 'latitude' => 8.0, 'longitude' => 1.17], + 'TH' => ['name' => 'Thailand', 'latitude' => 15.0, 'longitude' => 100.0], + 'TJ' => ['name' => 'Tajikistan', 'latitude' => 39.0, 'longitude' => 71.0], + 'TM' => ['name' => 'Turkmenistan', 'latitude' => 40.0, 'longitude' => 60.0], + 'TL' => ['name' => 'Timor-Leste', 'latitude' => -8.83, 'longitude' => 125.92], + 'TO' => ['name' => 'Tonga', 'latitude' => -20.0, 'longitude' => -175.0], + 'TT' => ['name' => 'Trinidad and Tobago', 'latitude' => 11.0, 'longitude' => -61.0], + 'TN' => ['name' => 'Tunisia', 'latitude' => 34.0, 'longitude' => 9.0], + 'TR' => ['name' => 'Turkey', 'latitude' => 39.0, 'longitude' => 35.0], + 'TV' => ['name' => 'Tuvalu', 'latitude' => -8.0, 'longitude' => 178.0], + 'TZ' => ['name' => 'Tanzania', 'latitude' => -6.0, 'longitude' => 35.0], + 'TW' => ['name' => 'Taiwan', 'latitude' => 23.5, 'longitude' => 121.0], + 'UG' => ['name' => 'Uganda', 'latitude' => 1.0, 'longitude' => 32.0], + 'UA' => ['name' => 'Ukraine', 'latitude' => 49.0, 'longitude' => 32.0], + 'UY' => ['name' => 'Uruguay', 'latitude' => -33.0, 'longitude' => -56.0], + 'US' => ['name' => 'United States', 'latitude' => 38.0, 'longitude' => -97.0], + 'UZ' => ['name' => 'Uzbekistan', 'latitude' => 41.0, 'longitude' => 64.0], + 'VA' => ['name' => 'Vatican City', 'latitude' => 41.9, 'longitude' => 12.45], + 'VC' => ['name' => 'Saint Vincent and the Grenadines', 'latitude' => 13.25, 'longitude' => -61.2], + 'VE' => ['name' => 'Venezuela', 'latitude' => 8.0, 'longitude' => -66.0], + 'VN' => ['name' => 'Vietnam', 'latitude' => 16.0, 'longitude' => 106.0], + 'VU' => ['name' => 'Vanuatu', 'latitude' => -16.0, 'longitude' => 167.0], + 'WS' => ['name' => 'Samoa', 'latitude' => -13.58, 'longitude' => -172.33], + 'YE' => ['name' => 'Yemen', 'latitude' => 15.0, 'longitude' => 48.0], + 'ZA' => ['name' => 'South Africa', 'latitude' => -29.0, 'longitude' => 24.0], + 'ZM' => ['name' => 'Zambia', 'latitude' => -15.0, 'longitude' => 30.0], + 'ZW' => ['name' => 'Zimbabwe', 'latitude' => -20.0, 'longitude' => 30.0], ]; diff --git a/app/config/locale/templates/email-base-styled.tpl b/app/config/locale/templates/email-base-styled.tpl index 4d6972389e2..f6d3e8cd637 100644 --- a/app/config/locale/templates/email-base-styled.tpl +++ b/app/config/locale/templates/email-base-styled.tpl @@ -79,7 +79,7 @@ + + + +
+
+
Page not found
+

The page you’re looking for doesn’t exist.

+ +
+
+ +
+

Powered by

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index a3715e0156f..c6457ce98f1 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -1,22 +1,112 @@ getParam('development', false); $type = $this->getParam('type', 'general_server_error'); $code = $this->getParam('code', 500); -$errorID = $this->getParam('errorID', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $message = $this->getParam('message', ''); $trace = $this->getParam('trace', []); -$projectName = $this->getParam('projectName', ''); -$projectURL = $this->getParam('projectURL', ''); -$title = $this->getParam('title', '') +$title = $this->getParam('title', 'Error'); +$exception = $this->getParam('exception', null); + +$isSimpleMessage = true; +$label = ''; +$labelClass = ''; +$buttons = []; + +$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; +$hostname = System::getEnv('_APP_DOMAIN'); +// TODO: remove this later +if (System::getEnv('_APP_ENV') === 'development') { + $hostname = 'localhost'; +} + +$url = $protocol . '://' . $hostname; + +if($exception !== null && method_exists($exception, 'getCTAs')) { + foreach ($exception->getCTAs() as $index => $cta) { + $class = ($index === 0) ? 'bordered-button' : 'button'; + + $buttons[] = [ + 'text' => $cta['label'], + 'url' => $cta['url'], + 'class' => $class + ]; + } +} + +switch ($type) { + case 'proxy_error_override': + $type = ''; + $label = 'Error ' . $code; + + $message = $code >= 500 ? 'An unexpected server error occured.' : 'An unexpected client error occured.'; + switch($code) { + case 401: + $message = 'You must sign in to access this page.'; + break; + case 403: + $message = 'You are not authorized to access this page.'; + break; + case 404: + $message = 'The page you are looking for does not exist.'; + break; + case 504: + $message = 'The server did not respond in time.'; + break; + case 501: + $message = 'This page is not implemented yet.'; + break; + } + + break; + case 'function_execute_permission_missing': + $label = 'Execution not permitted'; + $labelClass = 'warning'; + break; + case 'build_not_ready': + $label = 'Deployment is still building'; + $message = 'The page will update after the build completes.'; + $labelClass = 'warning'; + break; + case 'build_failed': + $label = 'Deployment build failed'; + $message = 'An error occurred during the build process.'; + $labelClass = 'error'; + break; + case 'rule_not_found': + $label = 'Nothing is here yet'; + $message = 'This page is empty, but you can make it yours.'; + break; + case 'deployment_not_found': + $label = 'No active deployments'; + $message = 'This page is empty, activate a deployment to make it live.'; + break; + case 'build_canceled': + $label = 'Deployment build canceled'; + $message = 'This build was canceled and won\'t be deployed.'; + break; + case 'general_route_not_found': + $label = 'Page not found'; + $message = 'The page you\'re looking for doesn\'t exist.'; + break; + default: + $label = 'Error ' . $code; + $message = $message; + $isSimpleMessage = false; + break; +} ?> - - - + + + + + getParam('title', '') as="font" type="font/woff2" crossorigin /> - - - - - - - - - - <?php echo $this->print($title); ?> - -
-
-
-

Error print($code); ?>

-

print($message); ?>

-
-

Type

-

print($type); ?>

+ +
+
+
print($label); ?>
+

print($message); ?>

+ +
+ print($type); ?>
- -

Error Trace

- -
-
- - - $value) : ?> - - - - - - - -
print($key, self::FILTER_ESCAPE); ?> - - -
print(var_export($value, true), self::FILTER_ESCAPE); ?>
- -
print($value, self::FILTER_ESCAPE); ?>
- -
-
-
-
+ +
+ + + + + + + + +
-
+
+ +
+ +
Error trace
+ $traceItem): ?> +
+ +
file
+
print($traceItem['file']); ?>
+ + + +
line
+
print($traceItem['line']); ?>
+ + + +
function
+
print($traceItem['function']); ?>
+ + + +
args
+
print(\var_export($traceItem['args'], true)); ?>
+ +
+ +
+ + +
+

Powered by

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
- \ No newline at end of file diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 210a3e57b78..d52c823b4ed 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -61,10 +61,13 @@ $image = $this->getParam('image', ''); - traefik.http.routers.appwrite_api_https.tls=true volumes: - appwrite-uploads:/storage/uploads:rw + - appwrite-imports:/storage/imports:rw - appwrite-cache:/storage/cache:rw - appwrite-config:/storage/config:rw - appwrite-certificates:/storage/certificates:rw - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw + - appwrite-builds:/storage/builds:rw depends_on: - mariadb - redis @@ -73,6 +76,7 @@ $image = $this->getParam('image', ''); - _APP_ENV - _APP_WORKER_PER_CORE - _APP_LOCALE + - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_CONSOLE_WHITELIST_ROOT - _APP_CONSOLE_WHITELIST_EMAILS - _APP_CONSOLE_SESSION_ALERTS @@ -85,10 +89,12 @@ $image = $this->getParam('image', ''); - _APP_OPTIONS_ABUSE - _APP_OPTIONS_ROUTER_PROTECTION - _APP_OPTIONS_FORCE_HTTPS - - _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS + - _APP_OPTIONS_ROUTER_FORCE_HTTPS - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_DOMAIN_FUNCTIONS - _APP_REDIS_HOST - _APP_REDIS_PORT @@ -115,6 +121,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -131,21 +138,26 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_WASABI_SECRET - _APP_STORAGE_WASABI_REGION - _APP_STORAGE_WASABI_BUCKET - - _APP_FUNCTIONS_SIZE_LIMIT + - _APP_COMPUTE_SIZE_LIMIT - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_BUILD_TIMEOUT - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_BUILD_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY - _APP_FUNCTIONS_RUNTIMES + - _APP_SITES_RUNTIMES + - _APP_DOMAIN_SITES - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST - _APP_LOGGING_CONFIG - _APP_MAINTENANCE_INTERVAL - _APP_MAINTENANCE_DELAY + - _APP_MAINTENANCE_START_TIME - _APP_MAINTENANCE_RETENTION_EXECUTION - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - _APP_SMS_PROVIDER @@ -162,11 +174,10 @@ $image = $this->getParam('image', ''); - _APP_MIGRATIONS_FIREBASE_CLIENT_ID - _APP_MIGRATIONS_FIREBASE_CLIENT_SECRET - _APP_ASSISTANT_OPENAI_API_KEY - appwrite-console: <<: *x-logging container_name: appwrite-console - image: /console:5.0.1 + image: /console:5.3.0-sites-rc.51 restart: unless-stopped networks: - appwrite @@ -297,6 +308,7 @@ $image = $this->getParam('image', ''); - appwrite-uploads:/storage/uploads:rw - appwrite-cache:/storage/cache:rw - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw - appwrite-builds:/storage/builds:rw - appwrite-certificates:/storage/certificates:rw environment: @@ -317,6 +329,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -336,6 +349,12 @@ $image = $this->getParam('image', ''); - _APP_LOGGING_CONFIG - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST + - _APP_MAINTENANCE_RETENTION_ABUSE + - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE + - _APP_MAINTENANCE_RETENTION_EXECUTION + - _APP_SYSTEM_SECURITY_EMAIL_ADDRESS + - _APP_EMAIL_CERTIFICATES appwrite-worker-databases: image: /: @@ -376,7 +395,9 @@ $image = $this->getParam('image', ''); - mariadb volumes: - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw - appwrite-builds:/storage/builds:rw + - appwrite-uploads:/storage/uploads:rw environment: - _APP_ENV - _APP_WORKER_PER_CORE @@ -397,18 +418,20 @@ $image = $this->getParam('image', ''); - _APP_VCS_GITHUB_PRIVATE_KEY - _APP_VCS_GITHUB_APP_ID - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_BUILD_TIMEOUT - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY - - _APP_FUNCTIONS_SIZE_LIMIT + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_BUILD_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY + - _APP_COMPUTE_SIZE_LIMIT - _APP_OPTIONS_FORCE_HTTPS - - _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS + - _APP_OPTIONS_ROUTER_FORCE_HTTPS - _APP_DOMAIN - _APP_STORAGE_DEVICE - _APP_STORAGE_S3_ACCESS_KEY - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -425,6 +448,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_WASABI_SECRET - _APP_STORAGE_WASABI_REGION - _APP_STORAGE_WASABI_BUCKET + - _APP_DOMAIN_SITES appwrite-worker-certificates: image: /: @@ -445,7 +469,9 @@ $image = $this->getParam('image', ''); - _APP_WORKER_PER_CORE - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_DOMAIN_FUNCTIONS - _APP_EMAIL_CERTIFICATES - _APP_REDIS_HOST @@ -487,9 +513,10 @@ $image = $this->getParam('image', ''); - _APP_DB_USER - _APP_DB_PASS - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_BUILD_TIMEOUT - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_BUILD_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST - _APP_USAGE_STATS @@ -528,6 +555,8 @@ $image = $this->getParam('image', ''); - _APP_SMTP_USERNAME - _APP_SMTP_PASSWORD - _APP_LOGGING_CONFIG + - _APP_DOMAIN + - _APP_OPTIONS_FORCE_HTTPS appwrite-worker-messaging: image: /: @@ -562,6 +591,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -587,6 +617,8 @@ $image = $this->getParam('image', ''); restart: unless-stopped networks: - appwrite + volumes: + - appwrite-imports:/storage/imports:rw depends_on: - mariadb environment: @@ -594,7 +626,9 @@ $image = $this->getParam('image', ''); - _APP_WORKER_PER_CORE - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_EMAIL_SECURITY - _APP_REDIS_HOST - _APP_REDIS_PORT @@ -623,7 +657,9 @@ $image = $this->getParam('image', ''); - _APP_ENV - _APP_WORKER_PER_CORE - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_DOMAIN_FUNCTIONS - _APP_OPENSSL_KEY_V1 - _APP_REDIS_HOST @@ -640,13 +676,45 @@ $image = $this->getParam('image', ''); - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - appwrite-worker-usage: + appwrite-task-stats-resources: image: /: - entrypoint: worker-usage - container_name: appwrite-worker-usage + container_name: appwrite-task-stats-resources + entrypoint: stats-resources + <<: *x-logging + networks: + - appwrite + volumes: + - ./app:/usr/src/code/app + - ./src:/usr/src/code/src + depends_on: + - redis + - mariadb + environment: + - _APP_ENV + - _APP_WORKER_PER_CORE + - _APP_OPENSSL_KEY_V1 + - _APP_DB_HOST + - _APP_DB_PORT + - _APP_DB_SCHEMA + - _APP_DB_USER + - _APP_DB_PASS + - _APP_REDIS_HOST + - _APP_REDIS_PORT + - _APP_REDIS_USER + - _APP_REDIS_PASS + - _APP_USAGE_STATS + - _APP_LOGGING_CONFIG + - _APP_DATABASE_SHARED_TABLES + - _APP_STATS_RESOURCES_INTERVAL + + appwrite-worker-stats-resources: + image: /: + entrypoint: worker-stats-resources + container_name: appwrite-worker-stats-resources <<: *x-logging restart: unless-stopped networks: @@ -669,13 +737,14 @@ $image = $this->getParam('image', ''); - _APP_REDIS_PASS - _APP_USAGE_STATS - _APP_LOGGING_CONFIG - - _APP_USAGE_AGGREGATION_INTERVAL + - _APP_STATS_RESOURCES_INTERVAL - appwrite-worker-usage-dump: + appwrite-worker-stats-usage: image: /: - entrypoint: worker-usage-dump + entrypoint: worker-stats-usage + container_name: appwrite-worker-stats-usage <<: *x-logging - container_name: appwrite-worker-usage-dump + restart: unless-stopped networks: - appwrite depends_on: @@ -782,6 +851,14 @@ $image = $this->getParam('image', ''); - appwrite environment: - _APP_ASSISTANT_OPENAI_API_KEY + + appwrite-browser: + image: appwrite/browser:0.2.4 + container_name: appwrite-browser + <<: *x-logging + restart: unless-stopped + networks: + - appwrite openruntimes-executor: container_name: openruntimes-executor @@ -789,7 +866,7 @@ $image = $this->getParam('image', ''); <<: *x-logging restart: unless-stopped stop_signal: SIGINT - image: openruntimes/executor:0.6.7 + image: openruntimes/executor:0.7.14 networks: - appwrite - runtimes @@ -797,24 +874,27 @@ $image = $this->getParam('image', ''); - /var/run/docker.sock:/var/run/docker.sock - appwrite-builds:/storage/builds:rw - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw # Host mount nessessary to share files between executor and runtimes. # It's not possible to share mount file between 2 containers without host mount (copying is too slow) - /tmp:/tmp:rw environment: - - OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_FUNCTIONS_INACTIVE_THRESHOLD - - OPR_EXECUTOR_MAINTENANCE_INTERVAL=$_APP_FUNCTIONS_MAINTENANCE_INTERVAL - - OPR_EXECUTOR_NETWORK=$_APP_FUNCTIONS_RUNTIMES_NETWORK + - OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_COMPUTE_INACTIVE_THRESHOLD + - OPR_EXECUTOR_MAINTENANCE_INTERVAL=$_APP_COMPUTE_MAINTENANCE_INTERVAL + - OPR_EXECUTOR_NETWORK=$_APP_COMPUTE_RUNTIMES_NETWORK - OPR_EXECUTOR_DOCKER_HUB_USERNAME=$_APP_DOCKER_HUB_USERNAME - OPR_EXECUTOR_DOCKER_HUB_PASSWORD=$_APP_DOCKER_HUB_PASSWORD - OPR_EXECUTOR_ENV=$_APP_ENV - - OPR_EXECUTOR_RUNTIMES=$_APP_FUNCTIONS_RUNTIMES + - OPR_EXECUTOR_RUNTIMES=$_APP_FUNCTIONS_RUNTIMES,$_APP_SITES_RUNTIMES - OPR_EXECUTOR_SECRET=$_APP_EXECUTOR_SECRET + - OPR_EXECUTOR_RUNTIME_VERSIONS=v5 - OPR_EXECUTOR_LOGGING_CONFIG=$_APP_LOGGING_CONFIG - OPR_EXECUTOR_STORAGE_DEVICE=$_APP_STORAGE_DEVICE - OPR_EXECUTOR_STORAGE_S3_ACCESS_KEY=$_APP_STORAGE_S3_ACCESS_KEY - OPR_EXECUTOR_STORAGE_S3_SECRET=$_APP_STORAGE_S3_SECRET - OPR_EXECUTOR_STORAGE_S3_REGION=$_APP_STORAGE_S3_REGION - OPR_EXECUTOR_STORAGE_S3_BUCKET=$_APP_STORAGE_S3_BUCKET + - OPR_EXECUTOR_STORAGE_S3_ENDPOINT=$_APP_STORAGE_S3_ENDPOINT - OPR_EXECUTOR_STORAGE_DO_SPACES_ACCESS_KEY=$_APP_STORAGE_DO_SPACES_ACCESS_KEY - OPR_EXECUTOR_STORAGE_DO_SPACES_SECRET=$_APP_STORAGE_DO_SPACES_SECRET - OPR_EXECUTOR_STORAGE_DO_SPACES_REGION=$_APP_STORAGE_DO_SPACES_REGION @@ -886,7 +966,9 @@ volumes: appwrite-redis: appwrite-cache: appwrite-uploads: + appwrite-imports: appwrite-certificates: appwrite-functions: + appwrite-sites: appwrite-builds: appwrite-config: diff --git a/app/worker.php b/app/worker.php index 9bcdae78e62..dfa645478b8 100644 --- a/app/worker.php +++ b/app/worker.php @@ -2,6 +2,7 @@ require_once __DIR__ . '/init.php'; +use Appwrite\Certificates\LetsEncrypt; use Appwrite\Event\Audit; use Appwrite\Event\Build; use Appwrite\Event\Certificate; @@ -12,11 +13,13 @@ use Appwrite\Event\Mail; use Appwrite\Event\Messaging; use Appwrite\Event\Migration; -use Appwrite\Event\Usage; -use Appwrite\Event\UsageDump; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; use Appwrite\Platform\Appwrite; +use Executor\Executor; use Swoole\Runtime; -use Utopia\App; +use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\Console; @@ -30,18 +33,21 @@ use Utopia\Logger\Logger; use Utopia\Platform\Service; use Utopia\Pools\Group; -use Utopia\Queue\Connection; use Utopia\Queue\Message; +use Utopia\Queue\Publisher; use Utopia\Queue\Server; use Utopia\Registry\Registry; +use Utopia\Storage\Device\Telemetry as TelemetryDevice; use Utopia\System\System; +use Utopia\Telemetry\Adapter as Telemetry; +use Utopia\Telemetry\Adapter\None as NoTelemetry; Authorization::disable(); Runtime::enableCoroutine(SWOOLE_HOOK_ALL); Server::setResource('register', fn () => $register); -Server::setResource('dbForConsole', function (Cache $cache, Registry $register) { +Server::setResource('dbForPlatform', function (Cache $cache, Registry $register) { $pools = $register->get('pools'); $database = $pools ->get('console') @@ -54,7 +60,7 @@ return $adapter; }, ['cache', 'register']); -Server::setResource('project', function (Message $message, Database $dbForConsole) { +Server::setResource('project', function (Message $message, Database $dbForPlatform) { $payload = $message->getPayload() ?? []; $project = new Document($payload['project'] ?? []); @@ -62,12 +68,12 @@ return $project; } - return $dbForConsole->getDocument('projects', $project->getId()); -}, ['message', 'dbForConsole']); + return $dbForPlatform->getDocument('projects', $project->getId()); +}, ['message', 'dbForPlatform']); -Server::setResource('dbForProject', function (Cache $cache, Registry $register, Message $message, Document $project, Database $dbForConsole) { +Server::setResource('dbForProject', function (Cache $cache, Registry $register, Message $message, Document $project, Database $dbForPlatform) { if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; + return $dbForPlatform; } $pools = $register->get('pools'); @@ -93,7 +99,9 @@ $dsn = new DSN('mysql://' . $project->getAttribute('database')); } - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -105,15 +113,17 @@ ->setNamespace('_' . $project->getInternalId()); } + $database->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER); + return $database; -}, ['cache', 'register', 'message', 'project', 'dbForConsole']); +}, ['cache', 'register', 'message', 'project', 'dbForPlatform']); -Server::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, $cache) { +Server::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, $cache) { $databases = []; // TODO: @Meldiron This should probably be responsibility of utopia-php/pools - return function (Document $project) use ($pools, $dbForConsole, $cache, &$databases): Database { + return function (Document $project) use ($pools, $dbForPlatform, $cache, &$databases): Database { if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; + return $dbForPlatform; } try { @@ -126,7 +136,9 @@ if (isset($databases[$dsn->getHost()])) { $database = $databases[$dsn->getHost()]; - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -150,7 +162,9 @@ $databases[$dsn->getHost()] = $database; - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -162,20 +176,58 @@ ->setNamespace('_' . $project->getInternalId()); } + $database->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER); + return $database; }; -}, ['pools', 'dbForConsole', 'cache']); +}, ['pools', 'dbForPlatform', 'cache']); + +Server::setResource('getLogsDB', function (Group $pools, Cache $cache) { + $database = null; + return function (?Document $project = null) use ($pools, $cache, $database) { + if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + return $database; + } + + $dbAdapter = $pools + ->get('logs') + ->pop() + ->getResource(); + + $database = new Database( + $dbAdapter, + $cache + ); + + $database + ->setSharedTables(true) + ->setNamespace('logsV1') + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + // set tenant + if ($project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + } + + return $database; + }; +}, ['pools', 'cache']); Server::setResource('abuseRetention', function () { - return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_ABUSE', 86400)); + return time() - (int) System::getEnv('_APP_MAINTENANCE_RETENTION_ABUSE', 86400); // 1 day }); -Server::setResource('auditRetention', function () { - return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT', 1209600)); -}); +Server::setResource('auditRetention', function (Document $project) { + if ($project->getId() === 'console') { + return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE', 15778800)); // 6 months + } + return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT', 1209600)); // 14 days +}, ['project']); Server::setResource('executionRetention', function () { - return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_EXECUTION', 1209600)); + return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_EXECUTION', 1209600)); // 14 days }); Server::setResource('cache', function (Registry $register) { @@ -194,59 +246,88 @@ return new Cache(new Sharding($adapters)); }, ['register']); -Server::setResource('log', fn () => new Log()); +Server::setResource('redis', function () { + $host = System::getEnv('_APP_REDIS_HOST', 'localhost'); + $port = System::getEnv('_APP_REDIS_PORT', 6379); + $pass = System::getEnv('_APP_REDIS_PASS', ''); -Server::setResource('queueForUsage', function (Connection $queue) { - return new Usage($queue); -}, ['queue']); + $redis = new \Redis(); + @$redis->pconnect($host, (int)$port); + if ($pass) { + $redis->auth($pass); + } + $redis->setOption(\Redis::OPT_READ_TIMEOUT, -1); -Server::setResource('queueForUsageDump', function (Connection $queue) { - return new UsageDump($queue); -}, ['queue']); + return $redis; +}); + +Server::setResource('timelimit', function (\Redis $redis) { + return function (string $key, int $limit, int $time) use ($redis) { + return new TimeLimitRedis($key, $limit, $time, $redis); + }; +}, ['redis']); -Server::setResource('queue', function (Group $pools) { - return $pools->get('queue')->pop()->getResource(); +Server::setResource('log', fn () => new Log()); + +Server::setResource('publisher', function (Group $pools) { + return $pools->get('publisher')->pop()->getResource(); }, ['pools']); -Server::setResource('queueForDatabase', function (Connection $queue) { - return new EventDatabase($queue); -}, ['queue']); +Server::setResource('consumer', function (Group $pools) { + return $pools->get('consumer')->pop()->getResource(); +}, ['pools']); + +Server::setResource('queueForStatsUsage', function (Publisher $publisher) { + return new StatsUsage($publisher); +}, ['publisher']); + +Server::setResource('queueForDatabase', function (Publisher $publisher) { + return new EventDatabase($publisher); +}, ['publisher']); -Server::setResource('queueForMessaging', function (Connection $queue) { - return new Messaging($queue); -}, ['queue']); +Server::setResource('queueForMessaging', function (Publisher $publisher) { + return new Messaging($publisher); +}, ['publisher']); -Server::setResource('queueForMails', function (Connection $queue) { - return new Mail($queue); -}, ['queue']); +Server::setResource('queueForMails', function (Publisher $publisher) { + return new Mail($publisher); +}, ['publisher']); -Server::setResource('queueForBuilds', function (Connection $queue) { - return new Build($queue); -}, ['queue']); +Server::setResource('queueForBuilds', function (Publisher $publisher) { + return new Build($publisher); +}, ['publisher']); -Server::setResource('queueForDeletes', function (Connection $queue) { - return new Delete($queue); -}, ['queue']); +Server::setResource('queueForDeletes', function (Publisher $publisher) { + return new Delete($publisher); +}, ['publisher']); -Server::setResource('queueForEvents', function (Connection $queue) { - return new Event($queue); -}, ['queue']); +Server::setResource('queueForEvents', function (Publisher $publisher) { + return new Event($publisher); +}, ['publisher']); -Server::setResource('queueForAudits', function (Connection $queue) { - return new Audit($queue); -}, ['queue']); +Server::setResource('queueForAudits', function (Publisher $publisher) { + return new Audit($publisher); +}, ['publisher']); -Server::setResource('queueForFunctions', function (Connection $queue) { - return new Func($queue); -}, ['queue']); +Server::setResource('queueForWebhooks', function (Publisher $publisher) { + return new Webhook($publisher); +}, ['publisher']); -Server::setResource('queueForCertificates', function (Connection $queue) { - return new Certificate($queue); -}, ['queue']); +Server::setResource('queueForFunctions', function (Publisher $publisher) { + return new Func($publisher); +}, ['publisher']); -Server::setResource('queueForMigrations', function (Connection $queue) { - return new Migration($queue); -}, ['queue']); +Server::setResource('queueForRealtime', function () { + return new Realtime(); +}, []); + +Server::setResource('queueForCertificates', function (Publisher $publisher) { + return new Certificate($publisher); +}, ['publisher']); + +Server::setResource('queueForMigrations', function (Publisher $publisher) { + return new Migration($publisher); +}, ['publisher']); Server::setResource('logger', function (Registry $register) { return $register->get('logger'); @@ -256,22 +337,96 @@ return $register->get('pools'); }, ['register']); -Server::setResource('deviceForFunctions', function (Document $project) { - return getDevice(APP_STORAGE_FUNCTIONS . '/app-' . $project->getId()); -}, ['project']); +Server::setResource('telemetry', fn () => new NoTelemetry()); -Server::setResource('deviceForFiles', function (Document $project) { - return getDevice(APP_STORAGE_UPLOADS . '/app-' . $project->getId()); -}, ['project']); +Server::setResource('deviceForSites', function (Document $project, Telemetry $telemetry) { + return new TelemetryDevice($telemetry, getDevice(APP_STORAGE_SITES . '/app-' . $project->getId())); +}, ['project', 'telemetry']); -Server::setResource('deviceForBuilds', function (Document $project) { - return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId()); -}, ['project']); +Server::setResource('deviceForImports', function (Document $project, Telemetry $telemetry) { + return new TelemetryDevice($telemetry, getDevice(APP_STORAGE_IMPORTS . '/app-' . $project->getId())); +}, ['project', 'telemetry']); -Server::setResource('deviceForCache', function (Document $project) { - return getDevice(APP_STORAGE_CACHE . '/app-' . $project->getId()); -}, ['project']); +Server::setResource('deviceForFunctions', function (Document $project, Telemetry $telemetry) { + return new TelemetryDevice($telemetry, getDevice(APP_STORAGE_FUNCTIONS . '/app-' . $project->getId())); +}, ['project', 'telemetry']); + +Server::setResource('deviceForFiles', function (Document $project, Telemetry $telemetry) { + return new TelemetryDevice($telemetry, getDevice(APP_STORAGE_UPLOADS . '/app-' . $project->getId())); +}, ['project', 'telemetry']); + +Server::setResource('deviceForBuilds', function (Document $project, Telemetry $telemetry) { + return new TelemetryDevice($telemetry, getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId())); +}, ['project', 'telemetry']); + +Server::setResource('deviceForCache', function (Document $project, Telemetry $telemetry) { + return new TelemetryDevice($telemetry, getDevice(APP_STORAGE_CACHE . '/app-' . $project->getId())); +}, ['project', 'telemetry']); + +Server::setResource( + 'isResourceBlocked', + fn () => fn (Document $project, string $resourceType, ?string $resourceId) => false +); + +Server::setResource('plan', function (array $plan = []) { + return []; +}); + +Server::setResource('certificates', function () { + $email = System::getEnv('_APP_EMAIL_CERTIFICATES', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS')); + if (empty($email)) { + throw new Exception('You must set a valid security email address (_APP_EMAIL_CERTIFICATES) to issue a LetsEncrypt SSL certificate.'); + } + return new LetsEncrypt($email); +}); + +Server::setResource('logError', function (Registry $register, Document $project) { + return function (Throwable $error, string $namespace, string $action, ?array $extras = null) use ($register, $project) { + $logger = $register->get('logger'); + + if ($logger) { + $version = System::getEnv('_APP_VERSION', 'UNKNOWN'); + + $log = new Log(); + $log->setNamespace($namespace); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); + $log->setVersion($version); + $log->setType(Log::TYPE_ERROR); + $log->setMessage($error->getMessage()); + + $log->addTag('code', $error->getCode()); + $log->addTag('verboseType', get_class($error)); + $log->addTag('projectId', $project->getId() ?? ''); + + $log->addExtra('file', $error->getFile()); + $log->addExtra('line', $error->getLine()); + $log->addExtra('trace', $error->getTraceAsString()); + + + foreach (($extras ?? []) as $key => $value) { + $log->addExtra($key, $value); + } + + $log->setAction($action); + + $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; + $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); + + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } + } + + Console::warning("Failed: {$error->getMessage()}"); + Console::warning($error->getTraceAsString()); + }; +}, ['register', 'project']); + +Server::setResource('executor', fn () => new Executor(fn (string $projectId, string $deploymentId) => System::getEnv('_APP_EXECUTOR_HOST'))); $pools = $register->get('pools'); $platform = new Appwrite(); @@ -300,7 +455,7 @@ */ $platform->init(Service::TYPE_WORKER, [ 'workersNum' => System::getEnv('_APP_WORKERS_NUM', 1), - 'connection' => $pools->get('queue')->pop()->getResource(), + 'connection' => $pools->get('consumer')->pop()->getResource(), 'workerName' => strtolower($workerName) ?? null, 'queueName' => $queueName ]); @@ -330,7 +485,7 @@ if ($logger) { $log->setNamespace("appwrite-worker"); - $log->setServer(\gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($error->getMessage()); @@ -346,8 +501,12 @@ $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Usage stats log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } Console::error('[Error] Type: ' . get_class($error)); diff --git a/bin/screenshot b/bin/screenshot new file mode 100755 index 00000000000..4d8ceb998f1 --- /dev/null +++ b/bin/screenshot @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/cli.php screenshot $@ \ No newline at end of file diff --git a/bin/stats-resources b/bin/stats-resources new file mode 100644 index 00000000000..3104bab8961 --- /dev/null +++ b/bin/stats-resources @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/cli.php stats-resources $@ \ No newline at end of file diff --git a/bin/worker-stats-resources b/bin/worker-stats-resources new file mode 100644 index 00000000000..9c5d2bebfff --- /dev/null +++ b/bin/worker-stats-resources @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/worker.php stats-resources $@ \ No newline at end of file diff --git a/bin/worker-stats-usage b/bin/worker-stats-usage new file mode 100644 index 00000000000..2c267d805e6 --- /dev/null +++ b/bin/worker-stats-usage @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/worker.php stats-usage $@ \ No newline at end of file diff --git a/bin/worker-usage b/bin/worker-usage deleted file mode 100644 index e39ce8477ca..00000000000 --- a/bin/worker-usage +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -php /usr/src/code/app/worker.php usage $@ \ No newline at end of file diff --git a/bin/worker-usage-dump b/bin/worker-usage-dump deleted file mode 100644 index 43ca87fcb38..00000000000 --- a/bin/worker-usage-dump +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -php /usr/src/code/app/worker.php usage-dump $@ \ No newline at end of file diff --git a/composer.json b/composer.json index d572d502a78..d9109f40f89 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,8 @@ "test": "vendor/bin/phpunit", "lint": "vendor/bin/pint --test", "format": "vendor/bin/pint", - "bench": "vendor/bin/phpbench run --report=benchmark" + "bench": "vendor/bin/phpbench run --report=benchmark", + "check": "./vendor/bin/phpstan analyse -c phpstan.neon" }, "autoload": { "psr-4": { @@ -30,7 +31,7 @@ } }, "require": { - "php": ">=8.0.0", + "php": ">=8.3.0", "ext-curl": "*", "ext-imagick": "*", "ext-mbstring": "*", @@ -43,35 +44,37 @@ "ext-openssl": "*", "ext-zlib": "*", "ext-sockets": "*", - "appwrite/php-runtimes": "0.15.*", + "appwrite/php-runtimes": "0.19.*", "appwrite/php-clamav": "2.0.*", - "utopia-php/abuse": "0.42.0", + "utopia-php/abuse": "0.52.*", "utopia-php/analytics": "0.10.*", - "utopia-php/audit": "0.42.0", - "utopia-php/cache": "0.10.*", + "utopia-php/audit": "0.55.*", + "utopia-php/cache": "0.13.*", "utopia-php/cli": "0.15.*", "utopia-php/config": "0.2.*", - "utopia-php/database": "0.52.*", + "utopia-php/detector": "0.1.*", + "utopia-php/database": "0.69.*", "utopia-php/domains": "0.5.*", "utopia-php/dsn": "0.2.1", "utopia-php/framework": "0.33.*", - "utopia-php/fetch": "0.2.*", - "utopia-php/image": "0.6.*", + "utopia-php/fetch": "0.4.*", + "utopia-php/image": "0.8.*", "utopia-php/locale": "0.4.*", "utopia-php/logger": "0.6.*", - "utopia-php/messaging": "0.12.*", - "utopia-php/migration": "0.5.*", + "utopia-php/messaging": "0.17.*", + "utopia-php/migration": "0.9.*", "utopia-php/orchestration": "0.9.*", "utopia-php/platform": "0.7.*", - "utopia-php/pools": "0.5.*", + "utopia-php/pools": "0.8.*", "utopia-php/preloader": "0.2.*", - "utopia-php/queue": "0.7.*", + "utopia-php/queue": "0.9.*", "utopia-php/registry": "0.5.*", "utopia-php/storage": "0.18.*", "utopia-php/swoole": "0.8.*", - "utopia-php/system": "0.8.*", - "utopia-php/vcs": "0.8.*", - "utopia-php/websocket": "0.1.*", + "utopia-php/system": "0.9.*", + "utopia-php/telemetry": "0.1.*", + "utopia-php/vcs": "0.10.*", + "utopia-php/websocket": "0.3.*", "matomo/device-detector": "6.1.*", "dragonmantank/cron-expression": "3.3.2", "phpmailer/phpmailer": "6.9.1", @@ -83,12 +86,13 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "0.39.*", - "phpunit/phpunit": "9.5.20", + "appwrite/sdk-generator": "0.40.*", + "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", - "textalk/websocket": "1.5.7", - "laravel/pint": "^1.14", - "phpbench/phpbench": "^1.2" + "phpstan/phpstan": "1.8.*", + "textalk/websocket": "1.5.*", + "laravel/pint": "1.*", + "phpbench/phpbench": "1.*" }, "provide": { "ext-phpiredis": "*" @@ -96,6 +100,10 @@ "config": { "platform": { "php": "8.3" + }, + "allow-plugins": { + "php-http/discovery": true, + "tbachert/spi": true } } } diff --git a/composer.lock b/composer.lock index 9aa794d36ed..a495c500347 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "eba741eab8bb748ed684c32711d472df", + "content-hash": "735023e2b70ce47fe65985f195b257bd", "packages": [ { "name": "adhocore/jwt", @@ -65,16 +65,16 @@ }, { "name": "appwrite/appwrite", - "version": "10.1.0", + "version": "11.1.0", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-for-php.git", - "reference": "da579af70723cfc117b5af84375bdef117e27312" + "reference": "1d043f543acdb17b9fdb440b1b2dd208e400bad3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/da579af70723cfc117b5af84375bdef117e27312", - "reference": "da579af70723cfc117b5af84375bdef117e27312", + "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/1d043f543acdb17b9fdb440b1b2dd208e400bad3", + "reference": "1d043f543acdb17b9fdb440b1b2dd208e400bad3", "shasum": "" }, "require": { @@ -83,7 +83,8 @@ "php": ">=7.1.0" }, "require-dev": { - "phpunit/phpunit": "3.7.35" + "mockery/mockery": "^1.6.6", + "phpunit/phpunit": "^10" }, "type": "library", "autoload": { @@ -99,10 +100,10 @@ "support": { "email": "team@appwrite.io", "issues": "https://github.com/appwrite/sdk-for-php/issues", - "source": "https://github.com/appwrite/sdk-for-php/tree/10.1.0", + "source": "https://github.com/appwrite/sdk-for-php/tree/11.1.0", "url": "https://appwrite.io/support" }, - "time": "2023-11-20T09:56:12+00:00" + "time": "2024-06-26T07:03:23+00:00" }, { "name": "appwrite/php-clamav", @@ -156,21 +157,21 @@ }, { "name": "appwrite/php-runtimes", - "version": "0.15.0", + "version": "0.19.0", "source": { "type": "git", "url": "https://github.com/appwrite/runtimes.git", - "reference": "68ea5bcc24c513a6d641ddf9412bbab13e5dfb94" + "reference": "8d21483efc19b9d977e323188989ee67a188464b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/runtimes/zipball/68ea5bcc24c513a6d641ddf9412bbab13e5dfb94", - "reference": "68ea5bcc24c513a6d641ddf9412bbab13e5dfb94", + "url": "https://api.github.com/repos/appwrite/runtimes/zipball/8d21483efc19b9d977e323188989ee67a188464b", + "reference": "8d21483efc19b9d977e323188989ee67a188464b", "shasum": "" }, "require": { "php": ">=8.0", - "utopia-php/system": "0.8.*" + "utopia-php/system": "0.9.*" }, "require-dev": { "laravel/pint": "^1.15", @@ -205,22 +206,22 @@ ], "support": { "issues": "https://github.com/appwrite/runtimes/issues", - "source": "https://github.com/appwrite/runtimes/tree/0.15.0" + "source": "https://github.com/appwrite/runtimes/tree/0.19.0" }, - "time": "2024-08-21T10:23:45+00:00" + "time": "2025-03-25T22:37:51+00:00" }, { "name": "beberlei/assert", - "version": "v3.3.2", + "version": "v3.3.3", "source": { "type": "git", "url": "https://github.com/beberlei/assert.git", - "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655" + "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655", - "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655", + "url": "https://api.github.com/repos/beberlei/assert/zipball/b5fd8eacd8915a1b627b8bfc027803f1939734dd", + "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd", "shasum": "" }, "require": { @@ -228,7 +229,7 @@ "ext-json": "*", "ext-mbstring": "*", "ext-simplexml": "*", - "php": "^7.0 || ^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "*", @@ -272,9 +273,69 @@ ], "support": { "issues": "https://github.com/beberlei/assert/issues", - "source": "https://github.com/beberlei/assert/tree/v3.3.2" + "source": "https://github.com/beberlei/assert/tree/v3.3.3" + }, + "time": "2024-07-15T13:18:35+00:00" + }, + { + "name": "brick/math", + "version": "0.12.3", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "866551da34e9a618e64a819ee1e01c20d8a588ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/866551da34e9a618e64a819ee1e01c20d8a588ba", + "reference": "866551da34e9a618e64a819ee1e01c20d8a588ba", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "6.8.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "bignumber", + "brick", + "decimal", + "integer", + "math", + "mathematics", + "rational" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.12.3" }, - "time": "2021-12-16T21:41:27+00:00" + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2025-02-28T13:11:00+00:00" }, { "name": "chillerlan/php-qrcode", @@ -421,6 +482,87 @@ ], "time": "2024-07-17T01:04:28+00:00" }, + { + "name": "composer/semver", + "version": "3.4.3", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-09-19T14:15:21+00:00" + }, { "name": "dragonmantank/cron-expression", "version": "v3.3.2", @@ -566,63 +708,48 @@ "time": "2024-05-03T06:31:11+00:00" }, { - "name": "jean85/pretty-package-versions", - "version": "2.0.6", + "name": "google/protobuf", + "version": "v4.31.0", "source": { "type": "git", - "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4" + "url": "https://github.com/protocolbuffers/protobuf-php.git", + "reference": "d59e31ce4bf0e4b48728e90c4d880839edb5be07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/f9fdd29ad8e6d024f52678b570e5593759b550b4", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/d59e31ce4bf0e4b48728e90c4d880839edb5be07", + "reference": "d59e31ce4bf0e4b48728e90c4d880839edb5be07", "shasum": "" }, "require": { - "composer-runtime-api": "^2.0.0", - "php": "^7.1|^8.0" + "php": ">=7.0.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.2", - "jean85/composer-provided-replaced-stub-package": "^1.0", - "phpstan/phpstan": "^1.4", - "phpunit/phpunit": "^7.5|^8.5|^9.4", - "vimeo/psalm": "^4.3" + "phpunit/phpunit": ">=5.0.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } + "suggest": { + "ext-bcmath": "Need to support JSON deserialization" }, + "type": "library", "autoload": { "psr-4": { - "Jean85\\": "src/" + "Google\\Protobuf\\": "src/Google/Protobuf", + "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" - ], - "authors": [ - { - "name": "Alessandro Lai", - "email": "alessandro.lai85@gmail.com" - } + "BSD-3-Clause" ], - "description": "A library to get pretty versions strings of installed dependencies", + "description": "proto library for PHP", + "homepage": "https://developers.google.com/protocol-buffers/", "keywords": [ - "composer", - "package", - "release", - "versions" + "proto" ], "support": { - "issues": "https://github.com/Jean85/pretty-package-versions/issues", - "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.6" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.31.0" }, - "time": "2024-03-08T09:58:59+00:00" + "time": "2025-05-14T16:17:23+00:00" }, { "name": "league/csv", @@ -782,75 +909,6 @@ }, "time": "2023-10-02T10:01:54+00:00" }, - { - "name": "mongodb/mongodb", - "version": "1.10.0", - "source": { - "type": "git", - "url": "https://github.com/mongodb/mongo-php-library.git", - "reference": "b0bbd657f84219212487d01a8ffe93a789e1e488" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/b0bbd657f84219212487d01a8ffe93a789e1e488", - "reference": "b0bbd657f84219212487d01a8ffe93a789e1e488", - "shasum": "" - }, - "require": { - "ext-hash": "*", - "ext-json": "*", - "ext-mongodb": "^1.11.0", - "jean85/pretty-package-versions": "^1.2 || ^2.0.1", - "php": "^7.1 || ^8.0", - "symfony/polyfill-php80": "^1.19" - }, - "require-dev": { - "doctrine/coding-standard": "^9.0", - "squizlabs/php_codesniffer": "^3.6", - "symfony/phpunit-bridge": "^5.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10.x-dev" - } - }, - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "MongoDB\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Andreas Braun", - "email": "andreas.braun@mongodb.com" - }, - { - "name": "Jeremy Mikola", - "email": "jmikola@gmail.com" - } - ], - "description": "MongoDB driver library", - "homepage": "https://jira.mongodb.org/browse/PHPLIB", - "keywords": [ - "database", - "driver", - "mongodb", - "persistence" - ], - "support": { - "issues": "https://github.com/mongodb/mongo-php-library/issues", - "source": "https://github.com/mongodb/mongo-php-library/tree/1.10.0" - }, - "time": "2021-10-20T22:22:37+00:00" - }, { "name": "mustangostang/spyc", "version": "0.6.3", @@ -906,30 +964,45 @@ "time": "2019-09-10T13:16:29+00:00" }, { - "name": "paragonie/constant_time_encoding", - "version": "v2.7.0", + "name": "nyholm/psr7", + "version": "1.8.2", "source": { "type": "git", - "url": "https://github.com/paragonie/constant_time_encoding.git", - "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105" + "url": "https://github.com/Nyholm/psr7.git", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/52a0d99e69f56b9ec27ace92ba56897fe6993105", - "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3", "shasum": "" }, "require": { - "php": "^7|^8" + "php": ">=7.2", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" }, "require-dev": { - "phpunit/phpunit": "^6|^7|^8|^9", - "vimeo/psalm": "^1|^2|^3|^4" + "http-interop/http-factory-tests": "^0.9", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "symfony/error-handler": "^4.4" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, "autoload": { "psr-4": { - "ParagonIE\\ConstantTime\\": "src/" + "Nyholm\\Psr7\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -938,139 +1011,1422 @@ ], "authors": [ { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com", - "role": "Maintainer" + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" }, { - "name": "Steve 'Sc00bz' Thomas", - "email": "steve@tobtu.com", - "homepage": "https://www.tobtu.com", - "role": "Original Developer" + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" } ], - "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "description": "A fast PHP7 implementation of PSR-7", + "homepage": "https://tnyholm.se", "keywords": [ - "base16", - "base32", - "base32_decode", - "base32_encode", - "base64", - "base64_decode", - "base64_encode", - "bin2hex", - "encoding", - "hex", - "hex2bin", - "rfc4648" + "psr-17", + "psr-7" ], "support": { - "email": "info@paragonie.com", - "issues": "https://github.com/paragonie/constant_time_encoding/issues", - "source": "https://github.com/paragonie/constant_time_encoding" + "issues": "https://github.com/Nyholm/psr7/issues", + "source": "https://github.com/Nyholm/psr7/tree/1.8.2" }, - "time": "2024-05-08T12:18:48+00:00" + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "time": "2024-09-09T07:06:30+00:00" }, { - "name": "phpmailer/phpmailer", - "version": "v6.9.1", + "name": "nyholm/psr7-server", + "version": "1.1.0", "source": { "type": "git", - "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" + "url": "https://github.com/Nyholm/psr7-server.git", + "reference": "4335801d851f554ca43fa6e7d2602141538854dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", - "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", + "url": "https://api.github.com/repos/Nyholm/psr7-server/zipball/4335801d851f554ca43fa6e7d2602141538854dc", + "reference": "4335801d851f554ca43fa6e7d2602141538854dc", "shasum": "" }, "require": { - "ext-ctype": "*", - "ext-filter": "*", - "ext-hash": "*", - "php": ">=5.5.0" + "php": "^7.1 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0 || ^2.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "doctrine/annotations": "^1.2.6 || ^1.13.3", - "php-parallel-lint/php-console-highlighter": "^1.0.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", - "phpcompatibility/php-compatibility": "^9.3.5", - "roave/security-advisories": "dev-latest", - "squizlabs/php_codesniffer": "^3.7.2", - "yoast/phpunit-polyfills": "^1.0.4" - }, - "suggest": { - "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", - "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", - "ext-openssl": "Needed for secure SMTP sending and DKIM signing", - "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", - "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", - "league/oauth2-google": "Needed for Google XOAUTH2 authentication", - "psr/log": "For optional PSR-3 debug logging", - "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", - "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + "nyholm/nsa": "^1.1", + "nyholm/psr7": "^1.3", + "phpunit/phpunit": "^7.0 || ^8.5 || ^9.3" }, "type": "library", "autoload": { "psr-4": { - "PHPMailer\\PHPMailer\\": "src/" + "Nyholm\\Psr7Server\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "LGPL-2.1-only" + "MIT" ], "authors": [ { - "name": "Marcus Bointon", - "email": "phpmailer@synchromedia.co.uk" - }, - { - "name": "Jim Jagielski", - "email": "jimjag@gmail.com" - }, - { - "name": "Andy Prevost", - "email": "codeworxtech@users.sourceforge.net" + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" }, { - "name": "Brent R. Matzelle" + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" } ], - "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "description": "Helper classes to handle PSR-7 server requests", + "homepage": "http://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], "support": { - "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" + "issues": "https://github.com/Nyholm/psr7-server/issues", + "source": "https://github.com/Nyholm/psr7-server/tree/1.1.0" }, "funding": [ { - "url": "https://github.com/Synchro", + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", "type": "github" } ], - "time": "2023-11-25T22:23:28+00:00" + "time": "2023-11-08T09:30:43+00:00" }, { - "name": "spomky-labs/otphp", - "version": "v10.0.3", + "name": "open-telemetry/api", + "version": "1.3.0", "source": { "type": "git", - "url": "https://github.com/Spomky-Labs/otphp.git", - "reference": "9784d9f7c790eed26e102d6c78f12c754036c366" + "url": "https://github.com/opentelemetry-php/api.git", + "reference": "4e3bb38e069876fb73c2ce85c89583bf2b28cd86" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/9784d9f7c790eed26e102d6c78f12c754036c366", - "reference": "9784d9f7c790eed26e102d6c78f12c754036c366", + "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/4e3bb38e069876fb73c2ce85c89583bf2b28cd86", + "reference": "4e3bb38e069876fb73c2ce85c89583bf2b28cd86", "shasum": "" }, "require": { - "beberlei/assert": "^3.0", - "ext-mbstring": "*", - "paragonie/constant_time_encoding": "^2.0", + "open-telemetry/context": "^1.0", + "php": "^8.1", + "psr/log": "^1.1|^2.0|^3.0", + "symfony/polyfill-php82": "^1.26" + }, + "conflict": { + "open-telemetry/sdk": "<=1.0.8" + }, + "type": "library", + "extra": { + "spi": { + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface": [ + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\ExtensionHookManager" + ] + }, + "branch-alias": { + "dev-main": "1.1.x-dev" + } + }, + "autoload": { + "files": [ + "Trace/functions.php" + ], + "psr-4": { + "OpenTelemetry\\API\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "API for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "api", + "apm", + "logging", + "opentelemetry", + "otel", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-07T12:32:21+00:00" + }, + { + "name": "open-telemetry/context", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/context.git", + "reference": "1eb2b837ee9362db064a6b65d5ecce15a9f9f020" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/context/zipball/1eb2b837ee9362db064a6b65d5ecce15a9f9f020", + "reference": "1eb2b837ee9362db064a6b65d5ecce15a9f9f020", + "shasum": "" + }, + "require": { + "php": "^8.1", + "symfony/polyfill-php82": "^1.26" + }, + "suggest": { + "ext-ffi": "To allow context switching in Fibers" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.0.x-dev" + } + }, + "autoload": { + "files": [ + "fiber/initialize_fiber_handler.php" + ], + "psr-4": { + "OpenTelemetry\\Context\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "Context implementation for OpenTelemetry PHP.", + "keywords": [ + "Context", + "opentelemetry", + "otel" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-07T23:36:50+00:00" + }, + { + "name": "open-telemetry/exporter-otlp", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/exporter-otlp.git", + "reference": "19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c", + "reference": "19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c", + "shasum": "" + }, + "require": { + "open-telemetry/api": "^1.0", + "open-telemetry/gen-otlp-protobuf": "^1.1", + "open-telemetry/sdk": "^1.0", + "php": "^8.1", + "php-http/discovery": "^1.14" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.0.x-dev" + } + }, + "autoload": { + "files": [ + "_register.php" + ], + "psr-4": { + "OpenTelemetry\\Contrib\\Otlp\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "OTLP exporter for OpenTelemetry.", + "keywords": [ + "Metrics", + "exporter", + "gRPC", + "http", + "opentelemetry", + "otel", + "otlp", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-12T00:36:35+00:00" + }, + { + "name": "open-telemetry/gen-otlp-protobuf", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/gen-otlp-protobuf.git", + "reference": "585bafddd4ae6565de154610b10a787a455c9ba0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/gen-otlp-protobuf/zipball/585bafddd4ae6565de154610b10a787a455c9ba0", + "reference": "585bafddd4ae6565de154610b10a787a455c9ba0", + "shasum": "" + }, + "require": { + "google/protobuf": "^3.22 || ^4.0", + "php": "^8.0" + }, + "suggest": { + "ext-protobuf": "For better performance, when dealing with the protobuf format" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Opentelemetry\\Proto\\": "Opentelemetry/Proto/", + "GPBMetadata\\Opentelemetry\\": "GPBMetadata/Opentelemetry/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "PHP protobuf files for communication with OpenTelemetry OTLP collectors/servers.", + "keywords": [ + "Metrics", + "apm", + "gRPC", + "logging", + "opentelemetry", + "otel", + "otlp", + "protobuf", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-01-15T23:07:07+00:00" + }, + { + "name": "open-telemetry/sdk", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/sdk.git", + "reference": "939d3a28395c249a763676458140dad44b3a8011" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/939d3a28395c249a763676458140dad44b3a8011", + "reference": "939d3a28395c249a763676458140dad44b3a8011", + "shasum": "" + }, + "require": { + "ext-json": "*", + "nyholm/psr7-server": "^1.1", + "open-telemetry/api": "~1.0 || ~1.1", + "open-telemetry/context": "^1.0", + "open-telemetry/sem-conv": "^1.0", + "php": "^8.1", + "php-http/discovery": "^1.14", + "psr/http-client": "^1.0", + "psr/http-client-implementation": "^1.0", + "psr/http-factory-implementation": "^1.0", + "psr/http-message": "^1.0.1|^2.0", + "psr/log": "^1.1|^2.0|^3.0", + "ramsey/uuid": "^3.0 || ^4.0", + "symfony/polyfill-mbstring": "^1.23", + "symfony/polyfill-php82": "^1.26", + "tbachert/spi": "^1.0.1" + }, + "suggest": { + "ext-gmp": "To support unlimited number of synchronous metric readers", + "ext-mbstring": "To increase performance of string operations", + "open-telemetry/sdk-configuration": "File-based OpenTelemetry SDK configuration" + }, + "type": "library", + "extra": { + "spi": { + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface": [ + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\ExtensionHookManager" + ] + }, + "branch-alias": { + "dev-main": "1.0.x-dev" + } + }, + "autoload": { + "files": [ + "Common/Util/functions.php", + "Logs/Exporter/_register.php", + "Metrics/MetricExporter/_register.php", + "Propagation/_register.php", + "Trace/SpanExporter/_register.php", + "Common/Dev/Compatibility/_load.php", + "_autoload.php" + ], + "psr-4": { + "OpenTelemetry\\SDK\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "SDK for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "apm", + "logging", + "opentelemetry", + "otel", + "sdk", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-07T12:32:21+00:00" + }, + { + "name": "open-telemetry/sem-conv", + "version": "1.32.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/sem-conv.git", + "reference": "16585cc0dbc3032a318e274043454679430d2ebf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/16585cc0dbc3032a318e274043454679430d2ebf", + "reference": "16585cc0dbc3032a318e274043454679430d2ebf", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "OpenTelemetry\\SemConv\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "Semantic conventions for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "apm", + "logging", + "opentelemetry", + "otel", + "semantic conventions", + "semconv", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-05T03:58:53+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v2.7.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/52a0d99e69f56b9ec27ace92ba56897fe6993105", + "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105", + "shasum": "" + }, + "require": { + "php": "^7|^8" + }, + "require-dev": { + "phpunit/phpunit": "^6|^7|^8|^9", + "vimeo/psalm": "^1|^2|^3|^4" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2024-05-08T12:18:48+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00" + }, + { + "name": "php-amqplib/php-amqplib", + "version": "v3.7.3", + "source": { + "type": "git", + "url": "https://github.com/php-amqplib/php-amqplib.git", + "reference": "9f50fe69a9f1a19e2cb25596a354d705de36fe59" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-amqplib/php-amqplib/zipball/9f50fe69a9f1a19e2cb25596a354d705de36fe59", + "reference": "9f50fe69a9f1a19e2cb25596a354d705de36fe59", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-sockets": "*", + "php": "^7.2||^8.0", + "phpseclib/phpseclib": "^2.0|^3.0" + }, + "conflict": { + "php": "7.4.0 - 7.4.1" + }, + "replace": { + "videlalvaro/php-amqplib": "self.version" + }, + "require-dev": { + "ext-curl": "*", + "nategood/httpful": "^0.2.20", + "phpunit/phpunit": "^7.5|^9.5", + "squizlabs/php_codesniffer": "^3.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "PhpAmqpLib\\": "PhpAmqpLib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Alvaro Videla", + "role": "Original Maintainer" + }, + { + "name": "Raúl Araya", + "email": "nubeiro@gmail.com", + "role": "Maintainer" + }, + { + "name": "Luke Bakken", + "email": "luke@bakken.io", + "role": "Maintainer" + }, + { + "name": "Ramūnas Dronga", + "email": "github@ramuno.lt", + "role": "Maintainer" + } + ], + "description": "Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.", + "homepage": "https://github.com/php-amqplib/php-amqplib/", + "keywords": [ + "message", + "queue", + "rabbitmq" + ], + "support": { + "issues": "https://github.com/php-amqplib/php-amqplib/issues", + "source": "https://github.com/php-amqplib/php-amqplib/tree/v3.7.3" + }, + "time": "2025-02-18T20:11:13+00:00" + }, + { + "name": "php-http/discovery", + "version": "1.20.0", + "source": { + "type": "git", + "url": "https://github.com/php-http/discovery.git", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0|^2.0", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "nyholm/psr7": "<1.0", + "zendframework/zend-diactoros": "*" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "*", + "psr/http-factory-implementation": "*", + "psr/http-message-implementation": "*" + }, + "require-dev": { + "composer/composer": "^1.0.2|^2.0", + "graham-campbell/phpspec-skip-example-extension": "^5.0", + "php-http/httplug": "^1.0 || ^2.0", + "php-http/message-factory": "^1.0", + "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", + "sebastian/comparator": "^3.0.5 || ^4.0.8", + "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" + }, + "type": "composer-plugin", + "extra": { + "class": "Http\\Discovery\\Composer\\Plugin", + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Http\\Discovery\\": "src/" + }, + "exclude-from-classmap": [ + "src/Composer/Plugin.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" + } + ], + "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations", + "homepage": "http://php-http.org", + "keywords": [ + "adapter", + "client", + "discovery", + "factory", + "http", + "message", + "psr17", + "psr7" + ], + "support": { + "issues": "https://github.com/php-http/discovery/issues", + "source": "https://github.com/php-http/discovery/tree/1.20.0" + }, + "time": "2024-10-02T11:20:13+00:00" + }, + { + "name": "phpmailer/phpmailer", + "version": "v6.9.1", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.7.2", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2023-11-25T22:23:28+00:00" + }, + { + "name": "phpseclib/phpseclib", + "version": "3.0.43", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "709ec107af3cb2f385b9617be72af8cf62441d02" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/709ec107af3cb2f385b9617be72af8cf62441d02", + "reference": "709ec107af3cb2f385b9617be72af8cf62441d02", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1|^2|^3", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-dom": "Install the DOM extension to load XML formatted public keys.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib3\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "support": { + "issues": "https://github.com/phpseclib/phpseclib/issues", + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.43" + }, + "funding": [ + { + "url": "https://github.com/terrafrost", + "type": "github" + }, + { + "url": "https://www.patreon.com/phpseclib", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", + "type": "tidelift" + } + ], + "time": "2024-12-14T21:12:59+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.7.6", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.7.6" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2024-04-27T21:32:50+00:00" + }, + { + "name": "spomky-labs/otphp", + "version": "v10.0.3", + "source": { + "type": "git", + "url": "https://github.com/Spomky-Labs/otphp.git", + "reference": "9784d9f7c790eed26e102d6c78f12c754036c366" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/9784d9f7c790eed26e102d6c78f12c754036c366", + "reference": "9784d9f7c790eed26e102d6c78f12c754036c366", + "shasum": "" + }, + "require": { + "beberlei/assert": "^3.0", + "ext-mbstring": "*", + "paragonie/constant_time_encoding": "^2.0", "php": "^7.2|^8.0", "thecodingmachine/safe": "^0.1.14|^1.0|^2.0" }, @@ -1087,9 +2443,9 @@ "type": "library", "extra": { "branch-alias": { - "v10.0": "10.0.x-dev", + "v8.3": "8.3.x-dev", "v9.0": "9.0.x-dev", - "v8.3": "8.3.x-dev" + "v10.0": "10.0.x-dev" } }, "autoload": { @@ -1128,22 +2484,263 @@ }, "time": "2022-03-17T08:00:35+00:00" }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "symfony/http-client", + "version": "v7.2.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client.git", + "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client/zipball/78981a2ffef6437ed92d4d7e2a86a82f256c6dc6", + "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-client-contracts": "~3.4.4|^3.5.2", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "amphp/amp": "<2.5", + "php-http/discovery": "<1.15", + "symfony/http-foundation": "<6.4" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "1.0", + "symfony/http-client-implementation": "3.0" + }, + "require-dev": { + "amphp/http-client": "^4.2.1|^5.0", + "amphp/http-tunnel": "^1.0|^2.0", + "amphp/socket": "^1.1", + "guzzlehttp/promises": "^1.4|^2.0", + "nyholm/psr7": "^1.0", + "php-http/httplug": "^1.0|^2.0", + "psr/http-client": "^1.0", + "symfony/amphp-http-client-meta": "^1.0|^2.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/rate-limiter": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpClient\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", + "homepage": "https://symfony.com", + "keywords": [ + "http" + ], + "support": { + "source": "https://github.com/symfony/http-client/tree/v7.2.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-02-13T10:27:23+00:00" + }, + { + "name": "symfony/http-client-contracts", + "version": "v3.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client-contracts.git", + "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ee8d807ab20fcb51267fdace50fbe3494c31e645", + "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\HttpClient\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to HTTP clients", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/http-client-contracts/tree/v3.5.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-07T08:49:48+00:00" + }, { "name": "symfony/polyfill-mbstring", - "version": "v1.30.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", "shasum": "" }, "require": { - "php": ">=7.1" + "ext-iconv": "*", + "php": ">=7.2" }, "provide": { "ext-mbstring": "*" @@ -1154,8 +2751,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1180,17 +2777,93 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for the Mbstring extension", + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.32.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + }, + { + "name": "symfony/polyfill-php82", + "version": "v1.32.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php82.git", + "reference": "5d2ed36f7734637dacc025f179698031951b1692" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692", + "reference": "5d2ed36f7734637dacc025f179698031951b1692", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php82\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.2+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "mbstring", "polyfill", "portable", "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-php82/tree/v1.32.0" }, "funding": [ { @@ -1206,41 +2879,46 @@ "type": "tidelift" } ], - "time": "2024-06-19T12:30:46+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { - "name": "symfony/polyfill-php80", - "version": "v1.30.0", + "name": "symfony/service-contracts", + "version": "v3.5.1", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" }, "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" + "Symfony\\Contracts\\Service\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Test/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1248,10 +2926,6 @@ "MIT" ], "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, { "name": "Nicolas Grekas", "email": "p@tchwork.com" @@ -1261,16 +2935,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "description": "Generic abstractions related to writing services", "homepage": "https://symfony.com", "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" }, "funding": [ { @@ -1286,7 +2962,59 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "tbachert/spi", + "version": "v1.0.3", + "source": { + "type": "git", + "url": "https://github.com/Nevay/spi.git", + "reference": "506a79c98e1a51522e76ee921ccb6c62d52faf3a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nevay/spi/zipball/506a79c98e1a51522e76ee921ccb6c62d52faf3a", + "reference": "506a79c98e1a51522e76ee921ccb6c62d52faf3a", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "composer/semver": "^1.0 || ^2.0 || ^3.0", + "php": "^8.1" + }, + "require-dev": { + "composer/composer": "^2.0", + "infection/infection": "^0.27.9", + "phpunit/phpunit": "^10.5", + "psalm/phar": "^5.18" + }, + "type": "composer-plugin", + "extra": { + "class": "Nevay\\SPI\\Composer\\Plugin", + "branch-alias": { + "dev-main": "0.2.x-dev" + }, + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Nevay\\SPI\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Service provider loading facility", + "keywords": [ + "service provider" + ], + "support": { + "issues": "https://github.com/Nevay/spi/issues", + "source": "https://github.com/Nevay/spi/tree/v1.0.3" + }, + "time": "2025-04-02T19:38:14+00:00" }, { "name": "thecodingmachine/safe", @@ -1429,16 +3157,16 @@ }, { "name": "utopia-php/abuse", - "version": "0.42.0", + "version": "0.52.0", "source": { "type": "git", "url": "https://github.com/utopia-php/abuse.git", - "reference": "08cf17e7f4fd213966c8d8702e406f2269244f0f" + "reference": "a0d6421e7e5baa3ac02755496dca9fdeaa814b93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/abuse/zipball/08cf17e7f4fd213966c8d8702e406f2269244f0f", - "reference": "08cf17e7f4fd213966c8d8702e406f2269244f0f", + "url": "https://api.github.com/repos/utopia-php/abuse/zipball/a0d6421e7e5baa3ac02755496dca9fdeaa814b93", + "reference": "a0d6421e7e5baa3ac02755496dca9fdeaa814b93", "shasum": "" }, "require": { @@ -1446,13 +3174,13 @@ "ext-pdo": "*", "ext-redis": "*", "php": ">=8.0", - "utopia-php/database": "0.52.*" + "utopia-php/database": "0.*.*" }, "require-dev": { - "laravel/pint": "1.5.*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^9.4" + "laravel/pint": "1.*", + "phpbench/phpbench": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "9.*" }, "type": "library", "autoload": { @@ -1474,9 +3202,9 @@ ], "support": { "issues": "https://github.com/utopia-php/abuse/issues", - "source": "https://github.com/utopia-php/abuse/tree/0.42.0" + "source": "https://github.com/utopia-php/abuse/tree/0.52.0" }, - "time": "2024-08-21T08:24:01+00:00" + "time": "2025-03-06T03:48:29+00:00" }, { "name": "utopia-php/analytics", @@ -1526,26 +3254,26 @@ }, { "name": "utopia-php/audit", - "version": "0.42.0", + "version": "0.55.0", "source": { "type": "git", "url": "https://github.com/utopia-php/audit.git", - "reference": "9dc168470625bcf11ff8cd9ab5660db09129f618" + "reference": "9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/audit/zipball/9dc168470625bcf11ff8cd9ab5660db09129f618", - "reference": "9dc168470625bcf11ff8cd9ab5660db09129f618", + "url": "https://api.github.com/repos/utopia-php/audit/zipball/9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518", + "reference": "9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518", "shasum": "" }, "require": { "php": ">=8.0", - "utopia-php/database": "0.52.*" + "utopia-php/database": "0.*.*" }, "require-dev": { - "laravel/pint": "1.5.*", - "phpstan/phpstan": "^1.8", - "phpunit/phpunit": "^9.3" + "laravel/pint": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "9.*" }, "type": "library", "autoload": { @@ -1567,33 +3295,35 @@ ], "support": { "issues": "https://github.com/utopia-php/audit/issues", - "source": "https://github.com/utopia-php/audit/tree/0.42.0" + "source": "https://github.com/utopia-php/audit/tree/0.55.0" }, - "time": "2024-08-21T08:24:08+00:00" + "time": "2025-03-06T03:47:47+00:00" }, { "name": "utopia-php/cache", - "version": "0.10.2", + "version": "0.13.1", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "b22c6eb6d308de246b023efd0fc9758aee8b8247" + "reference": "97220cb3b3822b166ee016d1646e2ae2815dc540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/b22c6eb6d308de246b023efd0fc9758aee8b8247", - "reference": "b22c6eb6d308de246b023efd0fc9758aee8b8247", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/97220cb3b3822b166ee016d1646e2ae2815dc540", + "reference": "97220cb3b3822b166ee016d1646e2ae2815dc540", "shasum": "" }, "require": { "ext-json": "*", "ext-memcached": "*", "ext-redis": "*", - "php": ">=8.0" + "php": ">=8.0", + "utopia-php/pools": "0.8.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.9.x-dev", + "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^9.3", "vimeo/psalm": "4.13.1" }, @@ -1617,22 +3347,22 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/0.10.2" + "source": "https://github.com/utopia-php/cache/tree/0.13.1" }, - "time": "2024-06-25T20:36:35+00:00" + "time": "2025-05-09T14:43:52+00:00" }, { "name": "utopia-php/cli", - "version": "0.15.0", + "version": "0.15.2", "source": { "type": "git", "url": "https://github.com/utopia-php/cli.git", - "reference": "ccb7c8125ffe0254fef8f25744bfa376eb7bd0ea" + "reference": "da00ff6b8b29a826a1794002ae43442cdf3a0f5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/ccb7c8125ffe0254fef8f25744bfa376eb7bd0ea", - "reference": "ccb7c8125ffe0254fef8f25744bfa376eb7bd0ea", + "url": "https://api.github.com/repos/utopia-php/cli/zipball/da00ff6b8b29a826a1794002ae43442cdf3a0f5f", + "reference": "da00ff6b8b29a826a1794002ae43442cdf3a0f5f", "shasum": "" }, "require": { @@ -1666,9 +3396,55 @@ ], "support": { "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.15.0" + "source": "https://github.com/utopia-php/cli/tree/0.15.2" + }, + "time": "2025-04-15T10:08:48+00:00" + }, + { + "name": "utopia-php/compression", + "version": "0.1.3", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/compression.git", + "reference": "66f093557ba66d98245e562036182016c7dcfe8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/compression/zipball/66f093557ba66d98245e562036182016c7dcfe8a", + "reference": "66f093557ba66d98245e562036182016c7dcfe8a", + "shasum": "" + }, + "require": { + "php": ">=8.0" + }, + "require-dev": { + "laravel/pint": "1.2.*", + "phpunit/phpunit": "^9.3", + "vimeo/psalm": "4.0.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Compression\\": "src/Compression" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A simple Compression library to handle file compression", + "keywords": [ + "compression", + "framework", + "php", + "upf", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/compression/issues", + "source": "https://github.com/utopia-php/compression/tree/0.1.3" }, - "time": "2023-03-01T05:55:14+00:00" + "time": "2025-01-15T15:15:51+00:00" }, { "name": "utopia-php/config", @@ -1723,32 +3499,32 @@ }, { "name": "utopia-php/database", - "version": "0.52.1", + "version": "0.69.5", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "d22a316a010699c5ebb4768c1020167c192b9c6b" + "reference": "4abe53609dfc23b2ea82884d12b149df6a8af2f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/d22a316a010699c5ebb4768c1020167c192b9c6b", - "reference": "d22a316a010699c5ebb4768c1020167c192b9c6b", + "url": "https://api.github.com/repos/utopia-php/database/zipball/4abe53609dfc23b2ea82884d12b149df6a8af2f5", + "reference": "4abe53609dfc23b2ea82884d12b149df6a8af2f5", "shasum": "" }, "require": { "ext-mbstring": "*", "ext-pdo": "*", - "php": ">=8.0", - "utopia-php/cache": "0.10.*", + "php": ">=8.1", + "utopia-php/cache": "0.13.*", "utopia-php/framework": "0.33.*", - "utopia-php/mongo": "0.3.*" + "utopia-php/pools": "0.8.*" }, "require-dev": { "fakerphp/faker": "1.23.*", - "laravel/pint": "1.17.*", - "pcov/clobber": "2.0.*", - "phpstan/phpstan": "1.11.*", - "phpunit/phpunit": "9.6.*", + "laravel/pint": "1.*", + "pcov/clobber": "2.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "9.*", "rregeer/phpunit-coverage-check": "0.3.*", "swoole/ide-helper": "5.1.3", "utopia-php/cli": "0.14.*" @@ -1773,9 +3549,54 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.52.1" + "source": "https://github.com/utopia-php/database/tree/0.69.5" + }, + "time": "2025-05-17T08:01:51+00:00" + }, + { + "name": "utopia-php/detector", + "version": "0.1.4", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/detector.git", + "reference": "895a4147463965b5f9cbc083b764b6476f547879" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/detector/zipball/895a4147463965b5f9cbc083b764b6476f547879", + "reference": "895a4147463965b5f9cbc083b764b6476f547879", + "shasum": "" + }, + "require": { + "php": ">=8.0" + }, + "require-dev": { + "laravel/pint": "1.2.*", + "phpstan/phpstan": "1.8.*", + "phpunit/phpunit": "^9.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Detector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A simple library for fast and reliable environment identification.", + "keywords": [ + "detector", + "framework", + "php", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/detector/issues", + "source": "https://github.com/utopia-php/detector/tree/0.1.4" }, - "time": "2024-08-23T02:43:43+00:00" + "time": "2025-04-09T11:50:45+00:00" }, { "name": "utopia-php/domains", @@ -1886,16 +3707,16 @@ }, { "name": "utopia-php/fetch", - "version": "0.2.1", + "version": "0.4.2", "source": { "type": "git", "url": "https://github.com/utopia-php/fetch.git", - "reference": "1423c0ee3eef944d816ca6e31706895b585aea82" + "reference": "83986d1be75a2fae4e684107fe70dd78a8e19b77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/fetch/zipball/1423c0ee3eef944d816ca6e31706895b585aea82", - "reference": "1423c0ee3eef944d816ca6e31706895b585aea82", + "url": "https://api.github.com/repos/utopia-php/fetch/zipball/83986d1be75a2fae4e684107fe70dd78a8e19b77", + "reference": "83986d1be75a2fae4e684107fe70dd78a8e19b77", "shasum": "" }, "require": { @@ -1919,26 +3740,28 @@ "description": "A simple library that provides an interface for making HTTP Requests.", "support": { "issues": "https://github.com/utopia-php/fetch/issues", - "source": "https://github.com/utopia-php/fetch/tree/0.2.1" + "source": "https://github.com/utopia-php/fetch/tree/0.4.2" }, - "time": "2024-03-18T11:50:59+00:00" + "time": "2025-04-25T13:48:02+00:00" }, { "name": "utopia-php/framework", - "version": "0.33.8", + "version": "0.33.19", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "a7f577540a25cb90896fef2b64767bf8d700f3c5" + "reference": "64c7b7bb8a8595ffe875fa8d4b7705684dbf46c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/a7f577540a25cb90896fef2b64767bf8d700f3c5", - "reference": "a7f577540a25cb90896fef2b64767bf8d700f3c5", + "url": "https://api.github.com/repos/utopia-php/http/zipball/64c7b7bb8a8595ffe875fa8d4b7705684dbf46c0", + "reference": "64c7b7bb8a8595ffe875fa8d4b7705684dbf46c0", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.1", + "utopia-php/compression": "0.1.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { "laravel/pint": "^1.2", @@ -1964,31 +3787,32 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.33.8" + "source": "https://github.com/utopia-php/http/tree/0.33.19" }, - "time": "2024-08-15T14:10:09+00:00" + "time": "2025-03-06T11:37:49+00:00" }, { "name": "utopia-php/image", - "version": "0.6.1", + "version": "0.8.3", "source": { "type": "git", "url": "https://github.com/utopia-php/image.git", - "reference": "2d74c27e69e65a93cf94a16586598a04fe435bf0" + "reference": "8820b0e53b3636b7bdf815e92394d333fef06f26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/image/zipball/2d74c27e69e65a93cf94a16586598a04fe435bf0", - "reference": "2d74c27e69e65a93cf94a16586598a04fe435bf0", + "url": "https://api.github.com/repos/utopia-php/image/zipball/8820b0e53b3636b7bdf815e92394d333fef06f26", + "reference": "8820b0e53b3636b7bdf815e92394d333fef06f26", "shasum": "" }, "require": { + "ext-gd": "*", "ext-imagick": "*", - "php": ">=8.0" + "php": ">=8.1" }, "require-dev": { "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.9.x-dev", + "phpstan/phpstan": "^1.10.0", "phpunit/phpunit": "^9.3", "vimeo/psalm": "4.13.1" }, @@ -2012,9 +3836,9 @@ ], "support": { "issues": "https://github.com/utopia-php/image/issues", - "source": "https://github.com/utopia-php/image/tree/0.6.1" + "source": "https://github.com/utopia-php/image/tree/0.8.3" }, - "time": "2024-02-05T13:31:44+00:00" + "time": "2025-05-15T10:39:28+00:00" }, { "name": "utopia-php/locale", @@ -2069,16 +3893,16 @@ }, { "name": "utopia-php/logger", - "version": "0.6.0", + "version": "0.6.2", "source": { "type": "git", "url": "https://github.com/utopia-php/logger.git", - "reference": "a2d1daeeb8f61fdec6d851950d9a021a3d05c9f9" + "reference": "25b5bd2ad8bb51292f76332faa7034644fd0941d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/logger/zipball/a2d1daeeb8f61fdec6d851950d9a021a3d05c9f9", - "reference": "a2d1daeeb8f61fdec6d851950d9a021a3d05c9f9", + "url": "https://api.github.com/repos/utopia-php/logger/zipball/25b5bd2ad8bb51292f76332faa7034644fd0941d", + "reference": "25b5bd2ad8bb51292f76332faa7034644fd0941d", "shasum": "" }, "require": { @@ -2117,22 +3941,22 @@ ], "support": { "issues": "https://github.com/utopia-php/logger/issues", - "source": "https://github.com/utopia-php/logger/tree/0.6.0" + "source": "https://github.com/utopia-php/logger/tree/0.6.2" }, - "time": "2024-05-23T13:37:54+00:00" + "time": "2024-10-14T16:02:49+00:00" }, { "name": "utopia-php/messaging", - "version": "0.12.0", + "version": "0.17.0", "source": { "type": "git", "url": "https://github.com/utopia-php/messaging.git", - "reference": "6e466d3511981291843c6ebf9ce3f44fc75e37b0" + "reference": "c51915d0e030db3a3add37f1561751d18b2d9a85" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/messaging/zipball/6e466d3511981291843c6ebf9ce3f44fc75e37b0", - "reference": "6e466d3511981291843c6ebf9ce3f44fc75e37b0", + "url": "https://api.github.com/repos/utopia-php/messaging/zipball/c51915d0e030db3a3add37f1561751d18b2d9a85", + "reference": "c51915d0e030db3a3add37f1561751d18b2d9a85", "shasum": "" }, "require": { @@ -2143,9 +3967,9 @@ "phpmailer/phpmailer": "6.9.1" }, "require-dev": { - "laravel/pint": "1.13.11", - "phpstan/phpstan": "1.10.58", - "phpunit/phpunit": "10.5.10" + "laravel/pint": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "11.*" }, "type": "library", "autoload": { @@ -2168,32 +3992,40 @@ ], "support": { "issues": "https://github.com/utopia-php/messaging/issues", - "source": "https://github.com/utopia-php/messaging/tree/0.12.0" + "source": "https://github.com/utopia-php/messaging/tree/0.17.0" }, - "time": "2024-05-30T14:58:25+00:00" + "time": "2025-05-12T16:14:08+00:00" }, { "name": "utopia-php/migration", - "version": "0.5.2", + "version": "0.9.3", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "f18d44d4459f78c292dac9edde856fd156fe497a" + "reference": "e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/f18d44d4459f78c292dac9edde856fd156fe497a", - "reference": "f18d44d4459f78c292dac9edde856fd156fe497a", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd", + "reference": "e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd", "shasum": "" }, "require": { - "appwrite/appwrite": "10.1.0", - "php": "8.*" + "appwrite/appwrite": "11.*", + "ext-curl": "*", + "ext-openssl": "*", + "php": ">=8.1", + "utopia-php/database": "0.*.*", + "utopia-php/dsn": "0.2.*", + "utopia-php/framework": "0.33.*", + "utopia-php/storage": "0.18.*" }, "require-dev": { + "ext-pdo": "*", "laravel/pint": "1.*", - "phpunit/phpunit": "9.*", - "utopia-php/cli": "^0.18.0", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "11.*", + "utopia-php/cli": "0.16.*", "vlucas/phpdotenv": "5.*" }, "type": "library", @@ -2216,69 +4048,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/0.5.2" - }, - "time": "2024-07-22T09:27:07+00:00" - }, - { - "name": "utopia-php/mongo", - "version": "0.3.1", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/mongo.git", - "reference": "52326a9a43e2d27ff0c15c48ba746dacbe9a7aee" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/mongo/zipball/52326a9a43e2d27ff0c15c48ba746dacbe9a7aee", - "reference": "52326a9a43e2d27ff0c15c48ba746dacbe9a7aee", - "shasum": "" - }, - "require": { - "ext-mongodb": "*", - "mongodb/mongodb": "1.10.0", - "php": ">=8.0" - }, - "require-dev": { - "fakerphp/faker": "^1.14", - "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.8.*", - "phpunit/phpunit": "^9.4", - "swoole/ide-helper": "4.8.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\Mongo\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eldad Fux", - "email": "eldad@appwrite.io" - }, - { - "name": "Wess", - "email": "wess@appwrite.io" - } - ], - "description": "A simple library to manage Mongo database", - "keywords": [ - "database", - "mongo", - "php", - "upf", - "utopia" - ], - "support": { - "issues": "https://github.com/utopia-php/mongo/issues", - "source": "https://github.com/utopia-php/mongo/tree/0.3.1" + "source": "https://github.com/utopia-php/migration/tree/0.9.3" }, - "time": "2023-09-01T17:25:28+00:00" + "time": "2025-05-01T05:41:26+00:00" }, { "name": "utopia-php/orchestration", @@ -2332,16 +4104,16 @@ }, { "name": "utopia-php/platform", - "version": "0.7.0", + "version": "0.7.4", "source": { "type": "git", "url": "https://github.com/utopia-php/platform.git", - "reference": "beeea0f2c9bce14a6869fc5c87a1047cdecb5c52" + "reference": "a5b93d8177702ec458c3af9137663133c012b71b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/platform/zipball/beeea0f2c9bce14a6869fc5c87a1047cdecb5c52", - "reference": "beeea0f2c9bce14a6869fc5c87a1047cdecb5c52", + "url": "https://api.github.com/repos/utopia-php/platform/zipball/a5b93d8177702ec458c3af9137663133c012b71b", + "reference": "a5b93d8177702ec458c3af9137663133c012b71b", "shasum": "" }, "require": { @@ -2350,7 +4122,7 @@ "php": ">=8.0", "utopia-php/cli": "0.15.*", "utopia-php/framework": "0.33.*", - "utopia-php/queue": "0.7.*" + "utopia-php/queue": "0.9.*" }, "require-dev": { "laravel/pint": "1.2.*", @@ -2376,31 +4148,32 @@ ], "support": { "issues": "https://github.com/utopia-php/platform/issues", - "source": "https://github.com/utopia-php/platform/tree/0.7.0" + "source": "https://github.com/utopia-php/platform/tree/0.7.4" }, - "time": "2024-05-08T17:00:55+00:00" + "time": "2025-03-13T13:00:12+00:00" }, { "name": "utopia-php/pools", - "version": "0.5.0", + "version": "0.8.2", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "6f716a213a08db95eda1b5dddfa90983c1834817" + "reference": "05c67aba42eb68ac65489cc1e7fc5db83db2dd4d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/6f716a213a08db95eda1b5dddfa90983c1834817", - "reference": "6f716a213a08db95eda1b5dddfa90983c1834817", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/05c67aba42eb68ac65489cc1e7fc5db83db2dd4d", + "reference": "05c67aba42eb68ac65489cc1e7fc5db83db2dd4d", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.3", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.8.*", - "phpunit/phpunit": "^9.3" + "laravel/pint": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "11.*" }, "type": "library", "autoload": { @@ -2427,9 +4200,9 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/0.5.0" + "source": "https://github.com/utopia-php/pools/tree/0.8.2" }, - "time": "2024-04-19T11:11:54+00:00" + "time": "2025-04-17T02:04:54+00:00" }, { "name": "utopia-php/preloader", @@ -2486,24 +4259,28 @@ }, { "name": "utopia-php/queue", - "version": "0.7.0", + "version": "0.9.1", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "917565256eb94bcab7246f7a746b1a486813761b" + "reference": "32b6f84c55aae761db5a5ae76cc91ca8dbc8bc32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/917565256eb94bcab7246f7a746b1a486813761b", - "reference": "917565256eb94bcab7246f7a746b1a486813761b", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/32b6f84c55aae761db5a5ae76cc91ca8dbc8bc32", + "reference": "32b6f84c55aae761db5a5ae76cc91ca8dbc8bc32", "shasum": "" }, "require": { - "php": ">=8.0", + "php": ">=8.3", + "php-amqplib/php-amqplib": "^3.7", "utopia-php/cli": "0.15.*", - "utopia-php/framework": "0.*.*" + "utopia-php/fetch": "0.4.*", + "utopia-php/framework": "0.33.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { + "ext-redis": "*", "laravel/pint": "^0.2.3", "phpstan/phpstan": "^1.8", "phpunit/phpunit": "^9.5.5", @@ -2541,9 +4318,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/0.7.0" + "source": "https://github.com/utopia-php/queue/tree/0.9.1" }, - "time": "2024-01-17T19:00:43+00:00" + "time": "2025-03-28T19:49:36+00:00" }, { "name": "utopia-php/registry", @@ -2599,29 +4376,32 @@ }, { "name": "utopia-php/storage", - "version": "0.18.4", + "version": "0.18.12", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "94ab8758fabcefee5c5fa723616e45719833f922" + "reference": "9a2556c39b5f4d9f8e79111fd34ec889b7bb1e97" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/94ab8758fabcefee5c5fa723616e45719833f922", - "reference": "94ab8758fabcefee5c5fa723616e45719833f922", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/9a2556c39b5f4d9f8e79111fd34ec889b7bb1e97", + "reference": "9a2556c39b5f4d9f8e79111fd34ec889b7bb1e97", "shasum": "" }, "require": { "ext-brotli": "*", + "ext-curl": "*", "ext-fileinfo": "*", "ext-lz4": "*", + "ext-simplexml": "*", "ext-snappy": "*", "ext-xz": "*", "ext-zlib": "*", "ext-zstd": "*", - "php": ">=8.0", + "php": ">=8.1", "utopia-php/framework": "0.*.*", - "utopia-php/system": "0.*.*" + "utopia-php/system": "0.*.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { "laravel/pint": "1.2.*", @@ -2648,22 +4428,22 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/0.18.4" + "source": "https://github.com/utopia-php/storage/tree/0.18.12" }, - "time": "2024-04-02T08:24:09+00:00" + "time": "2025-05-15T07:55:58+00:00" }, { "name": "utopia-php/swoole", - "version": "0.8.2", + "version": "0.8.3", "source": { "type": "git", "url": "https://github.com/utopia-php/swoole.git", - "reference": "5fa9d42c608ad46a4ce42a6d2b2eae00592fccd4" + "reference": "1af73dd3e73987cf729c7db399054e4a70befd99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/swoole/zipball/5fa9d42c608ad46a4ce42a6d2b2eae00592fccd4", - "reference": "5fa9d42c608ad46a4ce42a6d2b2eae00592fccd4", + "url": "https://api.github.com/repos/utopia-php/swoole/zipball/1af73dd3e73987cf729c7db399054e4a70befd99", + "reference": "1af73dd3e73987cf729c7db399054e4a70befd99", "shasum": "" }, "require": { @@ -2699,22 +4479,22 @@ ], "support": { "issues": "https://github.com/utopia-php/swoole/issues", - "source": "https://github.com/utopia-php/swoole/tree/0.8.2" + "source": "https://github.com/utopia-php/swoole/tree/0.8.3" }, - "time": "2024-02-01T14:54:12+00:00" + "time": "2025-03-26T10:09:05+00:00" }, { "name": "utopia-php/system", - "version": "0.8.0", + "version": "0.9.0", "source": { "type": "git", "url": "https://github.com/utopia-php/system.git", - "reference": "a2cbfb3c69b9ecb8b6f06c5774f3cf279ea7665e" + "reference": "8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/system/zipball/a2cbfb3c69b9ecb8b6f06c5774f3cf279ea7665e", - "reference": "a2cbfb3c69b9ecb8b6f06c5774f3cf279ea7665e", + "url": "https://api.github.com/repos/utopia-php/system/zipball/8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d", + "reference": "8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d", "shasum": "" }, "require": { @@ -2754,41 +4534,91 @@ "utopia" ], "support": { - "issues": "https://github.com/utopia-php/system/issues", - "source": "https://github.com/utopia-php/system/tree/0.8.0" + "issues": "https://github.com/utopia-php/system/issues", + "source": "https://github.com/utopia-php/system/tree/0.9.0" + }, + "time": "2024-10-09T14:44:01+00:00" + }, + { + "name": "utopia-php/telemetry", + "version": "0.1.1", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/telemetry.git", + "reference": "437f0021777f0e575dfb9e8a1a081b3aed75e33f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/437f0021777f0e575dfb9e8a1a081b3aed75e33f", + "reference": "437f0021777f0e575dfb9e8a1a081b3aed75e33f", + "shasum": "" + }, + "require": { + "ext-opentelemetry": "*", + "ext-protobuf": "*", + "nyholm/psr7": "^1.8", + "open-telemetry/exporter-otlp": "^1.1", + "open-telemetry/sdk": "^1.1", + "php": ">=8.0", + "symfony/http-client": "^7.1" + }, + "require-dev": { + "laravel/pint": "^1.2", + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Telemetry\\": "src/Telemetry" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "keywords": [ + "framework", + "php", + "upf" + ], + "support": { + "issues": "https://github.com/utopia-php/telemetry/issues", + "source": "https://github.com/utopia-php/telemetry/tree/0.1.1" }, - "time": "2024-04-01T10:22:28+00:00" + "time": "2025-03-17T11:57:52+00:00" }, { "name": "utopia-php/vcs", - "version": "0.8.2", + "version": "0.10.2", "source": { "type": "git", "url": "https://github.com/utopia-php/vcs.git", - "reference": "eb9b7eade1a46a4f660e0d5a6304f7fa26ec9d18" + "reference": "1f9823ebcb8fd098607de0074f18f48e28985012" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/vcs/zipball/eb9b7eade1a46a4f660e0d5a6304f7fa26ec9d18", - "reference": "eb9b7eade1a46a4f660e0d5a6304f7fa26ec9d18", + "url": "https://api.github.com/repos/utopia-php/vcs/zipball/1f9823ebcb8fd098607de0074f18f48e28985012", + "reference": "1f9823ebcb8fd098607de0074f18f48e28985012", "shasum": "" }, "require": { "adhocore/jwt": "^1.1", "php": ">=8.0", - "utopia-php/cache": "^0.10.0", - "utopia-php/framework": "0.*.*" + "utopia-php/cache": "0.13.*", + "utopia-php/framework": "0.*.*", + "utopia-php/system": "0.9.*" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.8.*", + "laravel/pint": "1.*.*", + "phpstan/phpstan": "1.*.*", "phpunit/phpunit": "^9.4" }, "type": "library", "autoload": { "psr-4": { - "Utopia\\VCS\\": "src/VCS", - "Utopia\\Detector\\": "src/Detector" + "Utopia\\VCS\\": "src/VCS" } }, "notification-url": "https://packagist.org/downloads/", @@ -2804,33 +4634,34 @@ ], "support": { "issues": "https://github.com/utopia-php/vcs/issues", - "source": "https://github.com/utopia-php/vcs/tree/0.8.2" + "source": "https://github.com/utopia-php/vcs/tree/0.10.2" }, - "time": "2024-08-13T14:36:30+00:00" + "time": "2025-04-17T04:35:25+00:00" }, { "name": "utopia-php/websocket", - "version": "0.1.0", + "version": "0.3.1", "source": { "type": "git", "url": "https://github.com/utopia-php/websocket.git", - "reference": "51fcb86171400d8aa40d76c54593481fd273dab5" + "reference": "77004ba9f66a0ab6eb840a85b2af332fca8f6bd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/websocket/zipball/51fcb86171400d8aa40d76c54593481fd273dab5", - "reference": "51fcb86171400d8aa40d76c54593481fd273dab5", + "url": "https://api.github.com/repos/utopia-php/websocket/zipball/77004ba9f66a0ab6eb840a85b2af332fca8f6bd9", + "reference": "77004ba9f66a0ab6eb840a85b2af332fca8f6bd9", "shasum": "" }, "require": { "php": ">=8.0" }, "require-dev": { + "laravel/pint": "^1.15", + "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^9.5.5", - "swoole/ide-helper": "4.6.6", + "swoole/ide-helper": "5.1.2", "textalk/websocket": "1.5.2", - "vimeo/psalm": "^4.8.1", - "workerman/workerman": "^4.0" + "workerman/workerman": "4.1.*" }, "type": "library", "autoload": { @@ -2842,16 +4673,6 @@ "license": [ "MIT" ], - "authors": [ - { - "name": "Eldad Fux", - "email": "eldad@appwrite.io" - }, - { - "name": "Torsten Dittmann", - "email": "torsten@appwrite.io" - } - ], "description": "A simple abstraction for WebSocket servers.", "keywords": [ "framework", @@ -2862,9 +4683,9 @@ ], "support": { "issues": "https://github.com/utopia-php/websocket/issues", - "source": "https://github.com/utopia-php/websocket/tree/0.1.0" + "source": "https://github.com/utopia-php/websocket/tree/0.3.1" }, - "time": "2021-12-20T10:50:09+00:00" + "time": "2025-05-09T12:57:42+00:00" }, { "name": "webmozart/assert", @@ -2993,16 +4814,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "0.39.15", + "version": "0.40.17", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "c0b51dc74877410920ba04011f5c3482a8be6a5e" + "reference": "7e333c1003bfd4763e4d6f3a0a799fde5e7bc4de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/c0b51dc74877410920ba04011f5c3482a8be6a5e", - "reference": "c0b51dc74877410920ba04011f5c3482a8be6a5e", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/7e333c1003bfd4763e4d6f3a0a799fde5e7bc4de", + "reference": "7e333c1003bfd4763e4d6f3a0a799fde5e7bc4de", "shasum": "" }, "require": { @@ -3010,13 +4831,13 @@ "ext-json": "*", "ext-mbstring": "*", "matthiasmullie/minify": "1.3.*", - "php": ">=8.0", - "twig/twig": "v3.8.*" + "php": ">=8.3", + "twig/twig": "3.14.*" }, "require-dev": { - "brianium/paratest": "v7.4.*", - "phpunit/phpunit": "10.5.*", - "squizlabs/php_codesniffer": "3.9.*" + "brianium/paratest": "7.*", + "phpunit/phpunit": "11.*", + "squizlabs/php_codesniffer": "3.*" }, "type": "library", "autoload": { @@ -3038,22 +4859,22 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/0.39.15" + "source": "https://github.com/appwrite/sdk-generator/tree/0.40.17" }, - "time": "2024-08-23T14:56:07+00:00" + "time": "2025-05-16T15:10:54+00:00" }, { "name": "doctrine/annotations", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f" + "reference": "901c2ee5d26eb64ff43c47976e114bf00843acf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", - "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/901c2ee5d26eb64ff43c47976e114bf00843acf7", + "reference": "901c2ee5d26eb64ff43c47976e114bf00843acf7", "shasum": "" }, "require": { @@ -3065,10 +4886,10 @@ "require-dev": { "doctrine/cache": "^2.0", "doctrine/coding-standard": "^10", - "phpstan/phpstan": "^1.8.0", + "phpstan/phpstan": "^1.10.28", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "symfony/cache": "^5.4 || ^6", - "vimeo/psalm": "^4.10" + "symfony/cache": "^5.4 || ^6.4 || ^7", + "vimeo/psalm": "^4.30 || ^5.14" }, "suggest": { "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" @@ -3114,83 +4935,36 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/2.0.1" - }, - "time": "2023-02-02T22:02:53+00:00" - }, - { - "name": "doctrine/deprecations", - "version": "1.1.3", - "source": { - "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "shasum": "" + "source": "https://github.com/doctrine/annotations/tree/2.0.2" }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "1.4.10 || 1.10.15", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "0.18.4", - "psr/log": "^1 || ^2 || ^3", - "vimeo/psalm": "4.30.0 || 5.12.0" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.3" - }, - "time": "2024-01-30T19:34:25+00:00" + "time": "2024-09-05T10:17:24+00:00" }, { "name": "doctrine/instantiator", - "version": "1.5.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^11", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -3217,7 +4991,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -3233,7 +5007,7 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:15:36+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "doctrine/lexer", @@ -3314,16 +5088,16 @@ }, { "name": "laravel/pint", - "version": "v1.17.2", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "e8a88130a25e3f9d4d5785e6a1afca98268ab110" + "reference": "941d1927c5ca420c22710e98420287169c7bcaf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/e8a88130a25e3f9d4d5785e6a1afca98268ab110", - "reference": "e8a88130a25e3f9d4d5785e6a1afca98268ab110", + "url": "https://api.github.com/repos/laravel/pint/zipball/941d1927c5ca420c22710e98420287169c7bcaf7", + "reference": "941d1927c5ca420c22710e98420287169c7bcaf7", "shasum": "" }, "require": { @@ -3331,16 +5105,16 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.1.0" + "php": "^8.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.61.1", - "illuminate/view": "^10.48.18", - "larastan/larastan": "^2.9.8", - "laravel-zero/framework": "^10.4.0", + "friendsofphp/php-cs-fixer": "^3.75.0", + "illuminate/view": "^11.44.7", + "larastan/larastan": "^3.4.0", + "laravel-zero/framework": "^11.36.1", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^2.35.0" + "nunomaduro/termwind": "^2.3.1", + "pestphp/pest": "^2.36.0" }, "bin": [ "builds/pint" @@ -3376,7 +5150,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-08-06T15:11:54+00:00" + "time": "2025-05-08T08:38:12+00:00" }, { "name": "matthiasmullie/minify", @@ -3504,16 +5278,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.12.0", + "version": "1.13.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c", + "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c", "shasum": "" }, "require": { @@ -3552,7 +5326,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1" }, "funding": [ { @@ -3560,20 +5334,20 @@ "type": "tidelift" } ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2025-04-29T12:36:36+00:00" }, { "name": "nikic/php-parser", - "version": "v5.1.0", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", - "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -3616,9 +5390,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-07-01T20:03:41+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "phar-io/manifest", @@ -3789,69 +5563,18 @@ }, "time": "2023-10-30T13:38:26+00:00" }, - { - "name": "phpbench/dom", - "version": "0.3.3", - "source": { - "type": "git", - "url": "https://github.com/phpbench/dom.git", - "reference": "786a96db538d0def931f5b19225233ec42ec7a72" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpbench/dom/zipball/786a96db538d0def931f5b19225233ec42ec7a72", - "reference": "786a96db538d0def931f5b19225233ec42ec7a72", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "php": "^7.3||^8.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.14", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^8.0||^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "PhpBench\\Dom\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel Leech", - "email": "daniel@dantleech.com" - } - ], - "description": "DOM wrapper to simplify working with the PHP DOM implementation", - "support": { - "issues": "https://github.com/phpbench/dom/issues", - "source": "https://github.com/phpbench/dom/tree/0.3.3" - }, - "time": "2023-03-06T23:46:57+00:00" - }, { "name": "phpbench/phpbench", - "version": "1.3.1", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "a3e1ef08d9d7736d43a7fbd444893d6a073c0ca0" + "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/a3e1ef08d9d7736d43a7fbd444893d6a073c0ca0", - "reference": "a3e1ef08d9d7736d43a7fbd444893d6a073c0ca0", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", + "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", "shasum": "" }, "require": { @@ -3864,7 +5587,6 @@ "ext-tokenizer": "*", "php": "^8.1", "phpbench/container": "^2.2", - "phpbench/dom": "~0.3.3", "psr/log": "^1.1 || ^2.0 || ^3.0", "seld/jsonlint": "^1.1", "symfony/console": "^6.1 || ^7.0", @@ -3883,8 +5605,8 @@ "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^10.4", - "rector/rector": "^0.18.11 || ^1.0.0", + "phpunit/phpunit": "^10.4 || ^11.0", + "rector/rector": "^1.2", "symfony/error-handler": "^6.1 || ^7.0", "symfony/var-dumper": "^6.1 || ^7.0" }, @@ -3929,7 +5651,7 @@ ], "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.3.1" + "source": "https://github.com/phpbench/phpbench/tree/1.4.1" }, "funding": [ { @@ -3937,298 +5659,66 @@ "type": "github" } ], - "time": "2024-06-30T11:04:37+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.4.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.1", - "ext-filter": "*", - "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.7", - "phpstan/phpdoc-parser": "^1.7", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.5", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-mockery": "^1.1", - "phpstan/phpstan-webmozart-assert": "^1.2", - "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^5.13" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" - }, - "time": "2024-05-21T05:55:05+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.8.2", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "153ae662783729388a584b4361f2545e4d841e3c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c", - "reference": "153ae662783729388a584b4361f2545e4d841e3c", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.3 || ^8.0", - "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^1.13" - }, - "require-dev": { - "ext-tokenizer": "*", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpunit/phpunit": "^9.5", - "rector/rector": "^0.13.9", - "vimeo/psalm": "^4.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2" - }, - "time": "2024-02-23T11:10:43+00:00" + "time": "2025-03-12T08:01:40+00:00" }, { - "name": "phpspec/prophecy", - "version": "v1.19.0", + "name": "phpstan/phpstan", + "version": "1.8.11", "source": { "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "67a759e7d8746d501c41536ba40cd9c0a07d6a87" + "url": "https://github.com/phpstan/phpstan.git", + "reference": "46e223dd68a620da18855c23046ddb00940b4014" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/67a759e7d8746d501c41536ba40cd9c0a07d6a87", - "reference": "67a759e7d8746d501c41536ba40cd9c0a07d6a87", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/46e223dd68a620da18855c23046ddb00940b4014", + "reference": "46e223dd68a620da18855c23046ddb00940b4014", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2 || ^2.0", - "php": "^7.2 || 8.0.* || 8.1.* || 8.2.* || 8.3.*", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0 || ^5.0 || ^6.0", - "sebastian/recursion-context": "^3.0 || ^4.0 || ^5.0 || ^6.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^8.0 || ^9.0 || ^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } + "php": "^7.2|^8.0" }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } + "conflict": { + "phpstan/phpstan-shim": "*" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "dev", - "fake", - "mock", - "spy", - "stub" + "bin": [ + "phpstan", + "phpstan.phar" ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.19.0" - }, - "time": "2024-02-29T11:52:51+00:00" - }, - { - "name": "phpstan/phpdoc-parser", - "version": "1.29.1", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/fcaefacf2d5c417e928405b71b400d4ce10daaf4", - "reference": "fcaefacf2d5c417e928405b71b400d4ce10daaf4", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", - "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", - "symfony/process": "^5.2" - }, "type": "library", "autoload": { - "psr-4": { - "PHPStan\\PhpDocParser\\": [ - "src/" - ] - } + "files": [ + "bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "PHPDoc parser with support for nullable, intersection and generic types", + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], "support": { - "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.1" + "issues": "https://github.com/phpstan/phpstan/issues", + "source": "https://github.com/phpstan/phpstan/tree/1.8.11" }, - "time": "2024-05-31T08:52:43+00:00" + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2022-10-24T15:45:13+00:00" }, { "name": "phpunit/php-code-coverage", @@ -4551,55 +6041,50 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.20", + "version": "9.6.23", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" + "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", - "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", + "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1", + "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.13.1", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-code-coverage": "^9.2.32", + "phpunit/php-file-iterator": "^3.0.6", "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.5", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.3", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.0", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.7", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", "sebastian/version": "^3.0.2" }, - "require-dev": { - "ext-pdo": "*", - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -4607,7 +6092,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.5-dev" + "dev-master": "9.6-dev" } }, "autoload": { @@ -4638,7 +6123,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.23" }, "funding": [ { @@ -4648,9 +6134,21 @@ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2022-04-01T12:37:26+00:00" + "time": "2025-05-02T06:40:34+00:00" }, { "name": "psr/cache", @@ -4701,109 +6199,6 @@ }, "time": "2021-02-03T23:26:27+00:00" }, - { - "name": "psr/container", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "shasum": "" - }, - "require": { - "php": ">=7.4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" - }, - "time": "2021-11-05T16:47:00+00:00" - }, - { - "name": "psr/log", - "version": "3.0.1", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "79dff0b268932c640297f5208d6298f71855c03e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", - "reference": "79dff0b268932c640297f5208d6298f71855c03e", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/3.0.1" - }, - "time": "2024-08-21T13:31:24+00:00" - }, { "name": "sebastian/cli-parser", "version": "1.0.2", @@ -5865,16 +7260,16 @@ }, { "name": "symfony/console", - "version": "v7.1.3", + "version": "v7.2.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "cb1dcb30ebc7005c29864ee78adb47b5fb7c3cd9" + "reference": "0e2e3f38c192e93e622e41ec37f4ca70cfedf218" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/cb1dcb30ebc7005c29864ee78adb47b5fb7c3cd9", - "reference": "cb1dcb30ebc7005c29864ee78adb47b5fb7c3cd9", + "url": "https://api.github.com/repos/symfony/console/zipball/0e2e3f38c192e93e622e41ec37f4ca70cfedf218", + "reference": "0e2e3f38c192e93e622e41ec37f4ca70cfedf218", "shasum": "" }, "require": { @@ -5938,74 +7333,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.1.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-07-26T12:41:01+00:00" - }, - { - "name": "symfony/deprecation-contracts", - "version": "v3.5.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/console/tree/v7.2.6" }, "funding": [ { @@ -6021,20 +7349,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-04-07T19:09:28+00:00" }, { "name": "symfony/filesystem", - "version": "v7.1.2", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "92a91985250c251de9b947a14bb2c9390b1a562c" + "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/92a91985250c251de9b947a14bb2c9390b1a562c", - "reference": "92a91985250c251de9b947a14bb2c9390b1a562c", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8dce482de9d7c9fe2891155035a7248ab5c7fdb", + "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb", "shasum": "" }, "require": { @@ -6071,7 +7399,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.1.2" + "source": "https://github.com/symfony/filesystem/tree/v7.2.0" }, "funding": [ { @@ -6087,20 +7415,20 @@ "type": "tidelift" } ], - "time": "2024-06-28T10:03:55+00:00" + "time": "2024-10-25T15:15:23+00:00" }, { "name": "symfony/finder", - "version": "v7.1.3", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "717c6329886f32dc65e27461f80f2a465412fdca" + "reference": "87a71856f2f56e4100373e92529eed3171695cfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/717c6329886f32dc65e27461f80f2a465412fdca", - "reference": "717c6329886f32dc65e27461f80f2a465412fdca", + "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb", "shasum": "" }, "require": { @@ -6135,7 +7463,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.3" + "source": "https://github.com/symfony/finder/tree/v7.2.2" }, "funding": [ { @@ -6151,20 +7479,20 @@ "type": "tidelift" } ], - "time": "2024-07-24T07:08:44+00:00" + "time": "2024-12-30T19:00:17+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.1.1", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55" + "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/47aa818121ed3950acd2b58d1d37d08a94f9bf55", - "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/7da8fbac9dcfef75ffc212235d76b2754ce0cf50", + "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50", "shasum": "" }, "require": { @@ -6202,7 +7530,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.1.1" + "source": "https://github.com/symfony/options-resolver/tree/v7.2.0" }, "funding": [ { @@ -6218,24 +7546,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2024-11-20T11:17:29+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.30.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540" + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-ctype": "*" @@ -6246,8 +7574,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6281,7 +7609,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.32.0" }, "funding": [ { @@ -6297,24 +7625,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.30.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -6322,8 +7650,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6359,7 +7687,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.32.0" }, "funding": [ { @@ -6375,24 +7703,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.30.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" + "reference": "3833d7255cc303546435cb650316bff708a1c75c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -6400,8 +7728,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6440,7 +7768,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.32.0" }, "funding": [ { @@ -6456,32 +7784,41 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { - "name": "symfony/process", - "version": "v7.1.3", + "name": "symfony/polyfill-php81", + "version": "v1.32.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca" + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/7f2f542c668ad6c313dc4a5e9c3321f733197eca", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", + "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=7.2" }, "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { - "Symfony\\Component\\Process\\": "" + "Symfony\\Polyfill\\Php81\\": "" }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", @@ -6490,18 +7827,24 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Executes commands in sub-processes", + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], "support": { - "source": "https://github.com/symfony/process/tree/v7.1.3" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.32.0" }, "funding": [ { @@ -6517,46 +7860,32 @@ "type": "tidelift" } ], - "time": "2024-07-26T12:44:47+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { - "name": "symfony/service-contracts", - "version": "v3.5.0", + "name": "symfony/process", + "version": "v7.2.5", "source": { "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "url": "https://github.com/symfony/process.git", + "reference": "87b7c93e57df9d8e39a093d32587702380ff045d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/process/zipball/87b7c93e57df9d8e39a093d32587702380ff045d", + "reference": "87b7c93e57df9d8e39a093d32587702380ff045d", "shasum": "" }, "require": { - "php": ">=8.1", - "psr/container": "^1.1|^2.0", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "conflict": { - "ext-psr": "<1.1|>=2" + "php": ">=8.2" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, "autoload": { "psr-4": { - "Symfony\\Contracts\\Service\\": "" + "Symfony\\Component\\Process\\": "" }, "exclude-from-classmap": [ - "/Test/" + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -6565,26 +7894,18 @@ ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" + "name": "Fabien Potencier", + "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], - "description": "Generic abstractions related to writing services", + "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/process/tree/v7.2.5" }, "funding": [ { @@ -6600,20 +7921,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-03-13T12:21:46+00:00" }, { "name": "symfony/string", - "version": "v7.1.3", + "version": "v7.2.6", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "ea272a882be7f20cad58d5d78c215001617b7f07" + "reference": "a214fe7d62bd4df2a76447c67c6b26e1d5e74931" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/ea272a882be7f20cad58d5d78c215001617b7f07", - "reference": "ea272a882be7f20cad58d5d78c215001617b7f07", + "url": "https://api.github.com/repos/symfony/string/zipball/a214fe7d62bd4df2a76447c67c6b26e1d5e74931", + "reference": "a214fe7d62bd4df2a76447c67c6b26e1d5e74931", "shasum": "" }, "require": { @@ -6671,7 +7992,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.3" + "source": "https://github.com/symfony/string/tree/v7.2.6" }, "funding": [ { @@ -6687,20 +8008,20 @@ "type": "tidelift" } ], - "time": "2024-07-22T10:25:37+00:00" + "time": "2025-04-20T20:18:16+00:00" }, { "name": "textalk/websocket", - "version": "1.5.7", + "version": "1.5.8", "source": { "type": "git", "url": "https://github.com/Textalk/websocket-php.git", - "reference": "1712325e99b6bf869ccbf9bf41ab749e7328ea46" + "reference": "d05dbaa97500176447ffb1f1800573f23085ab13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Textalk/websocket-php/zipball/1712325e99b6bf869ccbf9bf41ab749e7328ea46", - "reference": "1712325e99b6bf869ccbf9bf41ab749e7328ea46", + "url": "https://api.github.com/repos/Textalk/websocket-php/zipball/d05dbaa97500176447ffb1f1800573f23085ab13", + "reference": "d05dbaa97500176447ffb1f1800573f23085ab13", "shasum": "" }, "require": { @@ -6734,9 +8055,9 @@ "description": "WebSocket client and server", "support": { "issues": "https://github.com/Textalk/websocket-php/issues", - "source": "https://github.com/Textalk/websocket-php/tree/1.5.7" + "source": "https://github.com/Textalk/websocket-php/tree/1.5.8" }, - "time": "2022-03-29T09:46:59+00:00" + "time": "2022-04-26T06:28:24+00:00" }, { "name": "theseer/tokenizer", @@ -6790,30 +8111,37 @@ }, { "name": "twig/twig", - "version": "v3.8.0", + "version": "v3.14.2", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "9d15f0ac07f44dc4217883ec6ae02fd555c6f71d" + "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/9d15f0ac07f44dc4217883ec6ae02fd555c6f71d", - "reference": "9d15f0ac07f44dc4217883ec6ae02fd555c6f71d", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a", + "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-ctype": "^1.8", "symfony/polyfill-mbstring": "^1.3", - "symfony/polyfill-php80": "^1.22" + "symfony/polyfill-php81": "^1.29" }, "require-dev": { "psr/container": "^1.0|^2.0", - "symfony/phpunit-bridge": "^5.4.9|^6.3|^7.0" + "symfony/phpunit-bridge": "^5.4.9|^6.4|^7.0" }, "type": "library", "autoload": { + "files": [ + "src/Resources/core.php", + "src/Resources/debug.php", + "src/Resources/escaper.php", + "src/Resources/string_loader.php" + ], "psr-4": { "Twig\\": "src/" } @@ -6846,7 +8174,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.8.0" + "source": "https://github.com/twigphp/Twig/tree/v3.14.2" }, "funding": [ { @@ -6858,7 +8186,7 @@ "type": "tidelift" } ], - "time": "2023-11-21T18:54:41+00:00" + "time": "2024-11-07T12:36:22+00:00" }, { "name": "webmozart/glob", @@ -6912,11 +8240,11 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8.0.0", + "php": ">=8.3.0", "ext-curl": "*", "ext-imagick": "*", "ext-mbstring": "*", diff --git a/docker-compose.yml b/docker-compose.yml index 5baa04813d0..7b141030731 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,10 +72,13 @@ services: - traefik.http.routers.appwrite_api_https.tls=true volumes: - appwrite-uploads:/storage/uploads:rw + - appwrite-imports:/storage/imports:rw - appwrite-cache:/storage/cache:rw - appwrite-config:/storage/config:rw - appwrite-certificates:/storage/certificates:rw - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw + - appwrite-builds:/storage/builds:rw - ./phpunit.xml:/usr/src/code/phpunit.xml - ./tests:/usr/src/code/tests - ./app:/usr/src/code/app @@ -96,6 +99,7 @@ services: - _APP_EDITION - _APP_WORKER_PER_CORE - _APP_LOCALE + - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_CONSOLE_WHITELIST_ROOT - _APP_CONSOLE_WHITELIST_EMAILS - _APP_CONSOLE_SESSION_ALERTS @@ -103,15 +107,18 @@ services: - _APP_CONSOLE_HOSTNAMES - _APP_SYSTEM_EMAIL_NAME - _APP_SYSTEM_EMAIL_ADDRESS + - _APP_SYSTEM_TEAM_EMAIL - _APP_EMAIL_SECURITY - _APP_SYSTEM_RESPONSE_FORMAT - _APP_OPTIONS_ABUSE - _APP_OPTIONS_ROUTER_PROTECTION - _APP_OPTIONS_FORCE_HTTPS - - _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS + - _APP_OPTIONS_ROUTER_FORCE_HTTPS - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_DOMAIN_FUNCTIONS - _APP_REDIS_HOST - _APP_REDIS_PORT @@ -138,6 +145,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -154,12 +162,15 @@ services: - _APP_STORAGE_WASABI_SECRET - _APP_STORAGE_WASABI_REGION - _APP_STORAGE_WASABI_BUCKET - - _APP_FUNCTIONS_SIZE_LIMIT + - _APP_COMPUTE_SIZE_LIMIT - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_BUILD_TIMEOUT - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_BUILD_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY - _APP_FUNCTIONS_RUNTIMES + - _APP_SITES_RUNTIMES + - _APP_DOMAIN_SITES - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST - _APP_LOGGING_CONFIG @@ -168,6 +179,7 @@ services: - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - _APP_SMS_PROVIDER @@ -191,11 +203,17 @@ services: - _APP_EXPERIMENT_LOGGING_PROVIDER - _APP_EXPERIMENT_LOGGING_CONFIG - _APP_DATABASE_SHARED_TABLES + - _APP_DATABASE_SHARED_TABLES_V1 + - _APP_DATABASE_SHARED_NAMESPACE + - _APP_FUNCTIONS_CREATION_ABUSE_LIMIT + - _APP_CUSTOM_DOMAIN_DENY_LIST + extra_hosts: + - "host.docker.internal:host-gateway" appwrite-console: <<: *x-logging container_name: appwrite-console - image: appwrite/console:5.0.1 + image: appwrite/console:5.3.0-sites-rc.43 restart: unless-stopped networks: - appwrite @@ -338,6 +356,7 @@ services: - appwrite-uploads:/storage/uploads:rw - appwrite-cache:/storage/cache:rw - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw - appwrite-builds:/storage/builds:rw - appwrite-certificates:/storage/certificates:rw - ./app:/usr/src/code/app @@ -360,6 +379,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -380,6 +400,10 @@ services: - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST - _APP_DATABASE_SHARED_TABLES + - _APP_DATABASE_SHARED_TABLES_V1 + - _APP_EMAIL_CERTIFICATES + - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE appwrite-worker-databases: entrypoint: worker-databases @@ -421,7 +445,9 @@ services: - appwrite volumes: - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw - appwrite-builds:/storage/builds:rw + - appwrite-uploads:/storage/uploads:rw - ./app:/usr/src/code/app - ./src:/usr/src/code/src depends_on: @@ -447,18 +473,20 @@ services: - _APP_VCS_GITHUB_PRIVATE_KEY - _APP_VCS_GITHUB_APP_ID - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_BUILD_TIMEOUT - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY - - _APP_FUNCTIONS_SIZE_LIMIT + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_BUILD_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY + - _APP_COMPUTE_SIZE_LIMIT - _APP_OPTIONS_FORCE_HTTPS - - _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS + - _APP_OPTIONS_ROUTER_FORCE_HTTPS - _APP_DOMAIN - _APP_STORAGE_DEVICE - _APP_STORAGE_S3_ACCESS_KEY - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -476,6 +504,9 @@ services: - _APP_STORAGE_WASABI_REGION - _APP_STORAGE_WASABI_BUCKET - _APP_DATABASE_SHARED_TABLES + - _APP_DOMAIN_SITES + extra_hosts: + - "host.docker.internal:host-gateway" appwrite-worker-certificates: entrypoint: worker-certificates @@ -497,7 +528,9 @@ services: - _APP_WORKER_PER_CORE - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_DOMAIN_FUNCTIONS - _APP_EMAIL_CERTIFICATES - _APP_REDIS_HOST @@ -542,9 +575,10 @@ services: - _APP_DB_USER - _APP_DB_PASS - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_BUILD_TIMEOUT - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_BUILD_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST - _APP_USAGE_STATS @@ -624,6 +658,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -651,6 +686,7 @@ services: networks: - appwrite volumes: + - appwrite-imports:/storage/imports:rw - ./app:/usr/src/code/app - ./src:/usr/src/code/src - ./tests:/usr/src/code/tests @@ -661,7 +697,9 @@ services: - _APP_WORKER_PER_CORE - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_EMAIL_SECURITY - _APP_REDIS_HOST - _APP_REDIS_PORT @@ -693,7 +731,9 @@ services: - _APP_ENV - _APP_WORKER_PER_CORE - _APP_DOMAIN - - _APP_DOMAIN_TARGET + - _APP_DOMAIN_TARGET_CNAME + - _APP_DOMAIN_TARGET_AAAA + - _APP_DOMAIN_TARGET_A - _APP_DOMAIN_FUNCTIONS - _APP_OPENSSL_KEY_V1 - _APP_REDIS_HOST @@ -710,15 +750,47 @@ services: - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - - _APP_MAINTENANCE_DELAY + - _APP_MAINTENANCE_START_TIME + - _APP_DATABASE_SHARED_TABLES + + appwrite-task-stats-resources: + container_name: appwrite-task-stats-resources + entrypoint: stats-resources + <<: *x-logging + image: appwrite-dev + networks: + - appwrite + volumes: + - ./app:/usr/src/code/app + - ./src:/usr/src/code/src + depends_on: + - redis + - mariadb + environment: + - _APP_ENV + - _APP_WORKER_PER_CORE + - _APP_OPENSSL_KEY_V1 + - _APP_DB_HOST + - _APP_DB_PORT + - _APP_DB_SCHEMA + - _APP_DB_USER + - _APP_DB_PASS + - _APP_REDIS_HOST + - _APP_REDIS_PORT + - _APP_REDIS_USER + - _APP_REDIS_PASS + - _APP_USAGE_STATS + - _APP_LOGGING_CONFIG - _APP_DATABASE_SHARED_TABLES + - _APP_STATS_RESOURCES_INTERVAL - appwrite-worker-usage: - entrypoint: worker-usage + appwrite-worker-stats-resources: + entrypoint: worker-stats-resources <<: *x-logging - container_name: appwrite-worker-usage + container_name: appwrite-worker-stats-resources image: appwrite-dev networks: - appwrite @@ -746,10 +818,10 @@ services: - _APP_USAGE_AGGREGATION_INTERVAL - _APP_DATABASE_SHARED_TABLES - appwrite-worker-usage-dump: - entrypoint: worker-usage-dump + appwrite-worker-stats-usage: + entrypoint: worker-stats-usage <<: *x-logging - container_name: appwrite-worker-usage-dump + container_name: appwrite-worker-stats-usage image: appwrite-dev networks: - appwrite @@ -862,18 +934,24 @@ services: appwrite-assistant: container_name: appwrite-assistant - image: appwrite/assistant:0.4.0 + image: appwrite/assistant:0.7.0 networks: - appwrite environment: - _APP_ASSISTANT_OPENAI_API_KEY + appwrite-browser: + container_name: appwrite-browser + image: appwrite/browser:0.2.4 + networks: + - appwrite + openruntimes-executor: container_name: openruntimes-executor hostname: exc1 <<: *x-logging stop_signal: SIGINT - image: openruntimes/executor:0.6.7 + image: openruntimes/executor:0.7.14 restart: unless-stopped networks: - appwrite @@ -882,25 +960,28 @@ services: - /var/run/docker.sock:/var/run/docker.sock - appwrite-builds:/storage/builds:rw - appwrite-functions:/storage/functions:rw + - appwrite-sites:/storage/sites:rw # Host mount nessessary to share files between executor and runtimes. # It's not possible to share mount file between 2 containers without host mount (copying is too slow) - /tmp:/tmp:rw environment: - - OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_FUNCTIONS_INACTIVE_THRESHOLD - - OPR_EXECUTOR_MAINTENANCE_INTERVAL=$_APP_FUNCTIONS_MAINTENANCE_INTERVAL - - OPR_EXECUTOR_NETWORK=$_APP_FUNCTIONS_RUNTIMES_NETWORK + - OPR_EXECUTOR_IMAGE_PULL=enabled + - OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_COMPUTE_INACTIVE_THRESHOLD + - OPR_EXECUTOR_MAINTENANCE_INTERVAL=$_APP_COMPUTE_MAINTENANCE_INTERVAL + - OPR_EXECUTOR_NETWORK=$_APP_COMPUTE_RUNTIMES_NETWORK - OPR_EXECUTOR_DOCKER_HUB_USERNAME=$_APP_DOCKER_HUB_USERNAME - OPR_EXECUTOR_DOCKER_HUB_PASSWORD=$_APP_DOCKER_HUB_PASSWORD - OPR_EXECUTOR_ENV=$_APP_ENV - - OPR_EXECUTOR_RUNTIMES=$_APP_FUNCTIONS_RUNTIMES + - OPR_EXECUTOR_RUNTIMES=$_APP_FUNCTIONS_RUNTIMES,$_APP_SITES_RUNTIMES - OPR_EXECUTOR_SECRET=$_APP_EXECUTOR_SECRET - - OPR_EXECUTOR_RUNTIME_VERSIONS=v2,v4 + - OPR_EXECUTOR_RUNTIME_VERSIONS=v2,v5 - OPR_EXECUTOR_LOGGING_CONFIG=$_APP_LOGGING_CONFIG - OPR_EXECUTOR_STORAGE_DEVICE=$_APP_STORAGE_DEVICE - OPR_EXECUTOR_STORAGE_S3_ACCESS_KEY=$_APP_STORAGE_S3_ACCESS_KEY - OPR_EXECUTOR_STORAGE_S3_SECRET=$_APP_STORAGE_S3_SECRET - OPR_EXECUTOR_STORAGE_S3_REGION=$_APP_STORAGE_S3_REGION - OPR_EXECUTOR_STORAGE_S3_BUCKET=$_APP_STORAGE_S3_BUCKET + - OPR_EXECUTOR_STORAGE_S3_ENDPOINT=$_APP_STORAGE_S3_ENDPOINT - OPR_EXECUTOR_STORAGE_DO_SPACES_ACCESS_KEY=$_APP_STORAGE_DO_SPACES_ACCESS_KEY - OPR_EXECUTOR_STORAGE_DO_SPACES_SECRET=$_APP_STORAGE_DO_SPACES_SECRET - OPR_EXECUTOR_STORAGE_DO_SPACES_REGION=$_APP_STORAGE_DO_SPACES_REGION @@ -1049,7 +1130,9 @@ volumes: appwrite-redis: appwrite-cache: appwrite-uploads: + appwrite-imports: appwrite-certificates: appwrite-functions: + appwrite-sites: appwrite-builds: appwrite-config: diff --git a/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md index 8efaf7a0d47..773fb994d82 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-email-session.md b/docs/examples/1.1.x/client-android/java/account/create-email-session.md index a38ece55834..fb2a6b020e4 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-email-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md index 78ee1a18f67..bb4d2d51c60 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md index f8e84cbb1b4..49f041bed48 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md index 579d9b28600..99e09f31007 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-phone-session.md b/docs/examples/1.1.x/client-android/java/account/create-phone-session.md index e0ed553089f..d8c6de4e3e7 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-phone-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md index f56bb84ef04..27778f03d38 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-recovery.md b/docs/examples/1.1.x/client-android/java/account/create-recovery.md index 3e2cb362fb5..02e9818c6aa 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.1.x/client-android/java/account/create-recovery.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-verification.md b/docs/examples/1.1.x/client-android/java/account/create-verification.md index 9cbe8296528..cee7a360029 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/create-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create.md b/docs/examples/1.1.x/client-android/java/account/create.md index 5d9d4c903a6..bbd47ac9403 100644 --- a/docs/examples/1.1.x/client-android/java/account/create.md +++ b/docs/examples/1.1.x/client-android/java/account/create.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/delete-session.md b/docs/examples/1.1.x/client-android/java/account/delete-session.md index 424c3639582..08914307bcc 100644 --- a/docs/examples/1.1.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.1.x/client-android/java/account/delete-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/delete-sessions.md b/docs/examples/1.1.x/client-android/java/account/delete-sessions.md index 9be95217f40..63b829a3023 100644 --- a/docs/examples/1.1.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-android/java/account/delete-sessions.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/get-prefs.md b/docs/examples/1.1.x/client-android/java/account/get-prefs.md index 6d7999e53f6..560f25e30c9 100644 --- a/docs/examples/1.1.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.1.x/client-android/java/account/get-prefs.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/get-session.md b/docs/examples/1.1.x/client-android/java/account/get-session.md index 6055d780f54..5134922e8bd 100644 --- a/docs/examples/1.1.x/client-android/java/account/get-session.md +++ b/docs/examples/1.1.x/client-android/java/account/get-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/get.md b/docs/examples/1.1.x/client-android/java/account/get.md index 743d46c8ba0..33344a5b4c5 100644 --- a/docs/examples/1.1.x/client-android/java/account/get.md +++ b/docs/examples/1.1.x/client-android/java/account/get.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/list-logs.md b/docs/examples/1.1.x/client-android/java/account/list-logs.md index 98bc7217b66..1d5968b3992 100644 --- a/docs/examples/1.1.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.1.x/client-android/java/account/list-logs.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/list-sessions.md b/docs/examples/1.1.x/client-android/java/account/list-sessions.md index 0d7fa2eb21b..6245c593fd8 100644 --- a/docs/examples/1.1.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.1.x/client-android/java/account/list-sessions.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-email.md b/docs/examples/1.1.x/client-android/java/account/update-email.md index 4fa6098d9f1..05ee0c6a87e 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-email.md +++ b/docs/examples/1.1.x/client-android/java/account/update-email.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md index 49d7fdf864d..1c9f670c5cd 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-name.md b/docs/examples/1.1.x/client-android/java/account/update-name.md index 30bfd60109e..a0f3bede4f2 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-name.md +++ b/docs/examples/1.1.x/client-android/java/account/update-name.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-password.md b/docs/examples/1.1.x/client-android/java/account/update-password.md index fa777db15ba..7c90cdc4126 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-password.md +++ b/docs/examples/1.1.x/client-android/java/account/update-password.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-phone-session.md b/docs/examples/1.1.x/client-android/java/account/update-phone-session.md index fb16d46e4d0..bbcaf8dfe08 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-android/java/account/update-phone-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md index 230fd33a8e4..4ec461ea1a2 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-phone.md b/docs/examples/1.1.x/client-android/java/account/update-phone.md index db7ad1f48f2..6b1a6fb042b 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.1.x/client-android/java/account/update-phone.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-prefs.md b/docs/examples/1.1.x/client-android/java/account/update-prefs.md index 376425ef4bf..0e8bbad3d8a 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.1.x/client-android/java/account/update-prefs.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-recovery.md b/docs/examples/1.1.x/client-android/java/account/update-recovery.md index 3aceb4c760b..f4ed6369d56 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.1.x/client-android/java/account/update-recovery.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-session.md b/docs/examples/1.1.x/client-android/java/account/update-session.md index 83a91c50208..bba895318dc 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-session.md +++ b/docs/examples/1.1.x/client-android/java/account/update-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-status.md b/docs/examples/1.1.x/client-android/java/account/update-status.md index 34eece35d81..66df60f1a5a 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-status.md +++ b/docs/examples/1.1.x/client-android/java/account/update-status.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-verification.md b/docs/examples/1.1.x/client-android/java/account/update-verification.md index b29574b2a25..40c87ab0066 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/update-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-browser.md b/docs/examples/1.1.x/client-android/java/avatars/get-browser.md index 23649a4df26..8dbcd9368f2 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-browser.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md index 2987032f557..f824daf919a 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md index 4c308c3a83b..b4f5365f36c 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-flag.md b/docs/examples/1.1.x/client-android/java/avatars/get-flag.md index c1420690984..4299fd637a1 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-flag.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-image.md b/docs/examples/1.1.x/client-android/java/avatars/get-image.md index 1e8fae26823..28592a6345e 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-image.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-initials.md b/docs/examples/1.1.x/client-android/java/avatars/get-initials.md index e75f0d83d24..1f7e29d11ac 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-initials.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md index a7967393450..06c089c363b 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/create-document.md b/docs/examples/1.1.x/client-android/java/databases/create-document.md index 7c146ffc23d..a5b50fe0ac8 100644 --- a/docs/examples/1.1.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/create-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/delete-document.md b/docs/examples/1.1.x/client-android/java/databases/delete-document.md index 6c72692246c..758a84c35d6 100644 --- a/docs/examples/1.1.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/delete-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/get-document.md b/docs/examples/1.1.x/client-android/java/databases/get-document.md index adbdb0a9c8f..c70f786a741 100644 --- a/docs/examples/1.1.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/get-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/list-documents.md b/docs/examples/1.1.x/client-android/java/databases/list-documents.md index d819c653fe4..b6fe067c472 100644 --- a/docs/examples/1.1.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.1.x/client-android/java/databases/list-documents.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/update-document.md b/docs/examples/1.1.x/client-android/java/databases/update-document.md index 9f64eb5bcda..31bbacd303f 100644 --- a/docs/examples/1.1.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/update-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/functions/create-execution.md b/docs/examples/1.1.x/client-android/java/functions/create-execution.md index 9002fc2680f..489686cf476 100644 --- a/docs/examples/1.1.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.1.x/client-android/java/functions/create-execution.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.1.x/client-android/java/functions/get-execution.md b/docs/examples/1.1.x/client-android/java/functions/get-execution.md index e94f2c95792..42b75e2d52c 100644 --- a/docs/examples/1.1.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.1.x/client-android/java/functions/get-execution.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.1.x/client-android/java/functions/list-executions.md b/docs/examples/1.1.x/client-android/java/functions/list-executions.md index 83c56f2ee4f..665b1a68374 100644 --- a/docs/examples/1.1.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.1.x/client-android/java/functions/list-executions.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/get.md b/docs/examples/1.1.x/client-android/java/locale/get.md index a89ffde876a..f3dd917a079 100644 --- a/docs/examples/1.1.x/client-android/java/locale/get.md +++ b/docs/examples/1.1.x/client-android/java/locale/get.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-continents.md b/docs/examples/1.1.x/client-android/java/locale/list-continents.md index 9c7f7dd5fd3..a74ad626dc6 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-continents.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md index e5e065d60ed..e9f7ddcf8d6 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md index 5e5eae05f12..594636aacb9 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-countries.md b/docs/examples/1.1.x/client-android/java/locale/list-countries.md index 06693c19a9c..ad34b0b7412 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-countries.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-currencies.md b/docs/examples/1.1.x/client-android/java/locale/list-currencies.md index bc1b0f1a9de..2b835867737 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-currencies.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-languages.md b/docs/examples/1.1.x/client-android/java/locale/list-languages.md index ef1cb3c90a2..f47208cf0b3 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-languages.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/create-file.md b/docs/examples/1.1.x/client-android/java/storage/create-file.md index ebf4e677462..56feb9e9450 100644 --- a/docs/examples/1.1.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/create-file.md @@ -14,7 +14,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/delete-file.md b/docs/examples/1.1.x/client-android/java/storage/delete-file.md index 4b7ca75ef0b..a51a7303e6c 100644 --- a/docs/examples/1.1.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/delete-file.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file-download.md b/docs/examples/1.1.x/client-android/java/storage/get-file-download.md index f872bbba1ca..a32144afab6 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file-download.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md index de2350d0d19..d01356c5a5f 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file-view.md b/docs/examples/1.1.x/client-android/java/storage/get-file-view.md index 4c8f4805378..2e5b146430b 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file-view.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file.md b/docs/examples/1.1.x/client-android/java/storage/get-file.md index 5599fe3432b..9b005810078 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/list-files.md b/docs/examples/1.1.x/client-android/java/storage/list-files.md index 8f2e1232df5..3767b4d4b8c 100644 --- a/docs/examples/1.1.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.1.x/client-android/java/storage/list-files.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/update-file.md b/docs/examples/1.1.x/client-android/java/storage/update-file.md index ae9f138b010..d856ecc5329 100644 --- a/docs/examples/1.1.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/update-file.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/create-membership.md b/docs/examples/1.1.x/client-android/java/teams/create-membership.md index c4615cabf88..d3ad5f013ad 100644 --- a/docs/examples/1.1.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.1.x/client-android/java/teams/create-membership.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/create.md b/docs/examples/1.1.x/client-android/java/teams/create.md index 93367655cd2..d6fb9836ca8 100644 --- a/docs/examples/1.1.x/client-android/java/teams/create.md +++ b/docs/examples/1.1.x/client-android/java/teams/create.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/delete-membership.md b/docs/examples/1.1.x/client-android/java/teams/delete-membership.md index ae8eb96f899..baacc82d4c0 100644 --- a/docs/examples/1.1.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-android/java/teams/delete-membership.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/delete.md b/docs/examples/1.1.x/client-android/java/teams/delete.md index 64376350a17..431b1f18d33 100644 --- a/docs/examples/1.1.x/client-android/java/teams/delete.md +++ b/docs/examples/1.1.x/client-android/java/teams/delete.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/get-membership.md b/docs/examples/1.1.x/client-android/java/teams/get-membership.md index fd9319cb2c7..6cb3f61d7b5 100644 --- a/docs/examples/1.1.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.1.x/client-android/java/teams/get-membership.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/get.md b/docs/examples/1.1.x/client-android/java/teams/get.md index 8ec069ff66e..ffd6f1cb7da 100644 --- a/docs/examples/1.1.x/client-android/java/teams/get.md +++ b/docs/examples/1.1.x/client-android/java/teams/get.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/list-memberships.md b/docs/examples/1.1.x/client-android/java/teams/list-memberships.md index aa28fc62e4f..2f757803313 100644 --- a/docs/examples/1.1.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-android/java/teams/list-memberships.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/list.md b/docs/examples/1.1.x/client-android/java/teams/list.md index e5e026756df..2fa812a1720 100644 --- a/docs/examples/1.1.x/client-android/java/teams/list.md +++ b/docs/examples/1.1.x/client-android/java/teams/list.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md index 275fb0ffec0..ec973e84d02 100644 --- a/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md index 5c063296b35..30282637adf 100644 --- a/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/update.md b/docs/examples/1.1.x/client-android/java/teams/update.md index 9cfce621626..8ecffde2c47 100644 --- a/docs/examples/1.1.x/client-android/java/teams/update.md +++ b/docs/examples/1.1.x/client-android/java/teams/update.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md index 523c4387eae..8e65376c0d2 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md index 397954baa73..526df093de3 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md index 4e995224013..84413eb3fa4 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md index b0eeb8dd20a..1b324d14a17 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md index 63eef21da08..7888ca94ab5 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md index 27b8749a929..be596570a68 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md index 31ea1ea014d..6afdc3b1647 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md index 2153934336f..af57d8355a8 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md index 3705fc9fbac..f5303d299f3 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create.md b/docs/examples/1.1.x/client-android/kotlin/account/create.md index 95ac636eedb..44207867e2d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md index 35168c7838d..c1aa2c37d47 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md index 9bb811178e4..97f7daf6e80 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md index fbd819e1625..c879c1012b2 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/get-session.md b/docs/examples/1.1.x/client-android/kotlin/account/get-session.md index 7da8ebf958f..082367724f1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/get-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/get.md b/docs/examples/1.1.x/client-android/kotlin/account/get.md index 6ce5442990d..4dbc6d37c58 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/get.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md index 2e5d2a17676..9241ed4cf0b 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md index c74443e19d2..59546311084 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-email.md b/docs/examples/1.1.x/client-android/kotlin/account/update-email.md index 9745902f49e..6237dd292a1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-email.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c8a744a23c8..5715424957d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-name.md b/docs/examples/1.1.x/client-android/kotlin/account/update-name.md index 0aecf3987dd..d3270082bdb 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-name.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-password.md b/docs/examples/1.1.x/client-android/kotlin/account/update-password.md index 6d634dbfc79..a31926174cc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-password.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md index 0e3ad12c15e..c921564e421 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md index e4db01a901a..d5d516181fd 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md index 9339ba12b76..7590361bf40 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md index e5c8340c9c5..e9471e18516 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md index eb1bcf54cf7..1b9b2b910dc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-session.md b/docs/examples/1.1.x/client-android/kotlin/account/update-session.md index b8dbdb0c8f4..50d34cfdaa0 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-status.md b/docs/examples/1.1.x/client-android/kotlin/account/update-status.md index da910c8da36..f6afc0830b7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-status.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md index 05ea52b4e01..2fc2612c1c7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md index 5709b914bd1..e7041ea9f47 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md index 5e3bfa3c9fc..dda629da087 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md index 9cb0ce96ccd..805bf4e9172 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md index 015ed2e9441..0e751605110 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md index c82bfae0ab8..9cea5a9e142 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md index ca94c129647..6f0bd57ce5a 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md index 47ccf7b71bb..45742a2c4a6 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md index b552212c718..b05f5284477 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md index 3c657a0a7c5..aa119eb9d53 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md index 37c054620be..b19abfa6330 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md index de6949afa72..881d3d76977 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md index b25a52f9687..74c0fc615b7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md index 92c06e09465..45ba677cab1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md index 60a8b0a4fdb..25413862a32 100644 --- a/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md index 7229499027d..aea08d185c7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/get.md b/docs/examples/1.1.x/client-android/kotlin/locale/get.md index ab41f9d14d2..1f1a0c50674 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/get.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md index 000fb44e678..555bdaad1c6 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md index 4f5da4c4d32..aef915af140 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md index c6fead14a0a..8909914a103 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md index 1e883c57e8f..e9bb22acc40 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md index 20b60bdc81b..2a59d32117c 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md index ace38e54c81..b819b84ed37 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md index 1a35bbf4d26..2602db34939 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md @@ -12,7 +12,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md index 1f95a13fb4b..867f51d7c11 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md index 7dad4d75487..57eea68e7ac 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md index e0297ffb498..2f3efa8e151 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md index 2a502cdad26..e324b19e7c3 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md index 8a8a2f11cfa..15a9f41bea1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md index e8889ff222d..fc013defc0d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md index 85fa0e9d077..146522bd37d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md index 2c834f01f77..5f2a4242b96 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/create.md b/docs/examples/1.1.x/client-android/kotlin/teams/create.md index 53808fb5ec7..841bd9b8dcc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/create.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md index c76a656bd5a..2df0d977dc6 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/delete.md b/docs/examples/1.1.x/client-android/kotlin/teams/delete.md index e94b847185e..1ab1a72eb20 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/delete.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md index b895e43ae14..bee457e1590 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/get.md b/docs/examples/1.1.x/client-android/kotlin/teams/get.md index b2e44ad8a86..d6af87208d9 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/get.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md index 1dc4cadd5ea..d9eb219ab40 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/list.md b/docs/examples/1.1.x/client-android/kotlin/teams/list.md index bb9b6fff83a..f133df09b8e 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/list.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md index b23ebf07e3d..676973ddcb1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md index f4bc29f01d7..fc11c4e047e 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/update.md b/docs/examples/1.1.x/client-android/kotlin/teams/update.md index fc9447f0e97..30ed177b2fc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/update.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/update.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md index b01493a2498..5d393d835df 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.createAnonymousSession() diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md index 19e9576d9e2..703f6dd7887 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.createEmailSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md index 8b3ce9b0560..6f36952df5c 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let jwt = try await account.createJWT() diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md index 92dd6eb5f39..ea56334a437 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createMagicURLSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md index 45d5ccb19c8..8df03f1d418 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let success = try await account.createOAuth2Session( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md index f1466edc9dc..911813d7f12 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createPhoneSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md index acb37fe6390..4e26cfabf95 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createPhoneVerification() diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md index 997b503550b..edcd4e4f455 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createRecovery( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-verification.md b/docs/examples/1.1.x/client-apple/examples/account/create-verification.md index 42f7e6af6bd..6f402f0d8e2 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createVerification( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create.md b/docs/examples/1.1.x/client-apple/examples/account/create.md index 0d2f7cf5dba..998cdadabb9 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.create( diff --git a/docs/examples/1.1.x/client-apple/examples/account/delete-session.md b/docs/examples/1.1.x/client-apple/examples/account/delete-session.md index 5ff8ec5c158..0cfdd0912cf 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let result = try await account.deleteSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md index b0ae70f2d81..e70b69b3c68 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let result = try await account.deleteSessions() diff --git a/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md index 84c422de3da..3a1d2052a67 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let preferences = try await account.getPrefs() diff --git a/docs/examples/1.1.x/client-apple/examples/account/get-session.md b/docs/examples/1.1.x/client-apple/examples/account/get-session.md index 008b21e5843..f960c23c9b9 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.getSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/get.md b/docs/examples/1.1.x/client-apple/examples/account/get.md index c6879c53efb..419e75a0987 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/get.md +++ b/docs/examples/1.1.x/client-apple/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.get() diff --git a/docs/examples/1.1.x/client-apple/examples/account/list-logs.md b/docs/examples/1.1.x/client-apple/examples/account/list-logs.md index 47904958353..fa8636f7960 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.1.x/client-apple/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let logList = try await account.listLogs() diff --git a/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md index 35e9ddac216..265b7404124 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let sessionList = try await account.listSessions() diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-email.md b/docs/examples/1.1.x/client-apple/examples/account/update-email.md index a242f82e7ce..151ea4ebfe6 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updateEmail( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md index 988c2c95a34..dc4efb8fabe 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.updateMagicURLSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-name.md b/docs/examples/1.1.x/client-apple/examples/account/update-name.md index bd149918e6e..c2e8f782fad 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updateName( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-password.md b/docs/examples/1.1.x/client-apple/examples/account/update-password.md index 57fe0304531..2fb6c6dc047 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updatePassword( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md index 9d6261ad3bd..95348df62cf 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.updatePhoneSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md index 9aeabe89920..ae7f5b69e58 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.updatePhoneVerification( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-phone.md b/docs/examples/1.1.x/client-apple/examples/account/update-phone.md index 0cb3af54eab..7f3654e265d 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updatePhone( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md index 2677743d532..0f4b396a8ef 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updatePrefs( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md index f462fb2052d..d3f46e8c790 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.updateRecovery( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-session.md b/docs/examples/1.1.x/client-apple/examples/account/update-session.md index a4514cbf4fc..0c86ee357bd 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.updateSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-status.md b/docs/examples/1.1.x/client-apple/examples/account/update-status.md index 36b28d82ed9..91f005153b4 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updateStatus() diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-verification.md b/docs/examples/1.1.x/client-apple/examples/account/update-verification.md index 9e2938d9688..1bdc2136540 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.updateVerification( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md index 64e856ca2bf..8d07de18f04 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getBrowser( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md index b138c07ad4a..f9b209aed53 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getCreditCard( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md index 13f0ebee3be..7cb3ecc35eb 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getFavicon( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md index 9a4481738e8..f8a957d1235 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getFlag( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md index 72b16230bb1..6d8e3cf43ba 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getImage( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md index e72da226a06..518a0f169be 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getInitials() diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md index 68c7bd3cb1a..7e48077ddcb 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getQR( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/create-document.md b/docs/examples/1.1.x/client-apple/examples/databases/create-document.md index 5980887c483..2ecab8695e9 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let document = try await databases.createDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md index 0f75b7a92d7..2170f5ede11 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let result = try await databases.deleteDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/get-document.md b/docs/examples/1.1.x/client-apple/examples/databases/get-document.md index 14e40cb617e..c9728cf4b7f 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let document = try await databases.getDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md index 83e925c5806..71c97c46e05 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let documentList = try await databases.listDocuments( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/update-document.md b/docs/examples/1.1.x/client-apple/examples/databases/update-document.md index cf9c3f9830d..f25c25c3954 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let document = try await databases.updateDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md index 14ffedda8a2..b8bf7d8a8f2 100644 --- a/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) let execution = try await functions.createExecution( diff --git a/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md index 76383cf16ad..4a96e8e4eb3 100644 --- a/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) let execution = try await functions.getExecution( diff --git a/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md index d1b988d3ff6..84697abcdf1 100644 --- a/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) let executionList = try await functions.listExecutions( diff --git a/docs/examples/1.1.x/client-apple/examples/locale/get.md b/docs/examples/1.1.x/client-apple/examples/locale/get.md index 69ddcb19196..3abe976fbc5 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let locale = try await locale.get() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md index 4430d3760f7..afd6a9d6b49 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let continentList = try await locale.listContinents() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md index 710fae830c7..43502702eb1 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let countryList = try await locale.listCountriesEU() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md index ed41b8a6618..07b9e070143 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let phoneList = try await locale.listCountriesPhones() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md index 96dcc552797..9b4b3923cb8 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let countryList = try await locale.listCountries() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md index 16bde9f3cbb..340494023e9 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let currencyList = try await locale.listCurrencies() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md index 74092a302a4..18f4e953aba 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let languageList = try await locale.listLanguages() diff --git a/docs/examples/1.1.x/client-apple/examples/storage/create-file.md b/docs/examples/1.1.x/client-apple/examples/storage/create-file.md index 5be0f44324f..35f8cfe8996 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let file = try await storage.createFile( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md index 1497fa4bc1c..134b7244cb4 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let result = try await storage.deleteFile( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md index 5c8b8c10bd6..00b888704b8 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md index 83700b7de3b..ea4179ed5ef 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md index 304889a7ca2..998a8e7deb5 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileView( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file.md index 345e81a31ea..c6ca3aaa05a 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let file = try await storage.getFile( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/list-files.md b/docs/examples/1.1.x/client-apple/examples/storage/list-files.md index cf88257123b..254223a5068 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let fileList = try await storage.listFiles( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/update-file.md b/docs/examples/1.1.x/client-apple/examples/storage/update-file.md index e93fd0bf4e0..281aeffdec8 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let file = try await storage.updateFile( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md index 988e7984aba..268c6da6fed 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.createMembership( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/create.md b/docs/examples/1.1.x/client-apple/examples/teams/create.md index c9a2dbc0153..9ccf45ab3df 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let team = try await teams.create( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md index c36537dc786..3db0f5ef03c 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let result = try await teams.deleteMembership( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/delete.md b/docs/examples/1.1.x/client-apple/examples/teams/delete.md index 49d366580db..f5c40d7bf2a 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let result = try await teams.delete( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md index 8c8d747bc3e..f8563fb6044 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.getMembership( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/get.md b/docs/examples/1.1.x/client-apple/examples/teams/get.md index 96c87c9bcdc..2e50bd33941 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let team = try await teams.get( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md index 0dce9eb4d9e..171699e5207 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membershipList = try await teams.listMemberships( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/list.md b/docs/examples/1.1.x/client-apple/examples/teams/list.md index 1a5299f4615..38de89bd41c 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let teamList = try await teams.list() diff --git a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md index 066374a4a07..284714f98d3 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.updateMembershipRoles( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md index b465560259d..c76900c510c 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.updateMembershipStatus( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/update.md b/docs/examples/1.1.x/client-apple/examples/teams/update.md index 2f8088fc039..139594f7aab 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/update.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let team = try await teams.update( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create.md b/docs/examples/1.1.x/client-flutter/examples/account/create.md index 501034aa7ff..f54f0474313 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/get-session.md b/docs/examples/1.1.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/get.md b/docs/examples/1.1.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-email.md b/docs/examples/1.1.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-name.md b/docs/examples/1.1.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-password.md b/docs/examples/1.1.x/client-flutter/examples/account/update-password.md index fc4e7611df5..a19d697e21b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-session.md b/docs/examples/1.1.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-status.md b/docs/examples/1.1.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/get.md b/docs/examples/1.1.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md index fe54b4acfca..2a11b981c37 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/create.md b/docs/examples/1.1.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/delete.md b/docs/examples/1.1.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/get.md b/docs/examples/1.1.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/list.md b/docs/examples/1.1.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md index 6e96c017e03..c031101d7a2 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipRoles( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/update.md b/docs/examples/1.1.x/client-flutter/examples/teams/update.md index 63aa33feb96..5972b9fbdaf 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/update.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.update( diff --git a/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-email-session.md b/docs/examples/1.1.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-recovery.md b/docs/examples/1.1.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-verification.md b/docs/examples/1.1.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create.md b/docs/examples/1.1.x/client-web/examples/account/create.md index 317a0c52651..f452383fed2 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create.md +++ b/docs/examples/1.1.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/delete-session.md b/docs/examples/1.1.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.1.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/get-prefs.md b/docs/examples/1.1.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.1.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/get-session.md b/docs/examples/1.1.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.1.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/get.md b/docs/examples/1.1.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.1.x/client-web/examples/account/get.md +++ b/docs/examples/1.1.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/list-logs.md b/docs/examples/1.1.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.1.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.1.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/list-sessions.md b/docs/examples/1.1.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.1.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-email.md b/docs/examples/1.1.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-name.md b/docs/examples/1.1.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-password.md b/docs/examples/1.1.x/client-web/examples/account/update-password.md index 9cb72c7fdef..b5dea9c9eba 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-phone.md b/docs/examples/1.1.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-prefs.md b/docs/examples/1.1.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-recovery.md b/docs/examples/1.1.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-session.md b/docs/examples/1.1.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-status.md b/docs/examples/1.1.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-verification.md b/docs/examples/1.1.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-image.md b/docs/examples/1.1.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/create-document.md b/docs/examples/1.1.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/delete-document.md b/docs/examples/1.1.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/get-document.md b/docs/examples/1.1.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/list-documents.md b/docs/examples/1.1.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/update-document.md b/docs/examples/1.1.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/functions/create-execution.md b/docs/examples/1.1.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.1.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/functions/get-execution.md b/docs/examples/1.1.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.1.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/functions/list-executions.md b/docs/examples/1.1.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.1.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/get.md b/docs/examples/1.1.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/get.md +++ b/docs/examples/1.1.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-continents.md b/docs/examples/1.1.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-countries.md b/docs/examples/1.1.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-languages.md b/docs/examples/1.1.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/create-file.md b/docs/examples/1.1.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/delete-file.md b/docs/examples/1.1.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file.md b/docs/examples/1.1.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/list-files.md b/docs/examples/1.1.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.1.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/update-file.md b/docs/examples/1.1.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/create-membership.md b/docs/examples/1.1.x/client-web/examples/teams/create-membership.md index 655f7982883..85fb1ef1245 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/create.md b/docs/examples/1.1.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/create.md +++ b/docs/examples/1.1.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/delete.md b/docs/examples/1.1.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.1.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/get-membership.md b/docs/examples/1.1.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/get.md b/docs/examples/1.1.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/get.md +++ b/docs/examples/1.1.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/list.md b/docs/examples/1.1.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/list.md +++ b/docs/examples/1.1.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/update.md b/docs/examples/1.1.x/client-web/examples/teams/update.md index e10252e73f8..016d53add81 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/update.md +++ b/docs/examples/1.1.x/client-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-email-session.md b/docs/examples/1.1.x/console-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-recovery.md b/docs/examples/1.1.x/console-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-verification.md b/docs/examples/1.1.x/console-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create.md b/docs/examples/1.1.x/console-web/examples/account/create.md index 317a0c52651..f452383fed2 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create.md +++ b/docs/examples/1.1.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/delete-session.md b/docs/examples/1.1.x/console-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.1.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/get-prefs.md b/docs/examples/1.1.x/console-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.1.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/get-session.md b/docs/examples/1.1.x/console-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.1.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/get.md b/docs/examples/1.1.x/console-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.1.x/console-web/examples/account/get.md +++ b/docs/examples/1.1.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/list-logs.md b/docs/examples/1.1.x/console-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.1.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/list-sessions.md b/docs/examples/1.1.x/console-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.1.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-email.md b/docs/examples/1.1.x/console-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-name.md b/docs/examples/1.1.x/console-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-password.md b/docs/examples/1.1.x/console-web/examples/account/update-password.md index 9cb72c7fdef..b5dea9c9eba 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-phone.md b/docs/examples/1.1.x/console-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-prefs.md b/docs/examples/1.1.x/console-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-recovery.md b/docs/examples/1.1.x/console-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-session.md b/docs/examples/1.1.x/console-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-status.md b/docs/examples/1.1.x/console-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-verification.md b/docs/examples/1.1.x/console-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-image.md b/docs/examples/1.1.x/console-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md index 7264597ebf5..a35d7e22915 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-collection.md b/docs/examples/1.1.x/console-web/examples/databases/create-collection.md index 01cce022813..433e0641a82 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md index 2ffa6123a52..4af912ab14a 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-document.md b/docs/examples/1.1.x/console-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md index 7aca28fd5e4..4a29c9e062f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md index 664a4f99fb5..824b72fc423 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md index aec9fa850cb..09968951e22 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-index.md b/docs/examples/1.1.x/console-web/examples/databases/create-index.md index d6d791fc17f..2b0e8073cdb 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md index 8d2f5c49edc..d60cb8980ca 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md index 3936077ec47..7c5efea065a 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md index ff865a5b0c1..58d53c48ec9 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md index ba4997f6683..661c54a5fad 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create.md b/docs/examples/1.1.x/console-web/examples/databases/create.md index ba22b473f2b..d4df9e5d2be 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md index 5a9a98e866d..79c5fefba3e 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md index 927ce3d8873..849a24b5305 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-document.md b/docs/examples/1.1.x/console-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-index.md b/docs/examples/1.1.x/console-web/examples/databases/delete-index.md index 23f6c9e469d..ad9c9ada607 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete.md b/docs/examples/1.1.x/console-web/examples/databases/delete.md index bdb28f9839c..fb3b6cce789 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md index b53234c4b11..d3ed02ea87f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md index efa1d7136d6..70f5982f9f8 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-collection.md b/docs/examples/1.1.x/console-web/examples/databases/get-collection.md index eb14848e8f1..a8a7480dc96 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md index 59e93cf92cf..6a31c262312 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-document.md b/docs/examples/1.1.x/console-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-index.md b/docs/examples/1.1.x/console-web/examples/databases/get-index.md index b6f5f583006..f94b8c02154 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-usage.md b/docs/examples/1.1.x/console-web/examples/databases/get-usage.md index f74e0f37487..4a33122edf2 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get.md b/docs/examples/1.1.x/console-web/examples/databases/get.md index bd78b849494..9ce75fa223f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md index 74de96d3253..5c7240d9d2d 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md index 3c9721007be..2370727c3c3 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-collections.md b/docs/examples/1.1.x/console-web/examples/databases/list-collections.md index c34f3d8caf9..abc239f0e5c 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md index fd0870e54b7..613a24bc3a9 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-documents.md b/docs/examples/1.1.x/console-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md index 714573b758b..f8bbf88526e 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-logs.md b/docs/examples/1.1.x/console-web/examples/databases/list-logs.md index 5566fa3e6f4..a0ff5edae7f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list.md b/docs/examples/1.1.x/console-web/examples/databases/list.md index d97b85c1386..747936f243c 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/update-collection.md b/docs/examples/1.1.x/console-web/examples/databases/update-collection.md index 526f2453dbb..3fd4740da93 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/update-document.md b/docs/examples/1.1.x/console-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/update.md b/docs/examples/1.1.x/console-web/examples/databases/update.md index 93b4bf8e59e..d34c71b7cb2 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/update.md +++ b/docs/examples/1.1.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-build.md b/docs/examples/1.1.x/console-web/examples/functions/create-build.md index a92ced206e7..e8671187a30 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md index fed22c21d98..331fa957caa 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-execution.md b/docs/examples/1.1.x/console-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-variable.md b/docs/examples/1.1.x/console-web/examples/functions/create-variable.md index 78c465c2fe7..ecdf7efb19d 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create.md b/docs/examples/1.1.x/console-web/examples/functions/create.md index 9639cae64bc..d343679c93c 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md index 06cb18591db..3c3c147bd07 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md index 91ba6778f2e..3e834592303 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/delete.md b/docs/examples/1.1.x/console-web/examples/functions/delete.md index 8c78a1c9286..249d118e92b 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.1.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md index e2bdb9a2833..9a372cc93aa 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-execution.md b/docs/examples/1.1.x/console-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md index d58dd43b902..2c424e61ae7 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-usage.md b/docs/examples/1.1.x/console-web/examples/functions/get-usage.md index 12bdbe879b9..82d3959b3d9 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-variable.md b/docs/examples/1.1.x/console-web/examples/functions/get-variable.md index 4225157a866..26da0bd8895 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get.md b/docs/examples/1.1.x/console-web/examples/functions/get.md index 06c91ea01a1..2ade672c950 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md index 8c2145bc630..ecf25aa1e0d 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-executions.md b/docs/examples/1.1.x/console-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md index 137d046cf78..e4ac34ac23f 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-variables.md b/docs/examples/1.1.x/console-web/examples/functions/list-variables.md index 44f8799d8ee..75d18c13cd2 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list.md b/docs/examples/1.1.x/console-web/examples/functions/list.md index c2a9d7bdf91..21dba3f21b5 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md index 1c14677cde6..bc92b888584 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/update-variable.md b/docs/examples/1.1.x/console-web/examples/functions/update-variable.md index de7bf53130c..bccab51b68d 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/update.md b/docs/examples/1.1.x/console-web/examples/functions/update.md index cbb427917cd..4b69b0470fd 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/update.md +++ b/docs/examples/1.1.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md index ed644f689b5..2ce2d245dc8 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-cache.md b/docs/examples/1.1.x/console-web/examples/health/get-cache.md index 8d29c8c9831..e28f9f827aa 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-d-b.md b/docs/examples/1.1.x/console-web/examples/health/get-d-b.md index 3738634d6bf..fdf02d59455 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md index ebdfe3e2f7a..ffe340f8f8d 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md index c6edd987ff2..111ffa735d9 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md index 88c50cb2451..902504b6703 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md index 304d90f0a38..0dc80f74546 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md index a8b1d9a3541..affd46b7dd6 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-time.md b/docs/examples/1.1.x/console-web/examples/health/get-time.md index e4b7b5d0c33..eeaf31b05aa 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get.md b/docs/examples/1.1.x/console-web/examples/health/get.md index 67de8fe58f4..1184b6a56b3 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get.md +++ b/docs/examples/1.1.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/get.md b/docs/examples/1.1.x/console-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/get.md +++ b/docs/examples/1.1.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-continents.md b/docs/examples/1.1.x/console-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-countries.md b/docs/examples/1.1.x/console-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-languages.md b/docs/examples/1.1.x/console-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-domain.md b/docs/examples/1.1.x/console-web/examples/projects/create-domain.md index e7dfd9013c5..923b888d25e 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-key.md b/docs/examples/1.1.x/console-web/examples/projects/create-key.md index 0fa3677d61a..b2ad13765c0 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-platform.md b/docs/examples/1.1.x/console-web/examples/projects/create-platform.md index e3362bc5602..6a02f791c85 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md index e65d59d8fa2..820a4fa9479 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create.md b/docs/examples/1.1.x/console-web/examples/projects/create.md index 7427c864091..788742447c7 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md index 4401b90e12d..51f2b2d998c 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-key.md b/docs/examples/1.1.x/console-web/examples/projects/delete-key.md index 64dcecf9235..b10631048ed 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md index ac266498b94..58e7a31fdfe 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md index e9fe6f9d3fd..300308fdff0 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete.md b/docs/examples/1.1.x/console-web/examples/projects/delete.md index a76a382e5a4..2fef23195ec 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-domain.md b/docs/examples/1.1.x/console-web/examples/projects/get-domain.md index 5bc60ae20a1..795297cb269 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-key.md b/docs/examples/1.1.x/console-web/examples/projects/get-key.md index 94da5b02b38..5f5177f45c5 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-platform.md b/docs/examples/1.1.x/console-web/examples/projects/get-platform.md index 7838e52957a..31dd54999f5 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-usage.md b/docs/examples/1.1.x/console-web/examples/projects/get-usage.md index 5bb8cb9819c..cb830cacc00 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md index 2f094d7298e..928a80daebb 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get.md b/docs/examples/1.1.x/console-web/examples/projects/get.md index ce03b2d1303..26232940812 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-domains.md b/docs/examples/1.1.x/console-web/examples/projects/list-domains.md index 3bed0807dbc..642e2f0335f 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-domains.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-keys.md b/docs/examples/1.1.x/console-web/examples/projects/list-keys.md index 8863919ecc7..7a3e4b696f9 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md index a2a67535e1e..925233e0b8c 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md index 145385f486a..61278a0482c 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list.md b/docs/examples/1.1.x/console-web/examples/projects/list.md index 09030e5747c..75ecf56d026 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md index c9d1385e331..5c9a7b2ceef 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md index be4827c26ca..0700d729330 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md index 89a4a4ee28b..56a821b34a5 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md index 4a756883a35..fe4970e67eb 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-key.md b/docs/examples/1.1.x/console-web/examples/projects/update-key.md index 15f1c63a4b5..61c4c6472d4 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md index 1d3edf0ff3e..d0b4af7b3f6 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-platform.md b/docs/examples/1.1.x/console-web/examples/projects/update-platform.md index 81e6af22d45..1a4be4a6a50 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md index 0e70a446d58..42a99c7002b 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md index f0de96ea866..4993c29835f 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md index 561ea887839..55f947e276b 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update.md b/docs/examples/1.1.x/console-web/examples/projects/update.md index aabb6b1f3c0..99dc30f82a6 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md index 09877bec8f6..243a8d4b6da 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/create-file.md b/docs/examples/1.1.x/console-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md index e0ebeef67cb..356608c38c8 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/delete-file.md b/docs/examples/1.1.x/console-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md index 173eb4b2d7b..1cccc626244 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md index 4c41b9cbed5..64e35f4cc08 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file.md b/docs/examples/1.1.x/console-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-usage.md b/docs/examples/1.1.x/console-web/examples/storage/get-usage.md index 36a58ec951e..9567f6e1ce7 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md index 286f103c68d..26935e68143 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/list-files.md b/docs/examples/1.1.x/console-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.1.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md index e1b46072855..f0aff44dd3d 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/update-file.md b/docs/examples/1.1.x/console-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/create-membership.md b/docs/examples/1.1.x/console-web/examples/teams/create-membership.md index 655f7982883..85fb1ef1245 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/create.md b/docs/examples/1.1.x/console-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/create.md +++ b/docs/examples/1.1.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/delete.md b/docs/examples/1.1.x/console-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.1.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/get-membership.md b/docs/examples/1.1.x/console-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/get.md b/docs/examples/1.1.x/console-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/get.md +++ b/docs/examples/1.1.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/list-logs.md b/docs/examples/1.1.x/console-web/examples/teams/list-logs.md index cb345448f3e..3d627260823 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/list.md b/docs/examples/1.1.x/console-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/list.md +++ b/docs/examples/1.1.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/update.md b/docs/examples/1.1.x/console-web/examples/teams/update.md index e10252e73f8..016d53add81 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/update.md +++ b/docs/examples/1.1.x/console-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md index 8f607e82dac..42aa7d9c8be 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md index fb5e741d802..4844f096314 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md index 900813773ec..15351bff928 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md index 9fb748b5872..c1a40c52ff9 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md index 315c1880560..c94c89bdc6a 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md index ddc78281ed8..b6c0dd728d2 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md index 77252face93..2a827f74a53 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create.md b/docs/examples/1.1.x/console-web/examples/users/create.md index 832ce5b90dd..bb11fa30c6f 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create.md +++ b/docs/examples/1.1.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/delete-session.md b/docs/examples/1.1.x/console-web/examples/users/delete-session.md index 80b0428c852..6352efc3ba0 100644 --- a/docs/examples/1.1.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.1.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md index 2e560488936..44ac9689c14 100644 --- a/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/delete.md b/docs/examples/1.1.x/console-web/examples/users/delete.md index 29027f83e2f..5bb8612e55d 100644 --- a/docs/examples/1.1.x/console-web/examples/users/delete.md +++ b/docs/examples/1.1.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/get-prefs.md b/docs/examples/1.1.x/console-web/examples/users/get-prefs.md index a835f9b30e8..e58e0081f78 100644 --- a/docs/examples/1.1.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/get-usage.md b/docs/examples/1.1.x/console-web/examples/users/get-usage.md index 60060b3db41..84d3fee62ab 100644 --- a/docs/examples/1.1.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/get.md b/docs/examples/1.1.x/console-web/examples/users/get.md index dbcc06ae7e2..1c91eabd958 100644 --- a/docs/examples/1.1.x/console-web/examples/users/get.md +++ b/docs/examples/1.1.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list-logs.md b/docs/examples/1.1.x/console-web/examples/users/list-logs.md index 8c7a5c652f9..2d8941191e4 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list-memberships.md b/docs/examples/1.1.x/console-web/examples/users/list-memberships.md index b4b091e9ae0..075dfec272c 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list-sessions.md b/docs/examples/1.1.x/console-web/examples/users/list-sessions.md index 7c9a2b371b1..29e9bacbb84 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list.md b/docs/examples/1.1.x/console-web/examples/users/list.md index 6500408d6e9..2211b62092a 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list.md +++ b/docs/examples/1.1.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md index a34cf45d4c5..4d3ec30a1ba 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-email.md b/docs/examples/1.1.x/console-web/examples/users/update-email.md index 4f050b433b0..aec5f2d3443 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-name.md b/docs/examples/1.1.x/console-web/examples/users/update-name.md index eb2f4159157..78b896b930b 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-password.md b/docs/examples/1.1.x/console-web/examples/users/update-password.md index 3723d7199bc..c386abbaa27 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md index 962d1a6aba8..b2b6c22d1e8 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-phone.md b/docs/examples/1.1.x/console-web/examples/users/update-phone.md index fabc44c0afa..4a81b385e8c 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-prefs.md b/docs/examples/1.1.x/console-web/examples/users/update-prefs.md index 36d9a493e35..e26da0dbb23 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-status.md b/docs/examples/1.1.x/console-web/examples/users/update-status.md index 4e8d9dfd105..691e5064b03 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/create-verification.md b/docs/examples/1.1.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/delete-session.md b/docs/examples/1.1.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/get-session.md b/docs/examples/1.1.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/get.md b/docs/examples/1.1.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/get.md +++ b/docs/examples/1.1.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/list-logs.md b/docs/examples/1.1.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-email.md b/docs/examples/1.1.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-name.md b/docs/examples/1.1.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-password.md b/docs/examples/1.1.x/server-dart/examples/account/update-password.md index 6d8cfce1a2a..8c7c3b5f956 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-phone.md b/docs/examples/1.1.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-session.md b/docs/examples/1.1.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-status.md b/docs/examples/1.1.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-verification.md b/docs/examples/1.1.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-document.md b/docs/examples/1.1.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-index.md b/docs/examples/1.1.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create.md b/docs/examples/1.1.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete.md b/docs/examples/1.1.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-document.md b/docs/examples/1.1.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-index.md b/docs/examples/1.1.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get.md b/docs/examples/1.1.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list.md b/docs/examples/1.1.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/update-document.md b/docs/examples/1.1.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/update.md b/docs/examples/1.1.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-build.md b/docs/examples/1.1.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md index d646680db84..17683d2c863 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create.md b/docs/examples/1.1.x/server-dart/examples/functions/create.md index 923654d10a8..16a5215d7c2 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/delete.md b/docs/examples/1.1.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get.md b/docs/examples/1.1.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list.md b/docs/examples/1.1.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/update.md b/docs/examples/1.1.x/server-dart/examples/functions/update.md index 4a1b0f9b4d1..973279f5f24 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-cache.md b/docs/examples/1.1.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-time.md b/docs/examples/1.1.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get.md b/docs/examples/1.1.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/get.md b/docs/examples/1.1.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/create-file.md b/docs/examples/1.1.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/list-files.md b/docs/examples/1.1.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/update-file.md b/docs/examples/1.1.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md index 16d875de28e..f2816321416 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/create.md b/docs/examples/1.1.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/delete.md b/docs/examples/1.1.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/get.md b/docs/examples/1.1.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/list.md b/docs/examples/1.1.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md index dcbef5c9484..8ede36ac641 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/update.md b/docs/examples/1.1.x/server-dart/examples/teams/update.md index 67892475abc..ce259401736 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/update.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create.md b/docs/examples/1.1.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/delete-session.md b/docs/examples/1.1.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/delete.md b/docs/examples/1.1.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/get.md b/docs/examples/1.1.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/get.md +++ b/docs/examples/1.1.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list-logs.md b/docs/examples/1.1.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list.md b/docs/examples/1.1.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-email.md b/docs/examples/1.1.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-name.md b/docs/examples/1.1.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-password.md b/docs/examples/1.1.x/server-dart/examples/users/update-password.md index ce2a4c7dd50..13fcef65860 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-phone.md b/docs/examples/1.1.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-status.md b/docs/examples/1.1.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/create-verification.md b/docs/examples/1.1.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/delete-session.md b/docs/examples/1.1.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/get-session.md b/docs/examples/1.1.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/get.md b/docs/examples/1.1.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/get.md +++ b/docs/examples/1.1.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/list-logs.md b/docs/examples/1.1.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-email.md b/docs/examples/1.1.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-name.md b/docs/examples/1.1.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-password.md b/docs/examples/1.1.x/server-deno/examples/account/update-password.md index 13e9d7c4797..26114e0c8eb 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-phone.md b/docs/examples/1.1.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-session.md b/docs/examples/1.1.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-status.md b/docs/examples/1.1.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-verification.md b/docs/examples/1.1.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-document.md b/docs/examples/1.1.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-index.md b/docs/examples/1.1.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create.md b/docs/examples/1.1.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete.md b/docs/examples/1.1.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-document.md b/docs/examples/1.1.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-index.md b/docs/examples/1.1.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get.md b/docs/examples/1.1.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list.md b/docs/examples/1.1.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/update-document.md b/docs/examples/1.1.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/update.md b/docs/examples/1.1.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-build.md b/docs/examples/1.1.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md index 005644b62e4..e663cf473a4 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create.md b/docs/examples/1.1.x/server-deno/examples/functions/create.md index 423a347f512..0964bce1806 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/delete.md b/docs/examples/1.1.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get.md b/docs/examples/1.1.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list.md b/docs/examples/1.1.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/update.md b/docs/examples/1.1.x/server-deno/examples/functions/update.md index 84316f1de7c..4c527d89705 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-cache.md b/docs/examples/1.1.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-time.md b/docs/examples/1.1.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get.md b/docs/examples/1.1.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/get.md b/docs/examples/1.1.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/create-file.md b/docs/examples/1.1.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/list-files.md b/docs/examples/1.1.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/update-file.md b/docs/examples/1.1.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md index e54377281e9..85762a26deb 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/create.md b/docs/examples/1.1.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/delete.md b/docs/examples/1.1.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/get.md b/docs/examples/1.1.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/list.md b/docs/examples/1.1.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md index 9f2dad98c6b..050f7dbbd79 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/update.md b/docs/examples/1.1.x/server-deno/examples/teams/update.md index b17708a9c48..590c6e4dcb4 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/update.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create.md b/docs/examples/1.1.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/delete-session.md b/docs/examples/1.1.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/delete.md b/docs/examples/1.1.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/get.md b/docs/examples/1.1.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/get.md +++ b/docs/examples/1.1.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list-logs.md b/docs/examples/1.1.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list.md b/docs/examples/1.1.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-email.md b/docs/examples/1.1.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-name.md b/docs/examples/1.1.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-password.md b/docs/examples/1.1.x/server-deno/examples/users/update-password.md index 3c896fae5a3..5852c340aad 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-phone.md b/docs/examples/1.1.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-status.md b/docs/examples/1.1.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md index 307aafbb62c..c4842763b0e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md index 92769f0897f..5ea67db8178 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md index 156fff0c9f3..ca9a7c1f1c5 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md index 3b082045159..8a35267d9dc 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md index 20d1ff00106..5201cbdc70c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md index cce8abba483..9c021e158cf 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/get-session.md b/docs/examples/1.1.x/server-kotlin/java/account/get-session.md index 400cfeec615..d3f63ee2b25 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/get.md b/docs/examples/1.1.x/server-kotlin/java/account/get.md index 994e7774b1c..71728f0c3ce 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md index 840e9e575bc..a3338ebf758 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md index 5932a57501f..55ec82c7400 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-email.md b/docs/examples/1.1.x/server-kotlin/java/account/update-email.md index 674d56e8b27..fbfc6096b41 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-name.md b/docs/examples/1.1.x/server-kotlin/java/account/update-name.md index 7213c14f52e..a96dd3abc20 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-password.md b/docs/examples/1.1.x/server-kotlin/java/account/update-password.md index 2431ff498d4..8e2eb162fd7 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md index d544ca8054d..5d3657a7cb4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md index df69489984e..a953637e716 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md index dde22cb12a2..c6bb503d372 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md index dc30a70964a..70b52c3684c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-session.md b/docs/examples/1.1.x/server-kotlin/java/account/update-session.md index 4ce0e1cdb0a..69a6ac8c4af 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-status.md b/docs/examples/1.1.x/server-kotlin/java/account/update-status.md index 41fab63e29b..6b7df1225e9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md index c5e1e3d946b..0df999ff670 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md index b892f97c7d7..4a28ae82ab7 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md index 5d1134a4001..0a0df9e6999 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md index 843cb5b504e..484ad31a69e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md index b5f5af0f1a6..a666bf588a9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md index cdcea652e10..879f938d459 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md index d213c5dc04e..19101f36439 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md index 777ff03bc6a..c4dd9c6806f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md index 594ed8e2b21..70b3b9f2d2e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md index 37c6fe2ed3b..14d7faefe39 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md index 4a9617831c7..7fa53f6f6e0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md index 0047d3271c0..4589673e0d6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md index 650eb350c07..695659750e9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md index 5c0e93df460..3ecc8cc0809 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md index 5d684d91c42..92287ff67e6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md index b2a85d5662b..111d104361b 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md index a8e79839368..79eeff62704 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md index b593726b048..40c81210c5c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md index 8ca68a61c65..831597c0187 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md index 05a616a6767..60fb69d2f45 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create.md b/docs/examples/1.1.x/server-kotlin/java/databases/create.md index 1a76402595c..07a7fed8a98 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md index 531a1e4ff5d..f93097a340e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md index e21866a9582..3851e5781da 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md index 0b4d16c0b67..7f2c2194cc1 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md index fb76854719e..b7209db58df 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete.md index 29a9bd7ff1f..5a8b55b2a3e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md index 18c00608a21..acf0668cafa 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md index cddfd16f872..6aae2231eb5 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md index caba9175a9d..6c89badaa80 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md index ca3a1474bd3..dcd80a31db1 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get.md b/docs/examples/1.1.x/server-kotlin/java/databases/get.md index 6eee3149951..fadb0a0bcb2 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md index a1048cf7928..b1a57e034a4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md index d21ab89ba01..a2c22903356 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md index 99e724d9ced..e483c79bec8 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md index 3b8b918798a..d6dbe2a0b62 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list.md b/docs/examples/1.1.x/server-kotlin/java/databases/list.md index 94294a62faa..3c7f6fc1758 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md index a1a2a483612..bccf2523003 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md index b2f6c1db450..9e33b9647c4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/update.md b/docs/examples/1.1.x/server-kotlin/java/databases/update.md index 782388c0958..ebc3fcf75cc 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md index 93da893c8f8..bf1556209a0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md index 8407ab28305..fee95cafd29 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md index e4f69db23cf..c870c451a91 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md index 915e707c8a3..32c859e5b1c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create.md b/docs/examples/1.1.x/server-kotlin/java/functions/create.md index 600510310aa..6f78b9a7a51 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md index aa60c9fcc8a..e48607262dd 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md index bca29eb32ff..570b3d91941 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/delete.md b/docs/examples/1.1.x/server-kotlin/java/functions/delete.md index 340253fecfc..a10ace4793a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md index c669895e8ca..e31b78547ac 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md index 2e7de1d26a2..898fd4cc663 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md index 43e284cef66..da010db5403 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get.md b/docs/examples/1.1.x/server-kotlin/java/functions/get.md index 660561da93c..bfe82ab392f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md index 91245820762..bbbb7d2e9dd 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md index 3f66e8082c4..212efa6d8eb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md index 350e6650fda..925603c7ac4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md index 95d3e09aa7c..e8f20136fb2 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list.md b/docs/examples/1.1.x/server-kotlin/java/functions/list.md index dd9f2c7c9c2..d75d49076a3 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md index e9be8adbe96..653c57e2501 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md index 399024b36ec..73bd2bb6dbe 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/update.md b/docs/examples/1.1.x/server-kotlin/java/functions/update.md index 49ca93aeb35..c4530604765 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md index 43d93aab51b..5c046d1c87f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md index 6ad11863ced..d66f3c03d98 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md index e4db1d9966a..5bfc06443ef 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md index d7331e50a27..690190b8230 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md index 1ed847e7c85..2ecfb0584d9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md index 0b232c819d3..f4ef35e57e3 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md index e2a84ff1873..1d7527d70e4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md index 275cb7e2301..fde0b58495d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-time.md b/docs/examples/1.1.x/server-kotlin/java/health/get-time.md index 57d25d64661..c2b31efa1eb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get.md b/docs/examples/1.1.x/server-kotlin/java/health/get.md index d922c22d81d..a49d3599a8e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/get.md b/docs/examples/1.1.x/server-kotlin/java/locale/get.md index c8f37a5a1ca..d8991cc3d1a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md index 15d5b6e2beb..ef31efe8af4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md index bd2007739b6..881fabbda86 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md index 083b1633a61..974cf098388 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md index 52dce6a1650..b82a5cc1cb6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md index d34a3a892ab..b611ff4ceb8 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md index 05c574a47f1..a9708c00acd 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md index c867d697a03..8df40457b7d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md index 3eff43c48f0..5bd47ae7d2d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md index ea8a4795c25..3a996f5e6f9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md index b6f17557ed3..326aecd10e0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md index 53d13792e38..e3eb7b9c665 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md index 11a52c89704..debc6ef723b 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md index 4219058238d..8cc69e4898f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md index 4194ca4c22c..3d3b9f0b658 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md index 257916252dd..1845ce3087f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md index 5e70c788e4d..b6ae28dc547 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md index 0cde2f74964..c44ce1a8ac0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md index 3910afa88ff..77e7fb2f27d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md index bf33afc8e8b..3d09d3c64e3 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md index fa8e9dabf1c..3ce09086152 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/create.md b/docs/examples/1.1.x/server-kotlin/java/teams/create.md index 3c4cd2c1e51..64c49a9068d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md index 4d623972c49..5063a180998 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/delete.md b/docs/examples/1.1.x/server-kotlin/java/teams/delete.md index dad63350652..8a6b008e72b 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md index 7c6ec277148..c26339d821c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/get.md b/docs/examples/1.1.x/server-kotlin/java/teams/get.md index a53b587a55c..103b64eedac 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md index 0b32718545f..0c9402c3984 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/list.md b/docs/examples/1.1.x/server-kotlin/java/teams/list.md index be975179d68..860b6be71fb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md index 1b8ee26f48e..50a70b07c7c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md index 314060d0498..d9560b33c81 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/update.md b/docs/examples/1.1.x/server-kotlin/java/teams/update.md index 7cf49b04409..166d6a60a6a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/update.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md index 99fbce7ea6f..ec6c6abab56 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md index c7ca2627b97..f9d6bd2f58d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md index 61071d86fb5..645c8f5b2b4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md index 224deb212cf..10f314a39b5 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md index beb326b7fd5..eaf27c2e922 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md index 9b62aae33f6..24b3155296f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md index 8304e52dbf7..ce500eb9508 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create.md b/docs/examples/1.1.x/server-kotlin/java/users/create.md index c77dd3355bf..76c0f3c93ac 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md index c7ce60f3e9b..3a1eac1d892 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md index fe5d713ae0e..1cc6990c3ae 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/delete.md b/docs/examples/1.1.x/server-kotlin/java/users/delete.md index 9c5c4db1d5f..8649daa1f43 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md index 86388b49c72..f4e62e4c02c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/get.md b/docs/examples/1.1.x/server-kotlin/java/users/get.md index bbc5dfa082c..0b8096abf1d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md index f70cd2129ee..e2b612111cb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md index 487b003aff8..7ea99f53b31 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md index 5810c1720ff..868340abd7a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list.md b/docs/examples/1.1.x/server-kotlin/java/users/list.md index 6f07e3989ea..228d35a7c6a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md index b42b2cfeba2..3e4f3377da1 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-email.md b/docs/examples/1.1.x/server-kotlin/java/users/update-email.md index f020be463e9..1d1b8580337 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-name.md b/docs/examples/1.1.x/server-kotlin/java/users/update-name.md index cd457c870c5..2e22cbdf06a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-password.md b/docs/examples/1.1.x/server-kotlin/java/users/update-password.md index 80898eef0cc..b242efc044f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md index f33f5fd0874..dc6a3f965f6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md index a0989f80c9b..f7c9e48b8b2 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md index bb7c316a23e..a6f13f77b25 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-status.md b/docs/examples/1.1.x/server-kotlin/java/users/update-status.md index b66253604c3..03c293de7ec 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md index 6ac3a3153e1..61200e90fb2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md index cea3493225b..ecd0d32225b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md index 5b687b2538a..a238e1554db 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md index 423868b5368..2a0b4ec7060 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md index 52a14be05c0..3fa125cd719 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md index e3801878003..4a31335fa1a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md index 08a72ce91c3..8ce51386824 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md index c1f0e68ce67..719dfcfb100 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md index 54067a0bae5..cc9308fe8bc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md index 90033ec4668..5dbf4259808 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md index ffb13c2a432..be9857bb6c3 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md index 43d9a6d6db8..6760f73f017 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md index 0d5d388c0bc..dcd14578d7e 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md index 6a208bc3c08..2c3e1e5d779 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md index c6b5e332823..0e0db071789 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md index 73a20a65963..0ca8705a3fc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md index 9097c32edb0..a90256b1a44 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md index 21bbb56e1bf..38a51fdc9e4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md index 3cc5c04a911..b4b2cf47c3b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md index 34f5f32d3c0..6c31d6841ab 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md index 5d927ba9d4d..db9e042b50d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md index 42738dd1108..481860b65a7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md index d88a868666b..69a3bddd9ee 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md index e63201ebe94..3dc8cd2c8f9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md index 6cd02694ccf..ecb8d8a58be 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md index 33deb1b302c..b26598f171b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md index 9bb5a95f07c..349cb0ec900 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index c7afb42eb37..41528d028ba 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md index 36d273695a8..3b06b5157cb 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index 0a04a626a58..260fe7e9c75 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md index 85be538649e..6aacdadcdcc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md index 0a1e885f863..288a110feba 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md index fe07f083423..d9651473503 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md index 9025f2225d9..18b1c2d28f0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md index 170b0657298..6c2c05283f9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 2c4e86aadfc..d7a86f8c114 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md index d9aba79052b..9d3f6ba092a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md index f35dc11de0b..86b022e55d2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md index 6c55ef471f7..71b34560f34 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md index 903aa728354..dcbad5af3dc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md index bf22e174ae8..65925b89aa3 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md index 967b1c082c5..406278b6404 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md index 911fb63be9e..71e8e1e175c 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md index 8a733ecda16..ee63498e36a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md index 2a64f968203..e4dfc88dc5d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md index 473cb1ce317..8927bdee407 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md index 7867c39e942..7eb0b467aa2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md index 03d8e4f7b74..4ac9c8c3fc4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md index e2103648fb1..0d3ce4f73d5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md index ef11d925496..9c13cb7fd98 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md index fcbae6d97d7..a161bb7c9b6 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md index 9a3bc67177d..cf9219ad804 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md index c963007c704..5528e9c9cf5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md index 4194ae11d30..f2df11f1c2d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md index aeaf8835adb..a979c19f285 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md index b1a08810675..53a483fc1f5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md index c0847f92922..403fbda6a61 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md index a349dfa9071..098ec268a8b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md index fc6c26e62c8..be7cd2e0c10 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md index 10461d7de8b..0d9b16c5907 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md index 7f5ed237f16..b8e9d8a4379 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md index dbec221f28c..9729be2e357 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md index 8b94bf705e0..835f5b3199f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md index cf6f20f3947..593efa165c9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md index 1ab4d4fd9cb..d6037ef4226 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md index 3a2b62ef13f..2768aeb0463 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md index ab1b3fbf5e2..7c31f56d656 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md index 032365e1a97..ad810c587b9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md index da2d39529a0..c38856addfd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md index b2419d2c213..695cb815dcd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md index a59bbdd8fef..f09e4f5e6a5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md index fe68f9984a2..2ce8ad0744d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md index e4407179622..30f8bbc1d53 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md index d704ca48efd..9238a914420 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md index 7452da29f8a..2e1026ca3ad 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md index 65ac5481086..12b05e77e40 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md index 6179cb7cb59..eb69dcb6ddc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md index 208889b6b12..e6c60ee8afe 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md index 81ede56cddb..618ca13f326 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md index e2b7ca6e54b..67b5d28c7bd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md index d8aabf4d952..7b0aa0015f7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md index b0acf58cf4d..c541cee6855 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md index fdfdb255265..0174b442afd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md index 0cd42bb1ea3..7504511aee4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md index a08f377303e..ab1848b8404 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md index db5f25d7be2..e44e5702ef7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md index d173c995b23..1e028bbbd30 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md index 3a728523a5b..8638d6cfd4a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md index a2712a080bf..00b19cea680 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md index d2e877476ca..f763a62d10d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 7f07f776be3..3c5ef9674b0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md index 6bf23fab85d..ceedf902da0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md index 0edacc9ab06..ae782beaf81 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md index b72d52a2181..2b5598661a8 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md index 829ff858635..5f9f8fe31b1 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md index 40c9d60cbce..31f5295a4e2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md index 4b6f3f404da..f81c9fc8a77 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md index 3fc6e201743..4b6b5a43002 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md index cdb62418c5b..24d55d1f7e1 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md index d85f4ac9aa7..66fa1e72ce9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md index 9c66bd73d26..9ff3bdcab47 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md index a60a76d9d5b..02072f1a7ec 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md index 22a09125c18..1b84008bde4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md index 6ab4713a259..dee1afe5493 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md index 275681ec996..06ada06f2d4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md index 2ba7a123579..b835164f5e4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md index 8eba7ea2d1e..406f784472f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md index 07e191c614f..0ac87749e52 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md index 4db93244332..d0f0c7d12ed 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md index cf2045673fc..e5add3d3275 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md index caf36d3e17f..f39691fbb96 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md index 05532b2d617..3d70f19cdfd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md index 7fcc69ad948..5856ef91c9f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md index 9802e9a7ee0..ef965b42a59 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md index 6532f6c455a..a155d775548 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md index 7b7fc44ff1c..ec0ef0b0b2b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md index 3fedfb4afa4..dd5eb8e85f6 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md index 89dd5b16b53..02d2895d277 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md index 8cfae9ddc12..2054ff4b385 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md index 0cb6a903d87..d99713c5c37 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 2e87a35b35d..85ed37ccb82 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md index 2ba9d45be4b..8bc5adf31c8 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index cb01ab83491..cb058d7ef19 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md index e334d24d1c3..8e2eabd2a67 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index 664a1d17226..754775e1cd5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md index af7cfc33433..a2ae0f72775 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md index b6e5b7beb81..032602be004 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md index 9116c5443b1..fb700dc9e2f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md index 780154f5f94..3fdae56541f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md index 206e10b1b65..c59251f40c7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md index c9d1b134943..71ce11e1fe0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md index bb8cb584f23..2514dcbb81b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md index adec2066940..fdb82619129 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md index 9eb105233f8..8bb7275aed5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md index 262b7a4c5c8..8957eabd619 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md index 247b70d0732..3c92e8f5468 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md index c4b879bb610..732a2027386 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md index 12dd6ff4892..8aeb59c8eeb 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md index 051f8852b02..8c911a95b44 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md index a6c28517663..355f2a298e8 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md index d07915430a2..7e8a9529eba 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md index 420d7f65f6a..57f539c7dcd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md index 92f5cbe549c..c320abf004e 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md index cfb632b4e07..225e5c4ae7a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/get.md b/docs/examples/1.1.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md index b9121e3acc9..f8c221a2439 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/update.md b/docs/examples/1.1.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md index 661afa151aa..defbd30d102 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create.md index 9b8e0f18206..e1d24380fab 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/update.md b/docs/examples/1.1.x/server-nodejs/examples/functions/update.md index fb825081a18..c5d06bdad37 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get.md b/docs/examples/1.1.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/get.md b/docs/examples/1.1.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md index 74b1d3fd1d9..492c6b0d9c7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/create.md b/docs/examples/1.1.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/get.md b/docs/examples/1.1.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/list.md b/docs/examples/1.1.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md index 26551fe0b64..93b0f23aba6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/update.md b/docs/examples/1.1.x/server-nodejs/examples/teams/update.md index 8192c224f3c..2f518f4afd6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/update.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create.md b/docs/examples/1.1.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/delete.md b/docs/examples/1.1.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/get.md b/docs/examples/1.1.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list.md b/docs/examples/1.1.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md index e655eea2de1..d95cf5fb54d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/create-recovery.md b/docs/examples/1.1.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.1.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/create-verification.md b/docs/examples/1.1.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.1.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/delete-session.md b/docs/examples/1.1.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.1.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/get-prefs.md b/docs/examples/1.1.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.1.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/get-session.md b/docs/examples/1.1.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.1.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/get.md b/docs/examples/1.1.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.1.x/server-php/examples/account/get.md +++ b/docs/examples/1.1.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/list-logs.md b/docs/examples/1.1.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.1.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/list-sessions.md b/docs/examples/1.1.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.1.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-email.md b/docs/examples/1.1.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-name.md b/docs/examples/1.1.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-password.md b/docs/examples/1.1.x/server-php/examples/account/update-password.md index 11c6b48041d..4b17a818d2a 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-phone.md b/docs/examples/1.1.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-prefs.md b/docs/examples/1.1.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-recovery.md b/docs/examples/1.1.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-session.md b/docs/examples/1.1.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-status.md b/docs/examples/1.1.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-verification.md b/docs/examples/1.1.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-image.md b/docs/examples/1.1.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-collection.md b/docs/examples/1.1.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-document.md b/docs/examples/1.1.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-index.md b/docs/examples/1.1.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create.md b/docs/examples/1.1.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-document.md b/docs/examples/1.1.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-index.md b/docs/examples/1.1.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete.md b/docs/examples/1.1.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-collection.md b/docs/examples/1.1.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-document.md b/docs/examples/1.1.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-index.md b/docs/examples/1.1.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get.md b/docs/examples/1.1.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-collections.md b/docs/examples/1.1.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-documents.md b/docs/examples/1.1.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list.md b/docs/examples/1.1.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/update-collection.md b/docs/examples/1.1.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/update-document.md b/docs/examples/1.1.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/update.md b/docs/examples/1.1.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/update.md +++ b/docs/examples/1.1.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-build.md b/docs/examples/1.1.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md index a556cace24d..f23873acb8f 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-execution.md b/docs/examples/1.1.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-variable.md b/docs/examples/1.1.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create.md b/docs/examples/1.1.x/server-php/examples/functions/create.md index 7fef274c7dd..29da02c1822 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/delete.md b/docs/examples/1.1.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get-execution.md b/docs/examples/1.1.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get-variable.md b/docs/examples/1.1.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get.md b/docs/examples/1.1.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-executions.md b/docs/examples/1.1.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-variables.md b/docs/examples/1.1.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list.md b/docs/examples/1.1.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/update-variable.md b/docs/examples/1.1.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/update.md b/docs/examples/1.1.x/server-php/examples/functions/update.md index 52f15eecb70..2b3d587887f 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/update.md +++ b/docs/examples/1.1.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-cache.md b/docs/examples/1.1.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-d-b.md b/docs/examples/1.1.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-time.md b/docs/examples/1.1.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get.md b/docs/examples/1.1.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get.md +++ b/docs/examples/1.1.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/get.md b/docs/examples/1.1.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/get.md +++ b/docs/examples/1.1.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-continents.md b/docs/examples/1.1.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-countries.md b/docs/examples/1.1.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-languages.md b/docs/examples/1.1.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/create-file.md b/docs/examples/1.1.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/delete-file.md b/docs/examples/1.1.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file.md b/docs/examples/1.1.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/list-files.md b/docs/examples/1.1.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/update-file.md b/docs/examples/1.1.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/create-membership.md b/docs/examples/1.1.x/server-php/examples/teams/create-membership.md index 60d3d3dc6fd..0c2c684b72d 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/create.md b/docs/examples/1.1.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/create.md +++ b/docs/examples/1.1.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/delete.md b/docs/examples/1.1.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/get-membership.md b/docs/examples/1.1.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/get.md b/docs/examples/1.1.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/get.md +++ b/docs/examples/1.1.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/list.md b/docs/examples/1.1.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/list.md +++ b/docs/examples/1.1.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md index 59239975519..c744578712f 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/update.md b/docs/examples/1.1.x/server-php/examples/teams/update.md index 267112cc130..91634f6f8f8 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/update.md +++ b/docs/examples/1.1.x/server-php/examples/teams/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create.md b/docs/examples/1.1.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create.md +++ b/docs/examples/1.1.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/delete-session.md b/docs/examples/1.1.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.1.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/delete.md b/docs/examples/1.1.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.1.x/server-php/examples/users/delete.md +++ b/docs/examples/1.1.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/get-prefs.md b/docs/examples/1.1.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.1.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/get.md b/docs/examples/1.1.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.1.x/server-php/examples/users/get.md +++ b/docs/examples/1.1.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list-logs.md b/docs/examples/1.1.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list-memberships.md b/docs/examples/1.1.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list-sessions.md b/docs/examples/1.1.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list.md b/docs/examples/1.1.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list.md +++ b/docs/examples/1.1.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-email.md b/docs/examples/1.1.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-name.md b/docs/examples/1.1.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-password.md b/docs/examples/1.1.x/server-php/examples/users/update-password.md index a4632c19849..bd0e3283368 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-phone.md b/docs/examples/1.1.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-prefs.md b/docs/examples/1.1.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-status.md b/docs/examples/1.1.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/create-recovery.md b/docs/examples/1.1.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.1.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/create-verification.md b/docs/examples/1.1.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.1.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/delete-session.md b/docs/examples/1.1.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.1.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/get-prefs.md b/docs/examples/1.1.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.1.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/get-session.md b/docs/examples/1.1.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.1.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/get.md b/docs/examples/1.1.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.1.x/server-python/examples/account/get.md +++ b/docs/examples/1.1.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/list-logs.md b/docs/examples/1.1.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.1.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/list-sessions.md b/docs/examples/1.1.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.1.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-email.md b/docs/examples/1.1.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-name.md b/docs/examples/1.1.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-password.md b/docs/examples/1.1.x/server-python/examples/account/update-password.md index 81bc8bbfc38..7adf938ac6a 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-phone.md b/docs/examples/1.1.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-prefs.md b/docs/examples/1.1.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-recovery.md b/docs/examples/1.1.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-session.md b/docs/examples/1.1.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-status.md b/docs/examples/1.1.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-verification.md b/docs/examples/1.1.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-image.md b/docs/examples/1.1.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-collection.md b/docs/examples/1.1.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-document.md b/docs/examples/1.1.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-index.md b/docs/examples/1.1.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create.md b/docs/examples/1.1.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-document.md b/docs/examples/1.1.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-index.md b/docs/examples/1.1.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete.md b/docs/examples/1.1.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-collection.md b/docs/examples/1.1.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-document.md b/docs/examples/1.1.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-index.md b/docs/examples/1.1.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get.md b/docs/examples/1.1.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-collections.md b/docs/examples/1.1.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-documents.md b/docs/examples/1.1.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list.md b/docs/examples/1.1.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/update-collection.md b/docs/examples/1.1.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/update-document.md b/docs/examples/1.1.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/update.md b/docs/examples/1.1.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/update.md +++ b/docs/examples/1.1.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-build.md b/docs/examples/1.1.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md index d29c43f2583..859cc3745df 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-execution.md b/docs/examples/1.1.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-variable.md b/docs/examples/1.1.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create.md b/docs/examples/1.1.x/server-python/examples/functions/create.md index 96fd409bd38..ca8198647c3 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/delete.md b/docs/examples/1.1.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get-execution.md b/docs/examples/1.1.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get-variable.md b/docs/examples/1.1.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get.md b/docs/examples/1.1.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-executions.md b/docs/examples/1.1.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-variables.md b/docs/examples/1.1.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list.md b/docs/examples/1.1.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/update-variable.md b/docs/examples/1.1.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/update.md b/docs/examples/1.1.x/server-python/examples/functions/update.md index ac7730e80a2..2e1d1325681 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/update.md +++ b/docs/examples/1.1.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-cache.md b/docs/examples/1.1.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-d-b.md b/docs/examples/1.1.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-time.md b/docs/examples/1.1.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get.md b/docs/examples/1.1.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get.md +++ b/docs/examples/1.1.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/get.md b/docs/examples/1.1.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/get.md +++ b/docs/examples/1.1.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-continents.md b/docs/examples/1.1.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-countries.md b/docs/examples/1.1.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-languages.md b/docs/examples/1.1.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/create-file.md b/docs/examples/1.1.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/delete-file.md b/docs/examples/1.1.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file.md b/docs/examples/1.1.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/list-files.md b/docs/examples/1.1.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/update-file.md b/docs/examples/1.1.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/create-membership.md b/docs/examples/1.1.x/server-python/examples/teams/create-membership.md index f020627727c..ce04eeefa07 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/create.md b/docs/examples/1.1.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/create.md +++ b/docs/examples/1.1.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/delete.md b/docs/examples/1.1.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/get-membership.md b/docs/examples/1.1.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/get.md b/docs/examples/1.1.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/get.md +++ b/docs/examples/1.1.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/list.md b/docs/examples/1.1.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/list.md +++ b/docs/examples/1.1.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md index dcfd7a4e554..e161a33d5c6 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/update.md b/docs/examples/1.1.x/server-python/examples/teams/update.md index cabd1496c4c..6cfbcb069ff 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/update.md +++ b/docs/examples/1.1.x/server-python/examples/teams/update.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create.md b/docs/examples/1.1.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create.md +++ b/docs/examples/1.1.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/delete-session.md b/docs/examples/1.1.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.1.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/delete.md b/docs/examples/1.1.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.1.x/server-python/examples/users/delete.md +++ b/docs/examples/1.1.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/get-prefs.md b/docs/examples/1.1.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.1.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/get.md b/docs/examples/1.1.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.1.x/server-python/examples/users/get.md +++ b/docs/examples/1.1.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list-logs.md b/docs/examples/1.1.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list-memberships.md b/docs/examples/1.1.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list-sessions.md b/docs/examples/1.1.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list.md b/docs/examples/1.1.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list.md +++ b/docs/examples/1.1.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-email.md b/docs/examples/1.1.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-name.md b/docs/examples/1.1.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-password.md b/docs/examples/1.1.x/server-python/examples/users/update-password.md index bf24c1ca9a8..2f0091d0f6d 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-phone.md b/docs/examples/1.1.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-prefs.md b/docs/examples/1.1.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-status.md b/docs/examples/1.1.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md index 7ec0a1c0c94..9ea5aa170c0 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md index 5c6d13c7240..dfa4038915d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md index dcd9722e471..37b838f4d25 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md index 3357b2ba20e..788b1d0dc15 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md index b218a536dbe..fecb93ca767 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md index 24092b922b9..9870af6340c 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/get-session.md b/docs/examples/1.1.x/server-ruby/examples/account/get-session.md index 2a8209031d0..09946ae0013 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/get.md b/docs/examples/1.1.x/server-ruby/examples/account/get.md index 61237b22157..616316ca8ca 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md index 8a08eb96bef..22e23f38ee6 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md index a6bcb6816dd..9e267c659dd 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-email.md b/docs/examples/1.1.x/server-ruby/examples/account/update-email.md index cd2e10cbbe3..1a871d27908 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-name.md b/docs/examples/1.1.x/server-ruby/examples/account/update-name.md index 2685e88cf60..f7a2bec7878 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-password.md b/docs/examples/1.1.x/server-ruby/examples/account/update-password.md index 3ee4ed98f7c..dbd46a02983 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md index 103b32c00da..6a0345a6f61 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md index 377c578deaf..aa6dc9804ce 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md index 338a9704f1e..1e0f9c836cc 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md index fa901de8576..357bfa9d1d8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-session.md b/docs/examples/1.1.x/server-ruby/examples/account/update-session.md index 31dde2e94fa..2de00124c65 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-status.md b/docs/examples/1.1.x/server-ruby/examples/account/update-status.md index ea7a3857b55..f0e73d13d55 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md index b8f674ec773..32d4c79de07 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md index 2a66b46b926..11fa186f0e1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md index d5bcaa824f8..47c8dc8e076 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md index c995fb2036a..48263bc19df 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md index 7633756425e..17e2cfb0539 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md index 4ea52a60e4b..168cc78d47f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md index 62a8ff855d9..c6218320696 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md index 03a1f14aa97..93b91d13ea3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md index d617d8e3225..17f0467cb1b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md index d27e43ad664..d0c87c64337 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md index 127d2ac2d77..2aebb09856f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md index 8177fc4b3b8..e6d12497214 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md index c7e1aac86be..38047e524d4 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md index 36f8ee06d41..1fe0f0c689f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md index 771d281ccf5..6da9f12caed 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md index 5488e36f74a..68fccf90ca3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md index 40649c25f8f..d17eef4f46d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md index ef9e0feba52..c0daf8a4ae9 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md index 9901c84b020..4b4c95b7c10 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md index 475421fe537..03486d76952 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create.md b/docs/examples/1.1.x/server-ruby/examples/databases/create.md index 1ce19d31250..8054c37fef1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md index ae2e32d8bd0..55013151523 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md index f118667b6ed..779865a67e1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md index 0b7baa89ede..b83d2a38a88 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md index 829e6061354..fb30a95c642 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete.md index 7e0c4211f16..beeca37e8a7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md index 525c8f14cd5..653a4280542 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md index 897e40d1094..b3251fb7a69 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md index d5853aba563..9a4e9b7c01a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md index 3217507541a..1f7d3b61551 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get.md b/docs/examples/1.1.x/server-ruby/examples/databases/get.md index ced51d6ad12..93b171122f8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md index 1b57bda217c..5a07c9a6352 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md index 3d646c47e72..c707b3faf77 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md index 6f57bb150cf..da14516505f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md index d64b3bfc684..c6d42be1eaa 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list.md b/docs/examples/1.1.x/server-ruby/examples/databases/list.md index 84baa108a38..628f44c7fca 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md index eee40585313..ab421153cce 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md index dbe1b0d71aa..0b5b2a07caf 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/update.md b/docs/examples/1.1.x/server-ruby/examples/databases/update.md index 0900ab34286..9e67595cbc7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md index 9c7397bf269..6c9ad31fd0c 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md index 734625f449e..4cb56c9ad86 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md index 97f4d74ba15..3dc5e844e71 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md index 003fb4743a2..1340c1a3794 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create.md b/docs/examples/1.1.x/server-ruby/examples/functions/create.md index 414f11297d1..dbf34259221 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md index 64feea1370e..00c85f50a1b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md index 598e6941416..191796186d8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/delete.md b/docs/examples/1.1.x/server-ruby/examples/functions/delete.md index 48ea5c7a737..c96a2621e65 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md index c19163e7f5c..fa1bbc08be3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md index 3deee915740..52e46af41ac 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md index 835fc30d81b..b023e3653be 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get.md b/docs/examples/1.1.x/server-ruby/examples/functions/get.md index cfcf8411e5a..76897965e5b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md index 539301c4bba..5ec1f5ba313 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md index c0c1f46cf16..797817ad4f5 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md index b679da2d8b9..b5fd2b0aafd 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md index 4e5bfab8911..196fcfe3cd7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list.md b/docs/examples/1.1.x/server-ruby/examples/functions/list.md index 2cc71a5c046..bf27f73cf94 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md index c9d9f49d63b..a9f039cfc64 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md index 28d7651a46f..3418454c276 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/update.md b/docs/examples/1.1.x/server-ruby/examples/functions/update.md index 4bb1f2195de..02e11b5075b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md index b1f16bb0b93..32646a5a0b3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md index 4fb77ec68d4..a4b43daf926 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md index 3317acd6fa7..6b42bbaf6a1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md index a4c5c7016bf..915731e056a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md index 8edb310a5e2..ea585cacb79 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md index 74823fcd6ce..253419c8bdd 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md index 53b7f33cfe0..1902a930c83 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md index 3a85bd3e12b..293c866762f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-time.md b/docs/examples/1.1.x/server-ruby/examples/health/get-time.md index 9956a33d1f6..e19bf05e792 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get.md b/docs/examples/1.1.x/server-ruby/examples/health/get.md index d23a9ad6755..07fc372f3b3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/get.md b/docs/examples/1.1.x/server-ruby/examples/locale/get.md index e5922f4e7f5..b2abf36f19f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md index 0416baf77a4..1a086d9a2fe 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md index 7faa85143cb..962387167f1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md index 1194f27e0c7..9e842f2121d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md index b78fba47fd5..eb093479b7a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md index 14b2722ae82..1e20bdbbb28 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md index 4d88bc47232..7b919494b32 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md index d6299db79f9..459508e3116 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md index 851ed57a480..fd29996f730 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md index 3fd51bef5e4..be83f475f27 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md index 4d0e3fcbffc..6ea4059bbab 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md index ba88debc618..ca0905b463a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md index a22f4cb68fc..77007f6b192 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md index c5b7c06db1c..c0e2b80931e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md index c05770b9999..7689278e56e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md index a33835c9e25..f5faa37e548 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md index 7009d0a105b..46eac9a2602 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md index 196831a1b3f..936b6eaeeb3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md index f990ab3566a..d4c791f4db6 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md index 8108d3cc28a..6d26d9ee482 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md index 515b6839f1d..e23211d82b7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/create.md b/docs/examples/1.1.x/server-ruby/examples/teams/create.md index d2dff77f41e..66127ecd340 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md index d41175d4a83..551ee62843d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/delete.md b/docs/examples/1.1.x/server-ruby/examples/teams/delete.md index c1b9b8d8bb1..94a9d4bba74 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md index b06101dd84c..d95348801b0 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/get.md b/docs/examples/1.1.x/server-ruby/examples/teams/get.md index 7cee601b56d..a6c2884d2c8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md index 885a857d720..4b523aa73a6 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/list.md b/docs/examples/1.1.x/server-ruby/examples/teams/list.md index e8b581fd910..fd8385bc71e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md index a39ef030f9c..0a240b5bac9 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md index aaf52cbb9ca..a1f8252899a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/update.md b/docs/examples/1.1.x/server-ruby/examples/teams/update.md index 95e24eacb4e..29f42e2e43e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/update.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md index 9c4fc9ea977..35445044c20 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md index 700fe49d121..50e11db1903 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md index a7f9c4f7a20..3f7a61994bc 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md index d7d8ba19333..a793d887c84 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md index 2d37fc3bfa1..4b7c26629bb 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md index cec9dbb277a..50f52b9f12f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md index 94a7af53d2a..e8bf8cf0597 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create.md b/docs/examples/1.1.x/server-ruby/examples/users/create.md index b04fd5025f4..7d0cf8b48a7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md index 3b7918ca1f2..118747affcb 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md index 6772e3fe10d..7d24d4442d2 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/delete.md b/docs/examples/1.1.x/server-ruby/examples/users/delete.md index 62585db404c..b50e5a921d2 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md index a4c4764bef6..a401ae11b0a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/get.md b/docs/examples/1.1.x/server-ruby/examples/users/get.md index a731ada955f..44f68d01382 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md index fa8586eeffa..45a974e497e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md index 693e6b9f2c2..c84277357ba 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md index 765789a0da7..14c281f4e1b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list.md b/docs/examples/1.1.x/server-ruby/examples/users/list.md index 8d5daf21f81..eb067643e24 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md index 72ec0195dc1..530c544bead 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-email.md b/docs/examples/1.1.x/server-ruby/examples/users/update-email.md index a3a7dbde345..21ece40ff07 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-name.md b/docs/examples/1.1.x/server-ruby/examples/users/update-name.md index fbf00bb51be..7b1d0d65d32 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-password.md b/docs/examples/1.1.x/server-ruby/examples/users/update-password.md index 72556b35306..2577bc44eb8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md index 995a32a4bfe..be9e323ec11 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md index f1e74b4a9e5..e78a3d5ff34 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md index 9845cdf0d51..91eaf25a253 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-status.md b/docs/examples/1.1.x/server-ruby/examples/users/update-status.md index 8a82948c76a..9f7372ede49 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md index 7755c031edf..45ebcced051 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md index 18b8eabf472..4ee9199ffaa 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/create-verification.md b/docs/examples/1.1.x/server-swift/examples/account/create-verification.md index a219907a945..b036a1a7e40 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/delete-session.md b/docs/examples/1.1.x/server-swift/examples/account/delete-session.md index be2d784ca63..ec1bb76c9ff 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-swift/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md index 54cdf941677..d7c94abfa8d 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md index 54b2a507071..78b392bb803 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/get-session.md b/docs/examples/1.1.x/server-swift/examples/account/get-session.md index 0bd69cadcb4..286d9ade2f4 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-swift/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/get.md b/docs/examples/1.1.x/server-swift/examples/account/get.md index 470e90fad0c..bad12105899 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/get.md +++ b/docs/examples/1.1.x/server-swift/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/list-logs.md b/docs/examples/1.1.x/server-swift/examples/account/list-logs.md index 733b48bb34f..be4b204155f 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-swift/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md index c6b54c6959a..1c145a1d282 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-email.md b/docs/examples/1.1.x/server-swift/examples/account/update-email.md index f62c77d01e8..b53a9e23138 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-name.md b/docs/examples/1.1.x/server-swift/examples/account/update-name.md index f2e4f8401f3..b9f82c014c6 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-password.md b/docs/examples/1.1.x/server-swift/examples/account/update-password.md index 310b5b2d60a..f02ceeeb54d 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md index 95a8a4e247c..ff3baa5dba6 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-phone.md b/docs/examples/1.1.x/server-swift/examples/account/update-phone.md index 8e8e1edcbcf..ff181a64bed 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md index 67dcfb98646..d7bfc076576 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md index a87409df281..045346bbb4c 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-session.md b/docs/examples/1.1.x/server-swift/examples/account/update-session.md index 53d7245f0df..b85b5b8381f 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-status.md b/docs/examples/1.1.x/server-swift/examples/account/update-status.md index 0eaffe74856..6b82bdce630 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-verification.md b/docs/examples/1.1.x/server-swift/examples/account/update-verification.md index beb479a2886..6c9e9143a32 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md index 8057182bd36..53543502d43 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md index c77d5bc2de5..913127dcdfe 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md index 73560480954..bdd5810404a 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md index 2a428353fcb..b8bad721a1e 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md index 73c565e1f45..57b810267e1 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md index 8e47fde104e..6cca461388e 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md index 67166250b92..5fe81460458 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md index d6ca55536a9..d495efe8a33 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md index b61b7d1978f..cf42e761566 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md index b555fcff9d3..beb6479c30d 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-document.md b/docs/examples/1.1.x/server-swift/examples/databases/create-document.md index 8837ce8db6f..822e8853e92 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md index 7a2d5d1a139..47fab58069b 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md index 38a7d523e1e..4da6b72da3f 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md index e32a0fe917e..889aa7fe922 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-index.md b/docs/examples/1.1.x/server-swift/examples/databases/create-index.md index 5861e9e8625..7498b54c84e 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-index.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md index 5cb313cf05e..8442c862fe7 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md index 9b1b8ae3bc5..0473143e1df 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md index 6f9ae7a68a5..8bc9e89b868 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md index 6824c0565e0..e8a910fd5d4 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create.md b/docs/examples/1.1.x/server-swift/examples/databases/create.md index 1feb7b2ae78..30530b3a8f6 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md index 5eaeb38496b..9ba7c1805c4 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md index 01efd25ca85..dd6d1f78392 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md index 17834bc2043..a547f8a7a4b 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md index 2cc03969fa9..cb5833c4c2d 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete.md b/docs/examples/1.1.x/server-swift/examples/databases/delete.md index 87078624473..d1aca9a8d82 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md index a75709148db..02519efdd21 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md index 035aa043b8a..e4939074457 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-document.md b/docs/examples/1.1.x/server-swift/examples/databases/get-document.md index c496195cc81..2aa314aac30 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-index.md b/docs/examples/1.1.x/server-swift/examples/databases/get-index.md index 6cd359b29d6..ba92e80f449 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-index.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get.md b/docs/examples/1.1.x/server-swift/examples/databases/get.md index e887ba2e8a4..ae8769e79e1 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md index 561511a97ce..0b66a4ccdbc 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md index fc41250c707..11ccc7aa4b7 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md index f988dec8b63..792d1425424 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md index 7bd647981c8..c10136ebc73 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list.md b/docs/examples/1.1.x/server-swift/examples/databases/list.md index 5ec5ba00343..72a9f61d108 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md index 2a68187556a..6c29f667774 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/update-document.md b/docs/examples/1.1.x/server-swift/examples/databases/update-document.md index f68e5ae0112..f41f86b5369 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/update.md b/docs/examples/1.1.x/server-swift/examples/databases/update.md index 030893fe003..9da8892d228 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-build.md b/docs/examples/1.1.x/server-swift/examples/functions/create-build.md index 9e1d3a72224..c40aef224f2 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-build.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md index d597639f5cc..0575ffbab13 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md index 928d54d2188..da031b75eaf 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md index 982fabcb9ef..5aa71556437 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create.md b/docs/examples/1.1.x/server-swift/examples/functions/create.md index 4b43191f1b3..58cb0e70119 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md index 02966e7cf92..3959d9349e8 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md index d9ffc1431f6..0f1558429c0 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/delete.md b/docs/examples/1.1.x/server-swift/examples/functions/delete.md index 1a03d6618f3..3339f7dd5f5 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md index f1971accfe8..d6aa1863508 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md index 51ce69e678f..ae51d84f096 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md index b5fd9d29933..2ad027871c4 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get.md b/docs/examples/1.1.x/server-swift/examples/functions/get.md index 54c0ced9791..c2c38f39caf 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md index 015236e68a8..8d05e356010 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md index c85376dd9f2..ad5d6fc147f 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md index dcca318b266..82dd99c7bcd 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md index 09473bef5cf..a54ba2e464b 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list.md b/docs/examples/1.1.x/server-swift/examples/functions/list.md index 8214fbe91b0..12f2bb0e439 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md index f7b9724f635..e46459d646e 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md index f0afd45afb7..1dd1e391d69 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/update.md b/docs/examples/1.1.x/server-swift/examples/functions/update.md index 04464119d4d..7ea32487917 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md index 0b92f9868e1..4477f2aa75e 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-cache.md b/docs/examples/1.1.x/server-swift/examples/health/get-cache.md index f2bc6e7d276..9f4e3444fab 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-cache.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md index 412e44faca3..370ffdf12b9 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md index 7d79ab2e69b..2ef6db465fc 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md index ca4880f88c0..5ee20c82a9a 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md index 9e7c9ab73b5..d4cc6980f58 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md index e28a7af0c3c..6836085d5e7 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md index 8522c316a55..65e9440b7f2 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-time.md b/docs/examples/1.1.x/server-swift/examples/health/get-time.md index 9846637066e..c7d0f24f468 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-time.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get.md b/docs/examples/1.1.x/server-swift/examples/health/get.md index 07c978dfd56..bc66290b1aa 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/get.md b/docs/examples/1.1.x/server-swift/examples/locale/get.md index 4f645109a8c..17184eefe9e 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md index b8279884bf1..b508cef8166 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md index 4f7c2c21342..979d7d02197 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md index e8ebcbec9a5..b5a5acf0619 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md index 508a13931a4..45d7f1f8f1c 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md index 8fe57a263ee..72e55f2af57 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md index 2508c795722..eb7e7c63c19 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md index 3d45a638a7e..f260164a400 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/create-file.md b/docs/examples/1.1.x/server-swift/examples/storage/create-file.md index 69159c88c97..c37989129c5 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md index ec9652671a3..b142051e39b 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md index f557f8da2b8..3996fdf379d 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md index e51704c98fe..3fff08cdc11 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md index e71a2408a41..391a51da376 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md index 45b06b90811..4644f8005de 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md index e23670aeb37..cbd2ced90e4 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file.md index 7f6d790b4df..9b9293506e4 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md index d0313967e1d..8d08f8224fc 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/list-files.md b/docs/examples/1.1.x/server-swift/examples/storage/list-files.md index b7966aac3cd..c4ddef2cede 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md index 818913710fe..b40294ea19e 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/update-file.md b/docs/examples/1.1.x/server-swift/examples/storage/update-file.md index 3ca3a40dc7b..7df3a055c42 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md index 1ef67dec54a..7e780492c10 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/create.md b/docs/examples/1.1.x/server-swift/examples/teams/create.md index 8a7f0248cf0..07e00ebb463 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md index df6703034f1..219fcec1906 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/delete.md b/docs/examples/1.1.x/server-swift/examples/teams/delete.md index 53c082653c0..c8bdd09b1c8 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md index 7910ed04682..e60a9f67e92 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/get.md b/docs/examples/1.1.x/server-swift/examples/teams/get.md index 13c8c729bc8..8d728baebe6 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md index 1b0ac1ade46..5910ee0a738 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/list.md b/docs/examples/1.1.x/server-swift/examples/teams/list.md index edfd6753788..3673d1be26c 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md index 2088ed86287..bbeea258080 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md index 1b402a6ef08..0b062a8adcf 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/update.md b/docs/examples/1.1.x/server-swift/examples/teams/update.md index a5031fbe661..8866800bb10 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/update.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md index 37fbb5f5e9a..08c8be988cd 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md index 3221afcb7fa..a03b98364fa 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md index ffb6aee7cdd..2e0e0c612fa 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md index c0103185c76..aec9d06bc62 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md index 5466b087810..5a310eaaf57 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md index 0f6766d2c2e..dfa51b2f50a 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md index 8b958269ad1..4550b0bf349 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create.md b/docs/examples/1.1.x/server-swift/examples/users/create.md index c03184d31cc..b552d625a09 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/delete-session.md b/docs/examples/1.1.x/server-swift/examples/users/delete-session.md index a811debd605..52116ebb4c0 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-swift/examples/users/delete-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md index 9a55a96b16f..b65ae3ed1c1 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/delete.md b/docs/examples/1.1.x/server-swift/examples/users/delete.md index 50369f93656..4b148f57134 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/users/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md index e71fab142df..ed7f18cb333 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/get.md b/docs/examples/1.1.x/server-swift/examples/users/get.md index 0361712d1f1..3f942c1b6ca 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/get.md +++ b/docs/examples/1.1.x/server-swift/examples/users/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list-logs.md b/docs/examples/1.1.x/server-swift/examples/users/list-logs.md index 281a9b3fbfd..2488a702a1b 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md index 7aff15fd22e..98fceaca968 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md index 75f78558fbb..c2e7210fe5f 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list.md b/docs/examples/1.1.x/server-swift/examples/users/list.md index b41a7997bc4..a7591ebb7bc 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md index 66ae99fef11..386dfaaee10 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-email.md b/docs/examples/1.1.x/server-swift/examples/users/update-email.md index f6850bc5c49..78d4eb00654 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-email.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-name.md b/docs/examples/1.1.x/server-swift/examples/users/update-name.md index 7b0524c0ab8..79d9fef4755 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-name.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-password.md b/docs/examples/1.1.x/server-swift/examples/users/update-password.md index af04c24c41f..f6cedbe942c 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-password.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md index 168cbf352c9..8bd4267be2d 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-phone.md b/docs/examples/1.1.x/server-swift/examples/users/update-phone.md index 2630c8954a4..fb7eb0aa3f7 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-phone.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md index dbb87bf3b3a..f57db9910a6 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-status.md b/docs/examples/1.1.x/server-swift/examples/users/update-status.md index 0fdd543d9fa..7224c949d37 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md index 59c76309e74..a52a17d1d03 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-email-session.md b/docs/examples/1.2.x/client-android/java/account/create-email-session.md index e3e6fdd0070..86fa95f43c0 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-email-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md index c3123860181..5b68aeb7ddc 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md index 0ed43dc2860..a0b4e86b9f4 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md index cb9386a8483..57870eedbbf 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-phone-session.md b/docs/examples/1.2.x/client-android/java/account/create-phone-session.md index df5bc86891d..04918325c3f 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md index 1545d0f82d2..7b7c354fff2 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-recovery.md b/docs/examples/1.2.x/client-android/java/account/create-recovery.md index 5e8584fc359..955fe451ba7 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.2.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-verification.md b/docs/examples/1.2.x/client-android/java/account/create-verification.md index fcea98f66c0..3fc9879f3ae 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create.md b/docs/examples/1.2.x/client-android/java/account/create.md index a660b8ae937..83e367eaf34 100644 --- a/docs/examples/1.2.x/client-android/java/account/create.md +++ b/docs/examples/1.2.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/delete-session.md b/docs/examples/1.2.x/client-android/java/account/delete-session.md index 28009d014db..345094fcc2e 100644 --- a/docs/examples/1.2.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.2.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/delete-sessions.md b/docs/examples/1.2.x/client-android/java/account/delete-sessions.md index 6bdc840cff0..7be86bea510 100644 --- a/docs/examples/1.2.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/get-prefs.md b/docs/examples/1.2.x/client-android/java/account/get-prefs.md index 9911ad30a43..2b4f47b5046 100644 --- a/docs/examples/1.2.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.2.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/get-session.md b/docs/examples/1.2.x/client-android/java/account/get-session.md index fecb543782a..554bd545983 100644 --- a/docs/examples/1.2.x/client-android/java/account/get-session.md +++ b/docs/examples/1.2.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/get.md b/docs/examples/1.2.x/client-android/java/account/get.md index 2e5f40ad241..d6cf1077f59 100644 --- a/docs/examples/1.2.x/client-android/java/account/get.md +++ b/docs/examples/1.2.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/list-logs.md b/docs/examples/1.2.x/client-android/java/account/list-logs.md index d2ce790bfe8..8fed6547c36 100644 --- a/docs/examples/1.2.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.2.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/list-sessions.md b/docs/examples/1.2.x/client-android/java/account/list-sessions.md index 7fd587e1ba3..f77b0b387aa 100644 --- a/docs/examples/1.2.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.2.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-email.md b/docs/examples/1.2.x/client-android/java/account/update-email.md index 8034ada87dd..86ea5207c95 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-email.md +++ b/docs/examples/1.2.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md index 0f8f2b3c5ce..58c491f389e 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-name.md b/docs/examples/1.2.x/client-android/java/account/update-name.md index 5940f93ef24..f10172ee8a5 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-name.md +++ b/docs/examples/1.2.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-password.md b/docs/examples/1.2.x/client-android/java/account/update-password.md index 47d0415d55a..d5d342219ed 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-password.md +++ b/docs/examples/1.2.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone-session.md b/docs/examples/1.2.x/client-android/java/account/update-phone-session.md index 589e4ff5097..ca34b65c1f9 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md index 81785f97c2c..eb0fcbd9af1 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone.md b/docs/examples/1.2.x/client-android/java/account/update-phone.md index a8572f911c8..b1680bb6046 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.2.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-prefs.md b/docs/examples/1.2.x/client-android/java/account/update-prefs.md index ffd5ef03b52..6552f1a68cc 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.2.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-recovery.md b/docs/examples/1.2.x/client-android/java/account/update-recovery.md index 7b0f3921763..d6c17cff3fa 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.2.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-session.md b/docs/examples/1.2.x/client-android/java/account/update-session.md index 27b8f00668f..4c40264def7 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-session.md +++ b/docs/examples/1.2.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-status.md b/docs/examples/1.2.x/client-android/java/account/update-status.md index 1e18ded5405..42c0d2dd9df 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-status.md +++ b/docs/examples/1.2.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-verification.md b/docs/examples/1.2.x/client-android/java/account/update-verification.md index d852dbf8382..ba1a2cd5e23 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-browser.md b/docs/examples/1.2.x/client-android/java/avatars/get-browser.md index f0721102367..2382d352d63 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md index 0a733127917..9d3d9c31a3e 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md index e0c1cb6b8a2..af7be8b2263 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-flag.md b/docs/examples/1.2.x/client-android/java/avatars/get-flag.md index a5f47906404..698813bb1c8 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-image.md b/docs/examples/1.2.x/client-android/java/avatars/get-image.md index cdc8ac722b6..903d93f4d1d 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-initials.md b/docs/examples/1.2.x/client-android/java/avatars/get-initials.md index c02490c7344..8c5d1452fb3 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md index 2532f204d83..80d03776ed5 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/create-document.md b/docs/examples/1.2.x/client-android/java/databases/create-document.md index 715e4cdbbe3..0be2e146d84 100644 --- a/docs/examples/1.2.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/delete-document.md b/docs/examples/1.2.x/client-android/java/databases/delete-document.md index 1387f486870..f941418c084 100644 --- a/docs/examples/1.2.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/get-document.md b/docs/examples/1.2.x/client-android/java/databases/get-document.md index fdba906d695..560f9bd896e 100644 --- a/docs/examples/1.2.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/list-documents.md b/docs/examples/1.2.x/client-android/java/databases/list-documents.md index 62dc2c7e291..f4957e7f608 100644 --- a/docs/examples/1.2.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.2.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/update-document.md b/docs/examples/1.2.x/client-android/java/databases/update-document.md index d1ed59de3bd..0f31cb086d9 100644 --- a/docs/examples/1.2.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/functions/create-execution.md b/docs/examples/1.2.x/client-android/java/functions/create-execution.md index 3cce1c37be8..79cf8c11997 100644 --- a/docs/examples/1.2.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.2.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.2.x/client-android/java/functions/get-execution.md b/docs/examples/1.2.x/client-android/java/functions/get-execution.md index 459d74394f2..496dfe61257 100644 --- a/docs/examples/1.2.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.2.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.2.x/client-android/java/functions/list-executions.md b/docs/examples/1.2.x/client-android/java/functions/list-executions.md index c1f982b707b..6b8c37245e1 100644 --- a/docs/examples/1.2.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.2.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md index b5e597eeddb..d36f03722f5 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/get.md b/docs/examples/1.2.x/client-android/java/graphql/get.md index ff76ead3b72..829f6e433b0 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/get.md +++ b/docs/examples/1.2.x/client-android/java/graphql/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/mutation.md b/docs/examples/1.2.x/client-android/java/graphql/mutation.md index 262e513bed7..3028bf105ae 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.2.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/query.md b/docs/examples/1.2.x/client-android/java/graphql/query.md index 4291b4735f9..8215c674be5 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/query.md +++ b/docs/examples/1.2.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/get.md b/docs/examples/1.2.x/client-android/java/locale/get.md index 4d14be6d733..443f5e29b57 100644 --- a/docs/examples/1.2.x/client-android/java/locale/get.md +++ b/docs/examples/1.2.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-continents.md b/docs/examples/1.2.x/client-android/java/locale/list-continents.md index 6abe97a0a02..47d11d7348b 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md index 3c5ca3ae8c5..0f010e71f3e 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md index 81ef94d702d..0ff5e0a14eb 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries.md b/docs/examples/1.2.x/client-android/java/locale/list-countries.md index dc0d5f52c4e..754507d56b1 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-currencies.md b/docs/examples/1.2.x/client-android/java/locale/list-currencies.md index 7a327b38ae7..82665375509 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-languages.md b/docs/examples/1.2.x/client-android/java/locale/list-languages.md index 0688614b6df..ad8d092a16b 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/create-file.md b/docs/examples/1.2.x/client-android/java/storage/create-file.md index 732b302f635..88fdd64a10b 100644 --- a/docs/examples/1.2.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/delete-file.md b/docs/examples/1.2.x/client-android/java/storage/delete-file.md index 69a0f0f844b..90e98d3f0c8 100644 --- a/docs/examples/1.2.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-download.md b/docs/examples/1.2.x/client-android/java/storage/get-file-download.md index 2ab30dce5af..5c92a9b27d1 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md index 483f2fca168..519b03f73b4 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-view.md b/docs/examples/1.2.x/client-android/java/storage/get-file-view.md index 5614b694a50..376428309b4 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file.md b/docs/examples/1.2.x/client-android/java/storage/get-file.md index 4ae0de0d9ae..61d6e9f03ab 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/list-files.md b/docs/examples/1.2.x/client-android/java/storage/list-files.md index dedfb6c1002..345e43fd14d 100644 --- a/docs/examples/1.2.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.2.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/update-file.md b/docs/examples/1.2.x/client-android/java/storage/update-file.md index 9b4dd922667..92024cfdd61 100644 --- a/docs/examples/1.2.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/create-membership.md b/docs/examples/1.2.x/client-android/java/teams/create-membership.md index 32897449fc1..758d7a3f662 100644 --- a/docs/examples/1.2.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.2.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/create.md b/docs/examples/1.2.x/client-android/java/teams/create.md index 263fa57be7b..5a9dd741db2 100644 --- a/docs/examples/1.2.x/client-android/java/teams/create.md +++ b/docs/examples/1.2.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/delete-membership.md b/docs/examples/1.2.x/client-android/java/teams/delete-membership.md index 40f28f0c21e..0babc74b4d3 100644 --- a/docs/examples/1.2.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/delete.md b/docs/examples/1.2.x/client-android/java/teams/delete.md index 5b4c378b5e2..aa7425b365c 100644 --- a/docs/examples/1.2.x/client-android/java/teams/delete.md +++ b/docs/examples/1.2.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/get-membership.md b/docs/examples/1.2.x/client-android/java/teams/get-membership.md index f2f1d99ae0b..f7a6a10d971 100644 --- a/docs/examples/1.2.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.2.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/get.md b/docs/examples/1.2.x/client-android/java/teams/get.md index 549af20d342..62af7c22012 100644 --- a/docs/examples/1.2.x/client-android/java/teams/get.md +++ b/docs/examples/1.2.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/list-memberships.md b/docs/examples/1.2.x/client-android/java/teams/list-memberships.md index 3da4e33d518..65d1bf6e96f 100644 --- a/docs/examples/1.2.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/list.md b/docs/examples/1.2.x/client-android/java/teams/list.md index b20ad4a2110..a8d4f12d774 100644 --- a/docs/examples/1.2.x/client-android/java/teams/list.md +++ b/docs/examples/1.2.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md index da5f6d8d595..2fc57ebfd92 100644 --- a/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md index 499251f21f8..1a0748149f1 100644 --- a/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/update.md b/docs/examples/1.2.x/client-android/java/teams/update.md index 3ed2c32285d..ab480f9423c 100644 --- a/docs/examples/1.2.x/client-android/java/teams/update.md +++ b/docs/examples/1.2.x/client-android/java/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md index cdcf401ed9e..f0d574304d0 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md index ab8d581fd10..e7b438f8cc0 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md index 35e7a6ffd4a..3e1f2e011ac 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md index 51368b53923..88146d07322 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md index 395bfada007..f3bf8145e4d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md index eed6f7a2e21..b87e421f8b4 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md index 12fb9f74e86..8dded67ac3b 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md index 7d73a671dde..70d55639c34 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md index b3dc43ac48d..a7c8f11cac1 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create.md b/docs/examples/1.2.x/client-android/kotlin/account/create.md index 4a9f2d68fb0..631be02b57d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md index a98a28661b2..5e22b533695 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md index c9afbf13457..e90c2a9348e 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md index bd3f81a23fd..01c128266b5 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get-session.md b/docs/examples/1.2.x/client-android/kotlin/account/get-session.md index d6d6c72eac7..f150d0fb2f7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get.md b/docs/examples/1.2.x/client-android/kotlin/account/get.md index 4c8f0be9de6..83f7f8789d7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md index eb337caec0c..d9f569f3207 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md index cd9f63bc3c4..2969326917e 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-email.md b/docs/examples/1.2.x/client-android/kotlin/account/update-email.md index 85a02425911..dcc9b822b6f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c7286ba6c84..c0e7f408117 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-name.md b/docs/examples/1.2.x/client-android/kotlin/account/update-name.md index 574f4938d87..18b631b1d56 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-password.md b/docs/examples/1.2.x/client-android/kotlin/account/update-password.md index b7e9bfe9054..60de6601321 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md index d3b02e04ce2..39be2c4f5f2 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md index 0314f742230..4dc6c63915b 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md index 76eb8aac5e2..39d420b197a 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md index f16e40ba41f..beb8e6e2dd5 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md index 9682899bcb2..e2f56651164 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-session.md index e9e83d0cb03..74bf0a235eb 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-status.md b/docs/examples/1.2.x/client-android/kotlin/account/update-status.md index f7789ea237f..4637918887d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md index af800c1fc57..de3bf1bfe37 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md index b1b2d081832..9d65c62b1cb 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md index 411e05ae51d..7265ea284c7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md index 1a4b217fa4a..144c95a5c54 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md index 5c882d60186..82cd2166779 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md index 20d8dff13c7..05bdc47199f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md index 70ef9b29091..6b1d95a22a7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md index 92b17e11639..8d6aae60f74 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md index d7f1991d391..99e042cc690 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md index c5bf2a27070..1a150b8c9b1 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md index 5bab1048122..120ab5f01e9 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md index f97d8787c91..5e3a8d62316 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md index 3820b8965ce..c6186d77890 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md index 77d4587755e..4bf08c84367 100644 --- a/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md index b57668679fd..a6488876ed2 100644 --- a/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md index 14b613f7036..7a0ebbf04a3 100644 --- a/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md index 9414eb1c3c7..263493e7643 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/get.md b/docs/examples/1.2.x/client-android/kotlin/graphql/get.md index c1db8fa77cf..107c838fb1c 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md index dc37a3e6408..ff5165a1c65 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/query.md b/docs/examples/1.2.x/client-android/kotlin/graphql/query.md index d8210709228..6b4c11190ef 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/get.md b/docs/examples/1.2.x/client-android/kotlin/locale/get.md index a2044c72570..f07d3cf7eb5 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md index 610747ee131..5fc344d1701 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md index fa5483f0b0d..691a9583fde 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md index 6aba463a388..6ef8dcd7ac3 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md index c58456b0f51..4dcc23e85e2 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md index 2cf064402a0..f9fb666379d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md index afc00b1e77a..cdbcaa6f076 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md index 7bb79ac11ed..60a80bb6336 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md index 9430d7efe37..e4f094062bb 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md index 85bd22c9c12..ccc23d23fbc 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md index c5bbdef4199..5338b3ce45d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md index 7e7589c0790..acba4607d7d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md index 8fb6e244e89..14d7425c568 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md index 191a3cc97ca..258daaf3748 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md index 005270f3e4d..b5cc0d29988 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md index 10e71d387a6..380d06a063d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/create.md b/docs/examples/1.2.x/client-android/kotlin/teams/create.md index 5e70bd8df0b..2fa3cff014f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md index 04ef5d3490f..56157f296b7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/delete.md b/docs/examples/1.2.x/client-android/kotlin/teams/delete.md index 7d58960e7c3..149c120375d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md index 653bd520faf..78420a121e7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/get.md b/docs/examples/1.2.x/client-android/kotlin/teams/get.md index 72aea07f30a..7997e5aa2b6 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md index 53bd6f3b65b..79db9e57986 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/list.md b/docs/examples/1.2.x/client-android/kotlin/teams/list.md index 57c5fe83543..29b4d655e5f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md index 1570e9df4a5..299cbb7e636 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md index 33de006871f..e1a3b53df59 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update.md b/docs/examples/1.2.x/client-android/kotlin/teams/update.md index ba215c70958..f594fd198d9 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..ec7bc357e17 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md index 311a3b6260f..cc9a14e931a 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..7d9b4e33674 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md index 929396ddc67..88efd04ca92 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md index c84edfc6e76..7c4048689e7 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md index caa66c161a6..40ad4c34fad 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..3b1548db4a8 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..6f52d97ebb1 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-verification.md b/docs/examples/1.2.x/client-apple/examples/account/create-verification.md index 2c96d202d01..9271178af8a 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create.md b/docs/examples/1.2.x/client-apple/examples/account/create.md index 2d5af08b289..03b0a6df63d 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/delete-session.md b/docs/examples/1.2.x/client-apple/examples/account/delete-session.md index 316a27d8f7b..6e42ce8a5ec 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..b45ea356fe4 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..7605035f35d 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/get-session.md b/docs/examples/1.2.x/client-apple/examples/account/get-session.md index 66b363574aa..6adf367a337 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/get.md b/docs/examples/1.2.x/client-apple/examples/account/get.md index 6b68a6ce25f..92804138394 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/get.md +++ b/docs/examples/1.2.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/list-logs.md b/docs/examples/1.2.x/client-apple/examples/account/list-logs.md index 0c9725555e5..bc463217d69 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.2.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..9c1daf94b95 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-email.md b/docs/examples/1.2.x/client-apple/examples/account/update-email.md index f11457c9cab..474d6d3be63 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md index 42a7f710b52..e0a340a6066 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-name.md b/docs/examples/1.2.x/client-apple/examples/account/update-name.md index 2baaac9c6a8..49c0f31e768 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-password.md b/docs/examples/1.2.x/client-apple/examples/account/update-password.md index f4cf56eac4f..a49a587cc72 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md index 41e26c3935c..a102cb740df 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md index 1c88595dc24..8e47f16be4e 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone.md index 15ae0557d17..1dabd14eb8a 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md index 65cb97636e5..4ce28b3a045 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md index 335dd6aeef0..1e965beff0b 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-session.md index b71826246d6..8e1d1116507 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-status.md b/docs/examples/1.2.x/client-apple/examples/account/update-status.md index 8fa54990155..589079b0291 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-verification.md b/docs/examples/1.2.x/client-apple/examples/account/update-verification.md index 36af6b99dac..5a521a212a3 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md index 19c8d02b6d2..9f86b044356 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md index d7a680f35ed..1756c5b1468 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md index 01a7ec13445..945ce41a8cc 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md index eb33c906b6b..4044888df38 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md index ef0cd36920b..659749d9927 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md index 1bdd6f058a1..b9a5a7d0957 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md index 5c801d40bbd..edf910514f7 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/create-document.md b/docs/examples/1.2.x/client-apple/examples/databases/create-document.md index 533bbd534c2..d7f66d018c9 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md index c9a751294d8..f05f747b6ce 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/get-document.md b/docs/examples/1.2.x/client-apple/examples/databases/get-document.md index 53b71fb4f5c..8f85eae2a46 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md index 0b375df67a3..c05bc15e995 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/update-document.md b/docs/examples/1.2.x/client-apple/examples/databases/update-document.md index 5a943af8c11..238da36ec86 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md index 93702bfdbcd..8c696c8dec5 100644 --- a/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md index f1e53cb5708..b6ed7f7e75e 100644 --- a/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md index 0f182950eeb..5e6920aa213 100644 --- a/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md index b48e3088de7..82880b52b45 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/get.md b/docs/examples/1.2.x/client-apple/examples/graphql/get.md index dec7b275f9a..db58a74188a 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/get.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md index d58b881df4d..aa8d9d318cb 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/query.md b/docs/examples/1.2.x/client-apple/examples/graphql/query.md index 0aba98aeb88..78797a21a02 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/get.md b/docs/examples/1.2.x/client-apple/examples/locale/get.md index d12470d66ab..95dc75d9f84 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md index 4853f77212d..83073b0210b 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..6f9d96899a3 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..46e86dbe965 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md index 75369d0606e..f5a43f040aa 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md index 92eea812756..bcbf30ec9dc 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..46fa89e0791 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/create-file.md b/docs/examples/1.2.x/client-apple/examples/storage/create-file.md index f8824208821..9abfb7678b4 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md index 27624b4bc20..d0222a52631 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md index ca96b31d93e..48d81066766 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md index 71c0f31f27d..17f75ae40da 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md index 85631efc835..f18fd82d3d1 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file.md index fa28b48d640..8f961898de7 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/list-files.md b/docs/examples/1.2.x/client-apple/examples/storage/list-files.md index 51f7fe8f053..ab0633ade53 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/update-file.md b/docs/examples/1.2.x/client-apple/examples/storage/update-file.md index 13bf635ec60..ac8ef4b3d45 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md index d658c5d35f9..f141309f671 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/create.md b/docs/examples/1.2.x/client-apple/examples/teams/create.md index c28eec416d0..5e2b092a702 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md index 186f6ad6fb4..e14bba13c7f 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/delete.md b/docs/examples/1.2.x/client-apple/examples/teams/delete.md index e7585ec3876..5e39a53370b 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md index 02ee3dab422..a792889fd4e 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/get.md b/docs/examples/1.2.x/client-apple/examples/teams/get.md index c8630adaacf..689c5e68859 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md index 1f8a0ccb730..57876d3feae 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/list.md b/docs/examples/1.2.x/client-apple/examples/teams/list.md index 72226d4f5b7..cb9da6c7d5d 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md index e59b86b06b4..8cfb32df2ca 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md index 65a899cb1c7..5f8b723cd5d 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update.md b/docs/examples/1.2.x/client-apple/examples/teams/update.md index 328c43ab3aa..975eb7fe6f6 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/update.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create.md b/docs/examples/1.2.x/client-flutter/examples/account/create.md index 501034aa7ff..f54f0474313 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get-session.md b/docs/examples/1.2.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get.md b/docs/examples/1.2.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-email.md b/docs/examples/1.2.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-name.md b/docs/examples/1.2.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-password.md b/docs/examples/1.2.x/client-flutter/examples/account/update-password.md index fc4e7611df5..a19d697e21b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-status.md b/docs/examples/1.2.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md index 512ea5f8ca9..5bc764735e0 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.63a08ed7385a4( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/get.md b/docs/examples/1.2.x/client-flutter/examples/graphql/get.md index a84ddc2bffe..2df8d4be91f 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.get( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md index c0bffce70a0..160c5ec892e 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.mutation( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/query.md b/docs/examples/1.2.x/client-flutter/examples/graphql/query.md index 455cb0bd227..fd5d8e15002 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.query( diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/get.md b/docs/examples/1.2.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md index fe54b4acfca..2a11b981c37 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/create.md b/docs/examples/1.2.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/delete.md b/docs/examples/1.2.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/get.md b/docs/examples/1.2.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/list.md b/docs/examples/1.2.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md index 6e96c017e03..c031101d7a2 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipRoles( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update.md b/docs/examples/1.2.x/client-flutter/examples/teams/update.md index 63aa33feb96..5972b9fbdaf 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.update( diff --git a/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-email-session.md b/docs/examples/1.2.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-recovery.md b/docs/examples/1.2.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-verification.md b/docs/examples/1.2.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create.md b/docs/examples/1.2.x/client-web/examples/account/create.md index 317a0c52651..f452383fed2 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create.md +++ b/docs/examples/1.2.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/delete-session.md b/docs/examples/1.2.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.2.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/get-prefs.md b/docs/examples/1.2.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.2.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/get-session.md b/docs/examples/1.2.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.2.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/get.md b/docs/examples/1.2.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.2.x/client-web/examples/account/get.md +++ b/docs/examples/1.2.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/list-logs.md b/docs/examples/1.2.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.2.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.2.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/list-sessions.md b/docs/examples/1.2.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.2.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-email.md b/docs/examples/1.2.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-name.md b/docs/examples/1.2.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-password.md b/docs/examples/1.2.x/client-web/examples/account/update-password.md index 9cb72c7fdef..b5dea9c9eba 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone.md b/docs/examples/1.2.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-prefs.md b/docs/examples/1.2.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-recovery.md b/docs/examples/1.2.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-session.md b/docs/examples/1.2.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-status.md b/docs/examples/1.2.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-verification.md b/docs/examples/1.2.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-image.md b/docs/examples/1.2.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/create-document.md b/docs/examples/1.2.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/delete-document.md b/docs/examples/1.2.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/get-document.md b/docs/examples/1.2.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/list-documents.md b/docs/examples/1.2.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/update-document.md b/docs/examples/1.2.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/functions/create-execution.md b/docs/examples/1.2.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.2.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/functions/get-execution.md b/docs/examples/1.2.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.2.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/functions/list-executions.md b/docs/examples/1.2.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.2.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md index 45584f44bb0..3bf6d7977f0 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/get.md b/docs/examples/1.2.x/client-web/examples/graphql/get.md index 25a59ceeb49..98d561e4f70 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/get.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/get.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/mutation.md b/docs/examples/1.2.x/client-web/examples/graphql/mutation.md index 1a0b61cd3b5..c968d9a245a 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/query.md b/docs/examples/1.2.x/client-web/examples/graphql/query.md index e507fbb5aa1..8d1e5edd18a 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/get.md b/docs/examples/1.2.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/get.md +++ b/docs/examples/1.2.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-continents.md b/docs/examples/1.2.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-languages.md b/docs/examples/1.2.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/create-file.md b/docs/examples/1.2.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/delete-file.md b/docs/examples/1.2.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file.md b/docs/examples/1.2.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/list-files.md b/docs/examples/1.2.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.2.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/update-file.md b/docs/examples/1.2.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/create-membership.md b/docs/examples/1.2.x/client-web/examples/teams/create-membership.md index 655f7982883..85fb1ef1245 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/create.md b/docs/examples/1.2.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/create.md +++ b/docs/examples/1.2.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/delete.md b/docs/examples/1.2.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.2.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/get-membership.md b/docs/examples/1.2.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/get.md b/docs/examples/1.2.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/get.md +++ b/docs/examples/1.2.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/list.md b/docs/examples/1.2.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/list.md +++ b/docs/examples/1.2.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/update.md b/docs/examples/1.2.x/client-web/examples/teams/update.md index e10252e73f8..016d53add81 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/update.md +++ b/docs/examples/1.2.x/client-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md index 9521cf68a56..81b49b3364e 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-email-session.md b/docs/examples/1.2.x/console-web/examples/account/create-email-session.md index 19812773df7..4b9d12c64fc 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md index 8a851df3699..86336ab693e 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md index 6917aa288c7..b000a713dd9 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md index bf33c52f30b..3dc8a90076a 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md index 85e7d68eed2..18fb31ee857 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md index 0b10961e53f..aadd2c149da 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-recovery.md b/docs/examples/1.2.x/console-web/examples/account/create-recovery.md index dd33c01f04a..9cc625a21d5 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-verification.md b/docs/examples/1.2.x/console-web/examples/account/create-verification.md index 7b1ec32f2f0..b3ce7d060fe 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create.md b/docs/examples/1.2.x/console-web/examples/account/create.md index 71d8f7a7efd..d308aef50ef 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create.md +++ b/docs/examples/1.2.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/delete-session.md b/docs/examples/1.2.x/console-web/examples/account/delete-session.md index b360b3bb892..c6a6188d4ef 100644 --- a/docs/examples/1.2.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md index 0d0fea88f44..6cf737e92ae 100644 --- a/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/get-prefs.md b/docs/examples/1.2.x/console-web/examples/account/get-prefs.md index 284f8fabdaf..939df8a13cc 100644 --- a/docs/examples/1.2.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/get-session.md b/docs/examples/1.2.x/console-web/examples/account/get-session.md index 651d35c7344..485ccb7f7cb 100644 --- a/docs/examples/1.2.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/get.md b/docs/examples/1.2.x/console-web/examples/account/get.md index f6fc4b94010..f4bc097c8e9 100644 --- a/docs/examples/1.2.x/console-web/examples/account/get.md +++ b/docs/examples/1.2.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/list-logs.md b/docs/examples/1.2.x/console-web/examples/account/list-logs.md index 4f1d6813a78..68bc5a33863 100644 --- a/docs/examples/1.2.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/list-sessions.md b/docs/examples/1.2.x/console-web/examples/account/list-sessions.md index bd3b102b215..c54c6420f29 100644 --- a/docs/examples/1.2.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-email.md b/docs/examples/1.2.x/console-web/examples/account/update-email.md index 21b7fcc3f26..1d69f5d15aa 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md index 1bc748ed309..e73d344a75f 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-name.md b/docs/examples/1.2.x/console-web/examples/account/update-name.md index 5a9ab011b49..5a221115f1b 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-password.md b/docs/examples/1.2.x/console-web/examples/account/update-password.md index 57f1b34349a..610a6bd0101 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md index 4b47389a3c6..2f5ca7fa64e 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md index 99c13cb90ea..4f66ec5e810 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone.md b/docs/examples/1.2.x/console-web/examples/account/update-phone.md index 80f715e0bcc..19ebdd256b0 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-prefs.md b/docs/examples/1.2.x/console-web/examples/account/update-prefs.md index 0a85380d344..2cba25590f5 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-recovery.md b/docs/examples/1.2.x/console-web/examples/account/update-recovery.md index 64c1545e89b..f91b353d944 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-session.md b/docs/examples/1.2.x/console-web/examples/account/update-session.md index 29dc0c0907f..64abdcb0dc2 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-status.md b/docs/examples/1.2.x/console-web/examples/account/update-status.md index 87b51465255..c1a568439fb 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-verification.md b/docs/examples/1.2.x/console-web/examples/account/update-verification.md index 93dd5db120f..7ab66b2be6a 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md index f830effff2c..f2a966e6d35 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md index a4e67b25e73..a3f59418dac 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md index 14bc1b9b004..0076abdd54a 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md index 52ebe68c659..f6a66a01a8d 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-image.md b/docs/examples/1.2.x/console-web/examples/avatars/get-image.md index 517421e7f0f..2435fae9809 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md index 8b03b5d3863..0d5bc0a6c8f 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md index 89cea47ad9b..5f1d17d410d 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md index 3924ff5cc54..995eb48e4ba 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-collection.md b/docs/examples/1.2.x/console-web/examples/databases/create-collection.md index ff3dbd974db..a478b7eeb63 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md index 4e1f3190b3f..a6e825299a5 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-document.md b/docs/examples/1.2.x/console-web/examples/databases/create-document.md index 4b9adc4e7c9..fdd014f39d0 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md index 8d2a5523b60..d25d0cdca3c 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md index 503290b951e..492fc94db7b 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md index 7ce41b6b0bd..e910e78d5f4 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-index.md b/docs/examples/1.2.x/console-web/examples/databases/create-index.md index 4da79809f45..90886275fc7 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md index 28218a16d74..5fc48e79806 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md index 88fcd66825b..4f393305779 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md index 8beade8f9d5..8b546994fb4 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md index 1cbd402c2e3..4c1621878ae 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create.md b/docs/examples/1.2.x/console-web/examples/databases/create.md index bca894d724b..035be47b85a 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md index 858010b3137..9b5259f1358 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md index 9ce95a5e54a..b654863416f 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-document.md b/docs/examples/1.2.x/console-web/examples/databases/delete-document.md index d31d06b5210..727cf132ba6 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-index.md b/docs/examples/1.2.x/console-web/examples/databases/delete-index.md index 2ef22b82ad1..6c8f1485115 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete.md b/docs/examples/1.2.x/console-web/examples/databases/delete.md index bfd5b0cea3e..049280a06be 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md index 1542f64763c..610f07904be 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md index 983a6133735..df519530465 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-collection.md b/docs/examples/1.2.x/console-web/examples/databases/get-collection.md index 6dae02f5c20..f5fd435ff44 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md index f75040811e1..3c293f0211f 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-document.md b/docs/examples/1.2.x/console-web/examples/databases/get-document.md index 87569bd8639..63ec42b8171 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-index.md b/docs/examples/1.2.x/console-web/examples/databases/get-index.md index d3df35d7a7d..92fe6b48f41 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-usage.md index aabe123e892..c0ad5ea3c23 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get.md b/docs/examples/1.2.x/console-web/examples/databases/get.md index 64c8a859ed6..036ebd5294a 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md index df9123680e5..cb07aba1f50 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md index 89662fe4b33..a6484de5e23 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-collections.md b/docs/examples/1.2.x/console-web/examples/databases/list-collections.md index 498e0d9c132..7d0e31ab0f9 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md index 0161998358f..34cf6c9c3df 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-documents.md b/docs/examples/1.2.x/console-web/examples/databases/list-documents.md index 9e29eb52c78..6365b91045d 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md index 3449b7d82be..e821f98a12e 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-logs.md index 3b3f0dcead4..b982f8791b5 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list.md b/docs/examples/1.2.x/console-web/examples/databases/list.md index 20ae55793d2..d4ba3714c49 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/update-collection.md b/docs/examples/1.2.x/console-web/examples/databases/update-collection.md index c0043b25002..c6fb8f69b66 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/update-document.md b/docs/examples/1.2.x/console-web/examples/databases/update-document.md index 249af346483..2fbe08d3d22 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/update.md b/docs/examples/1.2.x/console-web/examples/databases/update.md index a8160956e52..5f2727847c9 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/update.md +++ b/docs/examples/1.2.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-build.md b/docs/examples/1.2.x/console-web/examples/functions/create-build.md index 141bb3247c7..a4d250ba582 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md index cb91fa8ab61..e205e851894 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-execution.md b/docs/examples/1.2.x/console-web/examples/functions/create-execution.md index cd623bb0562..b7c9d286528 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-variable.md b/docs/examples/1.2.x/console-web/examples/functions/create-variable.md index df147ac2c8f..d8bad947e28 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create.md b/docs/examples/1.2.x/console-web/examples/functions/create.md index bc59a064f29..578118fa310 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md index 9597da3dcfc..a5dc5584570 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md index 30f2c031aae..1687be849be 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete.md b/docs/examples/1.2.x/console-web/examples/functions/delete.md index 3cfa756613b..bee147500b8 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.2.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md index 3a16587aca0..e5e988c9409 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-execution.md b/docs/examples/1.2.x/console-web/examples/functions/get-execution.md index ac92b98af8e..d5b5d7400bf 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md index 9ac20346ea3..19bb6aa293c 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-usage.md b/docs/examples/1.2.x/console-web/examples/functions/get-usage.md index 6e3fe878607..8afeec514aa 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-variable.md b/docs/examples/1.2.x/console-web/examples/functions/get-variable.md index 3d4b07f44ef..0d6a078176e 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get.md b/docs/examples/1.2.x/console-web/examples/functions/get.md index 5cb2e289106..fbb4e8be3f7 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md index bd63271f279..1acf26b16f8 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-executions.md b/docs/examples/1.2.x/console-web/examples/functions/list-executions.md index 5df980d48b7..b1d40eb4b6e 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md index 18f13b2c830..c1e2c654d73 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-variables.md b/docs/examples/1.2.x/console-web/examples/functions/list-variables.md index 5fd03bfc190..4f37c95bd59 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list.md b/docs/examples/1.2.x/console-web/examples/functions/list.md index 721ad6bbb0c..903112a5f70 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md index 98752326efd..b668a3fabb3 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/update-variable.md b/docs/examples/1.2.x/console-web/examples/functions/update-variable.md index 33380ee102c..3ce70d0d627 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/update.md b/docs/examples/1.2.x/console-web/examples/functions/update.md index e442bad7c2e..e355557db09 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/update.md +++ b/docs/examples/1.2.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md b/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md index 9d5be3a2745..04f78437ef7 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/get.md b/docs/examples/1.2.x/console-web/examples/graphql/get.md index 25a59ceeb49..98d561e4f70 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/get.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/get.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/mutation.md b/docs/examples/1.2.x/console-web/examples/graphql/mutation.md index ee70c3630c4..6de224be68f 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/query.md b/docs/examples/1.2.x/console-web/examples/graphql/query.md index 055c6ad0020..f1c35d81ba9 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md index 6d57550dd90..c55b33a3f56 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-cache.md b/docs/examples/1.2.x/console-web/examples/health/get-cache.md index 5748c8e9dc1..7c1563ced5b 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-d-b.md b/docs/examples/1.2.x/console-web/examples/health/get-d-b.md index 181dca70768..3c3c21b88c6 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md index 29fcb6707a7..f1361cb68aa 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md index 0b011cb32d4..12e8a8b6ba5 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md index 2dc33b377b3..8ddfaf700bd 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md index 534d68c7f46..b2ae504bd13 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md index ff842f4ba6a..b7e8d86da67 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-time.md b/docs/examples/1.2.x/console-web/examples/health/get-time.md index 6d8e1c225a5..73e1155687e 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get.md b/docs/examples/1.2.x/console-web/examples/health/get.md index 76e74be74cf..faa1a0c7c1c 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get.md +++ b/docs/examples/1.2.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/get.md b/docs/examples/1.2.x/console-web/examples/locale/get.md index ac47468df81..bd3c27e3c32 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/get.md +++ b/docs/examples/1.2.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-continents.md b/docs/examples/1.2.x/console-web/examples/locale/list-continents.md index b2358396fcf..0c3d6bb4996 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md index 59d6e24dbf7..7ac2906b4c7 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md index 898cb3cf31b..300c81d9538 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries.md index a36b8c25edf..3f26f6dba81 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md index 1f348914259..66163952bd7 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-languages.md b/docs/examples/1.2.x/console-web/examples/locale/list-languages.md index 4fb4dbf0be9..048c79d38ad 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-domain.md b/docs/examples/1.2.x/console-web/examples/projects/create-domain.md index 78036bc8b06..4a572cc30c0 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-key.md b/docs/examples/1.2.x/console-web/examples/projects/create-key.md index 02032e81c54..d65660599b2 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-platform.md b/docs/examples/1.2.x/console-web/examples/projects/create-platform.md index 4a319681713..b668ec12f76 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md index 356a5ffe866..0ca56346c4d 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create.md b/docs/examples/1.2.x/console-web/examples/projects/create.md index 67682bf8595..df22f3a68ed 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md index 9b8ffbce394..a5370389e18 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-key.md b/docs/examples/1.2.x/console-web/examples/projects/delete-key.md index 74c6bd15621..399e97687a2 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md index da8ce56e54e..0d6fa3c55b3 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md index 08e3af636fc..2de71ec3f31 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete.md b/docs/examples/1.2.x/console-web/examples/projects/delete.md index dc620b08113..62c43398531 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-domain.md b/docs/examples/1.2.x/console-web/examples/projects/get-domain.md index 4b82d70ef5c..4d42ce09ba0 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-key.md b/docs/examples/1.2.x/console-web/examples/projects/get-key.md index c0d3282c146..bfadb8de561 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-platform.md b/docs/examples/1.2.x/console-web/examples/projects/get-platform.md index fd65231affd..d178cbb8430 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-usage.md b/docs/examples/1.2.x/console-web/examples/projects/get-usage.md index 8d8c91355dd..af512463fbe 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md index 7f580b5f572..4357669a227 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get.md b/docs/examples/1.2.x/console-web/examples/projects/get.md index 23c235a741c..69e53ca0f23 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-domains.md b/docs/examples/1.2.x/console-web/examples/projects/list-domains.md index 448dbf8d190..7f536d91dec 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-domains.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-keys.md b/docs/examples/1.2.x/console-web/examples/projects/list-keys.md index c2dce0a419a..8800067c24b 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md index 968438f6bb7..692de5c43fe 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md index e0e0af367f5..d960a75f982 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list.md b/docs/examples/1.2.x/console-web/examples/projects/list.md index 0cf5002afe9..a7476905fd5 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md index 37c69222df8..f74645388d4 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md index a63f5b4518e..4195655befe 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md index ef2dffa67ae..21ce249f7aa 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md index 4751442d8fd..b183e1477c0 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md index d994b90aaa2..aac42ce379c 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-key.md b/docs/examples/1.2.x/console-web/examples/projects/update-key.md index fd2bde82bfa..659017451a2 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md index 34ce8142088..cf3c92658fa 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-platform.md b/docs/examples/1.2.x/console-web/examples/projects/update-platform.md index ce49dfffd84..75f3b3b4e2c 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md index 5b727003b04..66010abf746 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md index 472271f8e60..8a18c842620 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md index 1339a458227..81fdd2913e9 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update.md b/docs/examples/1.2.x/console-web/examples/projects/update.md index 31281808c47..f162bd09b52 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md index 7696b14294e..766a4835dc3 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/create-file.md b/docs/examples/1.2.x/console-web/examples/storage/create-file.md index d1bf55b42b8..ce0c8f0b9c7 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md index 4634b11f5b3..0a3305e862a 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/delete-file.md b/docs/examples/1.2.x/console-web/examples/storage/delete-file.md index b4c0ff0f9d8..1961a1fcde1 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md index 65c66d7aa04..58223df2aef 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md index 2b65e8b0cee..7b386458f9d 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md index 1ce57cb38a6..bdc8fb79d3f 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md index ab6bc18fc46..8f58323bd6e 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md index 7ce851f0252..aa482c46f5c 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file.md b/docs/examples/1.2.x/console-web/examples/storage/get-file.md index b6e800303d1..bb5a737721a 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-usage.md b/docs/examples/1.2.x/console-web/examples/storage/get-usage.md index f618ba4e16e..e9a8eb06729 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md index 5a356900fab..a14a0d02172 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/list-files.md b/docs/examples/1.2.x/console-web/examples/storage/list-files.md index 0c6170f11d1..ac7ef669dc0 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.2.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md index 09ed4ce441f..1d050c14b88 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/update-file.md b/docs/examples/1.2.x/console-web/examples/storage/update-file.md index abaaf9afd4e..12292761d23 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/create-membership.md b/docs/examples/1.2.x/console-web/examples/teams/create-membership.md index c121edc70b4..3c6fe4f7962 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/create.md b/docs/examples/1.2.x/console-web/examples/teams/create.md index a2cb34296b6..881816db346 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/create.md +++ b/docs/examples/1.2.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md index 4e7d7e7a746..66274a17b65 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/delete.md b/docs/examples/1.2.x/console-web/examples/teams/delete.md index 0bc778ba635..d51318f89e2 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.2.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/get-membership.md b/docs/examples/1.2.x/console-web/examples/teams/get-membership.md index c0bdae5fc6c..881f37d8b09 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/get.md b/docs/examples/1.2.x/console-web/examples/teams/get.md index 2dbfdb4b0b6..068d50c6d10 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/get.md +++ b/docs/examples/1.2.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/list-logs.md b/docs/examples/1.2.x/console-web/examples/teams/list-logs.md index 2c3c7311e26..7fb75214172 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md index f7a7d1a54e6..93e8588a555 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/list.md b/docs/examples/1.2.x/console-web/examples/teams/list.md index 99e482d8f3c..3a5311efe33 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/list.md +++ b/docs/examples/1.2.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md index c09ed1ac779..80cbd9b6e17 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md index 1c8ec3a27e3..cdc93967b33 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/update.md b/docs/examples/1.2.x/console-web/examples/teams/update.md index 160c8626ad1..c912fc6c440 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/update.md +++ b/docs/examples/1.2.x/console-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md index f4dabafe189..e22db4f2987 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md index 247f579c9ca..809c9aab772 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md index 8a81f0801bf..13048d3ad68 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md index f7297c10234..448fb53ac24 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md index 3cefaf17dfa..d188ec648d7 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md index d8889fa2292..da40910a376 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md index 3c4b357e4c9..ba82d26d9f6 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create.md b/docs/examples/1.2.x/console-web/examples/users/create.md index 845895d6a5c..30e6ec9266f 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create.md +++ b/docs/examples/1.2.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/delete-session.md b/docs/examples/1.2.x/console-web/examples/users/delete-session.md index 70404ca574f..9098318a774 100644 --- a/docs/examples/1.2.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.2.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md index b02771c7098..c8994db4e5a 100644 --- a/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/delete.md b/docs/examples/1.2.x/console-web/examples/users/delete.md index 0bb95c395bd..8dd6885f0e5 100644 --- a/docs/examples/1.2.x/console-web/examples/users/delete.md +++ b/docs/examples/1.2.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/get-prefs.md b/docs/examples/1.2.x/console-web/examples/users/get-prefs.md index 593552bd033..a0e8f78b94a 100644 --- a/docs/examples/1.2.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/get-usage.md b/docs/examples/1.2.x/console-web/examples/users/get-usage.md index 59d95e6dcb5..3c38b500d8b 100644 --- a/docs/examples/1.2.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/get.md b/docs/examples/1.2.x/console-web/examples/users/get.md index 46cee750f7b..816b41ad399 100644 --- a/docs/examples/1.2.x/console-web/examples/users/get.md +++ b/docs/examples/1.2.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list-logs.md b/docs/examples/1.2.x/console-web/examples/users/list-logs.md index ded1e98b40b..cb2402e2d07 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list-memberships.md b/docs/examples/1.2.x/console-web/examples/users/list-memberships.md index b47f7acf57a..3f9dca5ab21 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list-sessions.md b/docs/examples/1.2.x/console-web/examples/users/list-sessions.md index 087834e5695..0c0109550bd 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list.md b/docs/examples/1.2.x/console-web/examples/users/list.md index 28a8258b126..f658f432bac 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list.md +++ b/docs/examples/1.2.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md index 019b0723714..7b9d2cc424e 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-email.md b/docs/examples/1.2.x/console-web/examples/users/update-email.md index e37d03a01c9..fe1f2500f83 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-name.md b/docs/examples/1.2.x/console-web/examples/users/update-name.md index 2834c747da4..2d491d7a569 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-password.md b/docs/examples/1.2.x/console-web/examples/users/update-password.md index 245986ca05e..eea4958d998 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md index 17ddf467d96..d4fe6f00a18 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-phone.md b/docs/examples/1.2.x/console-web/examples/users/update-phone.md index a1d85aaaca4..ce74c710226 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-prefs.md b/docs/examples/1.2.x/console-web/examples/users/update-prefs.md index e3c5b76c2aa..c05c4df53d6 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-status.md b/docs/examples/1.2.x/console-web/examples/users/update-status.md index eafbec728f5..87e2197cfc6 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-verification.md b/docs/examples/1.2.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/delete-session.md b/docs/examples/1.2.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/get-session.md b/docs/examples/1.2.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/get.md b/docs/examples/1.2.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/get.md +++ b/docs/examples/1.2.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/list-logs.md b/docs/examples/1.2.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-email.md b/docs/examples/1.2.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-name.md b/docs/examples/1.2.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-password.md b/docs/examples/1.2.x/server-dart/examples/account/update-password.md index 6d8cfce1a2a..8c7c3b5f956 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-phone.md b/docs/examples/1.2.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-session.md b/docs/examples/1.2.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-status.md b/docs/examples/1.2.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-verification.md b/docs/examples/1.2.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-document.md b/docs/examples/1.2.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-index.md b/docs/examples/1.2.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create.md b/docs/examples/1.2.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete.md b/docs/examples/1.2.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-document.md b/docs/examples/1.2.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-index.md b/docs/examples/1.2.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get.md b/docs/examples/1.2.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list.md b/docs/examples/1.2.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update-document.md b/docs/examples/1.2.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update.md b/docs/examples/1.2.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-build.md b/docs/examples/1.2.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md index d646680db84..17683d2c863 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create.md b/docs/examples/1.2.x/server-dart/examples/functions/create.md index 923654d10a8..16a5215d7c2 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete.md b/docs/examples/1.2.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get.md b/docs/examples/1.2.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list.md b/docs/examples/1.2.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update.md b/docs/examples/1.2.x/server-dart/examples/functions/update.md index 4a1b0f9b4d1..973279f5f24 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md index bda3c643ff2..cd56e1deb39 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/get.md b/docs/examples/1.2.x/server-dart/examples/graphql/get.md index ea07775165a..5539cac7d78 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md index 780ee09f4ac..160c049dc29 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/query.md b/docs/examples/1.2.x/server-dart/examples/graphql/query.md index 7f22f5360d8..4191d3c271d 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-cache.md b/docs/examples/1.2.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-time.md b/docs/examples/1.2.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get.md b/docs/examples/1.2.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/get.md b/docs/examples/1.2.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/create-file.md b/docs/examples/1.2.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/list-files.md b/docs/examples/1.2.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/update-file.md b/docs/examples/1.2.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md index 16d875de28e..f2816321416 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/create.md b/docs/examples/1.2.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/delete.md b/docs/examples/1.2.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/get.md b/docs/examples/1.2.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/list.md b/docs/examples/1.2.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md index dcbef5c9484..8ede36ac641 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update.md b/docs/examples/1.2.x/server-dart/examples/teams/update.md index 67892475abc..ce259401736 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/update.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create.md b/docs/examples/1.2.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete-session.md b/docs/examples/1.2.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete.md b/docs/examples/1.2.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/get.md b/docs/examples/1.2.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/get.md +++ b/docs/examples/1.2.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-logs.md b/docs/examples/1.2.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list.md b/docs/examples/1.2.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-email.md b/docs/examples/1.2.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-name.md b/docs/examples/1.2.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-password.md b/docs/examples/1.2.x/server-dart/examples/users/update-password.md index ce2a4c7dd50..13fcef65860 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-phone.md b/docs/examples/1.2.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-status.md b/docs/examples/1.2.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-verification.md b/docs/examples/1.2.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/delete-session.md b/docs/examples/1.2.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/get-session.md b/docs/examples/1.2.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/get.md b/docs/examples/1.2.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/get.md +++ b/docs/examples/1.2.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/list-logs.md b/docs/examples/1.2.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-email.md b/docs/examples/1.2.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-name.md b/docs/examples/1.2.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-password.md b/docs/examples/1.2.x/server-deno/examples/account/update-password.md index 13e9d7c4797..26114e0c8eb 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-phone.md b/docs/examples/1.2.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-session.md b/docs/examples/1.2.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-status.md b/docs/examples/1.2.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-verification.md b/docs/examples/1.2.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-document.md b/docs/examples/1.2.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-index.md b/docs/examples/1.2.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create.md b/docs/examples/1.2.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete.md b/docs/examples/1.2.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-document.md b/docs/examples/1.2.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-index.md b/docs/examples/1.2.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get.md b/docs/examples/1.2.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list.md b/docs/examples/1.2.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update-document.md b/docs/examples/1.2.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update.md b/docs/examples/1.2.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-build.md b/docs/examples/1.2.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md index 005644b62e4..e663cf473a4 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create.md b/docs/examples/1.2.x/server-deno/examples/functions/create.md index 423a347f512..0964bce1806 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete.md b/docs/examples/1.2.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get.md b/docs/examples/1.2.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list.md b/docs/examples/1.2.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update.md b/docs/examples/1.2.x/server-deno/examples/functions/update.md index 84316f1de7c..4c527d89705 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md index cf6e477fc96..8d13e30ca60 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/get.md b/docs/examples/1.2.x/server-deno/examples/graphql/get.md index 2cc251ccf30..f115ef7d5fb 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md index 87beeabce65..f95cdc771d4 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/query.md b/docs/examples/1.2.x/server-deno/examples/graphql/query.md index d2eec0a8dbf..27930bde4d6 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/query.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-cache.md b/docs/examples/1.2.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-time.md b/docs/examples/1.2.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get.md b/docs/examples/1.2.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/get.md b/docs/examples/1.2.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/create-file.md b/docs/examples/1.2.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/list-files.md b/docs/examples/1.2.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/update-file.md b/docs/examples/1.2.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md index e54377281e9..85762a26deb 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/create.md b/docs/examples/1.2.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/delete.md b/docs/examples/1.2.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/get.md b/docs/examples/1.2.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/list.md b/docs/examples/1.2.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md index 9f2dad98c6b..050f7dbbd79 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update.md b/docs/examples/1.2.x/server-deno/examples/teams/update.md index b17708a9c48..590c6e4dcb4 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/update.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create.md b/docs/examples/1.2.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete-session.md b/docs/examples/1.2.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete.md b/docs/examples/1.2.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/get.md b/docs/examples/1.2.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/get.md +++ b/docs/examples/1.2.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-logs.md b/docs/examples/1.2.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list.md b/docs/examples/1.2.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-email.md b/docs/examples/1.2.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-name.md b/docs/examples/1.2.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-password.md b/docs/examples/1.2.x/server-deno/examples/users/update-password.md index 3c896fae5a3..5852c340aad 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-phone.md b/docs/examples/1.2.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-status.md b/docs/examples/1.2.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md index 013b357f880..86416e08aaa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md index 284efc8107b..7f1a21b9dc8 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md index 0280b4b15b1..c7911643c19 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md index 2cd069eaa13..27ce537ecd6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md index 7a9999d3985..cd790a3ac73 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md index 3f6cd20c9dd..609707c4071 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get-session.md b/docs/examples/1.2.x/server-kotlin/java/account/get-session.md index 17229e29de2..efe4fabba7d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get.md b/docs/examples/1.2.x/server-kotlin/java/account/get.md index 80a4988af5b..a79e0279408 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md index 971ac866e12..cfb15dccfca 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md index 9d7e6308e51..f850618692a 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-email.md b/docs/examples/1.2.x/server-kotlin/java/account/update-email.md index 67ab31ad88b..4e09bdf1a97 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-name.md b/docs/examples/1.2.x/server-kotlin/java/account/update-name.md index 6900f121746..6a5a1711eb8 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-password.md b/docs/examples/1.2.x/server-kotlin/java/account/update-password.md index 945ad001284..209fdd2e7de 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md index 8c3c9756de6..0c1d4407633 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md index 9365a0f0b9b..d51cc4497e3 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md index 24a36258345..2c7e22f25fd 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md index bc3251d1602..ffbfd402b94 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-session.md b/docs/examples/1.2.x/server-kotlin/java/account/update-session.md index 62d77e1366f..ec83c2d357e 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-status.md b/docs/examples/1.2.x/server-kotlin/java/account/update-status.md index 4af2cf1083b..964ce9c5b0f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md index 2190daf1b7d..76780f4ac60 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md index 42e8e57ee11..0682288cfe9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md index 5e3b32b527f..f821a7638c9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md index 109f88f7193..95b91adb90b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md index 6ad820ae7a9..f0e2cda52db 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md index 26805449885..765a8024e50 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md index 8a86e7a01bd..8cbcee1497f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md index c57d70a8409..2d7e1332817 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md index 6e79f0a917c..c5d83a05ff4 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md index 96b5d9b9743..77b5c9f7b72 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md index 307a8ffb653..c6d3c6f229f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md index 029c3f7a253..ede98c60462 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md index 8774c550b78..0200f11e7d1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md index e2cf6a28df3..c4ae2933a4f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md index 0fba6ac073a..ceede982b06 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md index 5dbdce895b8..44eba1df018 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md index 5446862fdbc..b0d8028a623 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md index fe37da96d57..a8ade8a4128 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md index a9b19160669..1a767be1d89 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md index 9c504d862bf..c1bee6e0ba3 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create.md b/docs/examples/1.2.x/server-kotlin/java/databases/create.md index cd3cb34db7f..e82a65c08af 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md index 68aeecd93be..d58ba87b289 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md index cd328b48a60..370781bea90 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md index 4f4c8495c32..46b9edf2f62 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md index 640bd0fc312..d633a8a2aed 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete.md index 897a450fa41..a7fad611e05 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md index 79c1d2b2add..fcea6fefb99 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md index 3ecfa0ca802..ce0eea0cb39 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md index 0d6acc2c4c5..b95cd6cf452 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md index 2bf036a0575..753fef468f1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get.md b/docs/examples/1.2.x/server-kotlin/java/databases/get.md index 066ec4d2626..d4eeb222fd7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md index aafeca4a832..1d75e81a433 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md index 67c343f38a7..639a45bc2e0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md index 7a4a1b70b2a..56de64ca4c6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md index 1f5cf0c30f6..7ef4b6d4342 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list.md b/docs/examples/1.2.x/server-kotlin/java/databases/list.md index 04f81867f0e..b46abf235c8 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md index 3f25c5047e9..831193fbf54 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md index e9a596d3d42..39755884660 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update.md b/docs/examples/1.2.x/server-kotlin/java/databases/update.md index 3f4b4e19338..e5bf2ed66c0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md index 10c8d2fc801..5a571f76e8d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md index ed79e4ecb4e..6e11beaf475 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md index 315f57d5cb5..d53744f70a7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md index 5e9c5a66bd9..3ce9c2d944d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create.md b/docs/examples/1.2.x/server-kotlin/java/functions/create.md index 8603a47aad5..e0402a2a3ae 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md index 703dce63aa8..2da778a970d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md index d36615092da..cbdfabc97b2 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete.md index 8f398964115..2f4eb011f11 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md index 5b539d28016..54bf0c461aa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md index b1ff9485e82..00bb0a1ab85 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md index 2be25a5c73d..01a05370645 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get.md b/docs/examples/1.2.x/server-kotlin/java/functions/get.md index 8ad5ea3522b..f6eb035a3ee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md index 61f48c88c37..c5a81048ec7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md index 392e9c82c56..f4db7948dfa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..968f019f025 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md index 4fa47e8c57e..ad6d522b8f1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list.md b/docs/examples/1.2.x/server-kotlin/java/functions/list.md index 4224cf52b78..253cbafaa1c 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md index 2af0637379f..9e1db350714 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md index f30bbf8e4e3..c841731b533 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update.md b/docs/examples/1.2.x/server-kotlin/java/functions/update.md index 39dc372b614..1f9ed3ec5b2 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md index b2d941d852a..d81c9e5f7c7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/get.md b/docs/examples/1.2.x/server-kotlin/java/graphql/get.md index 45f67ab5ba1..421a8da3283 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md index d689c62e60b..9e93425d248 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/query.md b/docs/examples/1.2.x/server-kotlin/java/graphql/query.md index e4b8693b4f9..4ce7a5e66aa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..0e081401324 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..4c53f7a35bc 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..9958d8bbdc4 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md index a0a3a22f8a5..7f4c32f49b0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md index 54b425f63cc..556c3e73e43 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md index 371c98f06d3..075eebf85d7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md index cbd6919d72e..344945db0aa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..527499f94e9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-time.md b/docs/examples/1.2.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..0f78d412474 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get.md b/docs/examples/1.2.x/server-kotlin/java/health/get.md index 59badb05432..a14a4b5aeca 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/get.md b/docs/examples/1.2.x/server-kotlin/java/locale/get.md index 4fb6be94169..22137f75b7b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md index 661fcc3583a..3933873e37d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md index 6164ca02d29..9cb744abcb3 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md index 2cb41c19f22..c81457dbbf7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md index 74d3b5d4022..491b654edee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md index 54a0e4de40c..a4c49e35689 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md index 54976c5c08b..4f09bab65c9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md index c9ebc9178c9..268fa1563e6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md index c83557bf282..e6cdf748528 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md index f26e9ee5a19..c7844f9e90d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md index eb00b9706cc..b9095c139ba 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md index 2157dd7424c..f44d23fe902 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md index 8eef7e347e1..0b1207a0178 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md index 275e803000d..1356607a327 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md index adc0407c358..d5aa220f23d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md index 4cb6fe6db31..0bd4f682b13 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md index 49c29cad2da..e3a69b43d9f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md index 59719e530f2..dc87428ebbc 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md index 05483ea7252..08c77804e22 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md index 05385c2b88f..d2a1b6c4272 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md index 62239ec9c19..126a53ac9ee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/create.md b/docs/examples/1.2.x/server-kotlin/java/teams/create.md index 4f3be33609f..75d13b61069 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md index e82ab293be4..26d0fba99cb 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/delete.md b/docs/examples/1.2.x/server-kotlin/java/teams/delete.md index fa805ebd4d4..7699d575bf7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md index fc00d438731..e901b4438ed 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/get.md b/docs/examples/1.2.x/server-kotlin/java/teams/get.md index 6be034b4182..ef9c02df2f6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md index 0b9055f8169..8abf4644900 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/list.md b/docs/examples/1.2.x/server-kotlin/java/teams/list.md index 22a9d51d5fd..5f0540e6c46 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md index 291417da5ac..c485c0c0e69 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md index 64e69663d42..54ea9877155 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update.md b/docs/examples/1.2.x/server-kotlin/java/teams/update.md index b0f2e81635e..ed97a24e48b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md index 47ac52c0863..0f1faf77e5c 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md index 91989dff0fe..3c34190dd3f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md index 35de18d1a34..be38f913a6c 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md index 7501f02f2f5..718f4100eb4 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md index ae26de55437..e67c8745422 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md index da0936a01b3..7a665a7c945 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md index 9b48e06fbd2..9a99af84107 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create.md b/docs/examples/1.2.x/server-kotlin/java/users/create.md index 97aad153029..c9b3c8558ee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md index 84153284065..dfde18e516f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md index 9a2284c493b..45ed56eb53b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete.md b/docs/examples/1.2.x/server-kotlin/java/users/delete.md index 893a4d37940..7120f8035ca 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md index 664843e32c8..2c3190194a0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/get.md b/docs/examples/1.2.x/server-kotlin/java/users/get.md index 1be96aee11f..43d32f8d1a2 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md index 08ace35a19c..df4964211c1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md index 503dbcb10ab..89c90c8cc88 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md index efe091fe74e..8ea8833c2e0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list.md b/docs/examples/1.2.x/server-kotlin/java/users/list.md index d591bce79e1..0ca79280613 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md index 3d6d205bce0..91b989b6681 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-email.md b/docs/examples/1.2.x/server-kotlin/java/users/update-email.md index d0e9b17c1da..2d29d4cab1f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-name.md b/docs/examples/1.2.x/server-kotlin/java/users/update-name.md index e16f539bdc4..9df5a00fd36 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-password.md b/docs/examples/1.2.x/server-kotlin/java/users/update-password.md index 07a2741ff42..77d39643b9d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md index 8c9a26d6093..ac7796c0415 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md index 4a2accb7933..007d78dfd37 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md index b12a5d8e4f0..655ab79f5b6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-status.md b/docs/examples/1.2.x/server-kotlin/java/users/update-status.md index 012142cad7b..d4c753e8d88 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md index e18d4ce13b2..9af377fed56 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md index a219cb8196b..5a207d31f28 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md index 33846f1dba6..6ba8071254c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md index 60aa4f26046..76e71066c56 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md index a16622a526c..ac82578c8e1 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md index dbbba1d98f6..eba56b21df7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md index 07861109b65..98b112b9122 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md index 1fb002ae240..95f54906520 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md index daddd758430..45ba397f94e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md index 132a5da23b2..6420e6afdb5 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md index 1127bbc2b28..0c9216f9238 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md index 3de89a503ea..e5fb2264c4f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md index e8238b2825f..f4b9f657ea7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md index 0ed51d30c21..7e0bb4905c2 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md index 9c823bb6ac9..334f0fe1726 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md index 6226269a1f1..542ddcc739a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md index 1b676c1ad52..d0b04380e23 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md index bd3d28e3b82..61a3289047d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md index 3ed06279069..4f6562528d8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md index e73e555c602..288750a4712 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md index e9f6eb2919f..7dddeea92c0 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md index c3413ac6442..3c56eb7ca99 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md index cd1ea0c7b37..2e27b70a011 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md index a81c59ae60b..e095c7b602c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md index 09cacde6f89..fd2e0c61497 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md index ba46fb0d292..c42703969de 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md index c43aabcfe3a..2fc413de2bc 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 22de12384d1..5a4e85568ea 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md index 9ba70cf2fec..c48d2d49a23 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d410244ec81..9fe6efab3aa 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md index 95e5977b126..58bc1034015 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md index 292f31f5254..081557e950c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 99008a479b2..e951b71b149 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md index 68149625028..c26e5d37cc9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md index 42b3dbe7e16..d635002a12f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 57b2ff66a73..eafa05417a9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md index f941b82c9e6..daa18f083b7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md index c5d3d52853f..99930484773 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md index 8cd0731da13..238c73b7cc3 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md index b70e39e4e9e..15c83e2cb8a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md index fef7a45cc40..9dddae53fcc 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md index 676359331af..4fb66423e09 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md index 2bf047fe4eb..361218721bc 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md index 59bd149224f..e54aa398973 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md index f927901f098..34d855ce238 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md index 4bba2dfa163..d3840b13b5c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md index 76ff9a1962f..e7127649cd8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md index 1f9d1a86a08..256dba680e7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md index 2d588dee731..d91f52b1116 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md index 5584d4dd878..1453534929d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md index c0a5da53391..df870992470 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md index f563c431a72..8035796f102 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md index c081013fa03..df52ef1ab6e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md index e8f659ebf35..a51586d4c3c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md index 6ffece0bd53..d8c0090988b 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md index f6ccffef9d1..57aba213726 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md index 10ff4c4b4c0..4abc8c5e8e8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md index d465a8dc3f4..a8c9dce5f5f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md index 62f9d1addd3..fafed65c354 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md index c94c3fa5b8b..695fdc7f290 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md index 62bce1fde01..13f476127f5 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md index 6b23614d113..5b8bd6c6337 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md index 7b1ff6b35cf..062f7d3e396 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md index 5187ba44195..57728a9ddd4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md index f0fe4a3d860..9d3c95e173e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md index f12095b5a89..b5a13223800 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md index 4653e61f0e8..bd21f502454 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md index 929a003a18c..517a3499af3 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md index ce42276921b..ee73353aa09 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md index 9261ab897ad..4c47e68d91a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md index 3ec2c810eef..c9cfa4be08e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md index 5378c79dbcb..06f1bdfdf18 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md index 0e777cd1fe7..abe677c0347 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md index 10e74534f4b..729ade920cd 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md index a5f4f0d325a..6aeafdc2580 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md index 14b147384f5..8c0a93fc7a8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md index 1e0f3bbe5f3..e9990d56d11 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md index bfb0edf89e3..ea2e0597501 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md index f007ac03d2c..ef2051b7b4f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md index d391c97f882..8fe4bcfa840 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md index aed06cd7a6c..82c2c19fd21 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md index bd29d431c4c..a271566de16 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md index e387fe0d951..d858d2189f2 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md index 7aca9dd0080..daa7fb646eb 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md index 8e719142bb0..496c7216f25 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md index f4163517058..31c83bd8919 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md index b55241d8f27..d7653c3a7d7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md index fb634ec63c6..1446de4c16d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md index bf4629d259a..11c9b7a6211 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md index f204168bc4d..b0087b6fb28 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md index 35f3bb9bd67..8a9645a42bb 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md index b547be9aa57..a790b949c46 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md index 1d84651fea4..25bf0e1d0b2 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md index bd9ad1825b4..bcaad832cd8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 5d3258335eb..b1e5671fb3b 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md index e0f2ae3c6b0..1a9a2585ca4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md index 626d38133e7..cd8276e49b4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md index 6457056d70e..061a5c82cda 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md index 437b1c3fe92..6ed17be85e9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md index 27d73ffd070..1adf94ca061 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md index 1bdf5e48932..354e3bf94c4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md index 3730a052987..a70b731423a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md index dabf805e8b9..c6a2639376a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md index 0c7fcc137c3..c2abb7b3386 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md index 6c3c1fb4aea..67bcc5d5b41 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md index 372416ed12f..4b75e70d3e3 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md index 4b23cfc9c6f..691acb10550 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md index 211713c7b66..0f98d900a12 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md index 8c4c7bdaac8..b6bce3ace32 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md index 5243ed74cc5..af1c301c1cf 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md index 3de3b5460e8..b0117be004d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md index 3d7fb9ab269..8b85210d15f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md index d4534692f26..19fbef3d0c5 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md index 9e080a13467..5b0105bf712 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md index 16e73e48849..397a9b794ad 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md index c015a772c87..ab0b1c56328 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md index 4f2bed38002..bfb8ea94063 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md index 402aeb1bebc..a6f43f8f189 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md index e9eae80f0b0..0da1afdfc1b 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md index aa10ca58fd0..43196f1d908 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md index e9ea1f18ab1..88a020c7377 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md index 7fa6bd837c2..e9dc0d91eba 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md index 4dabe5b8eff..2376cf8ca56 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md index 438363aed32..81a1f9960f9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 977782ce3cb..15d101773a8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md index 6d6451f3769..86e13b9f1bd 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index c50b2c1da46..cadb580527d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 708935c970c..979cc2a01b1 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index d49f7db4717..b2164d5aa84 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md index aa006fb0db2..e5cabe92b70 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md index ae319d8cd82..fcc5e355ecf 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md index f3a0264aa13..7b96b242135 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md index 5c0070c027b..580031ecac6 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md index 30ee8f3d7a0..2e0013f0ab4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md index 564489c398d..a7ffd650bc6 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md index fd7e4b7a1b9..f55878912ea 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md index 691007588ec..5b3111f5529 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md index 316889e8943..0059c2dc68c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md index 1d7e950425b..fd9a7716d57 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md index e973a26e524..3a74a207570 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md index b4f97bbcab5..ea16acf33bd 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md index c6dfaefd2f0..4adad691848 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md index 1d46c7a8fcd..b60d5656208 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md index 5bff0dc5eff..c7316ff7c65 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md index 909803bd94d..fe6bcf39c09 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md index 073dd6640a8..3d243c0db7c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md index 127035ca488..c05713d316f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md index 5899ed360f5..1966d5d6d05 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get.md b/docs/examples/1.2.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md index b9121e3acc9..f8c221a2439 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md index 661afa151aa..defbd30d102 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create.md index 9b8e0f18206..e1d24380fab 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update.md index fb825081a18..c5d06bdad37 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md index 592e8ac4363..178c9b0bdbe 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md index 841fe0f6e1d..9f8bdd27393 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md index 6f9bed84260..f8f2da769c8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md index 35cd4060cc1..0f30d77e99d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get.md b/docs/examples/1.2.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/get.md b/docs/examples/1.2.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md index 74b1d3fd1d9..492c6b0d9c7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/create.md b/docs/examples/1.2.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/get.md b/docs/examples/1.2.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/list.md b/docs/examples/1.2.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md index 26551fe0b64..93b0f23aba6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update.md index 8192c224f3c..2f518f4afd6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create.md b/docs/examples/1.2.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/get.md b/docs/examples/1.2.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list.md b/docs/examples/1.2.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md index e655eea2de1..d95cf5fb54d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/create-recovery.md b/docs/examples/1.2.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.2.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/create-verification.md b/docs/examples/1.2.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.2.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/delete-session.md b/docs/examples/1.2.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.2.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/get-prefs.md b/docs/examples/1.2.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.2.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/get-session.md b/docs/examples/1.2.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.2.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/get.md b/docs/examples/1.2.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.2.x/server-php/examples/account/get.md +++ b/docs/examples/1.2.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/list-logs.md b/docs/examples/1.2.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.2.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/list-sessions.md b/docs/examples/1.2.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.2.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-email.md b/docs/examples/1.2.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-name.md b/docs/examples/1.2.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-password.md b/docs/examples/1.2.x/server-php/examples/account/update-password.md index 11c6b48041d..4b17a818d2a 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-phone.md b/docs/examples/1.2.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-prefs.md b/docs/examples/1.2.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-recovery.md b/docs/examples/1.2.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-session.md b/docs/examples/1.2.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-status.md b/docs/examples/1.2.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-verification.md b/docs/examples/1.2.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-image.md b/docs/examples/1.2.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-collection.md b/docs/examples/1.2.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-document.md b/docs/examples/1.2.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-index.md b/docs/examples/1.2.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create.md b/docs/examples/1.2.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-document.md b/docs/examples/1.2.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-index.md b/docs/examples/1.2.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete.md b/docs/examples/1.2.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-collection.md b/docs/examples/1.2.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-document.md b/docs/examples/1.2.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-index.md b/docs/examples/1.2.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get.md b/docs/examples/1.2.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-collections.md b/docs/examples/1.2.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-documents.md b/docs/examples/1.2.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list.md b/docs/examples/1.2.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/update-collection.md b/docs/examples/1.2.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/update-document.md b/docs/examples/1.2.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/update.md b/docs/examples/1.2.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/update.md +++ b/docs/examples/1.2.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-build.md b/docs/examples/1.2.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md index a556cace24d..f23873acb8f 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-execution.md b/docs/examples/1.2.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-variable.md b/docs/examples/1.2.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create.md b/docs/examples/1.2.x/server-php/examples/functions/create.md index 7fef274c7dd..29da02c1822 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete.md b/docs/examples/1.2.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-execution.md b/docs/examples/1.2.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-variable.md b/docs/examples/1.2.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get.md b/docs/examples/1.2.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-executions.md b/docs/examples/1.2.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-variables.md b/docs/examples/1.2.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list.md b/docs/examples/1.2.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/update-variable.md b/docs/examples/1.2.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/update.md b/docs/examples/1.2.x/server-php/examples/functions/update.md index 52f15eecb70..2b3d587887f 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/update.md +++ b/docs/examples/1.2.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md index 92013016295..08987244c5d 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/get.md b/docs/examples/1.2.x/server-php/examples/graphql/get.md index 950096be81e..7edc12727c2 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/mutation.md b/docs/examples/1.2.x/server-php/examples/graphql/mutation.md index 5622f7f2699..f75d53e86c4 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/mutation.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/query.md b/docs/examples/1.2.x/server-php/examples/graphql/query.md index 3ca1d940c49..369dcbd47e5 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/query.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-cache.md b/docs/examples/1.2.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-d-b.md b/docs/examples/1.2.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-time.md b/docs/examples/1.2.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get.md b/docs/examples/1.2.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get.md +++ b/docs/examples/1.2.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/get.md b/docs/examples/1.2.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/get.md +++ b/docs/examples/1.2.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-continents.md b/docs/examples/1.2.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-languages.md b/docs/examples/1.2.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/create-file.md b/docs/examples/1.2.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/delete-file.md b/docs/examples/1.2.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file.md b/docs/examples/1.2.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/list-files.md b/docs/examples/1.2.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/update-file.md b/docs/examples/1.2.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/create-membership.md b/docs/examples/1.2.x/server-php/examples/teams/create-membership.md index 60d3d3dc6fd..0c2c684b72d 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/create.md b/docs/examples/1.2.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/create.md +++ b/docs/examples/1.2.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/delete.md b/docs/examples/1.2.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/get-membership.md b/docs/examples/1.2.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/get.md b/docs/examples/1.2.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/get.md +++ b/docs/examples/1.2.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/list.md b/docs/examples/1.2.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/list.md +++ b/docs/examples/1.2.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md index 59239975519..c744578712f 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/update.md b/docs/examples/1.2.x/server-php/examples/teams/update.md index 267112cc130..91634f6f8f8 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/update.md +++ b/docs/examples/1.2.x/server-php/examples/teams/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create.md b/docs/examples/1.2.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create.md +++ b/docs/examples/1.2.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/delete-session.md b/docs/examples/1.2.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.2.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/delete.md b/docs/examples/1.2.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.2.x/server-php/examples/users/delete.md +++ b/docs/examples/1.2.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/get-prefs.md b/docs/examples/1.2.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.2.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/get.md b/docs/examples/1.2.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.2.x/server-php/examples/users/get.md +++ b/docs/examples/1.2.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list-logs.md b/docs/examples/1.2.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list-memberships.md b/docs/examples/1.2.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list-sessions.md b/docs/examples/1.2.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list.md b/docs/examples/1.2.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list.md +++ b/docs/examples/1.2.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-email.md b/docs/examples/1.2.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-name.md b/docs/examples/1.2.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-password.md b/docs/examples/1.2.x/server-php/examples/users/update-password.md index a4632c19849..bd0e3283368 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-phone.md b/docs/examples/1.2.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-prefs.md b/docs/examples/1.2.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-status.md b/docs/examples/1.2.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/create-recovery.md b/docs/examples/1.2.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.2.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/create-verification.md b/docs/examples/1.2.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.2.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/delete-session.md b/docs/examples/1.2.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.2.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/get-prefs.md b/docs/examples/1.2.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.2.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/get-session.md b/docs/examples/1.2.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.2.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/get.md b/docs/examples/1.2.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.2.x/server-python/examples/account/get.md +++ b/docs/examples/1.2.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/list-logs.md b/docs/examples/1.2.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.2.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/list-sessions.md b/docs/examples/1.2.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.2.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-email.md b/docs/examples/1.2.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-name.md b/docs/examples/1.2.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-password.md b/docs/examples/1.2.x/server-python/examples/account/update-password.md index 81bc8bbfc38..7adf938ac6a 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-phone.md b/docs/examples/1.2.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-prefs.md b/docs/examples/1.2.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-recovery.md b/docs/examples/1.2.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-session.md b/docs/examples/1.2.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-status.md b/docs/examples/1.2.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-verification.md b/docs/examples/1.2.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-image.md b/docs/examples/1.2.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-collection.md b/docs/examples/1.2.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-document.md b/docs/examples/1.2.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-index.md b/docs/examples/1.2.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create.md b/docs/examples/1.2.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-document.md b/docs/examples/1.2.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-index.md b/docs/examples/1.2.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete.md b/docs/examples/1.2.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-collection.md b/docs/examples/1.2.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-document.md b/docs/examples/1.2.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-index.md b/docs/examples/1.2.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get.md b/docs/examples/1.2.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-collections.md b/docs/examples/1.2.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-documents.md b/docs/examples/1.2.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list.md b/docs/examples/1.2.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/update-collection.md b/docs/examples/1.2.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/update-document.md b/docs/examples/1.2.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/update.md b/docs/examples/1.2.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/update.md +++ b/docs/examples/1.2.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-build.md b/docs/examples/1.2.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md index d29c43f2583..859cc3745df 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-execution.md b/docs/examples/1.2.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-variable.md b/docs/examples/1.2.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create.md b/docs/examples/1.2.x/server-python/examples/functions/create.md index 96fd409bd38..ca8198647c3 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete.md b/docs/examples/1.2.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-execution.md b/docs/examples/1.2.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-variable.md b/docs/examples/1.2.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get.md b/docs/examples/1.2.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-executions.md b/docs/examples/1.2.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-variables.md b/docs/examples/1.2.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list.md b/docs/examples/1.2.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/update-variable.md b/docs/examples/1.2.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/update.md b/docs/examples/1.2.x/server-python/examples/functions/update.md index ac7730e80a2..2e1d1325681 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/update.md +++ b/docs/examples/1.2.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md index e472dd8c9b3..0c4e035f174 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/get.md b/docs/examples/1.2.x/server-python/examples/graphql/get.md index a3000b1555c..190739e9c0e 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/get.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/mutation.md b/docs/examples/1.2.x/server-python/examples/graphql/mutation.md index 24226a5a013..9f43d0e5d1c 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/mutation.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/query.md b/docs/examples/1.2.x/server-python/examples/graphql/query.md index 8e1597c7596..a7315f8d317 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/query.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-cache.md b/docs/examples/1.2.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-d-b.md b/docs/examples/1.2.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-time.md b/docs/examples/1.2.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get.md b/docs/examples/1.2.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get.md +++ b/docs/examples/1.2.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/get.md b/docs/examples/1.2.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/get.md +++ b/docs/examples/1.2.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-continents.md b/docs/examples/1.2.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-languages.md b/docs/examples/1.2.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/create-file.md b/docs/examples/1.2.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/delete-file.md b/docs/examples/1.2.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file.md b/docs/examples/1.2.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/list-files.md b/docs/examples/1.2.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/update-file.md b/docs/examples/1.2.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/create-membership.md b/docs/examples/1.2.x/server-python/examples/teams/create-membership.md index f020627727c..ce04eeefa07 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/create.md b/docs/examples/1.2.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/create.md +++ b/docs/examples/1.2.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/delete.md b/docs/examples/1.2.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/get-membership.md b/docs/examples/1.2.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/get.md b/docs/examples/1.2.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/get.md +++ b/docs/examples/1.2.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/list.md b/docs/examples/1.2.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/list.md +++ b/docs/examples/1.2.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md index dcfd7a4e554..e161a33d5c6 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update.md b/docs/examples/1.2.x/server-python/examples/teams/update.md index cabd1496c4c..6cfbcb069ff 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/update.md +++ b/docs/examples/1.2.x/server-python/examples/teams/update.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create.md b/docs/examples/1.2.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create.md +++ b/docs/examples/1.2.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/delete-session.md b/docs/examples/1.2.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.2.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/delete.md b/docs/examples/1.2.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.2.x/server-python/examples/users/delete.md +++ b/docs/examples/1.2.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/get-prefs.md b/docs/examples/1.2.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.2.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/get.md b/docs/examples/1.2.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.2.x/server-python/examples/users/get.md +++ b/docs/examples/1.2.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list-logs.md b/docs/examples/1.2.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list-memberships.md b/docs/examples/1.2.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list-sessions.md b/docs/examples/1.2.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list.md b/docs/examples/1.2.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list.md +++ b/docs/examples/1.2.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-email.md b/docs/examples/1.2.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-name.md b/docs/examples/1.2.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-password.md b/docs/examples/1.2.x/server-python/examples/users/update-password.md index bf24c1ca9a8..2f0091d0f6d 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-phone.md b/docs/examples/1.2.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-prefs.md b/docs/examples/1.2.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-status.md b/docs/examples/1.2.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md index 7ec0a1c0c94..9ea5aa170c0 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md index 5c6d13c7240..dfa4038915d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md index dcd9722e471..37b838f4d25 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md index 3357b2ba20e..788b1d0dc15 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md index b218a536dbe..fecb93ca767 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md index 24092b922b9..9870af6340c 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get-session.md b/docs/examples/1.2.x/server-ruby/examples/account/get-session.md index 2a8209031d0..09946ae0013 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get.md b/docs/examples/1.2.x/server-ruby/examples/account/get.md index 61237b22157..616316ca8ca 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md index 8a08eb96bef..22e23f38ee6 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md index a6bcb6816dd..9e267c659dd 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-email.md b/docs/examples/1.2.x/server-ruby/examples/account/update-email.md index cd2e10cbbe3..1a871d27908 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-name.md b/docs/examples/1.2.x/server-ruby/examples/account/update-name.md index 2685e88cf60..f7a2bec7878 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-password.md b/docs/examples/1.2.x/server-ruby/examples/account/update-password.md index 3ee4ed98f7c..dbd46a02983 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md index 103b32c00da..6a0345a6f61 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md index 377c578deaf..aa6dc9804ce 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md index 338a9704f1e..1e0f9c836cc 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md index fa901de8576..357bfa9d1d8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-session.md b/docs/examples/1.2.x/server-ruby/examples/account/update-session.md index 31dde2e94fa..2de00124c65 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-status.md b/docs/examples/1.2.x/server-ruby/examples/account/update-status.md index ea7a3857b55..f0e73d13d55 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md index b8f674ec773..32d4c79de07 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md index 2a66b46b926..11fa186f0e1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md index d5bcaa824f8..47c8dc8e076 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md index c995fb2036a..48263bc19df 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md index 7633756425e..17e2cfb0539 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md index 4ea52a60e4b..168cc78d47f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md index 62a8ff855d9..c6218320696 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md index 03a1f14aa97..93b91d13ea3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md index d617d8e3225..17f0467cb1b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md index d27e43ad664..d0c87c64337 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md index 127d2ac2d77..2aebb09856f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md index 8177fc4b3b8..e6d12497214 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md index c7e1aac86be..38047e524d4 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md index 36f8ee06d41..1fe0f0c689f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md index 771d281ccf5..6da9f12caed 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md index 5488e36f74a..68fccf90ca3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md index 40649c25f8f..d17eef4f46d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md index ef9e0feba52..c0daf8a4ae9 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md index 9901c84b020..4b4c95b7c10 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md index 475421fe537..03486d76952 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create.md b/docs/examples/1.2.x/server-ruby/examples/databases/create.md index 1ce19d31250..8054c37fef1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md index ae2e32d8bd0..55013151523 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md index f118667b6ed..779865a67e1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md index 0b7baa89ede..b83d2a38a88 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md index 829e6061354..fb30a95c642 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete.md index 7e0c4211f16..beeca37e8a7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md index 525c8f14cd5..653a4280542 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md index 897e40d1094..b3251fb7a69 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md index d5853aba563..9a4e9b7c01a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md index 3217507541a..1f7d3b61551 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get.md b/docs/examples/1.2.x/server-ruby/examples/databases/get.md index ced51d6ad12..93b171122f8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md index 1b57bda217c..5a07c9a6352 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md index 3d646c47e72..c707b3faf77 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md index 6f57bb150cf..da14516505f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md index d64b3bfc684..c6d42be1eaa 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list.md b/docs/examples/1.2.x/server-ruby/examples/databases/list.md index 84baa108a38..628f44c7fca 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md index eee40585313..ab421153cce 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md index dbe1b0d71aa..0b5b2a07caf 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update.md b/docs/examples/1.2.x/server-ruby/examples/databases/update.md index 0900ab34286..9e67595cbc7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md index 9c7397bf269..6c9ad31fd0c 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md index 734625f449e..4cb56c9ad86 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md index 97f4d74ba15..3dc5e844e71 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md index 003fb4743a2..1340c1a3794 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create.md b/docs/examples/1.2.x/server-ruby/examples/functions/create.md index 414f11297d1..dbf34259221 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md index 64feea1370e..00c85f50a1b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md index 598e6941416..191796186d8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete.md index 48ea5c7a737..c96a2621e65 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md index c19163e7f5c..fa1bbc08be3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md index 3deee915740..52e46af41ac 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md index 835fc30d81b..b023e3653be 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get.md b/docs/examples/1.2.x/server-ruby/examples/functions/get.md index cfcf8411e5a..76897965e5b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md index 539301c4bba..5ec1f5ba313 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md index c0c1f46cf16..797817ad4f5 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md index b679da2d8b9..b5fd2b0aafd 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md index 4e5bfab8911..196fcfe3cd7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list.md b/docs/examples/1.2.x/server-ruby/examples/functions/list.md index 2cc71a5c046..bf27f73cf94 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md index c9d9f49d63b..a9f039cfc64 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md index 28d7651a46f..3418454c276 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update.md b/docs/examples/1.2.x/server-ruby/examples/functions/update.md index 4bb1f2195de..02e11b5075b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md index 89971943fc2..b3336923b94 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/get.md b/docs/examples/1.2.x/server-ruby/examples/graphql/get.md index abd00b96564..1e2f1bb2a44 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md index 234dfe62021..a22fc7846ad 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/query.md b/docs/examples/1.2.x/server-ruby/examples/graphql/query.md index 1304213caf1..a8c967ed6b8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md index b1f16bb0b93..32646a5a0b3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md index 4fb77ec68d4..a4b43daf926 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md index 3317acd6fa7..6b42bbaf6a1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md index a4c5c7016bf..915731e056a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md index 8edb310a5e2..ea585cacb79 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md index 74823fcd6ce..253419c8bdd 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md index 53b7f33cfe0..1902a930c83 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md index 3a85bd3e12b..293c866762f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-time.md b/docs/examples/1.2.x/server-ruby/examples/health/get-time.md index 9956a33d1f6..e19bf05e792 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get.md b/docs/examples/1.2.x/server-ruby/examples/health/get.md index d23a9ad6755..07fc372f3b3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/get.md b/docs/examples/1.2.x/server-ruby/examples/locale/get.md index e5922f4e7f5..b2abf36f19f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md index 0416baf77a4..1a086d9a2fe 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md index 7faa85143cb..962387167f1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md index 1194f27e0c7..9e842f2121d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md index b78fba47fd5..eb093479b7a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md index 14b2722ae82..1e20bdbbb28 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md index 4d88bc47232..7b919494b32 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md index d6299db79f9..459508e3116 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md index 851ed57a480..fd29996f730 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md index 3fd51bef5e4..be83f475f27 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md index 4d0e3fcbffc..6ea4059bbab 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md index ba88debc618..ca0905b463a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md index a22f4cb68fc..77007f6b192 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md index c5b7c06db1c..c0e2b80931e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md index c05770b9999..7689278e56e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md index a33835c9e25..f5faa37e548 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md index 7009d0a105b..46eac9a2602 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md index 196831a1b3f..936b6eaeeb3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md index f990ab3566a..d4c791f4db6 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md index 8108d3cc28a..6d26d9ee482 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md index 515b6839f1d..e23211d82b7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/create.md b/docs/examples/1.2.x/server-ruby/examples/teams/create.md index d2dff77f41e..66127ecd340 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md index d41175d4a83..551ee62843d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/delete.md b/docs/examples/1.2.x/server-ruby/examples/teams/delete.md index c1b9b8d8bb1..94a9d4bba74 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md index b06101dd84c..d95348801b0 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/get.md b/docs/examples/1.2.x/server-ruby/examples/teams/get.md index 7cee601b56d..a6c2884d2c8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md index 885a857d720..4b523aa73a6 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/list.md b/docs/examples/1.2.x/server-ruby/examples/teams/list.md index e8b581fd910..fd8385bc71e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md index a39ef030f9c..0a240b5bac9 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md index aaf52cbb9ca..a1f8252899a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update.md b/docs/examples/1.2.x/server-ruby/examples/teams/update.md index 95e24eacb4e..29f42e2e43e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md index 9c4fc9ea977..35445044c20 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md index 700fe49d121..50e11db1903 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md index a7f9c4f7a20..3f7a61994bc 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md index d7d8ba19333..a793d887c84 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md index 2d37fc3bfa1..4b7c26629bb 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md index cec9dbb277a..50f52b9f12f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md index 94a7af53d2a..e8bf8cf0597 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create.md b/docs/examples/1.2.x/server-ruby/examples/users/create.md index b04fd5025f4..7d0cf8b48a7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md index 3b7918ca1f2..118747affcb 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md index 6772e3fe10d..7d24d4442d2 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete.md b/docs/examples/1.2.x/server-ruby/examples/users/delete.md index 62585db404c..b50e5a921d2 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md index a4c4764bef6..a401ae11b0a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/get.md b/docs/examples/1.2.x/server-ruby/examples/users/get.md index a731ada955f..44f68d01382 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md index fa8586eeffa..45a974e497e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md index 693e6b9f2c2..c84277357ba 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md index 765789a0da7..14c281f4e1b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list.md b/docs/examples/1.2.x/server-ruby/examples/users/list.md index 8d5daf21f81..eb067643e24 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md index 72ec0195dc1..530c544bead 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-email.md b/docs/examples/1.2.x/server-ruby/examples/users/update-email.md index a3a7dbde345..21ece40ff07 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-name.md b/docs/examples/1.2.x/server-ruby/examples/users/update-name.md index fbf00bb51be..7b1d0d65d32 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-password.md b/docs/examples/1.2.x/server-ruby/examples/users/update-password.md index 72556b35306..2577bc44eb8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md index 995a32a4bfe..be9e323ec11 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md index f1e74b4a9e5..e78a3d5ff34 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md index 9845cdf0d51..91eaf25a253 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-status.md b/docs/examples/1.2.x/server-ruby/examples/users/update-status.md index 8a82948c76a..9f7372ede49 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md index cdeba917008..26ced5985bf 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md index fdb0e53765f..06cc974d663 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-verification.md b/docs/examples/1.2.x/server-swift/examples/account/create-verification.md index 63a6a7ac94f..1abcc4abb21 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/delete-session.md b/docs/examples/1.2.x/server-swift/examples/account/delete-session.md index de9f736f9ce..e5c88080e93 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md index 0f58c600d25..971f34d524e 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md index ce72d7c340d..be9acecd9af 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/get-session.md b/docs/examples/1.2.x/server-swift/examples/account/get-session.md index e1b48b5aa50..3c5092f3be6 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/get.md b/docs/examples/1.2.x/server-swift/examples/account/get.md index 146cdfb46b8..1cccf56815e 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/get.md +++ b/docs/examples/1.2.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/list-logs.md b/docs/examples/1.2.x/server-swift/examples/account/list-logs.md index ee2e8bb7e6d..762062d1062 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md index 2baf5836a2a..c3b2b0aed0a 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-email.md b/docs/examples/1.2.x/server-swift/examples/account/update-email.md index 368b86db16a..c298e5faf94 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-name.md b/docs/examples/1.2.x/server-swift/examples/account/update-name.md index 400ee81ca65..bc6405afc02 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-password.md b/docs/examples/1.2.x/server-swift/examples/account/update-password.md index 2b0091c0182..8034cd2ee15 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md index 29052c573a9..22cc1e86586 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-phone.md b/docs/examples/1.2.x/server-swift/examples/account/update-phone.md index eb1a757e4ff..e8a27659e6f 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md index e02316a8dc2..983a31fbb38 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md index 92825cae559..ba8d1fa1a0c 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-session.md b/docs/examples/1.2.x/server-swift/examples/account/update-session.md index 84229182aaa..d0002b6e497 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-status.md b/docs/examples/1.2.x/server-swift/examples/account/update-status.md index 71129ae999e..9156a79407e 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-verification.md b/docs/examples/1.2.x/server-swift/examples/account/update-verification.md index b8e925783eb..c50bf1b88d2 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md index df3a99c67a6..b566d6ca059 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md index ce4382d77b0..5b47aab1ab1 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md index 36c77218b74..77803cd5a07 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md index 849ec48cea1..16e566d9e1e 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md index d457976f549..2fd24c5c7d5 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md index 74d8d956db3..9062ca5ca73 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md index 537bfb5b43f..c8d7fba5be5 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md index 11eae088e7a..1be49bb0d44 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md index ff9172bb29a..b4bb744eee0 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md index 26020fb88fa..119c5ec830e 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-document.md b/docs/examples/1.2.x/server-swift/examples/databases/create-document.md index b76eab7c708..5985560b67f 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md index cddebec6b24..690a49b68a1 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md index dc56bff3950..b08ccbeb831 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md index ec01499e988..851afc2ac1a 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-index.md b/docs/examples/1.2.x/server-swift/examples/databases/create-index.md index 03cc91b0b44..2271a9898ef 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md index eeea1cb01bf..72cd31c5a83 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md index 948aa2ad376..c03c555f52f 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md index 0d3e65442b8..daa04767a3f 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md index 747a6c73673..94eefa1b610 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create.md b/docs/examples/1.2.x/server-swift/examples/databases/create.md index 5e4abf88a03..6578c5783bf 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md index 0fc94705708..a9c778b34c3 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md index b00916534e3..f410170aa84 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md index 185c33d4102..24dd564236c 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md index 0ad4ac3442a..fa5acc635ab 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete.md b/docs/examples/1.2.x/server-swift/examples/databases/delete.md index 48b687e237f..01be19d136e 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md index e0ea280f568..4d4697052b7 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md index 39c36b3d617..a55294591a9 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-document.md b/docs/examples/1.2.x/server-swift/examples/databases/get-document.md index 2a12e1140ac..2d2768ca2c3 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-index.md b/docs/examples/1.2.x/server-swift/examples/databases/get-index.md index e69263346ae..69b694d0724 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get.md b/docs/examples/1.2.x/server-swift/examples/databases/get.md index 805fa3ee23b..9fa4abca507 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md index 475da0a7124..71fdcbc9971 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md index 8e451ca8a00..bf150e8596e 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md index 24bb8597614..0ca2d5ff485 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md index 145c02ddcc4..be16b25a318 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list.md b/docs/examples/1.2.x/server-swift/examples/databases/list.md index fe7a54df444..45796c04c02 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md index 807c5659f9c..d2969b4a4de 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update-document.md b/docs/examples/1.2.x/server-swift/examples/databases/update-document.md index 56eed000828..872711afcf3 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update.md b/docs/examples/1.2.x/server-swift/examples/databases/update.md index 8e14f080094..b9185e6aaeb 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-build.md b/docs/examples/1.2.x/server-swift/examples/functions/create-build.md index 8419bf69500..2c469e5ea69 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md index d24359e73bd..6b4527852a7 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md index 0354bf54883..1454b4e11a5 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md index f2613111929..914f189284e 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create.md b/docs/examples/1.2.x/server-swift/examples/functions/create.md index ea588276abe..feedd4725d8 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md index 228f9f62e23..378e1f35aa8 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md index 410cffe13c2..55e3d4a91f2 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete.md b/docs/examples/1.2.x/server-swift/examples/functions/delete.md index bee774e61b6..67b2f0332cf 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md index 0a463c41213..aba9a5084ab 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md index 7af8bd5906f..c8ec6c1aca5 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md index f2fa61b9034..f8acd3dda4f 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get.md b/docs/examples/1.2.x/server-swift/examples/functions/get.md index c5ba24ae266..aead1667f2b 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md index 652620bf401..c2c32eaa346 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md index fa32172cbdb..26536b7e034 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..c7de59bed3d 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md index d13c752254d..abf0f514be8 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list.md b/docs/examples/1.2.x/server-swift/examples/functions/list.md index 81363f17ff7..d04ab677f3f 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md index b0f4fc23c43..1e81e41286e 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md index 0eb5b2e9760..2ce5b597ea5 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update.md b/docs/examples/1.2.x/server-swift/examples/functions/update.md index 76782521a5e..c2e925bf285 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md index 86ffab5a9f9..b07095e7dd8 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/get.md b/docs/examples/1.2.x/server-swift/examples/graphql/get.md index 6427c6fe08e..30f633f5a2e 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md index db869d48c93..f2a0460e28b 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/query.md b/docs/examples/1.2.x/server-swift/examples/graphql/query.md index 5e97508be50..58fe1041c45 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..2c45f7a619a 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-cache.md b/docs/examples/1.2.x/server-swift/examples/health/get-cache.md index a682d63a6f6..8d54eede9c7 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md index 81645497b5c..e115eee2add 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md index 71f4dcfc436..f9490918e43 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md index d6bdf767564..2f412b9da15 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md index 7580e46da17..6fc521baef1 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md index 431a5a031c9..42f1de37fea 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md index ee807980bba..276b1635ae7 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-time.md b/docs/examples/1.2.x/server-swift/examples/health/get-time.md index f6d66d950a9..7b4bbb3dee8 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get.md b/docs/examples/1.2.x/server-swift/examples/health/get.md index 828f3453e0c..179b9694a2f 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/get.md b/docs/examples/1.2.x/server-swift/examples/locale/get.md index 5c5aee4cb4f..99df3ebbd11 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md index 8cd7964b639..d3b8a66262e 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md index a787e7b7222..a02f72cd7af 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md index cf16d2d0b29..2d4d7ef0068 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md index 32d5901e37e..ba769689a3e 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md index 6b1daa7422c..2211e1855fa 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md index 72c5649aaea..c8656709532 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md index d3f91ab7af0..80ffc45decc 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/create-file.md b/docs/examples/1.2.x/server-swift/examples/storage/create-file.md index 45dd245d318..664a54c53ff 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md index 4d41f1c373f..6c407365766 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md index b2168f8ca1a..5d547d82a55 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md index 8a27759e0e9..352aab3412f 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md index 5205e17d436..1784f72852d 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md index f6fbec66546..92fce42694d 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md index 5926bdd959b..10d9c181d18 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file.md index e516242775b..697dc83a16a 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md index a3e92b282e4..c991833cdb1 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/list-files.md b/docs/examples/1.2.x/server-swift/examples/storage/list-files.md index 153a10d27f7..1f0018a150c 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md index d2fd96c33de..f495e5efaae 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/update-file.md b/docs/examples/1.2.x/server-swift/examples/storage/update-file.md index f37202aa300..3a29db869db 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md index c130ee6eaf0..26d73ab5c70 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/create.md b/docs/examples/1.2.x/server-swift/examples/teams/create.md index e4f8c09e576..2e2b7faba06 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md index 25326deba06..2f08c2cf0b3 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/delete.md b/docs/examples/1.2.x/server-swift/examples/teams/delete.md index c0e3d5e898d..104b19cecc3 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md index c399832ec26..c7adc3d0b62 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/get.md b/docs/examples/1.2.x/server-swift/examples/teams/get.md index 07980d4f480..a100c3d20b5 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md index 57d6ef7d379..31fd6131145 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/list.md b/docs/examples/1.2.x/server-swift/examples/teams/list.md index cdb174c357e..b5aa000dc03 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md index b29bc6e7cb0..d0ee44be8eb 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md index e209ece5eae..0ef80c00cc2 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update.md b/docs/examples/1.2.x/server-swift/examples/teams/update.md index bf731ed4446..3873ecdee65 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/update.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md index 5914c87d968..bdef66e02c6 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md index 4321365b5c3..2e2f17737b2 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md index 2302780c6b7..30033f8b9d3 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md index b856891a7d0..65cd8658f44 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md index c96661377ac..c6c8f41b073 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md index 3a9f70386ef..bfc1ba25e99 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md index dbe923de938..5716295eae6 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create.md b/docs/examples/1.2.x/server-swift/examples/users/create.md index db49c1f77f6..1727ee5acd3 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete-session.md b/docs/examples/1.2.x/server-swift/examples/users/delete-session.md index 161e11d2748..694dcdb7924 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md index 71bc2bf8931..a3d02a82030 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete.md b/docs/examples/1.2.x/server-swift/examples/users/delete.md index c8762da65ac..883e305527f 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md index 956724d0b3f..149ec000999 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/get.md b/docs/examples/1.2.x/server-swift/examples/users/get.md index a2b3a126f92..83126bd872e 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/get.md +++ b/docs/examples/1.2.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-logs.md b/docs/examples/1.2.x/server-swift/examples/users/list-logs.md index 20a55b7f50e..71c3f667857 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md index c07287eb46b..089b27da64a 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md index 9f403d8da02..ed3c7677bf9 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list.md b/docs/examples/1.2.x/server-swift/examples/users/list.md index 6b41b200156..59a0e1d44d4 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md index b0649e63f6e..76e0a069b32 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-email.md b/docs/examples/1.2.x/server-swift/examples/users/update-email.md index 892ff0033fa..7d779fcd1f2 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-name.md b/docs/examples/1.2.x/server-swift/examples/users/update-name.md index a5ce6f9cadc..4f0e1118f63 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-password.md b/docs/examples/1.2.x/server-swift/examples/users/update-password.md index 9fb2d11be0d..b0ab7d63756 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md index f837ffc1670..ea10791ac0f 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-phone.md b/docs/examples/1.2.x/server-swift/examples/users/update-phone.md index f2b8f350dec..465d2613c98 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md index fc4131ea2fa..387d04f82ed 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-status.md b/docs/examples/1.2.x/server-swift/examples/users/update-status.md index f382775b179..c89328d3412 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md index 59c76309e74..a52a17d1d03 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-email-session.md b/docs/examples/1.3.x/client-android/java/account/create-email-session.md index e3e6fdd0070..86fa95f43c0 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-email-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md index c3123860181..5b68aeb7ddc 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md index 0ed43dc2860..a0b4e86b9f4 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md index cb9386a8483..57870eedbbf 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-phone-session.md b/docs/examples/1.3.x/client-android/java/account/create-phone-session.md index df5bc86891d..04918325c3f 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md index 1545d0f82d2..7b7c354fff2 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-recovery.md b/docs/examples/1.3.x/client-android/java/account/create-recovery.md index 5e8584fc359..955fe451ba7 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.3.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-verification.md b/docs/examples/1.3.x/client-android/java/account/create-verification.md index fcea98f66c0..3fc9879f3ae 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create.md b/docs/examples/1.3.x/client-android/java/account/create.md index e08731fd7ca..629374c8a47 100644 --- a/docs/examples/1.3.x/client-android/java/account/create.md +++ b/docs/examples/1.3.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/delete-session.md b/docs/examples/1.3.x/client-android/java/account/delete-session.md index 28009d014db..345094fcc2e 100644 --- a/docs/examples/1.3.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.3.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/delete-sessions.md b/docs/examples/1.3.x/client-android/java/account/delete-sessions.md index 6bdc840cff0..7be86bea510 100644 --- a/docs/examples/1.3.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/get-prefs.md b/docs/examples/1.3.x/client-android/java/account/get-prefs.md index 9911ad30a43..2b4f47b5046 100644 --- a/docs/examples/1.3.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.3.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/get-session.md b/docs/examples/1.3.x/client-android/java/account/get-session.md index fecb543782a..554bd545983 100644 --- a/docs/examples/1.3.x/client-android/java/account/get-session.md +++ b/docs/examples/1.3.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/get.md b/docs/examples/1.3.x/client-android/java/account/get.md index 2e5f40ad241..d6cf1077f59 100644 --- a/docs/examples/1.3.x/client-android/java/account/get.md +++ b/docs/examples/1.3.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/list-logs.md b/docs/examples/1.3.x/client-android/java/account/list-logs.md index d2ce790bfe8..8fed6547c36 100644 --- a/docs/examples/1.3.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.3.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/list-sessions.md b/docs/examples/1.3.x/client-android/java/account/list-sessions.md index 7fd587e1ba3..f77b0b387aa 100644 --- a/docs/examples/1.3.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.3.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-email.md b/docs/examples/1.3.x/client-android/java/account/update-email.md index 8034ada87dd..86ea5207c95 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-email.md +++ b/docs/examples/1.3.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md index 0f8f2b3c5ce..58c491f389e 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-name.md b/docs/examples/1.3.x/client-android/java/account/update-name.md index 5940f93ef24..f10172ee8a5 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-name.md +++ b/docs/examples/1.3.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-password.md b/docs/examples/1.3.x/client-android/java/account/update-password.md index d9426322a4c..749e904c6e1 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-password.md +++ b/docs/examples/1.3.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-phone-session.md b/docs/examples/1.3.x/client-android/java/account/update-phone-session.md index 589e4ff5097..ca34b65c1f9 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md index 81785f97c2c..eb0fcbd9af1 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-phone.md b/docs/examples/1.3.x/client-android/java/account/update-phone.md index a8572f911c8..b1680bb6046 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.3.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-prefs.md b/docs/examples/1.3.x/client-android/java/account/update-prefs.md index ffd5ef03b52..6552f1a68cc 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.3.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-recovery.md b/docs/examples/1.3.x/client-android/java/account/update-recovery.md index 7b0f3921763..d6c17cff3fa 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.3.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-session.md b/docs/examples/1.3.x/client-android/java/account/update-session.md index 27b8f00668f..4c40264def7 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-session.md +++ b/docs/examples/1.3.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-status.md b/docs/examples/1.3.x/client-android/java/account/update-status.md index 1e18ded5405..42c0d2dd9df 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-status.md +++ b/docs/examples/1.3.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-verification.md b/docs/examples/1.3.x/client-android/java/account/update-verification.md index d852dbf8382..ba1a2cd5e23 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-browser.md b/docs/examples/1.3.x/client-android/java/avatars/get-browser.md index f0721102367..2382d352d63 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md index 0a733127917..9d3d9c31a3e 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md index e0c1cb6b8a2..af7be8b2263 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-flag.md b/docs/examples/1.3.x/client-android/java/avatars/get-flag.md index a5f47906404..698813bb1c8 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-image.md b/docs/examples/1.3.x/client-android/java/avatars/get-image.md index cdc8ac722b6..903d93f4d1d 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-initials.md b/docs/examples/1.3.x/client-android/java/avatars/get-initials.md index c02490c7344..8c5d1452fb3 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md index 2532f204d83..80d03776ed5 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/create-document.md b/docs/examples/1.3.x/client-android/java/databases/create-document.md index 715e4cdbbe3..0be2e146d84 100644 --- a/docs/examples/1.3.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/delete-document.md b/docs/examples/1.3.x/client-android/java/databases/delete-document.md index 1387f486870..f941418c084 100644 --- a/docs/examples/1.3.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/get-document.md b/docs/examples/1.3.x/client-android/java/databases/get-document.md index b1a7161971a..987a7957c11 100644 --- a/docs/examples/1.3.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/list-documents.md b/docs/examples/1.3.x/client-android/java/databases/list-documents.md index 62dc2c7e291..f4957e7f608 100644 --- a/docs/examples/1.3.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.3.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/update-document.md b/docs/examples/1.3.x/client-android/java/databases/update-document.md index d1ed59de3bd..0f31cb086d9 100644 --- a/docs/examples/1.3.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/functions/create-execution.md b/docs/examples/1.3.x/client-android/java/functions/create-execution.md index 3cce1c37be8..79cf8c11997 100644 --- a/docs/examples/1.3.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.3.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.3.x/client-android/java/functions/get-execution.md b/docs/examples/1.3.x/client-android/java/functions/get-execution.md index 459d74394f2..496dfe61257 100644 --- a/docs/examples/1.3.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.3.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.3.x/client-android/java/functions/list-executions.md b/docs/examples/1.3.x/client-android/java/functions/list-executions.md index c1f982b707b..6b8c37245e1 100644 --- a/docs/examples/1.3.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.3.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.3.x/client-android/java/graphql/mutation.md b/docs/examples/1.3.x/client-android/java/graphql/mutation.md index 262e513bed7..3028bf105ae 100644 --- a/docs/examples/1.3.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.3.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.3.x/client-android/java/graphql/query.md b/docs/examples/1.3.x/client-android/java/graphql/query.md index 4291b4735f9..8215c674be5 100644 --- a/docs/examples/1.3.x/client-android/java/graphql/query.md +++ b/docs/examples/1.3.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/get.md b/docs/examples/1.3.x/client-android/java/locale/get.md index 4d14be6d733..443f5e29b57 100644 --- a/docs/examples/1.3.x/client-android/java/locale/get.md +++ b/docs/examples/1.3.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-continents.md b/docs/examples/1.3.x/client-android/java/locale/list-continents.md index 6abe97a0a02..47d11d7348b 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md index 3c5ca3ae8c5..0f010e71f3e 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md index 81ef94d702d..0ff5e0a14eb 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-countries.md b/docs/examples/1.3.x/client-android/java/locale/list-countries.md index dc0d5f52c4e..754507d56b1 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-currencies.md b/docs/examples/1.3.x/client-android/java/locale/list-currencies.md index 7a327b38ae7..82665375509 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-languages.md b/docs/examples/1.3.x/client-android/java/locale/list-languages.md index 0688614b6df..ad8d092a16b 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/create-file.md b/docs/examples/1.3.x/client-android/java/storage/create-file.md index 732b302f635..88fdd64a10b 100644 --- a/docs/examples/1.3.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/delete-file.md b/docs/examples/1.3.x/client-android/java/storage/delete-file.md index 69a0f0f844b..90e98d3f0c8 100644 --- a/docs/examples/1.3.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file-download.md b/docs/examples/1.3.x/client-android/java/storage/get-file-download.md index 2ab30dce5af..5c92a9b27d1 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md index 483f2fca168..519b03f73b4 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file-view.md b/docs/examples/1.3.x/client-android/java/storage/get-file-view.md index 5614b694a50..376428309b4 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file.md b/docs/examples/1.3.x/client-android/java/storage/get-file.md index 4ae0de0d9ae..61d6e9f03ab 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/list-files.md b/docs/examples/1.3.x/client-android/java/storage/list-files.md index dedfb6c1002..345e43fd14d 100644 --- a/docs/examples/1.3.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.3.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/update-file.md b/docs/examples/1.3.x/client-android/java/storage/update-file.md index 9b4dd922667..92024cfdd61 100644 --- a/docs/examples/1.3.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/create-membership.md b/docs/examples/1.3.x/client-android/java/teams/create-membership.md index 6c8b3833580..5a414db3580 100644 --- a/docs/examples/1.3.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.3.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/create.md b/docs/examples/1.3.x/client-android/java/teams/create.md index 263fa57be7b..5a9dd741db2 100644 --- a/docs/examples/1.3.x/client-android/java/teams/create.md +++ b/docs/examples/1.3.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/delete-membership.md b/docs/examples/1.3.x/client-android/java/teams/delete-membership.md index 40f28f0c21e..0babc74b4d3 100644 --- a/docs/examples/1.3.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/delete.md b/docs/examples/1.3.x/client-android/java/teams/delete.md index 5b4c378b5e2..aa7425b365c 100644 --- a/docs/examples/1.3.x/client-android/java/teams/delete.md +++ b/docs/examples/1.3.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/get-membership.md b/docs/examples/1.3.x/client-android/java/teams/get-membership.md index f2f1d99ae0b..f7a6a10d971 100644 --- a/docs/examples/1.3.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.3.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/get-prefs.md b/docs/examples/1.3.x/client-android/java/teams/get-prefs.md index 6963cb40cae..ea0c8594a6f 100644 --- a/docs/examples/1.3.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-android/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/get.md b/docs/examples/1.3.x/client-android/java/teams/get.md index 549af20d342..62af7c22012 100644 --- a/docs/examples/1.3.x/client-android/java/teams/get.md +++ b/docs/examples/1.3.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/list-memberships.md b/docs/examples/1.3.x/client-android/java/teams/list-memberships.md index 3da4e33d518..65d1bf6e96f 100644 --- a/docs/examples/1.3.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/list.md b/docs/examples/1.3.x/client-android/java/teams/list.md index b20ad4a2110..a8d4f12d774 100644 --- a/docs/examples/1.3.x/client-android/java/teams/list.md +++ b/docs/examples/1.3.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md index da5f6d8d595..2fc57ebfd92 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md index 499251f21f8..1a0748149f1 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-name.md b/docs/examples/1.3.x/client-android/java/teams/update-name.md index 170ee590151..525cfdf201f 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-prefs.md b/docs/examples/1.3.x/client-android/java/teams/update-prefs.md index a19ad8207e5..f454393c429 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md index cdcf401ed9e..f0d574304d0 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md index ab8d581fd10..e7b438f8cc0 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md index 35e7a6ffd4a..3e1f2e011ac 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md index 51368b53923..88146d07322 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md index 395bfada007..f3bf8145e4d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md index eed6f7a2e21..b87e421f8b4 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md index 12fb9f74e86..8dded67ac3b 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md index 7d73a671dde..70d55639c34 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md index b3dc43ac48d..a7c8f11cac1 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create.md b/docs/examples/1.3.x/client-android/kotlin/account/create.md index c72ae90deff..a78fc611e58 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md index a98a28661b2..5e22b533695 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md index c9afbf13457..e90c2a9348e 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md index bd3f81a23fd..01c128266b5 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/get-session.md b/docs/examples/1.3.x/client-android/kotlin/account/get-session.md index d6d6c72eac7..f150d0fb2f7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/get.md b/docs/examples/1.3.x/client-android/kotlin/account/get.md index 4c8f0be9de6..83f7f8789d7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md index eb337caec0c..d9f569f3207 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md index cd9f63bc3c4..2969326917e 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-email.md b/docs/examples/1.3.x/client-android/kotlin/account/update-email.md index 85a02425911..dcc9b822b6f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c7286ba6c84..c0e7f408117 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-name.md b/docs/examples/1.3.x/client-android/kotlin/account/update-name.md index 574f4938d87..18b631b1d56 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-password.md b/docs/examples/1.3.x/client-android/kotlin/account/update-password.md index c5338b86945..45ff1b25e68 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md index d3b02e04ce2..39be2c4f5f2 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md index 0314f742230..4dc6c63915b 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md index 76eb8aac5e2..39d420b197a 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md index f16e40ba41f..beb8e6e2dd5 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md index 9682899bcb2..e2f56651164 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-session.md b/docs/examples/1.3.x/client-android/kotlin/account/update-session.md index e9e83d0cb03..74bf0a235eb 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-status.md b/docs/examples/1.3.x/client-android/kotlin/account/update-status.md index f7789ea237f..4637918887d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md index af800c1fc57..de3bf1bfe37 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md index b1b2d081832..9d65c62b1cb 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md index 411e05ae51d..7265ea284c7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md index 1a4b217fa4a..144c95a5c54 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md index 5c882d60186..82cd2166779 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md index 20d8dff13c7..05bdc47199f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md index 70ef9b29091..6b1d95a22a7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md index 92b17e11639..8d6aae60f74 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md index d7f1991d391..99e042cc690 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md index c5bf2a27070..1a150b8c9b1 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md index abdee363169..afad4a20be7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md index f97d8787c91..5e3a8d62316 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md index 3820b8965ce..c6186d77890 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md index 77d4587755e..4bf08c84367 100644 --- a/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md index b57668679fd..a6488876ed2 100644 --- a/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md index 14b613f7036..7a0ebbf04a3 100644 --- a/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md index dc37a3e6408..ff5165a1c65 100644 --- a/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/graphql/query.md b/docs/examples/1.3.x/client-android/kotlin/graphql/query.md index d8210709228..6b4c11190ef 100644 --- a/docs/examples/1.3.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.3.x/client-android/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/get.md b/docs/examples/1.3.x/client-android/kotlin/locale/get.md index a2044c72570..f07d3cf7eb5 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md index 610747ee131..5fc344d1701 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md index fa5483f0b0d..691a9583fde 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md index 6aba463a388..6ef8dcd7ac3 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md index c58456b0f51..4dcc23e85e2 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md index 2cf064402a0..f9fb666379d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md index afc00b1e77a..cdbcaa6f076 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md index 7bb79ac11ed..60a80bb6336 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md index 9430d7efe37..e4f094062bb 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md index 85bd22c9c12..ccc23d23fbc 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md index c5bbdef4199..5338b3ce45d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md index 7e7589c0790..acba4607d7d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md index 8fb6e244e89..14d7425c568 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md index 191a3cc97ca..258daaf3748 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md index 005270f3e4d..b5cc0d29988 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md index afc93366be2..88fcfddd31d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/create.md b/docs/examples/1.3.x/client-android/kotlin/teams/create.md index 5e70bd8df0b..2fa3cff014f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md index 04ef5d3490f..56157f296b7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/delete.md b/docs/examples/1.3.x/client-android/kotlin/teams/delete.md index 7d58960e7c3..149c120375d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md index 653bd520faf..78420a121e7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md index bfd8f7597fa..02e05873e80 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/get.md b/docs/examples/1.3.x/client-android/kotlin/teams/get.md index 72aea07f30a..7997e5aa2b6 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md index 53bd6f3b65b..79db9e57986 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/list.md b/docs/examples/1.3.x/client-android/kotlin/teams/list.md index 57c5fe83543..29b4d655e5f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md index 1570e9df4a5..299cbb7e636 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md index 33de006871f..e1a3b53df59 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md index 59c681232d8..d14522666a3 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md index 6a89ac768d6..954f6a7aebf 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..ec7bc357e17 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md index 311a3b6260f..cc9a14e931a 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..7d9b4e33674 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md index 929396ddc67..88efd04ca92 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md index c84edfc6e76..7c4048689e7 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md index caa66c161a6..40ad4c34fad 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..3b1548db4a8 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..6f52d97ebb1 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-verification.md b/docs/examples/1.3.x/client-apple/examples/account/create-verification.md index 2c96d202d01..9271178af8a 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create.md b/docs/examples/1.3.x/client-apple/examples/account/create.md index a7836f8e379..fe023e0f617 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/delete-session.md b/docs/examples/1.3.x/client-apple/examples/account/delete-session.md index 316a27d8f7b..6e42ce8a5ec 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..b45ea356fe4 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..7605035f35d 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/get-session.md b/docs/examples/1.3.x/client-apple/examples/account/get-session.md index 66b363574aa..6adf367a337 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/get.md b/docs/examples/1.3.x/client-apple/examples/account/get.md index f29f83f8e8e..0bfdb0a7053 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/get.md +++ b/docs/examples/1.3.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/list-logs.md b/docs/examples/1.3.x/client-apple/examples/account/list-logs.md index 0c9725555e5..bc463217d69 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.3.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..9c1daf94b95 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-email.md b/docs/examples/1.3.x/client-apple/examples/account/update-email.md index a8c37af9464..c1c3dd52510 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md index 42a7f710b52..e0a340a6066 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-name.md b/docs/examples/1.3.x/client-apple/examples/account/update-name.md index a9d76812b55..04f8832a6b3 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-password.md b/docs/examples/1.3.x/client-apple/examples/account/update-password.md index bb3c3b0bea4..42a82dda330 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md index 41e26c3935c..a102cb740df 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md index 1c88595dc24..8e47f16be4e 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-phone.md b/docs/examples/1.3.x/client-apple/examples/account/update-phone.md index 306e8f5a939..e595ee3d082 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md index cc765480c5e..bab4b310e8e 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md index 335dd6aeef0..1e965beff0b 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-session.md b/docs/examples/1.3.x/client-apple/examples/account/update-session.md index b71826246d6..8e1d1116507 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-status.md b/docs/examples/1.3.x/client-apple/examples/account/update-status.md index 3f2d823641d..2c7753f3796 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-verification.md b/docs/examples/1.3.x/client-apple/examples/account/update-verification.md index 36af6b99dac..5a521a212a3 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md index 19c8d02b6d2..9f86b044356 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md index d7a680f35ed..1756c5b1468 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md index 01a7ec13445..945ce41a8cc 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md index eb33c906b6b..4044888df38 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md index ef0cd36920b..659749d9927 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md index 1bdd6f058a1..b9a5a7d0957 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md index 5c801d40bbd..edf910514f7 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/create-document.md b/docs/examples/1.3.x/client-apple/examples/databases/create-document.md index 533bbd534c2..d7f66d018c9 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md index c9a751294d8..f05f747b6ce 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/get-document.md b/docs/examples/1.3.x/client-apple/examples/databases/get-document.md index 53b71fb4f5c..8f85eae2a46 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md index 0b375df67a3..c05bc15e995 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/update-document.md b/docs/examples/1.3.x/client-apple/examples/databases/update-document.md index 5a943af8c11..238da36ec86 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md index 93702bfdbcd..8c696c8dec5 100644 --- a/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md index f1e53cb5708..b6ed7f7e75e 100644 --- a/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md index 0f182950eeb..5e6920aa213 100644 --- a/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md index d58b881df4d..aa8d9d318cb 100644 --- a/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-apple/examples/graphql/query.md b/docs/examples/1.3.x/client-apple/examples/graphql/query.md index 0aba98aeb88..78797a21a02 100644 --- a/docs/examples/1.3.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.3.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/get.md b/docs/examples/1.3.x/client-apple/examples/locale/get.md index d12470d66ab..95dc75d9f84 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md index 4853f77212d..83073b0210b 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..6f9d96899a3 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..46e86dbe965 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md index 75369d0606e..f5a43f040aa 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md index 92eea812756..bcbf30ec9dc 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..46fa89e0791 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/create-file.md b/docs/examples/1.3.x/client-apple/examples/storage/create-file.md index f8824208821..9abfb7678b4 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md index 27624b4bc20..d0222a52631 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md index ca96b31d93e..48d81066766 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md index 71c0f31f27d..17f75ae40da 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md index 85631efc835..f18fd82d3d1 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file.md index fa28b48d640..8f961898de7 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/list-files.md b/docs/examples/1.3.x/client-apple/examples/storage/list-files.md index 51f7fe8f053..ab0633ade53 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/update-file.md b/docs/examples/1.3.x/client-apple/examples/storage/update-file.md index 13bf635ec60..ac8ef4b3d45 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md index 1936f9d1137..40cc1c96d23 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/create.md b/docs/examples/1.3.x/client-apple/examples/teams/create.md index c28eec416d0..5e2b092a702 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md index 186f6ad6fb4..e14bba13c7f 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/delete.md b/docs/examples/1.3.x/client-apple/examples/teams/delete.md index e7585ec3876..5e39a53370b 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md index 02ee3dab422..a792889fd4e 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md index bcd65b68c46..9b7cf43c38e 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/get.md b/docs/examples/1.3.x/client-apple/examples/teams/get.md index c8630adaacf..689c5e68859 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md index 1f8a0ccb730..57876d3feae 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/list.md b/docs/examples/1.3.x/client-apple/examples/teams/list.md index 72226d4f5b7..cb9da6c7d5d 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md index e59b86b06b4..8cfb32df2ca 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md index 65a899cb1c7..5f8b723cd5d 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-name.md b/docs/examples/1.3.x/client-apple/examples/teams/update-name.md index 357182b1036..de4a6eb99e6 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md index 6cfe79e3a8c..1a1a21bd793 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create.md b/docs/examples/1.3.x/client-flutter/examples/account/create.md index 1ff2ae91cbf..d2866cf5b66 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/get-session.md b/docs/examples/1.3.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/get.md b/docs/examples/1.3.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-email.md b/docs/examples/1.3.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-name.md b/docs/examples/1.3.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-password.md b/docs/examples/1.3.x/client-flutter/examples/account/update-password.md index b5e86de273f..42514bd6a1b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-session.md b/docs/examples/1.3.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-status.md b/docs/examples/1.3.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md index c0bffce70a0..160c5ec892e 100644 --- a/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.mutation( diff --git a/docs/examples/1.3.x/client-flutter/examples/graphql/query.md b/docs/examples/1.3.x/client-flutter/examples/graphql/query.md index 455cb0bd227..fd5d8e15002 100644 --- a/docs/examples/1.3.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.3.x/client-flutter/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.query( diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/get.md b/docs/examples/1.3.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md index ac58c5064f7..22dee42732f 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/create.md b/docs/examples/1.3.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/delete.md b/docs/examples/1.3.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md index e9ae94eb3ff..6a40cf66842 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getPrefs( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/get.md b/docs/examples/1.3.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/list.md b/docs/examples/1.3.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md index 6e96c017e03..c031101d7a2 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipRoles( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md index 5c794bd99bb..7f20a7c10b8 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateName( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md index c29cbb9eb1d..57711681778 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updatePrefs( diff --git a/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-email-session.md b/docs/examples/1.3.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-recovery.md b/docs/examples/1.3.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-verification.md b/docs/examples/1.3.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create.md b/docs/examples/1.3.x/client-web/examples/account/create.md index fda1d88e0f6..f15b65307dd 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create.md +++ b/docs/examples/1.3.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/delete-session.md b/docs/examples/1.3.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.3.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/get-prefs.md b/docs/examples/1.3.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.3.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/get-session.md b/docs/examples/1.3.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.3.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/get.md b/docs/examples/1.3.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.3.x/client-web/examples/account/get.md +++ b/docs/examples/1.3.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/list-logs.md b/docs/examples/1.3.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.3.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.3.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/list-sessions.md b/docs/examples/1.3.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.3.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-email.md b/docs/examples/1.3.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-name.md b/docs/examples/1.3.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-password.md b/docs/examples/1.3.x/client-web/examples/account/update-password.md index 2404a743e74..0dcff6bfde2 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-phone.md b/docs/examples/1.3.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-prefs.md b/docs/examples/1.3.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-recovery.md b/docs/examples/1.3.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-session.md b/docs/examples/1.3.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-status.md b/docs/examples/1.3.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-verification.md b/docs/examples/1.3.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-image.md b/docs/examples/1.3.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/create-document.md b/docs/examples/1.3.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/delete-document.md b/docs/examples/1.3.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/get-document.md b/docs/examples/1.3.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/list-documents.md b/docs/examples/1.3.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/update-document.md b/docs/examples/1.3.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/functions/create-execution.md b/docs/examples/1.3.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.3.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/functions/get-execution.md b/docs/examples/1.3.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.3.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/functions/list-executions.md b/docs/examples/1.3.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.3.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/graphql/mutation.md b/docs/examples/1.3.x/client-web/examples/graphql/mutation.md index 1a0b61cd3b5..c968d9a245a 100644 --- a/docs/examples/1.3.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/client-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/graphql/query.md b/docs/examples/1.3.x/client-web/examples/graphql/query.md index e507fbb5aa1..8d1e5edd18a 100644 --- a/docs/examples/1.3.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.3.x/client-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/get.md b/docs/examples/1.3.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/get.md +++ b/docs/examples/1.3.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-continents.md b/docs/examples/1.3.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-countries.md b/docs/examples/1.3.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-languages.md b/docs/examples/1.3.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/create-file.md b/docs/examples/1.3.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/delete-file.md b/docs/examples/1.3.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file.md b/docs/examples/1.3.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/list-files.md b/docs/examples/1.3.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.3.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/update-file.md b/docs/examples/1.3.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/create-membership.md b/docs/examples/1.3.x/client-web/examples/teams/create-membership.md index fded560d783..f9d6089eedf 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/create.md b/docs/examples/1.3.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/create.md +++ b/docs/examples/1.3.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/delete.md b/docs/examples/1.3.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.3.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/get-membership.md b/docs/examples/1.3.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md index bcf3f43806b..6c729eead7c 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/get.md b/docs/examples/1.3.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/get.md +++ b/docs/examples/1.3.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/list.md b/docs/examples/1.3.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/list.md +++ b/docs/examples/1.3.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-name.md b/docs/examples/1.3.x/client-web/examples/teams/update-name.md index 3159d51c6cd..80e59bbae62 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md index 36f60b18e72..4ff1ca7a7f2 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md index 9521cf68a56..81b49b3364e 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-email-session.md b/docs/examples/1.3.x/console-web/examples/account/create-email-session.md index 19812773df7..4b9d12c64fc 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md index 8a851df3699..86336ab693e 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md index 6917aa288c7..b000a713dd9 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md index bf33c52f30b..3dc8a90076a 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md index 85e7d68eed2..18fb31ee857 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md index 0b10961e53f..aadd2c149da 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-recovery.md b/docs/examples/1.3.x/console-web/examples/account/create-recovery.md index dd33c01f04a..9cc625a21d5 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-verification.md b/docs/examples/1.3.x/console-web/examples/account/create-verification.md index 7b1ec32f2f0..b3ce7d060fe 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create.md b/docs/examples/1.3.x/console-web/examples/account/create.md index 4c61ef8eb29..38ad6190fab 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create.md +++ b/docs/examples/1.3.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/delete-session.md b/docs/examples/1.3.x/console-web/examples/account/delete-session.md index b360b3bb892..c6a6188d4ef 100644 --- a/docs/examples/1.3.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md index 0d0fea88f44..6cf737e92ae 100644 --- a/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/get-prefs.md b/docs/examples/1.3.x/console-web/examples/account/get-prefs.md index 284f8fabdaf..939df8a13cc 100644 --- a/docs/examples/1.3.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/get-session.md b/docs/examples/1.3.x/console-web/examples/account/get-session.md index 651d35c7344..485ccb7f7cb 100644 --- a/docs/examples/1.3.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/get.md b/docs/examples/1.3.x/console-web/examples/account/get.md index f6fc4b94010..f4bc097c8e9 100644 --- a/docs/examples/1.3.x/console-web/examples/account/get.md +++ b/docs/examples/1.3.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/list-logs.md b/docs/examples/1.3.x/console-web/examples/account/list-logs.md index 4f1d6813a78..68bc5a33863 100644 --- a/docs/examples/1.3.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/list-sessions.md b/docs/examples/1.3.x/console-web/examples/account/list-sessions.md index bd3b102b215..c54c6420f29 100644 --- a/docs/examples/1.3.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-email.md b/docs/examples/1.3.x/console-web/examples/account/update-email.md index 21b7fcc3f26..1d69f5d15aa 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md index 1bc748ed309..e73d344a75f 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-name.md b/docs/examples/1.3.x/console-web/examples/account/update-name.md index 5a9ab011b49..5a221115f1b 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-password.md b/docs/examples/1.3.x/console-web/examples/account/update-password.md index ca059e5304e..2fdc3bdf54b 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md index 4b47389a3c6..2f5ca7fa64e 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md index 99c13cb90ea..4f66ec5e810 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-phone.md b/docs/examples/1.3.x/console-web/examples/account/update-phone.md index 80f715e0bcc..19ebdd256b0 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-prefs.md b/docs/examples/1.3.x/console-web/examples/account/update-prefs.md index 0a85380d344..2cba25590f5 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-recovery.md b/docs/examples/1.3.x/console-web/examples/account/update-recovery.md index 64c1545e89b..f91b353d944 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-session.md b/docs/examples/1.3.x/console-web/examples/account/update-session.md index 29dc0c0907f..64abdcb0dc2 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-status.md b/docs/examples/1.3.x/console-web/examples/account/update-status.md index 87b51465255..c1a568439fb 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-verification.md b/docs/examples/1.3.x/console-web/examples/account/update-verification.md index 93dd5db120f..7ab66b2be6a 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md index f830effff2c..f2a966e6d35 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md index a4e67b25e73..a3f59418dac 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md index 14bc1b9b004..0076abdd54a 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md index 52ebe68c659..f6a66a01a8d 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-image.md b/docs/examples/1.3.x/console-web/examples/avatars/get-image.md index 517421e7f0f..2435fae9809 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md index 8b03b5d3863..0d5bc0a6c8f 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md index 89cea47ad9b..5f1d17d410d 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md index 3924ff5cc54..995eb48e4ba 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-collection.md b/docs/examples/1.3.x/console-web/examples/databases/create-collection.md index ff3dbd974db..a478b7eeb63 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md index 4e1f3190b3f..a6e825299a5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-document.md b/docs/examples/1.3.x/console-web/examples/databases/create-document.md index 4b9adc4e7c9..fdd014f39d0 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md index 8d2a5523b60..d25d0cdca3c 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md index 503290b951e..492fc94db7b 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md index 7ce41b6b0bd..e910e78d5f4 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-index.md b/docs/examples/1.3.x/console-web/examples/databases/create-index.md index 4da79809f45..90886275fc7 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md index 28218a16d74..5fc48e79806 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md index 88fcd66825b..4f393305779 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md index 6fe22ad22e7..5189dae44b0 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md index 8beade8f9d5..8b546994fb4 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md index 1cbd402c2e3..4c1621878ae 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create.md b/docs/examples/1.3.x/console-web/examples/databases/create.md index bca894d724b..035be47b85a 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md index 858010b3137..9b5259f1358 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md index 9ce95a5e54a..b654863416f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-document.md b/docs/examples/1.3.x/console-web/examples/databases/delete-document.md index d31d06b5210..727cf132ba6 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-index.md b/docs/examples/1.3.x/console-web/examples/databases/delete-index.md index 2ef22b82ad1..6c8f1485115 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete.md b/docs/examples/1.3.x/console-web/examples/databases/delete.md index bfd5b0cea3e..049280a06be 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md index 1542f64763c..610f07904be 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md index 983a6133735..df519530465 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-collection.md b/docs/examples/1.3.x/console-web/examples/databases/get-collection.md index 6dae02f5c20..f5fd435ff44 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md index f75040811e1..3c293f0211f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-document.md b/docs/examples/1.3.x/console-web/examples/databases/get-document.md index 87569bd8639..63ec42b8171 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-index.md b/docs/examples/1.3.x/console-web/examples/databases/get-index.md index d3df35d7a7d..92fe6b48f41 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-usage.md b/docs/examples/1.3.x/console-web/examples/databases/get-usage.md index aabe123e892..c0ad5ea3c23 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get.md b/docs/examples/1.3.x/console-web/examples/databases/get.md index 64c8a859ed6..036ebd5294a 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md index df9123680e5..cb07aba1f50 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md index 89662fe4b33..a6484de5e23 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-collections.md b/docs/examples/1.3.x/console-web/examples/databases/list-collections.md index 498e0d9c132..7d0e31ab0f9 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md index 0161998358f..34cf6c9c3df 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-documents.md b/docs/examples/1.3.x/console-web/examples/databases/list-documents.md index 9e29eb52c78..6365b91045d 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md index 3449b7d82be..e821f98a12e 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-logs.md b/docs/examples/1.3.x/console-web/examples/databases/list-logs.md index 3b3f0dcead4..b982f8791b5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list.md b/docs/examples/1.3.x/console-web/examples/databases/list.md index 20ae55793d2..d4ba3714c49 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md index 629f8644b04..2d2ae72d823 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-collection.md b/docs/examples/1.3.x/console-web/examples/databases/update-collection.md index c0043b25002..c6fb8f69b66 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md index f5be61d0e6a..57452ed4de5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-document.md b/docs/examples/1.3.x/console-web/examples/databases/update-document.md index 249af346483..2fbe08d3d22 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md index e9a89a9436c..bd7f56f0ed5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md index 8f0d5b6842d..5fae0029503 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md index 72fcd77e7bc..f79aa89f296 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md index d035b842b11..9be0327aa0f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md index 3373ae49ae6..579e5011b03 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md index a329d5b6ad0..aa97a12eb4f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md index 69482531edd..5afdd00648c 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md index 481394021d2..d57ba6db661 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update.md b/docs/examples/1.3.x/console-web/examples/databases/update.md index a8160956e52..5f2727847c9 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-build.md b/docs/examples/1.3.x/console-web/examples/functions/create-build.md index 141bb3247c7..a4d250ba582 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md index cb91fa8ab61..e205e851894 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-execution.md b/docs/examples/1.3.x/console-web/examples/functions/create-execution.md index cd623bb0562..b7c9d286528 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-variable.md b/docs/examples/1.3.x/console-web/examples/functions/create-variable.md index df147ac2c8f..d8bad947e28 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create.md b/docs/examples/1.3.x/console-web/examples/functions/create.md index cbe62775f7d..844be94ddcc 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md index 9597da3dcfc..a5dc5584570 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md index 30f2c031aae..1687be849be 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/delete.md b/docs/examples/1.3.x/console-web/examples/functions/delete.md index 3cfa756613b..bee147500b8 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.3.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md index 3a16587aca0..e5e988c9409 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-execution.md b/docs/examples/1.3.x/console-web/examples/functions/get-execution.md index ac92b98af8e..d5b5d7400bf 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md index 9ac20346ea3..19bb6aa293c 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-usage.md b/docs/examples/1.3.x/console-web/examples/functions/get-usage.md index 6e3fe878607..8afeec514aa 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-variable.md b/docs/examples/1.3.x/console-web/examples/functions/get-variable.md index 3d4b07f44ef..0d6a078176e 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get.md b/docs/examples/1.3.x/console-web/examples/functions/get.md index 5cb2e289106..fbb4e8be3f7 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md index bd63271f279..1acf26b16f8 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-executions.md b/docs/examples/1.3.x/console-web/examples/functions/list-executions.md index 5df980d48b7..b1d40eb4b6e 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md index 18f13b2c830..c1e2c654d73 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-variables.md b/docs/examples/1.3.x/console-web/examples/functions/list-variables.md index 5fd03bfc190..4f37c95bd59 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list.md b/docs/examples/1.3.x/console-web/examples/functions/list.md index 721ad6bbb0c..903112a5f70 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md index 98752326efd..b668a3fabb3 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/update-variable.md b/docs/examples/1.3.x/console-web/examples/functions/update-variable.md index 33380ee102c..3ce70d0d627 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/update.md b/docs/examples/1.3.x/console-web/examples/functions/update.md index 473bbebbd60..8304a3d159d 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/update.md +++ b/docs/examples/1.3.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/graphql/mutation.md b/docs/examples/1.3.x/console-web/examples/graphql/mutation.md index ee70c3630c4..6de224be68f 100644 --- a/docs/examples/1.3.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/console-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/graphql/query.md b/docs/examples/1.3.x/console-web/examples/graphql/query.md index 055c6ad0020..f1c35d81ba9 100644 --- a/docs/examples/1.3.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.3.x/console-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md index 6d57550dd90..c55b33a3f56 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-cache.md b/docs/examples/1.3.x/console-web/examples/health/get-cache.md index 5748c8e9dc1..7c1563ced5b 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-d-b.md b/docs/examples/1.3.x/console-web/examples/health/get-d-b.md index 181dca70768..3c3c21b88c6 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md index 29fcb6707a7..f1361cb68aa 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md index 0b011cb32d4..12e8a8b6ba5 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md index 2dc33b377b3..8ddfaf700bd 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md index 534d68c7f46..b2ae504bd13 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md index ff842f4ba6a..b7e8d86da67 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-time.md b/docs/examples/1.3.x/console-web/examples/health/get-time.md index 6d8e1c225a5..73e1155687e 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get.md b/docs/examples/1.3.x/console-web/examples/health/get.md index 76e74be74cf..faa1a0c7c1c 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get.md +++ b/docs/examples/1.3.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/get.md b/docs/examples/1.3.x/console-web/examples/locale/get.md index ac47468df81..bd3c27e3c32 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/get.md +++ b/docs/examples/1.3.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-continents.md b/docs/examples/1.3.x/console-web/examples/locale/list-continents.md index b2358396fcf..0c3d6bb4996 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md index 59d6e24dbf7..7ac2906b4c7 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md index 898cb3cf31b..300c81d9538 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-countries.md b/docs/examples/1.3.x/console-web/examples/locale/list-countries.md index a36b8c25edf..3f26f6dba81 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md index 1f348914259..66163952bd7 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-languages.md b/docs/examples/1.3.x/console-web/examples/locale/list-languages.md index 4fb4dbf0be9..048c79d38ad 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-domain.md b/docs/examples/1.3.x/console-web/examples/projects/create-domain.md index 78036bc8b06..4a572cc30c0 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-key.md b/docs/examples/1.3.x/console-web/examples/projects/create-key.md index 02032e81c54..d65660599b2 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-platform.md b/docs/examples/1.3.x/console-web/examples/projects/create-platform.md index 4a319681713..b668ec12f76 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md index 356a5ffe866..0ca56346c4d 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create.md b/docs/examples/1.3.x/console-web/examples/projects/create.md index 67682bf8595..df22f3a68ed 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md index 9b8ffbce394..a5370389e18 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-key.md b/docs/examples/1.3.x/console-web/examples/projects/delete-key.md index 74c6bd15621..399e97687a2 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md index da8ce56e54e..0d6fa3c55b3 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md index 08e3af636fc..2de71ec3f31 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete.md b/docs/examples/1.3.x/console-web/examples/projects/delete.md index dc620b08113..62c43398531 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-domain.md b/docs/examples/1.3.x/console-web/examples/projects/get-domain.md index 4b82d70ef5c..4d42ce09ba0 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-key.md b/docs/examples/1.3.x/console-web/examples/projects/get-key.md index c0d3282c146..bfadb8de561 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-platform.md b/docs/examples/1.3.x/console-web/examples/projects/get-platform.md index fd65231affd..d178cbb8430 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-usage.md b/docs/examples/1.3.x/console-web/examples/projects/get-usage.md index 8d8c91355dd..af512463fbe 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md index 7f580b5f572..4357669a227 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get.md b/docs/examples/1.3.x/console-web/examples/projects/get.md index 23c235a741c..69e53ca0f23 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-domains.md b/docs/examples/1.3.x/console-web/examples/projects/list-domains.md index 448dbf8d190..7f536d91dec 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-domains.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-keys.md b/docs/examples/1.3.x/console-web/examples/projects/list-keys.md index c2dce0a419a..8800067c24b 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md index 968438f6bb7..692de5c43fe 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md index e0e0af367f5..d960a75f982 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list.md b/docs/examples/1.3.x/console-web/examples/projects/list.md index 0cf5002afe9..a7476905fd5 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md index 37c69222df8..f74645388d4 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md index a63f5b4518e..4195655befe 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md index e3cb529d1b4..8f81a8fb937 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md index 67b885d49db..a5651e4e323 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md index ef2dffa67ae..21ce249f7aa 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md index 4751442d8fd..b183e1477c0 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md index d994b90aaa2..aac42ce379c 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-key.md b/docs/examples/1.3.x/console-web/examples/projects/update-key.md index fd2bde82bfa..659017451a2 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md index 34ce8142088..cf3c92658fa 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-platform.md b/docs/examples/1.3.x/console-web/examples/projects/update-platform.md index ce49dfffd84..75f3b3b4e2c 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md index 5b727003b04..66010abf746 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md index 472271f8e60..8a18c842620 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md index 1339a458227..81fdd2913e9 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update.md b/docs/examples/1.3.x/console-web/examples/projects/update.md index 31281808c47..f162bd09b52 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md index 7696b14294e..766a4835dc3 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/create-file.md b/docs/examples/1.3.x/console-web/examples/storage/create-file.md index d1bf55b42b8..ce0c8f0b9c7 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md index 4634b11f5b3..0a3305e862a 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/delete-file.md b/docs/examples/1.3.x/console-web/examples/storage/delete-file.md index b4c0ff0f9d8..1961a1fcde1 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md index 65c66d7aa04..58223df2aef 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md index 2b65e8b0cee..7b386458f9d 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md index 1ce57cb38a6..bdc8fb79d3f 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md index ab6bc18fc46..8f58323bd6e 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md index 7ce851f0252..aa482c46f5c 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file.md b/docs/examples/1.3.x/console-web/examples/storage/get-file.md index b6e800303d1..bb5a737721a 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-usage.md b/docs/examples/1.3.x/console-web/examples/storage/get-usage.md index f618ba4e16e..e9a8eb06729 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md index 5a356900fab..a14a0d02172 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/list-files.md b/docs/examples/1.3.x/console-web/examples/storage/list-files.md index 0c6170f11d1..ac7ef669dc0 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.3.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md index 09ed4ce441f..1d050c14b88 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/update-file.md b/docs/examples/1.3.x/console-web/examples/storage/update-file.md index abaaf9afd4e..12292761d23 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/create-membership.md b/docs/examples/1.3.x/console-web/examples/teams/create-membership.md index ddd48611374..4b176ca962c 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/create.md b/docs/examples/1.3.x/console-web/examples/teams/create.md index a2cb34296b6..881816db346 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/create.md +++ b/docs/examples/1.3.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md index 4e7d7e7a746..66274a17b65 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/delete.md b/docs/examples/1.3.x/console-web/examples/teams/delete.md index 0bc778ba635..d51318f89e2 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.3.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/get-membership.md b/docs/examples/1.3.x/console-web/examples/teams/get-membership.md index c0bdae5fc6c..881f37d8b09 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md index 2104c5f8986..f039b6e3dab 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/get.md b/docs/examples/1.3.x/console-web/examples/teams/get.md index 2dbfdb4b0b6..068d50c6d10 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/get.md +++ b/docs/examples/1.3.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/list-logs.md b/docs/examples/1.3.x/console-web/examples/teams/list-logs.md index 2c3c7311e26..7fb75214172 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md index f7a7d1a54e6..93e8588a555 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/list.md b/docs/examples/1.3.x/console-web/examples/teams/list.md index 99e482d8f3c..3a5311efe33 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/list.md +++ b/docs/examples/1.3.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md index c09ed1ac779..80cbd9b6e17 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md index 1c8ec3a27e3..cdc93967b33 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-name.md b/docs/examples/1.3.x/console-web/examples/teams/update-name.md index 4bee8deb525..9a8af03cd92 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md index 7d7ed633281..4f375b52cea 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md index f4dabafe189..e22db4f2987 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md index 247f579c9ca..809c9aab772 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md index 8a81f0801bf..13048d3ad68 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md index f7297c10234..448fb53ac24 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md index 3cefaf17dfa..d188ec648d7 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md index d8889fa2292..da40910a376 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md index 3c4b357e4c9..ba82d26d9f6 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create.md b/docs/examples/1.3.x/console-web/examples/users/create.md index 845895d6a5c..30e6ec9266f 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create.md +++ b/docs/examples/1.3.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/delete-session.md b/docs/examples/1.3.x/console-web/examples/users/delete-session.md index 70404ca574f..9098318a774 100644 --- a/docs/examples/1.3.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.3.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md index b02771c7098..c8994db4e5a 100644 --- a/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/delete.md b/docs/examples/1.3.x/console-web/examples/users/delete.md index 0bb95c395bd..8dd6885f0e5 100644 --- a/docs/examples/1.3.x/console-web/examples/users/delete.md +++ b/docs/examples/1.3.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/get-prefs.md b/docs/examples/1.3.x/console-web/examples/users/get-prefs.md index 593552bd033..a0e8f78b94a 100644 --- a/docs/examples/1.3.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/get-usage.md b/docs/examples/1.3.x/console-web/examples/users/get-usage.md index 59d95e6dcb5..3c38b500d8b 100644 --- a/docs/examples/1.3.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/get.md b/docs/examples/1.3.x/console-web/examples/users/get.md index 46cee750f7b..816b41ad399 100644 --- a/docs/examples/1.3.x/console-web/examples/users/get.md +++ b/docs/examples/1.3.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list-logs.md b/docs/examples/1.3.x/console-web/examples/users/list-logs.md index ded1e98b40b..cb2402e2d07 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list-memberships.md b/docs/examples/1.3.x/console-web/examples/users/list-memberships.md index b47f7acf57a..3f9dca5ab21 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list-sessions.md b/docs/examples/1.3.x/console-web/examples/users/list-sessions.md index 087834e5695..0c0109550bd 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list.md b/docs/examples/1.3.x/console-web/examples/users/list.md index 28a8258b126..f658f432bac 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list.md +++ b/docs/examples/1.3.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md index 019b0723714..7b9d2cc424e 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-email.md b/docs/examples/1.3.x/console-web/examples/users/update-email.md index e37d03a01c9..fe1f2500f83 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-name.md b/docs/examples/1.3.x/console-web/examples/users/update-name.md index 2834c747da4..2d491d7a569 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-password.md b/docs/examples/1.3.x/console-web/examples/users/update-password.md index 5192abda89b..8edb97138fc 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md index 17ddf467d96..d4fe6f00a18 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-phone.md b/docs/examples/1.3.x/console-web/examples/users/update-phone.md index a1d85aaaca4..ce74c710226 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-prefs.md b/docs/examples/1.3.x/console-web/examples/users/update-prefs.md index e3c5b76c2aa..c05c4df53d6 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-status.md b/docs/examples/1.3.x/console-web/examples/users/update-status.md index eafbec728f5..87e2197cfc6 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/create-verification.md b/docs/examples/1.3.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/delete-session.md b/docs/examples/1.3.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/get-session.md b/docs/examples/1.3.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/get.md b/docs/examples/1.3.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/get.md +++ b/docs/examples/1.3.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/list-logs.md b/docs/examples/1.3.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-email.md b/docs/examples/1.3.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-name.md b/docs/examples/1.3.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-password.md b/docs/examples/1.3.x/server-dart/examples/account/update-password.md index d5e27a7574e..559b875ebf1 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-phone.md b/docs/examples/1.3.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-session.md b/docs/examples/1.3.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-status.md b/docs/examples/1.3.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-verification.md b/docs/examples/1.3.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-document.md b/docs/examples/1.3.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-index.md b/docs/examples/1.3.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md index 01f2b42f754..01c7e0e5db3 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create.md b/docs/examples/1.3.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete.md b/docs/examples/1.3.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-document.md b/docs/examples/1.3.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-index.md b/docs/examples/1.3.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get.md b/docs/examples/1.3.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list.md b/docs/examples/1.3.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md index 94853d2819e..95b9735957b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md index f93aa815005..200266fda0c 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-document.md b/docs/examples/1.3.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md index 8fd104db321..c79242fcc94 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md index 20c44817ef5..29bbb49e496 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md index 50432542c6c..b395495516b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md index 2d3da6ced66..659631462c9 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md index 8c4cf4f3f24..c3bfa069b71 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md index 239e23daab4..35943d8f1a7 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md index 7f24507abae..54a3d0df6e4 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md index d7dd6758bbd..9787d2b7c51 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update.md b/docs/examples/1.3.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-build.md b/docs/examples/1.3.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md index d646680db84..17683d2c863 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create.md b/docs/examples/1.3.x/server-dart/examples/functions/create.md index 839c6f6edd4..381f6157885 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/delete.md b/docs/examples/1.3.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get.md b/docs/examples/1.3.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list.md b/docs/examples/1.3.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/update.md b/docs/examples/1.3.x/server-dart/examples/functions/update.md index 2b92f553874..bf36155e7ef 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md index 780ee09f4ac..160c049dc29 100644 --- a/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/graphql/query.md b/docs/examples/1.3.x/server-dart/examples/graphql/query.md index 7f22f5360d8..4191d3c271d 100644 --- a/docs/examples/1.3.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-dart/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-cache.md b/docs/examples/1.3.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-time.md b/docs/examples/1.3.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get.md b/docs/examples/1.3.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/get.md b/docs/examples/1.3.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/create-file.md b/docs/examples/1.3.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/list-files.md b/docs/examples/1.3.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/update-file.md b/docs/examples/1.3.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md index 6a98fea0bd8..f0f1961450b 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/create.md b/docs/examples/1.3.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/delete.md b/docs/examples/1.3.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md index 27f2ef15ad6..27608b6699d 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/get.md b/docs/examples/1.3.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/list.md b/docs/examples/1.3.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md index dcbef5c9484..8ede36ac641 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-name.md b/docs/examples/1.3.x/server-dart/examples/teams/update-name.md index 088a5cfbe68..324b691d3de 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md index d99e8217595..5c9d5180125 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create.md b/docs/examples/1.3.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/delete-session.md b/docs/examples/1.3.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/delete.md b/docs/examples/1.3.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/get.md b/docs/examples/1.3.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/get.md +++ b/docs/examples/1.3.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list-logs.md b/docs/examples/1.3.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list.md b/docs/examples/1.3.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-email.md b/docs/examples/1.3.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-name.md b/docs/examples/1.3.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-password.md b/docs/examples/1.3.x/server-dart/examples/users/update-password.md index 3dfedb4d4b4..bf99d92746b 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-phone.md b/docs/examples/1.3.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-status.md b/docs/examples/1.3.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/create-verification.md b/docs/examples/1.3.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/delete-session.md b/docs/examples/1.3.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/get-session.md b/docs/examples/1.3.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/get.md b/docs/examples/1.3.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/get.md +++ b/docs/examples/1.3.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/list-logs.md b/docs/examples/1.3.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-email.md b/docs/examples/1.3.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-name.md b/docs/examples/1.3.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-password.md b/docs/examples/1.3.x/server-deno/examples/account/update-password.md index a271dfe7e6f..0a2e2b5b0f7 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-phone.md b/docs/examples/1.3.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-session.md b/docs/examples/1.3.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-status.md b/docs/examples/1.3.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-verification.md b/docs/examples/1.3.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-document.md b/docs/examples/1.3.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-index.md b/docs/examples/1.3.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md index e613a6f596f..787a24c6652 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create.md b/docs/examples/1.3.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete.md b/docs/examples/1.3.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-document.md b/docs/examples/1.3.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-index.md b/docs/examples/1.3.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get.md b/docs/examples/1.3.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list.md b/docs/examples/1.3.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md index c8b55b77e5a..bc5c976286b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md index 25549b4ed25..a7fce2f168a 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-document.md b/docs/examples/1.3.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md index 78d2403cd8b..679b9971bb4 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md index f47b96fc538..eb04ead02e0 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md index 62df38cddce..882beff1ca5 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md index 001671eda13..85eefe4eeed 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md index 8ee0d5c80a7..bc98ddfec23 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md index c12a64a9dcc..fa8f36e9959 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md index ab77495e23c..b166e1f6213 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md index c9ab818c80c..1c2411f4d10 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update.md b/docs/examples/1.3.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-build.md b/docs/examples/1.3.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md index 005644b62e4..e663cf473a4 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create.md b/docs/examples/1.3.x/server-deno/examples/functions/create.md index 0c5ff2ce5fa..f25476d100a 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/delete.md b/docs/examples/1.3.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get.md b/docs/examples/1.3.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list.md b/docs/examples/1.3.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/update.md b/docs/examples/1.3.x/server-deno/examples/functions/update.md index 8ed2663ba72..9b60b79afe7 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md index 87beeabce65..f95cdc771d4 100644 --- a/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/graphql/query.md b/docs/examples/1.3.x/server-deno/examples/graphql/query.md index d2eec0a8dbf..27930bde4d6 100644 --- a/docs/examples/1.3.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-deno/examples/graphql/query.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-cache.md b/docs/examples/1.3.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-time.md b/docs/examples/1.3.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get.md b/docs/examples/1.3.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/get.md b/docs/examples/1.3.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/create-file.md b/docs/examples/1.3.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/list-files.md b/docs/examples/1.3.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/update-file.md b/docs/examples/1.3.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md index c4169a306b0..8b3f82fdd22 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/create.md b/docs/examples/1.3.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/delete.md b/docs/examples/1.3.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md index 5a7fa4d98f0..3327463fac1 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/get.md b/docs/examples/1.3.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/list.md b/docs/examples/1.3.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md index 9f2dad98c6b..050f7dbbd79 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-name.md b/docs/examples/1.3.x/server-deno/examples/teams/update-name.md index 47c3fc27653..bbac808c86a 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md index 83845be0364..7a8823b805c 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create.md b/docs/examples/1.3.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/delete-session.md b/docs/examples/1.3.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/delete.md b/docs/examples/1.3.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/get.md b/docs/examples/1.3.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/get.md +++ b/docs/examples/1.3.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list-logs.md b/docs/examples/1.3.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list.md b/docs/examples/1.3.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-email.md b/docs/examples/1.3.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-name.md b/docs/examples/1.3.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-password.md b/docs/examples/1.3.x/server-deno/examples/users/update-password.md index e6ae8b725e3..4d9d8b217e9 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-phone.md b/docs/examples/1.3.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-status.md b/docs/examples/1.3.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md index 570bb20f5e4..3dd38b8e05b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md index 1edc79bc502..afa76bbd9b1 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md index 928fcb85616..09d73b228c4 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md index c880a4f88db..163bd05e6a2 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md index 8dcefaf71ce..b683052f3b4 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md index ce3ecc1179d..6fed36e39ea 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md index 9560b6a78aa..9f4becbfb7c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/get.md b/docs/examples/1.3.x/server-dotnet/examples/account/get.md index 5a50299c733..4df0e2f2ceb 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md index 03b50407f50..7873a8036ed 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md index aa813bc1dd5..b918cfe8067 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md index 0b457e0abb0..3d851672769 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md index b41ba372894..682ba83ab82 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md index d8bab0b4d23..153b62635e5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md index 6914e7805f7..032961664bd 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md index f3e2f14df75..8fa853a8ce3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md index 7a4f2378e49..c25dae59cb0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md index d26f4ab8dae..3c13952fc13 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md index f3365bb96b7..4a7600e8201 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md index c5e3e2c5764..0a01ee23251 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md index 697d2dffa4e..4531f25611d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md index 3ac58f8b475..4b9e62bf6ac 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md index 89f36fe35d1..5338e4f590b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md index dbabf05d574..78cf8f75610 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md index fc20581c1ce..7ef37404185 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md index 35bf382f12f..7c85d566f2a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md index 20ea37a3a42..7f40a3f2a0b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md index 33dcac6f918..3fe62f1bcc8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md index 439537a9cb3..6b86445fb83 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md index 1b7aa198a60..c1545c3a57f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md index 1fff2965ffd..5722be761fd 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md index c0081f1f200..bdd144c6c79 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md index e22ed7ddca6..416bcad541f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md index 773d41e9fa8..cdf4142ac96 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md index d0915184e8a..038abe997b5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md index b13de722aa6..ee8c4b6fd69 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md index 0d84ea7868d..0bb5c422293 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md index ca571d00bda..81362cda5ee 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md index 9c4a8c36043..37328d876e3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md index 645492eeabf..bd34f357aa7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md index 9425882decb..46368bf2f91 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create.md index 61ba46c03a5..671a3864b89 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md index 8ebde257c52..4ceffc29181 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md index 398185c509e..ecb627ceb4b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md index 6892b25438b..1107dce324c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md index c5dab69e0fc..c7423b974c3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md index cc8b4317e19..d7e3d2030db 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md index 13eae946e96..491a0db2f87 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md index b617da7810f..0b956208f66 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md index 079f93a4031..095d1a1e668 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md index d989ed46519..7a81d9b1195 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get.md index 5dfa70eec14..bc770bbf432 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md index 8af529df418..30362cf3987 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md index ed0d7bb56fc..6eae10213e8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md index 92895692f0a..47bb99e03af 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md index dbbed3ca537..87f1560ec48 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list.md index ec234ddbab3..c247e5abc2e 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md index 2d6fa80849a..6e3ee9a0d0b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md index aa477e4ce01..a946514ed6f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md index 81966f05f14..65ba0b5c7f3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md index b19d9226c69..e204c9b90fc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md index 5baf67fd729..59a94d850d9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md index 184ac1820f1..dfef22bf6de 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md index d68815ab07f..f6561415d57 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md index 2ad0e057549..e19cc9f6480 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md index 10fd34b3066..0f9d4ad2857 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md index 8a65da0a421..fa2042f18e7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md index 84fc2b8da95..5ce837ccbb9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md index e79812a77b1..a66a848951b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update.md index 743108fc66b..8ab4cc5ea0f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md index 71eb842c6c7..51c539a59d3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md index c58d1ef68de..7744c8ab78d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md index 93cd65be5d2..d6e17cbcd44 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md index 0724bc6eef4..a90e0e883fc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create.md index 75c9b242f69..02108327629 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md index 2c17dfae9f2..907a3f03266 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md index cf201480fa1..3faa77f8ce8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md index 123e307c799..c3db166334a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md index 7d895c6d82c..18f5206643f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md index ed65d26bef4..e6dfe4a9130 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md index 12083e5acb8..c17dd8cf62c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get.md index 1914ccf7acc..c21fc7dbd54 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md index cd6a7b94468..4e2e85fa528 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md index d4c73a0d362..7bf4598b4cc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md index ca1d125eb23..ad8a60936f7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md index 31177df9ff3..555e972af51 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list.md index 1b8897b76fb..76128c22bf3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md index 8cd7fc54257..ba2f2b1e5ac 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md index 63eac46609c..c222a9e27f2 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/update.md b/docs/examples/1.3.x/server-dotnet/examples/functions/update.md index d9b29e6e77e..fed73cc4785 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md index 8ab5f0e458e..7756823b7ee 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md index e019f43e5bd..24f480286d4 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md index b8b0d5d95e4..08bf1207329 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md index 2f36c10f3b1..98970f14425 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md index a263709073d..1ec2dea7fde 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md index b2f945cbc72..4ae91c03cb0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md index cf2ed7fc082..935bef44369 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md index 8821509dbc2..5ff91aa0256 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md index d2ffb01c4df..12b0edb7115 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md index bc60cc6ccd6..36934e7443a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md index 15f17454537..ec6e71f0e9d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get.md b/docs/examples/1.3.x/server-dotnet/examples/health/get.md index d1ddd8fdf08..fb56bd5f3e9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/get.md b/docs/examples/1.3.x/server-dotnet/examples/locale/get.md index f049a920726..6713e1ed576 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md index dd91caba9de..34af0c22b7c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md index 8692c7b78e8..c515841b7dc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md index 8607ae90f58..ebe76e6bfd1 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md index c67d863856a..a1a6ed3e3a8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md index 1bb3c427e04..dc04bca6f94 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md index 1c2897d4fb8..79e53a20377 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md index b1da6cb0bd0..120a177dd6f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md index f7d73152098..58118f66e1a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md index c8825f30639..a19aec20998 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md index 8b70175d97a..5300b3e3f33 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md index aca9020f285..dd97d871470 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md index e6aa24bea3e..50e79c821f8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md index 92565ae5efe..4bcb95323ac 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md index 081f2dce7ba..f0faf111eef 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md index 0299a91bbe9..a2640e3deb0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md index 2caae5e0af8..6b527b1aaf9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md index 9d861171acd..82cdd78bce1 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md index eac74562092..8675d42d30f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md index c51d335eef2..dd6bad34a8f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md index bcc331724e4..7ea35898e28 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/create.md b/docs/examples/1.3.x/server-dotnet/examples/teams/create.md index fa34098cb25..2cec3e20093 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md index e3c7562f998..3eb75eff7c6 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md index 8229839b1cf..497b365113d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md index 108dbadbe04..3cdaf1c8fd7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md index 08be12ba836..39fdbf4cbfc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/get.md b/docs/examples/1.3.x/server-dotnet/examples/teams/get.md index f6c92a007b1..3ed9ff67718 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md index 145376cfb9d..b2a5a0ed0b5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/list.md b/docs/examples/1.3.x/server-dotnet/examples/teams/list.md index 1acf615039f..133907dc2c0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md index 5f9db4401f3..33d90280833 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md index bb377203ccb..d5514e77399 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md index 12867304375..bd0bd7df41c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md index 3dfc0a3fc1a..c75e761fc45 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md index 6038594547b..958efe5c510 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md index 954e1ad1cca..20297ef5d88 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md index de54ee98fec..a7b0ad13814 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md index e8ede042daf..60d1f6d7798 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md index f3816196514..68fcc2900ee 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md index c16cfe97f95..b03e4d0a121 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md index 1d6e60dd2d2..1cf9a2effe5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create.md b/docs/examples/1.3.x/server-dotnet/examples/users/create.md index 0a8421a5448..ad55ca54e2c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md index 841bd456c85..3f342d1178d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md index 8ff8f765228..bb5abd9a82b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/delete.md b/docs/examples/1.3.x/server-dotnet/examples/users/delete.md index 7833a7950fd..71ba2bf6881 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md index c19f5e07786..6f122c0ff27 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/get.md b/docs/examples/1.3.x/server-dotnet/examples/users/get.md index 9c315e60210..b42ff2bf731 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md index 277addcd25e..b56bf45aa8a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md index c25d98b41d2..d3099aad978 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md index fcd87f01ad5..43230b847d7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list.md b/docs/examples/1.3.x/server-dotnet/examples/users/list.md index 9cb177b6923..580396eca5f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md index 2b7a5b86748..5287a38ce01 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md index 0d371b13fc0..8bad70f9567 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md index f846543117c..8bfbeaafa20 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md index ce3241dfd5d..c6fd97306b3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md index c2fd1673de4..784ea37f188 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md index 90728d76c70..e293e53002f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md index a39d54565a1..5a443de5c79 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md index 713ece02ba5..d913bb5cb95 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md index 013b357f880..86416e08aaa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md index 284efc8107b..7f1a21b9dc8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md index 0280b4b15b1..c7911643c19 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md index 2cd069eaa13..27ce537ecd6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md index 7a9999d3985..cd790a3ac73 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md index 3f6cd20c9dd..609707c4071 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/get-session.md b/docs/examples/1.3.x/server-kotlin/java/account/get-session.md index 17229e29de2..efe4fabba7d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/get.md b/docs/examples/1.3.x/server-kotlin/java/account/get.md index 80a4988af5b..a79e0279408 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md index 971ac866e12..cfb15dccfca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md index 9d7e6308e51..f850618692a 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-email.md b/docs/examples/1.3.x/server-kotlin/java/account/update-email.md index 67ab31ad88b..4e09bdf1a97 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-name.md b/docs/examples/1.3.x/server-kotlin/java/account/update-name.md index 6900f121746..6a5a1711eb8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-password.md b/docs/examples/1.3.x/server-kotlin/java/account/update-password.md index ace01fcc9ad..3797fcb7b4b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md index 8c3c9756de6..0c1d4407633 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md index 9365a0f0b9b..d51cc4497e3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md index 24a36258345..2c7e22f25fd 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md index bc3251d1602..ffbfd402b94 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-session.md b/docs/examples/1.3.x/server-kotlin/java/account/update-session.md index 62d77e1366f..ec83c2d357e 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-status.md b/docs/examples/1.3.x/server-kotlin/java/account/update-status.md index 4af2cf1083b..964ce9c5b0f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md index 2190daf1b7d..76780f4ac60 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md index 42e8e57ee11..0682288cfe9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md index 5e3b32b527f..f821a7638c9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md index 109f88f7193..95b91adb90b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md index 6ad820ae7a9..f0e2cda52db 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md index 26805449885..765a8024e50 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md index 8a86e7a01bd..8cbcee1497f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md index c57d70a8409..2d7e1332817 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md index 6e79f0a917c..c5d83a05ff4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md index 96b5d9b9743..77b5c9f7b72 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md index 307a8ffb653..c6d3c6f229f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md index 029c3f7a253..ede98c60462 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md index 8774c550b78..0200f11e7d1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md index e2cf6a28df3..c4ae2933a4f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md index 0fba6ac073a..ceede982b06 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md index 5dbdce895b8..44eba1df018 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md index 5446862fdbc..b0d8028a623 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md index fe37da96d57..a8ade8a4128 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md index 0b7e5f999fa..1c54712e5a0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md index a9b19160669..1a767be1d89 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md index 9c504d862bf..c1bee6e0ba3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create.md b/docs/examples/1.3.x/server-kotlin/java/databases/create.md index cd3cb34db7f..e82a65c08af 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md index 68aeecd93be..d58ba87b289 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md index cd328b48a60..370781bea90 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md index 4f4c8495c32..46b9edf2f62 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md index 640bd0fc312..d633a8a2aed 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete.md index 897a450fa41..a7fad611e05 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md index 79c1d2b2add..fcea6fefb99 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md index 3ecfa0ca802..ce0eea0cb39 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md index 2061bed2020..cac1612f0c8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md index 2bf036a0575..753fef468f1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get.md b/docs/examples/1.3.x/server-kotlin/java/databases/get.md index 066ec4d2626..d4eeb222fd7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md index aafeca4a832..1d75e81a433 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md index 67c343f38a7..639a45bc2e0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md index 7a4a1b70b2a..56de64ca4c6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md index 1f5cf0c30f6..7ef4b6d4342 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list.md b/docs/examples/1.3.x/server-kotlin/java/databases/list.md index 04f81867f0e..b46abf235c8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md index 97cee2d5484..ac9e320ceca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md index 3f25c5047e9..831193fbf54 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md index 503f2debdfa..4b143f17ba5 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md index e9a596d3d42..39755884660 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md index 39ea153834d..336c25482e3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md index 969ea4eece2..cd9622fff92 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md index 67d76e425ff..0e84626db79 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md index b9308dc22b9..8cac2614886 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md index 6a936a5f361..51cb161ea22 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md index 272952b5970..624e66ed73e 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md index aba0d0e53ca..1f605fd0ee1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md index 87ab384929f..f1e29c43bc9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update.md b/docs/examples/1.3.x/server-kotlin/java/databases/update.md index 3f4b4e19338..e5bf2ed66c0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md index 10c8d2fc801..5a571f76e8d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md index ed79e4ecb4e..6e11beaf475 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md index 315f57d5cb5..d53744f70a7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md index 5e9c5a66bd9..3ce9c2d944d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create.md b/docs/examples/1.3.x/server-kotlin/java/functions/create.md index 2386c1bbad2..26e9b769097 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md index 703dce63aa8..2da778a970d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md index d36615092da..cbdfabc97b2 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/delete.md b/docs/examples/1.3.x/server-kotlin/java/functions/delete.md index 8f398964115..2f4eb011f11 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md index 5b539d28016..54bf0c461aa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md index b1ff9485e82..00bb0a1ab85 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md index 2be25a5c73d..01a05370645 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get.md b/docs/examples/1.3.x/server-kotlin/java/functions/get.md index 8ad5ea3522b..f6eb035a3ee 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md index 61f48c88c37..c5a81048ec7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md index 392e9c82c56..f4db7948dfa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..968f019f025 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md index 4fa47e8c57e..ad6d522b8f1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list.md b/docs/examples/1.3.x/server-kotlin/java/functions/list.md index 4224cf52b78..253cbafaa1c 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md index 2af0637379f..9e1db350714 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md index f30bbf8e4e3..c841731b533 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/update.md b/docs/examples/1.3.x/server-kotlin/java/functions/update.md index 8a53d75ea4a..d8c209b53a0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md index d689c62e60b..9e93425d248 100644 --- a/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/graphql/query.md b/docs/examples/1.3.x/server-kotlin/java/graphql/query.md index e4b8693b4f9..4ce7a5e66aa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.3.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..0e081401324 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..4c53f7a35bc 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..9958d8bbdc4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md index a0a3a22f8a5..7f4c32f49b0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md index 54b425f63cc..556c3e73e43 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md index 371c98f06d3..075eebf85d7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md index cbd6919d72e..344945db0aa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..527499f94e9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-time.md b/docs/examples/1.3.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..0f78d412474 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get.md b/docs/examples/1.3.x/server-kotlin/java/health/get.md index 59badb05432..a14a4b5aeca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/get.md b/docs/examples/1.3.x/server-kotlin/java/locale/get.md index 4fb6be94169..22137f75b7b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md index 661fcc3583a..3933873e37d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md index 6164ca02d29..9cb744abcb3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md index 2cb41c19f22..c81457dbbf7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md index 74d3b5d4022..491b654edee 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md index 54a0e4de40c..a4c49e35689 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md index 54976c5c08b..4f09bab65c9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md index c9ebc9178c9..268fa1563e6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md index c83557bf282..e6cdf748528 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md index f26e9ee5a19..c7844f9e90d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md index eb00b9706cc..b9095c139ba 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md index 2157dd7424c..f44d23fe902 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md index 8eef7e347e1..0b1207a0178 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md index 275e803000d..1356607a327 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md index adc0407c358..d5aa220f23d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md index 4cb6fe6db31..0bd4f682b13 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md index 49c29cad2da..e3a69b43d9f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md index 59719e530f2..dc87428ebbc 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md index 05483ea7252..08c77804e22 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md index 05385c2b88f..d2a1b6c4272 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md index 0ad2dd1bf07..dd27a70a80e 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/create.md b/docs/examples/1.3.x/server-kotlin/java/teams/create.md index 4f3be33609f..75d13b61069 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md index e82ab293be4..26d0fba99cb 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/delete.md b/docs/examples/1.3.x/server-kotlin/java/teams/delete.md index fa805ebd4d4..7699d575bf7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md index fc00d438731..e901b4438ed 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md index b14dfc94d37..8809420b196 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/get.md b/docs/examples/1.3.x/server-kotlin/java/teams/get.md index 6be034b4182..ef9c02df2f6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md index 0b9055f8169..8abf4644900 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/list.md b/docs/examples/1.3.x/server-kotlin/java/teams/list.md index 22a9d51d5fd..5f0540e6c46 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md index 291417da5ac..c485c0c0e69 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md index 64e69663d42..54ea9877155 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md index 3d95ccb9d25..317113b6167 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md index 674bc6424df..7667e504ba4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md index 47ac52c0863..0f1faf77e5c 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md index 91989dff0fe..3c34190dd3f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md index 35de18d1a34..be38f913a6c 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md index 7501f02f2f5..718f4100eb4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md index ae26de55437..e67c8745422 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md index da0936a01b3..7a665a7c945 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md index 9b48e06fbd2..9a99af84107 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create.md b/docs/examples/1.3.x/server-kotlin/java/users/create.md index 97aad153029..c9b3c8558ee 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md index 84153284065..dfde18e516f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md index 9a2284c493b..45ed56eb53b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/delete.md b/docs/examples/1.3.x/server-kotlin/java/users/delete.md index 893a4d37940..7120f8035ca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md index 664843e32c8..2c3190194a0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/get.md b/docs/examples/1.3.x/server-kotlin/java/users/get.md index 1be96aee11f..43d32f8d1a2 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md index 08ace35a19c..df4964211c1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md index 503dbcb10ab..89c90c8cc88 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md index efe091fe74e..8ea8833c2e0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list.md b/docs/examples/1.3.x/server-kotlin/java/users/list.md index d591bce79e1..0ca79280613 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md index 3d6d205bce0..91b989b6681 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-email.md b/docs/examples/1.3.x/server-kotlin/java/users/update-email.md index d0e9b17c1da..2d29d4cab1f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-name.md b/docs/examples/1.3.x/server-kotlin/java/users/update-name.md index e16f539bdc4..9df5a00fd36 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-password.md b/docs/examples/1.3.x/server-kotlin/java/users/update-password.md index c94e6dd77b6..2d2f87ea024 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md index 8c9a26d6093..ac7796c0415 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md index 4a2accb7933..007d78dfd37 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md index b12a5d8e4f0..655ab79f5b6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-status.md b/docs/examples/1.3.x/server-kotlin/java/users/update-status.md index 012142cad7b..d4c753e8d88 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md index e18d4ce13b2..9af377fed56 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md index a219cb8196b..5a207d31f28 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md index 33846f1dba6..6ba8071254c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md index 60aa4f26046..76e71066c56 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md index a16622a526c..ac82578c8e1 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md index dbbba1d98f6..eba56b21df7 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md index 07861109b65..98b112b9122 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md index 1fb002ae240..95f54906520 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md index daddd758430..45ba397f94e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md index 132a5da23b2..6420e6afdb5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md index 1127bbc2b28..0c9216f9238 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md index 3de89a503ea..e5fb2264c4f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md index df92d9e9285..36ea44466bb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md index 0ed51d30c21..7e0bb4905c2 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md index 9c823bb6ac9..334f0fe1726 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md index 6226269a1f1..542ddcc739a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md index 1b676c1ad52..d0b04380e23 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md index bd3d28e3b82..61a3289047d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md index 3ed06279069..4f6562528d8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md index e73e555c602..288750a4712 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md index e9f6eb2919f..7dddeea92c0 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md index c3413ac6442..3c56eb7ca99 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md index cd1ea0c7b37..2e27b70a011 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md index a81c59ae60b..e095c7b602c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md index 09cacde6f89..fd2e0c61497 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md index ba46fb0d292..c42703969de 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md index c43aabcfe3a..2fc413de2bc 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 22de12384d1..5a4e85568ea 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md index 9ba70cf2fec..c48d2d49a23 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d410244ec81..9fe6efab3aa 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md index 95e5977b126..58bc1034015 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md index 292f31f5254..081557e950c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 99008a479b2..e951b71b149 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md index 68149625028..c26e5d37cc9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md index 42b3dbe7e16..d635002a12f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 57b2ff66a73..eafa05417a9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md index f941b82c9e6..daa18f083b7 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 22ebc4a5c76..a9a65f86a9b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md index c5d3d52853f..99930484773 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md index 8cd0731da13..238c73b7cc3 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md index b70e39e4e9e..15c83e2cb8a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md index fef7a45cc40..9dddae53fcc 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md index 676359331af..4fb66423e09 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md index 2bf047fe4eb..361218721bc 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md index 59bd149224f..e54aa398973 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md index f927901f098..34d855ce238 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md index 4bba2dfa163..d3840b13b5c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md index 76ff9a1962f..e7127649cd8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md index 8bacaa57c2f..da5761f085f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md index 2d588dee731..d91f52b1116 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md index 5584d4dd878..1453534929d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md index c0a5da53391..df870992470 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md index f563c431a72..8035796f102 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md index c081013fa03..df52ef1ab6e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md index e8f659ebf35..a51586d4c3c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md index 6ffece0bd53..d8c0090988b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index b74ad795471..ab0c1e23ac1 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md index f6ccffef9d1..57aba213726 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 013e437db5a..e50375fa607 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md index 10ff4c4b4c0..4abc8c5e8e8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md index 39ca4939ce0..ace50c67025 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md index ece9f22c76a..c13303e9bb5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md index ed9ec055e8e..951dba57236 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md index e881b01fa61..2bf2f0c3184 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md index 5ebe893ed58..7f443013820 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index 9c0ffecae65..b04e76c0dd5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md index c8db1709547..ff99f7d068d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md index 71d9bde8487..03ab3c4a747 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md index d465a8dc3f4..a8c9dce5f5f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md index 62f9d1addd3..fafed65c354 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md index c94c3fa5b8b..695fdc7f290 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md index 62bce1fde01..13f476127f5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md index 6b23614d113..5b8bd6c6337 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md index fa10f995ed8..4c0d91081fb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md index 5187ba44195..57728a9ddd4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md index f0fe4a3d860..9d3c95e173e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md index f12095b5a89..b5a13223800 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md index 4653e61f0e8..bd21f502454 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md index 929a003a18c..517a3499af3 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md index ce42276921b..ee73353aa09 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md index 9261ab897ad..4c47e68d91a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md index 3ec2c810eef..c9cfa4be08e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md index 5378c79dbcb..06f1bdfdf18 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md index 0e777cd1fe7..abe677c0347 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md index 10e74534f4b..729ade920cd 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md index a5f4f0d325a..6aeafdc2580 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md index 14b147384f5..8c0a93fc7a8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md index 1e0f3bbe5f3..e9990d56d11 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md index f8aed9d421d..126982018b6 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md index aed06cd7a6c..82c2c19fd21 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md index bd29d431c4c..a271566de16 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md index e387fe0d951..d858d2189f2 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md index 7aca9dd0080..daa7fb646eb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md index 8e719142bb0..496c7216f25 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md index f4163517058..31c83bd8919 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md index b55241d8f27..d7653c3a7d7 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md index fb634ec63c6..1446de4c16d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md index bf4629d259a..11c9b7a6211 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md index f204168bc4d..b0087b6fb28 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md index 35f3bb9bd67..8a9645a42bb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md index b547be9aa57..a790b949c46 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md index 1d84651fea4..25bf0e1d0b2 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md index bd9ad1825b4..bcaad832cd8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 5d3258335eb..b1e5671fb3b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md index e0f2ae3c6b0..1a9a2585ca4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md index 626d38133e7..cd8276e49b4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md index 6457056d70e..061a5c82cda 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md index 437b1c3fe92..6ed17be85e9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md index 27d73ffd070..1adf94ca061 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md index 1bdf5e48932..354e3bf94c4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md index 3730a052987..a70b731423a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md index dabf805e8b9..c6a2639376a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md index 0c7fcc137c3..c2abb7b3386 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md index 6c3c1fb4aea..67bcc5d5b41 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md index 372416ed12f..4b75e70d3e3 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md index 4b23cfc9c6f..691acb10550 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md index 211713c7b66..0f98d900a12 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md index 8c4c7bdaac8..b6bce3ace32 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md index 5243ed74cc5..af1c301c1cf 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md index 3de3b5460e8..b0117be004d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md index 3d7fb9ab269..8b85210d15f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md index 44f444bc100..80184f0afda 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md index 9e080a13467..5b0105bf712 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md index 16e73e48849..397a9b794ad 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md index c015a772c87..ab0b1c56328 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md index 4f2bed38002..bfb8ea94063 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md index 1bfcf07f7a5..7af89d21663 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md index 402aeb1bebc..a6f43f8f189 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md index e9eae80f0b0..0da1afdfc1b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md index aa10ca58fd0..43196f1d908 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md index e9ea1f18ab1..88a020c7377 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md index 7fa6bd837c2..e9dc0d91eba 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md index d717c371bcd..d27c8243191 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md index 62fc9254150..d70eafb4009 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md index 438363aed32..81a1f9960f9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 977782ce3cb..15d101773a8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md index 6d6451f3769..86e13b9f1bd 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index c50b2c1da46..cadb580527d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 708935c970c..979cc2a01b1 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index d49f7db4717..b2164d5aa84 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md index aa006fb0db2..e5cabe92b70 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md index ae319d8cd82..fcc5e355ecf 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md index f3a0264aa13..7b96b242135 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md index 5c0070c027b..580031ecac6 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md index 30ee8f3d7a0..2e0013f0ab4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md index 564489c398d..a7ffd650bc6 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md index fd7e4b7a1b9..f55878912ea 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md index 691007588ec..5b3111f5529 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md index 316889e8943..0059c2dc68c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md index 1d7e950425b..fd9a7716d57 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md index e973a26e524..3a74a207570 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md index b4f97bbcab5..ea16acf33bd 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md index c6dfaefd2f0..4adad691848 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md index 1d46c7a8fcd..b60d5656208 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md index f96158faa99..b6bfe65a9ae 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md index 909803bd94d..fe6bcf39c09 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md index 073dd6640a8..3d243c0db7c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md index 127035ca488..c05713d316f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md index 5899ed360f5..1966d5d6d05 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/get.md b/docs/examples/1.3.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md index b46500fd3c9..b2e638c28b6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md index f680d1c03a5..efaa37d6408 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md index 3bdfc04e5f9..c9b81852e1c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md index 8b602d434fa..1f3b67b47b8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md index a96e89853b6..6500f99b46d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md index b0dfbb11dfb..c385feacdb3 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md index 2c0672dd999..8d6a688d898 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md index 8016aac6000..69f652b27e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md index 8eab99aa35e..398b2246b10 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md index 699148f882d..8bab7e543f2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md index c7e6fe9b7fa..f024f13d843 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md index d8cb42aafdc..0f58e004494 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md index 661afa151aa..defbd30d102 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create.md index 8600f34b825..a014f1384a9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/update.md b/docs/examples/1.3.x/server-nodejs/examples/functions/update.md index d8bf23f5a9b..c6b35f2459a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md index 6f9bed84260..f8f2da769c8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md index 35cd4060cc1..0f30d77e99d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get.md b/docs/examples/1.3.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/get.md b/docs/examples/1.3.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md index 34d843d934a..4f5711ac642 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/create.md b/docs/examples/1.3.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md index 0ac9e95ff1b..2d24bdc6e09 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/get.md b/docs/examples/1.3.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/list.md b/docs/examples/1.3.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md index 26551fe0b64..93b0f23aba6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md index 962e18f1689..660c29859d8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md index eeeed6c7ebe..55352df9245 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create.md b/docs/examples/1.3.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/delete.md b/docs/examples/1.3.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/get.md b/docs/examples/1.3.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list.md b/docs/examples/1.3.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md index f08a5990f40..a5e98a03356 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/create-recovery.md b/docs/examples/1.3.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.3.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/create-verification.md b/docs/examples/1.3.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.3.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/delete-session.md b/docs/examples/1.3.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.3.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/get-prefs.md b/docs/examples/1.3.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.3.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/get-session.md b/docs/examples/1.3.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.3.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/get.md b/docs/examples/1.3.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.3.x/server-php/examples/account/get.md +++ b/docs/examples/1.3.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/list-logs.md b/docs/examples/1.3.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.3.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/list-sessions.md b/docs/examples/1.3.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.3.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-email.md b/docs/examples/1.3.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-name.md b/docs/examples/1.3.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-password.md b/docs/examples/1.3.x/server-php/examples/account/update-password.md index 47e4c96695a..8bd4b4915c9 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-phone.md b/docs/examples/1.3.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-prefs.md b/docs/examples/1.3.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-recovery.md b/docs/examples/1.3.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-session.md b/docs/examples/1.3.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-status.md b/docs/examples/1.3.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-verification.md b/docs/examples/1.3.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-image.md b/docs/examples/1.3.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-collection.md b/docs/examples/1.3.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-document.md b/docs/examples/1.3.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-index.md b/docs/examples/1.3.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md index 4840a669374..97b00cda2fd 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create.md b/docs/examples/1.3.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-document.md b/docs/examples/1.3.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-index.md b/docs/examples/1.3.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete.md b/docs/examples/1.3.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-collection.md b/docs/examples/1.3.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-document.md b/docs/examples/1.3.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-index.md b/docs/examples/1.3.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get.md b/docs/examples/1.3.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-collections.md b/docs/examples/1.3.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-documents.md b/docs/examples/1.3.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list.md b/docs/examples/1.3.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md index 9e8b8699e1d..13b25b52c43 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-collection.md b/docs/examples/1.3.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md index 26214fb785c..efbb8713276 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-document.md b/docs/examples/1.3.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md index 7278881e3b9..ba670046c3e 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md index a77211b0f76..df0f6409ddb 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md index e73793e1fdf..9d27fa196fa 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md index 1cff205200a..795f2cfd448 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md index bb49d89c399..0f42ca3f407 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md index b68025b84c8..078d0338ca7 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md index 775d0fa2bec..0c821fe9d07 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md index 6d4845e7eb3..a14bde5d2db 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update.md b/docs/examples/1.3.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-build.md b/docs/examples/1.3.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md index a556cace24d..f23873acb8f 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-execution.md b/docs/examples/1.3.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-variable.md b/docs/examples/1.3.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create.md b/docs/examples/1.3.x/server-php/examples/functions/create.md index 22744b7584a..30df185602c 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/delete.md b/docs/examples/1.3.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get-execution.md b/docs/examples/1.3.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get-variable.md b/docs/examples/1.3.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get.md b/docs/examples/1.3.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-executions.md b/docs/examples/1.3.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-variables.md b/docs/examples/1.3.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list.md b/docs/examples/1.3.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/update-variable.md b/docs/examples/1.3.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/update.md b/docs/examples/1.3.x/server-php/examples/functions/update.md index 072ff5cdbb5..05636d40bfe 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/update.md +++ b/docs/examples/1.3.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/graphql/mutation.md b/docs/examples/1.3.x/server-php/examples/graphql/mutation.md index 5622f7f2699..f75d53e86c4 100644 --- a/docs/examples/1.3.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-php/examples/graphql/mutation.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/graphql/query.md b/docs/examples/1.3.x/server-php/examples/graphql/query.md index 3ca1d940c49..369dcbd47e5 100644 --- a/docs/examples/1.3.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-php/examples/graphql/query.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-cache.md b/docs/examples/1.3.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-d-b.md b/docs/examples/1.3.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-time.md b/docs/examples/1.3.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get.md b/docs/examples/1.3.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get.md +++ b/docs/examples/1.3.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/get.md b/docs/examples/1.3.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/get.md +++ b/docs/examples/1.3.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-continents.md b/docs/examples/1.3.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-countries.md b/docs/examples/1.3.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-languages.md b/docs/examples/1.3.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/create-file.md b/docs/examples/1.3.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/delete-file.md b/docs/examples/1.3.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file.md b/docs/examples/1.3.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/list-files.md b/docs/examples/1.3.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/update-file.md b/docs/examples/1.3.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/create-membership.md b/docs/examples/1.3.x/server-php/examples/teams/create-membership.md index 34f642ea11e..d87d3b894db 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/create.md b/docs/examples/1.3.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/create.md +++ b/docs/examples/1.3.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/delete.md b/docs/examples/1.3.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/get-membership.md b/docs/examples/1.3.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md index 0436f969629..211373dd8aa 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/get.md b/docs/examples/1.3.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/get.md +++ b/docs/examples/1.3.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/list.md b/docs/examples/1.3.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/list.md +++ b/docs/examples/1.3.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md index 59239975519..c744578712f 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-name.md b/docs/examples/1.3.x/server-php/examples/teams/update-name.md index e88a31862da..09c9b6f928d 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md index 4d044cce235..fd42914c458 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create.md b/docs/examples/1.3.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create.md +++ b/docs/examples/1.3.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/delete-session.md b/docs/examples/1.3.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.3.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/delete.md b/docs/examples/1.3.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.3.x/server-php/examples/users/delete.md +++ b/docs/examples/1.3.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/get-prefs.md b/docs/examples/1.3.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.3.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/get.md b/docs/examples/1.3.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.3.x/server-php/examples/users/get.md +++ b/docs/examples/1.3.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list-logs.md b/docs/examples/1.3.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list-memberships.md b/docs/examples/1.3.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list-sessions.md b/docs/examples/1.3.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list.md b/docs/examples/1.3.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list.md +++ b/docs/examples/1.3.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-email.md b/docs/examples/1.3.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-name.md b/docs/examples/1.3.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-password.md b/docs/examples/1.3.x/server-php/examples/users/update-password.md index de5ec7d1320..040e9e45993 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-phone.md b/docs/examples/1.3.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-prefs.md b/docs/examples/1.3.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-status.md b/docs/examples/1.3.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/create-recovery.md b/docs/examples/1.3.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.3.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/create-verification.md b/docs/examples/1.3.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.3.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/delete-session.md b/docs/examples/1.3.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.3.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/get-prefs.md b/docs/examples/1.3.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.3.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/get-session.md b/docs/examples/1.3.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.3.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/get.md b/docs/examples/1.3.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.3.x/server-python/examples/account/get.md +++ b/docs/examples/1.3.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/list-logs.md b/docs/examples/1.3.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.3.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/list-sessions.md b/docs/examples/1.3.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.3.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-email.md b/docs/examples/1.3.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-name.md b/docs/examples/1.3.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-password.md b/docs/examples/1.3.x/server-python/examples/account/update-password.md index 955ada651d6..7881c472f3f 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-phone.md b/docs/examples/1.3.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-prefs.md b/docs/examples/1.3.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-recovery.md b/docs/examples/1.3.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-session.md b/docs/examples/1.3.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-status.md b/docs/examples/1.3.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-verification.md b/docs/examples/1.3.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-image.md b/docs/examples/1.3.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-collection.md b/docs/examples/1.3.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-document.md b/docs/examples/1.3.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-index.md b/docs/examples/1.3.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md index 4f69ecae003..041d8f20057 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create.md b/docs/examples/1.3.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-document.md b/docs/examples/1.3.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-index.md b/docs/examples/1.3.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete.md b/docs/examples/1.3.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-collection.md b/docs/examples/1.3.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-document.md b/docs/examples/1.3.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-index.md b/docs/examples/1.3.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get.md b/docs/examples/1.3.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-collections.md b/docs/examples/1.3.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-documents.md b/docs/examples/1.3.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list.md b/docs/examples/1.3.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md index e6a7d55fb6b..e9cd95c7830 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-collection.md b/docs/examples/1.3.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md index 5c792573ae6..de0ac103e97 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-document.md b/docs/examples/1.3.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md index 8148b012fd3..b67549292b6 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md index 65ef26f274f..79c491ecbe8 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md index efbf1ad04fe..9c34b6f8f27 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md index 61c74b86751..8ab1cd1d28a 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md index 7d5a35d749d..4bd7899ad81 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md index 7c426a61e3a..cc3b6207341 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md index 2ee236e6243..f59ee07ad98 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md index 119c787d2d8..a0b2e04b457 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update.md b/docs/examples/1.3.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-build.md b/docs/examples/1.3.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md index d29c43f2583..859cc3745df 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-execution.md b/docs/examples/1.3.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-variable.md b/docs/examples/1.3.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create.md b/docs/examples/1.3.x/server-python/examples/functions/create.md index fa6f46ddc14..e9558ad7139 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/delete.md b/docs/examples/1.3.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get-execution.md b/docs/examples/1.3.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get-variable.md b/docs/examples/1.3.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get.md b/docs/examples/1.3.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-executions.md b/docs/examples/1.3.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-variables.md b/docs/examples/1.3.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list.md b/docs/examples/1.3.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/update-variable.md b/docs/examples/1.3.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/update.md b/docs/examples/1.3.x/server-python/examples/functions/update.md index 3960054f3af..a03fd2c02e9 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/update.md +++ b/docs/examples/1.3.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/graphql/mutation.md b/docs/examples/1.3.x/server-python/examples/graphql/mutation.md index 24226a5a013..9f43d0e5d1c 100644 --- a/docs/examples/1.3.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-python/examples/graphql/mutation.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/graphql/query.md b/docs/examples/1.3.x/server-python/examples/graphql/query.md index 8e1597c7596..a7315f8d317 100644 --- a/docs/examples/1.3.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-python/examples/graphql/query.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-cache.md b/docs/examples/1.3.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-d-b.md b/docs/examples/1.3.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-time.md b/docs/examples/1.3.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get.md b/docs/examples/1.3.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get.md +++ b/docs/examples/1.3.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/get.md b/docs/examples/1.3.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/get.md +++ b/docs/examples/1.3.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-continents.md b/docs/examples/1.3.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-countries.md b/docs/examples/1.3.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-languages.md b/docs/examples/1.3.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/create-file.md b/docs/examples/1.3.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/delete-file.md b/docs/examples/1.3.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file.md b/docs/examples/1.3.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/list-files.md b/docs/examples/1.3.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/update-file.md b/docs/examples/1.3.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/create-membership.md b/docs/examples/1.3.x/server-python/examples/teams/create-membership.md index 57682383f79..c8d46aba10e 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/create.md b/docs/examples/1.3.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/create.md +++ b/docs/examples/1.3.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/delete.md b/docs/examples/1.3.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/get-membership.md b/docs/examples/1.3.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md index 40909fa7d88..b2b10fbbb21 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/get.md b/docs/examples/1.3.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/get.md +++ b/docs/examples/1.3.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/list.md b/docs/examples/1.3.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/list.md +++ b/docs/examples/1.3.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md index dcfd7a4e554..e161a33d5c6 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-name.md b/docs/examples/1.3.x/server-python/examples/teams/update-name.md index 929f4ecb489..b890196f110 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md index 4176c622a0b..ef5c5989f72 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create.md b/docs/examples/1.3.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create.md +++ b/docs/examples/1.3.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/delete-session.md b/docs/examples/1.3.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.3.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/delete.md b/docs/examples/1.3.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.3.x/server-python/examples/users/delete.md +++ b/docs/examples/1.3.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/get-prefs.md b/docs/examples/1.3.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.3.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/get.md b/docs/examples/1.3.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.3.x/server-python/examples/users/get.md +++ b/docs/examples/1.3.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list-logs.md b/docs/examples/1.3.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list-memberships.md b/docs/examples/1.3.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list-sessions.md b/docs/examples/1.3.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list.md b/docs/examples/1.3.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list.md +++ b/docs/examples/1.3.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-email.md b/docs/examples/1.3.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-name.md b/docs/examples/1.3.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-password.md b/docs/examples/1.3.x/server-python/examples/users/update-password.md index e79f1255b81..548768b400d 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-phone.md b/docs/examples/1.3.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-prefs.md b/docs/examples/1.3.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-status.md b/docs/examples/1.3.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md index 7ec0a1c0c94..9ea5aa170c0 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md index 5c6d13c7240..dfa4038915d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md index dcd9722e471..37b838f4d25 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md index 3357b2ba20e..788b1d0dc15 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md index b218a536dbe..fecb93ca767 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md index 24092b922b9..9870af6340c 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/get-session.md b/docs/examples/1.3.x/server-ruby/examples/account/get-session.md index 2a8209031d0..09946ae0013 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/get.md b/docs/examples/1.3.x/server-ruby/examples/account/get.md index 61237b22157..616316ca8ca 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md index 8a08eb96bef..22e23f38ee6 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md index a6bcb6816dd..9e267c659dd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-email.md b/docs/examples/1.3.x/server-ruby/examples/account/update-email.md index cd2e10cbbe3..1a871d27908 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-name.md b/docs/examples/1.3.x/server-ruby/examples/account/update-name.md index 2685e88cf60..f7a2bec7878 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-password.md b/docs/examples/1.3.x/server-ruby/examples/account/update-password.md index 6ec26f407af..fb7e3a7327f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md index 103b32c00da..6a0345a6f61 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md index 377c578deaf..aa6dc9804ce 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md index 338a9704f1e..1e0f9c836cc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md index fa901de8576..357bfa9d1d8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-session.md b/docs/examples/1.3.x/server-ruby/examples/account/update-session.md index 31dde2e94fa..2de00124c65 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-status.md b/docs/examples/1.3.x/server-ruby/examples/account/update-status.md index ea7a3857b55..f0e73d13d55 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md index b8f674ec773..32d4c79de07 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md index 2a66b46b926..11fa186f0e1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md index d5bcaa824f8..47c8dc8e076 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md index c995fb2036a..48263bc19df 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md index 7633756425e..17e2cfb0539 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md index 4ea52a60e4b..168cc78d47f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md index 62a8ff855d9..c6218320696 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md index 03a1f14aa97..93b91d13ea3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md index d617d8e3225..17f0467cb1b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md index d27e43ad664..d0c87c64337 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md index 127d2ac2d77..2aebb09856f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md index 8177fc4b3b8..e6d12497214 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md index c7e1aac86be..38047e524d4 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md index 36f8ee06d41..1fe0f0c689f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md index 771d281ccf5..6da9f12caed 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md index 5488e36f74a..68fccf90ca3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md index 40649c25f8f..d17eef4f46d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md index ef9e0feba52..c0daf8a4ae9 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md index 573ab10ddcc..de31af211fc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md index 9901c84b020..4b4c95b7c10 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md index 475421fe537..03486d76952 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create.md b/docs/examples/1.3.x/server-ruby/examples/databases/create.md index 1ce19d31250..8054c37fef1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md index ae2e32d8bd0..55013151523 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md index f118667b6ed..779865a67e1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md index 0b7baa89ede..b83d2a38a88 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md index 829e6061354..fb30a95c642 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete.md index 7e0c4211f16..beeca37e8a7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md index 525c8f14cd5..653a4280542 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md index 897e40d1094..b3251fb7a69 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md index d5853aba563..9a4e9b7c01a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md index 3217507541a..1f7d3b61551 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get.md b/docs/examples/1.3.x/server-ruby/examples/databases/get.md index ced51d6ad12..93b171122f8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md index 1b57bda217c..5a07c9a6352 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md index 3d646c47e72..c707b3faf77 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md index 6f57bb150cf..da14516505f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md index d64b3bfc684..c6d42be1eaa 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list.md b/docs/examples/1.3.x/server-ruby/examples/databases/list.md index 84baa108a38..628f44c7fca 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md index 7a7f01a8541..dfd0d558fbd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md index eee40585313..ab421153cce 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md index c9f9aa759be..b5e6d092d42 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md index dbe1b0d71aa..0b5b2a07caf 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md index de2d4c0749e..f172b39a327 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md index e248a5bcf7e..2ffaef300fb 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md index 555355d6cb6..b2984c21bd3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md index 154daf330ec..b37f45c79e2 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md index a6fe4d95bcf..cd563df3dbf 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md index 9c51daa3a59..3f20382b11b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md index e5f2f8f09db..ecd9fcbce2b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md index da21dcbfb0c..99a6f7952cc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update.md b/docs/examples/1.3.x/server-ruby/examples/databases/update.md index 0900ab34286..9e67595cbc7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md index 9c7397bf269..6c9ad31fd0c 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md index 734625f449e..4cb56c9ad86 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md index 97f4d74ba15..3dc5e844e71 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md index 003fb4743a2..1340c1a3794 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create.md b/docs/examples/1.3.x/server-ruby/examples/functions/create.md index 3f9b84d60e2..0ee3958085a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md index 64feea1370e..00c85f50a1b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md index 598e6941416..191796186d8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/delete.md b/docs/examples/1.3.x/server-ruby/examples/functions/delete.md index 48ea5c7a737..c96a2621e65 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md index c19163e7f5c..fa1bbc08be3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md index 3deee915740..52e46af41ac 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md index 835fc30d81b..b023e3653be 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get.md b/docs/examples/1.3.x/server-ruby/examples/functions/get.md index cfcf8411e5a..76897965e5b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md index 539301c4bba..5ec1f5ba313 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md index c0c1f46cf16..797817ad4f5 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md index b679da2d8b9..b5fd2b0aafd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md index 4e5bfab8911..196fcfe3cd7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list.md b/docs/examples/1.3.x/server-ruby/examples/functions/list.md index 2cc71a5c046..bf27f73cf94 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md index c9d9f49d63b..a9f039cfc64 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md index 28d7651a46f..3418454c276 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/update.md b/docs/examples/1.3.x/server-ruby/examples/functions/update.md index 8503a507246..0850e233721 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md index 234dfe62021..a22fc7846ad 100644 --- a/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/graphql/query.md b/docs/examples/1.3.x/server-ruby/examples/graphql/query.md index 1304213caf1..a8c967ed6b8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md index b1f16bb0b93..32646a5a0b3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md index 4fb77ec68d4..a4b43daf926 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md index 3317acd6fa7..6b42bbaf6a1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md index a4c5c7016bf..915731e056a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md index 8edb310a5e2..ea585cacb79 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md index 74823fcd6ce..253419c8bdd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md index 53b7f33cfe0..1902a930c83 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md index 3a85bd3e12b..293c866762f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-time.md b/docs/examples/1.3.x/server-ruby/examples/health/get-time.md index 9956a33d1f6..e19bf05e792 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get.md b/docs/examples/1.3.x/server-ruby/examples/health/get.md index d23a9ad6755..07fc372f3b3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/get.md b/docs/examples/1.3.x/server-ruby/examples/locale/get.md index e5922f4e7f5..b2abf36f19f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md index 0416baf77a4..1a086d9a2fe 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md index 7faa85143cb..962387167f1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md index 1194f27e0c7..9e842f2121d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md index b78fba47fd5..eb093479b7a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md index 14b2722ae82..1e20bdbbb28 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md index 4d88bc47232..7b919494b32 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md index d6299db79f9..459508e3116 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md index 851ed57a480..fd29996f730 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md index 3fd51bef5e4..be83f475f27 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md index 4d0e3fcbffc..6ea4059bbab 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md index ba88debc618..ca0905b463a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md index a22f4cb68fc..77007f6b192 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md index c5b7c06db1c..c0e2b80931e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md index c05770b9999..7689278e56e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md index a33835c9e25..f5faa37e548 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md index 7009d0a105b..46eac9a2602 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md index 196831a1b3f..936b6eaeeb3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md index f990ab3566a..d4c791f4db6 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md index 8108d3cc28a..6d26d9ee482 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md index 30f343c5d86..1ef600b3716 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/create.md b/docs/examples/1.3.x/server-ruby/examples/teams/create.md index d2dff77f41e..66127ecd340 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md index d41175d4a83..551ee62843d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/delete.md b/docs/examples/1.3.x/server-ruby/examples/teams/delete.md index c1b9b8d8bb1..94a9d4bba74 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md index b06101dd84c..d95348801b0 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md index d4317e8dba1..1f5a376eca4 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/get.md b/docs/examples/1.3.x/server-ruby/examples/teams/get.md index 7cee601b56d..a6c2884d2c8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md index 885a857d720..4b523aa73a6 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/list.md b/docs/examples/1.3.x/server-ruby/examples/teams/list.md index e8b581fd910..fd8385bc71e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md index a39ef030f9c..0a240b5bac9 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md index aaf52cbb9ca..a1f8252899a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md index 41766d68729..94370750355 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md index 7656edcd8bb..0ca205d4953 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md index 9c4fc9ea977..35445044c20 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md index 700fe49d121..50e11db1903 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md index a7f9c4f7a20..3f7a61994bc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md index d7d8ba19333..a793d887c84 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md index 2d37fc3bfa1..4b7c26629bb 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md index cec9dbb277a..50f52b9f12f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md index 94a7af53d2a..e8bf8cf0597 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create.md b/docs/examples/1.3.x/server-ruby/examples/users/create.md index b04fd5025f4..7d0cf8b48a7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md index 3b7918ca1f2..118747affcb 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md index 6772e3fe10d..7d24d4442d2 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/delete.md b/docs/examples/1.3.x/server-ruby/examples/users/delete.md index 62585db404c..b50e5a921d2 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md index a4c4764bef6..a401ae11b0a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/get.md b/docs/examples/1.3.x/server-ruby/examples/users/get.md index a731ada955f..44f68d01382 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md index fa8586eeffa..45a974e497e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md index 693e6b9f2c2..c84277357ba 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md index 765789a0da7..14c281f4e1b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list.md b/docs/examples/1.3.x/server-ruby/examples/users/list.md index 8d5daf21f81..eb067643e24 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md index 72ec0195dc1..530c544bead 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-email.md b/docs/examples/1.3.x/server-ruby/examples/users/update-email.md index a3a7dbde345..21ece40ff07 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-name.md b/docs/examples/1.3.x/server-ruby/examples/users/update-name.md index fbf00bb51be..7b1d0d65d32 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-password.md b/docs/examples/1.3.x/server-ruby/examples/users/update-password.md index 7310a2a0cc7..190576fbec1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md index 995a32a4bfe..be9e323ec11 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md index f1e74b4a9e5..e78a3d5ff34 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md index 9845cdf0d51..91eaf25a253 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-status.md b/docs/examples/1.3.x/server-ruby/examples/users/update-status.md index 8a82948c76a..9f7372ede49 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md index cdeba917008..26ced5985bf 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md index fdb0e53765f..06cc974d663 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/create-verification.md b/docs/examples/1.3.x/server-swift/examples/account/create-verification.md index 63a6a7ac94f..1abcc4abb21 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/delete-session.md b/docs/examples/1.3.x/server-swift/examples/account/delete-session.md index de9f736f9ce..e5c88080e93 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md index 0f58c600d25..971f34d524e 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md index ce72d7c340d..be9acecd9af 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/get-session.md b/docs/examples/1.3.x/server-swift/examples/account/get-session.md index e1b48b5aa50..3c5092f3be6 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/get.md b/docs/examples/1.3.x/server-swift/examples/account/get.md index 060b6a4a275..4d40b4b4748 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/get.md +++ b/docs/examples/1.3.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/list-logs.md b/docs/examples/1.3.x/server-swift/examples/account/list-logs.md index ee2e8bb7e6d..762062d1062 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md index 2baf5836a2a..c3b2b0aed0a 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-email.md b/docs/examples/1.3.x/server-swift/examples/account/update-email.md index 4041da0222f..74244ea9d79 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-name.md b/docs/examples/1.3.x/server-swift/examples/account/update-name.md index 440b1b6c245..cd4be44741a 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-password.md b/docs/examples/1.3.x/server-swift/examples/account/update-password.md index 91d55db20f0..82c03d73dbd 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md index 29052c573a9..22cc1e86586 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-phone.md b/docs/examples/1.3.x/server-swift/examples/account/update-phone.md index 645b6fc840b..9f215a9fe13 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md index 520f9d5fd42..05a1b445ae8 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md index 92825cae559..ba8d1fa1a0c 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-session.md b/docs/examples/1.3.x/server-swift/examples/account/update-session.md index 84229182aaa..d0002b6e497 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-status.md b/docs/examples/1.3.x/server-swift/examples/account/update-status.md index 96b94d63a1d..0f3e22b4011 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-verification.md b/docs/examples/1.3.x/server-swift/examples/account/update-verification.md index b8e925783eb..c50bf1b88d2 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md index df3a99c67a6..b566d6ca059 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md index ce4382d77b0..5b47aab1ab1 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md index 36c77218b74..77803cd5a07 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md index 849ec48cea1..16e566d9e1e 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md index d457976f549..2fd24c5c7d5 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md index 74d8d956db3..9062ca5ca73 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md index 537bfb5b43f..c8d7fba5be5 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md index 11eae088e7a..1be49bb0d44 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md index ff9172bb29a..b4bb744eee0 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md index 26020fb88fa..119c5ec830e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-document.md b/docs/examples/1.3.x/server-swift/examples/databases/create-document.md index b76eab7c708..5985560b67f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md index cddebec6b24..690a49b68a1 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md index dc56bff3950..b08ccbeb831 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md index ec01499e988..851afc2ac1a 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-index.md b/docs/examples/1.3.x/server-swift/examples/databases/create-index.md index 03cc91b0b44..2271a9898ef 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md index eeea1cb01bf..72cd31c5a83 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md index 948aa2ad376..c03c555f52f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md index adb7cbb1fc4..5cbf08e2a4f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md index 0d3e65442b8..daa04767a3f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md index 747a6c73673..94eefa1b610 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create.md b/docs/examples/1.3.x/server-swift/examples/databases/create.md index 5e4abf88a03..6578c5783bf 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md index 0fc94705708..a9c778b34c3 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md index b00916534e3..f410170aa84 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md index 185c33d4102..24dd564236c 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md index 0ad4ac3442a..fa5acc635ab 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete.md b/docs/examples/1.3.x/server-swift/examples/databases/delete.md index 48b687e237f..01be19d136e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md index e0ea280f568..4d4697052b7 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md index 39c36b3d617..a55294591a9 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-document.md b/docs/examples/1.3.x/server-swift/examples/databases/get-document.md index 2a12e1140ac..2d2768ca2c3 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-index.md b/docs/examples/1.3.x/server-swift/examples/databases/get-index.md index e69263346ae..69b694d0724 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get.md b/docs/examples/1.3.x/server-swift/examples/databases/get.md index 805fa3ee23b..9fa4abca507 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md index 475da0a7124..71fdcbc9971 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md index 8e451ca8a00..bf150e8596e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md index 24bb8597614..0ca2d5ff485 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md index 145c02ddcc4..be16b25a318 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list.md b/docs/examples/1.3.x/server-swift/examples/databases/list.md index fe7a54df444..45796c04c02 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md index 73b68190ba0..90dd5f748ee 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md index 807c5659f9c..d2969b4a4de 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md index 4ec71bbcf03..5f4444a08b4 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-document.md b/docs/examples/1.3.x/server-swift/examples/databases/update-document.md index 56eed000828..872711afcf3 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md index 11608e1fcab..3f72ca75a68 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md index fce99d4d03a..4a0560224ca 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md index 6cc8457d008..72393b3955e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md index cde600aad9f..56fcead9676 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md index 7d70495c27c..3f2e2e1b8a0 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md index e89c3658c21..f39630217b2 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md index 40ab7baa48b..6c8263674ca 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md index ef9198e3bb5..3adb9f83930 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update.md b/docs/examples/1.3.x/server-swift/examples/databases/update.md index 8e14f080094..b9185e6aaeb 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-build.md b/docs/examples/1.3.x/server-swift/examples/functions/create-build.md index 8419bf69500..2c469e5ea69 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md index d24359e73bd..6b4527852a7 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md index 0354bf54883..1454b4e11a5 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md index f2613111929..914f189284e 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create.md b/docs/examples/1.3.x/server-swift/examples/functions/create.md index 5370c789fa1..c2e98b17e1c 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md index 228f9f62e23..378e1f35aa8 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md index 410cffe13c2..55e3d4a91f2 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/delete.md b/docs/examples/1.3.x/server-swift/examples/functions/delete.md index bee774e61b6..67b2f0332cf 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md index 0a463c41213..aba9a5084ab 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md index 7af8bd5906f..c8ec6c1aca5 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md index f2fa61b9034..f8acd3dda4f 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get.md b/docs/examples/1.3.x/server-swift/examples/functions/get.md index c5ba24ae266..aead1667f2b 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md index 652620bf401..c2c32eaa346 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md index fa32172cbdb..26536b7e034 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..c7de59bed3d 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md index d13c752254d..abf0f514be8 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list.md b/docs/examples/1.3.x/server-swift/examples/functions/list.md index 81363f17ff7..d04ab677f3f 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md index b0f4fc23c43..1e81e41286e 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md index 0eb5b2e9760..2ce5b597ea5 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/update.md b/docs/examples/1.3.x/server-swift/examples/functions/update.md index 3612a7c46df..ebbc92877bc 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md index db869d48c93..f2a0460e28b 100644 --- a/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/graphql/query.md b/docs/examples/1.3.x/server-swift/examples/graphql/query.md index 5e97508be50..58fe1041c45 100644 --- a/docs/examples/1.3.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..2c45f7a619a 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-cache.md b/docs/examples/1.3.x/server-swift/examples/health/get-cache.md index a682d63a6f6..8d54eede9c7 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md index 81645497b5c..e115eee2add 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md index 71f4dcfc436..f9490918e43 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md index d6bdf767564..2f412b9da15 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md index 7580e46da17..6fc521baef1 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md index 431a5a031c9..42f1de37fea 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md index ee807980bba..276b1635ae7 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-time.md b/docs/examples/1.3.x/server-swift/examples/health/get-time.md index f6d66d950a9..7b4bbb3dee8 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get.md b/docs/examples/1.3.x/server-swift/examples/health/get.md index 828f3453e0c..179b9694a2f 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/get.md b/docs/examples/1.3.x/server-swift/examples/locale/get.md index 5c5aee4cb4f..99df3ebbd11 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md index 8cd7964b639..d3b8a66262e 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md index a787e7b7222..a02f72cd7af 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md index cf16d2d0b29..2d4d7ef0068 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md index 32d5901e37e..ba769689a3e 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md index 6b1daa7422c..2211e1855fa 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md index 72c5649aaea..c8656709532 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md index d3f91ab7af0..80ffc45decc 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/create-file.md b/docs/examples/1.3.x/server-swift/examples/storage/create-file.md index 45dd245d318..664a54c53ff 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md index 4d41f1c373f..6c407365766 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md index b2168f8ca1a..5d547d82a55 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md index 8a27759e0e9..352aab3412f 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md index 5205e17d436..1784f72852d 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md index f6fbec66546..92fce42694d 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md index 5926bdd959b..10d9c181d18 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file.md index e516242775b..697dc83a16a 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md index a3e92b282e4..c991833cdb1 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/list-files.md b/docs/examples/1.3.x/server-swift/examples/storage/list-files.md index 153a10d27f7..1f0018a150c 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md index d2fd96c33de..f495e5efaae 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/update-file.md b/docs/examples/1.3.x/server-swift/examples/storage/update-file.md index f37202aa300..3a29db869db 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md index a43f2a4fbfe..480ea28ac78 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/create.md b/docs/examples/1.3.x/server-swift/examples/teams/create.md index e4f8c09e576..2e2b7faba06 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md index 25326deba06..2f08c2cf0b3 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/delete.md b/docs/examples/1.3.x/server-swift/examples/teams/delete.md index c0e3d5e898d..104b19cecc3 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md index c399832ec26..c7adc3d0b62 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md index 4a79855f651..8cb4da49623 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/teams/get.md b/docs/examples/1.3.x/server-swift/examples/teams/get.md index 07980d4f480..a100c3d20b5 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md index 57d6ef7d379..31fd6131145 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/list.md b/docs/examples/1.3.x/server-swift/examples/teams/list.md index cdb174c357e..b5aa000dc03 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md index b29bc6e7cb0..d0ee44be8eb 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md index e209ece5eae..0ef80c00cc2 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-name.md b/docs/examples/1.3.x/server-swift/examples/teams/update-name.md index 378d6d1ade4..66196008c72 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md index 142896ad8a7..1d1ffd1d949 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md index 5914c87d968..bdef66e02c6 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md index 4321365b5c3..2e2f17737b2 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md index 2302780c6b7..30033f8b9d3 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md index b856891a7d0..65cd8658f44 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md index c96661377ac..c6c8f41b073 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md index 3a9f70386ef..bfc1ba25e99 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md index dbe923de938..5716295eae6 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create.md b/docs/examples/1.3.x/server-swift/examples/users/create.md index db49c1f77f6..1727ee5acd3 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/delete-session.md b/docs/examples/1.3.x/server-swift/examples/users/delete-session.md index 161e11d2748..694dcdb7924 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md index 71bc2bf8931..a3d02a82030 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/delete.md b/docs/examples/1.3.x/server-swift/examples/users/delete.md index c8762da65ac..883e305527f 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md index 956724d0b3f..149ec000999 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/get.md b/docs/examples/1.3.x/server-swift/examples/users/get.md index a2b3a126f92..83126bd872e 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/get.md +++ b/docs/examples/1.3.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list-logs.md b/docs/examples/1.3.x/server-swift/examples/users/list-logs.md index 20a55b7f50e..71c3f667857 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md index c07287eb46b..089b27da64a 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md index 9f403d8da02..ed3c7677bf9 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list.md b/docs/examples/1.3.x/server-swift/examples/users/list.md index 6b41b200156..59a0e1d44d4 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md index b0649e63f6e..76e0a069b32 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-email.md b/docs/examples/1.3.x/server-swift/examples/users/update-email.md index 892ff0033fa..7d779fcd1f2 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-name.md b/docs/examples/1.3.x/server-swift/examples/users/update-name.md index a5ce6f9cadc..4f0e1118f63 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-password.md b/docs/examples/1.3.x/server-swift/examples/users/update-password.md index fa2de8b93c8..cac1e9c6a2f 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md index f837ffc1670..ea10791ac0f 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-phone.md b/docs/examples/1.3.x/server-swift/examples/users/update-phone.md index f2b8f350dec..465d2613c98 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md index fc4131ea2fa..387d04f82ed 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-status.md b/docs/examples/1.3.x/server-swift/examples/users/update-status.md index f382775b179..c89328d3412 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md index 59c76309e74..a52a17d1d03 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-email-session.md b/docs/examples/1.4.x/client-android/java/account/create-email-session.md index e3e6fdd0070..86fa95f43c0 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-email-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md index c3123860181..5b68aeb7ddc 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md index 0ed43dc2860..a0b4e86b9f4 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md index cb9386a8483..57870eedbbf 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-phone-session.md b/docs/examples/1.4.x/client-android/java/account/create-phone-session.md index df5bc86891d..04918325c3f 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md index 1545d0f82d2..7b7c354fff2 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-recovery.md b/docs/examples/1.4.x/client-android/java/account/create-recovery.md index 5e8584fc359..955fe451ba7 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.4.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-verification.md b/docs/examples/1.4.x/client-android/java/account/create-verification.md index fcea98f66c0..3fc9879f3ae 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create.md b/docs/examples/1.4.x/client-android/java/account/create.md index e08731fd7ca..629374c8a47 100644 --- a/docs/examples/1.4.x/client-android/java/account/create.md +++ b/docs/examples/1.4.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/delete-identity.md b/docs/examples/1.4.x/client-android/java/account/delete-identity.md index 0d92d04616f..f7cdee3b863 100644 --- a/docs/examples/1.4.x/client-android/java/account/delete-identity.md +++ b/docs/examples/1.4.x/client-android/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/delete-session.md b/docs/examples/1.4.x/client-android/java/account/delete-session.md index 28009d014db..345094fcc2e 100644 --- a/docs/examples/1.4.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.4.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/delete-sessions.md b/docs/examples/1.4.x/client-android/java/account/delete-sessions.md index 6bdc840cff0..7be86bea510 100644 --- a/docs/examples/1.4.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/get-prefs.md b/docs/examples/1.4.x/client-android/java/account/get-prefs.md index 9911ad30a43..2b4f47b5046 100644 --- a/docs/examples/1.4.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.4.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/get-session.md b/docs/examples/1.4.x/client-android/java/account/get-session.md index fecb543782a..554bd545983 100644 --- a/docs/examples/1.4.x/client-android/java/account/get-session.md +++ b/docs/examples/1.4.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/get.md b/docs/examples/1.4.x/client-android/java/account/get.md index 2e5f40ad241..d6cf1077f59 100644 --- a/docs/examples/1.4.x/client-android/java/account/get.md +++ b/docs/examples/1.4.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/list-identities.md b/docs/examples/1.4.x/client-android/java/account/list-identities.md index d1f6a48deeb..eeaa3e62d4d 100644 --- a/docs/examples/1.4.x/client-android/java/account/list-identities.md +++ b/docs/examples/1.4.x/client-android/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/list-logs.md b/docs/examples/1.4.x/client-android/java/account/list-logs.md index d2ce790bfe8..8fed6547c36 100644 --- a/docs/examples/1.4.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.4.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/list-sessions.md b/docs/examples/1.4.x/client-android/java/account/list-sessions.md index 7fd587e1ba3..f77b0b387aa 100644 --- a/docs/examples/1.4.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.4.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-email.md b/docs/examples/1.4.x/client-android/java/account/update-email.md index 8034ada87dd..86ea5207c95 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-email.md +++ b/docs/examples/1.4.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md index 0f8f2b3c5ce..58c491f389e 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-name.md b/docs/examples/1.4.x/client-android/java/account/update-name.md index 5940f93ef24..f10172ee8a5 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-name.md +++ b/docs/examples/1.4.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-password.md b/docs/examples/1.4.x/client-android/java/account/update-password.md index d9426322a4c..749e904c6e1 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-password.md +++ b/docs/examples/1.4.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-phone-session.md b/docs/examples/1.4.x/client-android/java/account/update-phone-session.md index 589e4ff5097..ca34b65c1f9 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md index 81785f97c2c..eb0fcbd9af1 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-phone.md b/docs/examples/1.4.x/client-android/java/account/update-phone.md index a8572f911c8..b1680bb6046 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.4.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-prefs.md b/docs/examples/1.4.x/client-android/java/account/update-prefs.md index ffd5ef03b52..6552f1a68cc 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.4.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-recovery.md b/docs/examples/1.4.x/client-android/java/account/update-recovery.md index 7b0f3921763..d6c17cff3fa 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.4.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-session.md b/docs/examples/1.4.x/client-android/java/account/update-session.md index 27b8f00668f..4c40264def7 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-session.md +++ b/docs/examples/1.4.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-status.md b/docs/examples/1.4.x/client-android/java/account/update-status.md index 1e18ded5405..42c0d2dd9df 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-status.md +++ b/docs/examples/1.4.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-verification.md b/docs/examples/1.4.x/client-android/java/account/update-verification.md index d852dbf8382..ba1a2cd5e23 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-browser.md b/docs/examples/1.4.x/client-android/java/avatars/get-browser.md index f0721102367..2382d352d63 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md index 0a733127917..9d3d9c31a3e 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md index e0c1cb6b8a2..af7be8b2263 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-flag.md b/docs/examples/1.4.x/client-android/java/avatars/get-flag.md index a5f47906404..698813bb1c8 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-image.md b/docs/examples/1.4.x/client-android/java/avatars/get-image.md index cdc8ac722b6..903d93f4d1d 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-initials.md b/docs/examples/1.4.x/client-android/java/avatars/get-initials.md index c02490c7344..8c5d1452fb3 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md index 2532f204d83..80d03776ed5 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/create-document.md b/docs/examples/1.4.x/client-android/java/databases/create-document.md index 715e4cdbbe3..0be2e146d84 100644 --- a/docs/examples/1.4.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/delete-document.md b/docs/examples/1.4.x/client-android/java/databases/delete-document.md index 1387f486870..f941418c084 100644 --- a/docs/examples/1.4.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/get-document.md b/docs/examples/1.4.x/client-android/java/databases/get-document.md index b1a7161971a..987a7957c11 100644 --- a/docs/examples/1.4.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/list-documents.md b/docs/examples/1.4.x/client-android/java/databases/list-documents.md index 62dc2c7e291..f4957e7f608 100644 --- a/docs/examples/1.4.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.4.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/update-document.md b/docs/examples/1.4.x/client-android/java/databases/update-document.md index d1ed59de3bd..0f31cb086d9 100644 --- a/docs/examples/1.4.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/functions/create-execution.md b/docs/examples/1.4.x/client-android/java/functions/create-execution.md index 3cce1c37be8..79cf8c11997 100644 --- a/docs/examples/1.4.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.4.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.4.x/client-android/java/functions/get-execution.md b/docs/examples/1.4.x/client-android/java/functions/get-execution.md index 459d74394f2..496dfe61257 100644 --- a/docs/examples/1.4.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.4.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.4.x/client-android/java/functions/list-executions.md b/docs/examples/1.4.x/client-android/java/functions/list-executions.md index c1f982b707b..6b8c37245e1 100644 --- a/docs/examples/1.4.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.4.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.4.x/client-android/java/graphql/mutation.md b/docs/examples/1.4.x/client-android/java/graphql/mutation.md index 262e513bed7..3028bf105ae 100644 --- a/docs/examples/1.4.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.4.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.4.x/client-android/java/graphql/query.md b/docs/examples/1.4.x/client-android/java/graphql/query.md index 4291b4735f9..8215c674be5 100644 --- a/docs/examples/1.4.x/client-android/java/graphql/query.md +++ b/docs/examples/1.4.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/get.md b/docs/examples/1.4.x/client-android/java/locale/get.md index 4d14be6d733..443f5e29b57 100644 --- a/docs/examples/1.4.x/client-android/java/locale/get.md +++ b/docs/examples/1.4.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-codes.md b/docs/examples/1.4.x/client-android/java/locale/list-codes.md index 599070ef779..1e73a6472f2 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-codes.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-continents.md b/docs/examples/1.4.x/client-android/java/locale/list-continents.md index 6abe97a0a02..47d11d7348b 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md index 3c5ca3ae8c5..0f010e71f3e 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md index 81ef94d702d..0ff5e0a14eb 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-countries.md b/docs/examples/1.4.x/client-android/java/locale/list-countries.md index dc0d5f52c4e..754507d56b1 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-currencies.md b/docs/examples/1.4.x/client-android/java/locale/list-currencies.md index 7a327b38ae7..82665375509 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-languages.md b/docs/examples/1.4.x/client-android/java/locale/list-languages.md index 0688614b6df..ad8d092a16b 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/create-file.md b/docs/examples/1.4.x/client-android/java/storage/create-file.md index 732b302f635..88fdd64a10b 100644 --- a/docs/examples/1.4.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/delete-file.md b/docs/examples/1.4.x/client-android/java/storage/delete-file.md index 69a0f0f844b..90e98d3f0c8 100644 --- a/docs/examples/1.4.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file-download.md b/docs/examples/1.4.x/client-android/java/storage/get-file-download.md index 2ab30dce5af..5c92a9b27d1 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md index 483f2fca168..519b03f73b4 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file-view.md b/docs/examples/1.4.x/client-android/java/storage/get-file-view.md index 5614b694a50..376428309b4 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file.md b/docs/examples/1.4.x/client-android/java/storage/get-file.md index 4ae0de0d9ae..61d6e9f03ab 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/list-files.md b/docs/examples/1.4.x/client-android/java/storage/list-files.md index dedfb6c1002..345e43fd14d 100644 --- a/docs/examples/1.4.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.4.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/update-file.md b/docs/examples/1.4.x/client-android/java/storage/update-file.md index 9b4dd922667..92024cfdd61 100644 --- a/docs/examples/1.4.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/create-membership.md b/docs/examples/1.4.x/client-android/java/teams/create-membership.md index 6073f5b035e..145b45d1894 100644 --- a/docs/examples/1.4.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/create.md b/docs/examples/1.4.x/client-android/java/teams/create.md index 263fa57be7b..5a9dd741db2 100644 --- a/docs/examples/1.4.x/client-android/java/teams/create.md +++ b/docs/examples/1.4.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/delete-membership.md b/docs/examples/1.4.x/client-android/java/teams/delete-membership.md index 40f28f0c21e..0babc74b4d3 100644 --- a/docs/examples/1.4.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/delete.md b/docs/examples/1.4.x/client-android/java/teams/delete.md index 5b4c378b5e2..aa7425b365c 100644 --- a/docs/examples/1.4.x/client-android/java/teams/delete.md +++ b/docs/examples/1.4.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/get-membership.md b/docs/examples/1.4.x/client-android/java/teams/get-membership.md index f2f1d99ae0b..f7a6a10d971 100644 --- a/docs/examples/1.4.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/get-prefs.md b/docs/examples/1.4.x/client-android/java/teams/get-prefs.md index 6963cb40cae..ea0c8594a6f 100644 --- a/docs/examples/1.4.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-android/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/get.md b/docs/examples/1.4.x/client-android/java/teams/get.md index 549af20d342..62af7c22012 100644 --- a/docs/examples/1.4.x/client-android/java/teams/get.md +++ b/docs/examples/1.4.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/list-memberships.md b/docs/examples/1.4.x/client-android/java/teams/list-memberships.md index 3da4e33d518..65d1bf6e96f 100644 --- a/docs/examples/1.4.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/list.md b/docs/examples/1.4.x/client-android/java/teams/list.md index b20ad4a2110..a8d4f12d774 100644 --- a/docs/examples/1.4.x/client-android/java/teams/list.md +++ b/docs/examples/1.4.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md index 499251f21f8..1a0748149f1 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-membership.md b/docs/examples/1.4.x/client-android/java/teams/update-membership.md index 6cb334603a1..f64e6dc99b3 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-name.md b/docs/examples/1.4.x/client-android/java/teams/update-name.md index 170ee590151..525cfdf201f 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-prefs.md b/docs/examples/1.4.x/client-android/java/teams/update-prefs.md index a19ad8207e5..f454393c429 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md index cdcf401ed9e..f0d574304d0 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md index ab8d581fd10..e7b438f8cc0 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md index 35e7a6ffd4a..3e1f2e011ac 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md index 51368b53923..88146d07322 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md index 395bfada007..f3bf8145e4d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md index eed6f7a2e21..b87e421f8b4 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md index 12fb9f74e86..8dded67ac3b 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md index 7d73a671dde..70d55639c34 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md index b3dc43ac48d..a7c8f11cac1 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create.md b/docs/examples/1.4.x/client-android/kotlin/account/create.md index c72ae90deff..a78fc611e58 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md index 440333e1cb7..4650d0a995c 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md index a98a28661b2..5e22b533695 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md index c9afbf13457..e90c2a9348e 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md index bd3f81a23fd..01c128266b5 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/get-session.md b/docs/examples/1.4.x/client-android/kotlin/account/get-session.md index d6d6c72eac7..f150d0fb2f7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/get.md b/docs/examples/1.4.x/client-android/kotlin/account/get.md index 4c8f0be9de6..83f7f8789d7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md index 3292b35ff13..c6b73eea184 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md index eb337caec0c..d9f569f3207 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md index cd9f63bc3c4..2969326917e 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-email.md b/docs/examples/1.4.x/client-android/kotlin/account/update-email.md index 85a02425911..dcc9b822b6f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c7286ba6c84..c0e7f408117 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-name.md b/docs/examples/1.4.x/client-android/kotlin/account/update-name.md index 574f4938d87..18b631b1d56 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-password.md b/docs/examples/1.4.x/client-android/kotlin/account/update-password.md index c5338b86945..45ff1b25e68 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md index d3b02e04ce2..39be2c4f5f2 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md index 0314f742230..4dc6c63915b 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md index 76eb8aac5e2..39d420b197a 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md index f16e40ba41f..beb8e6e2dd5 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md index 9682899bcb2..e2f56651164 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-session.md b/docs/examples/1.4.x/client-android/kotlin/account/update-session.md index e9e83d0cb03..74bf0a235eb 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-status.md b/docs/examples/1.4.x/client-android/kotlin/account/update-status.md index f7789ea237f..4637918887d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md index af800c1fc57..de3bf1bfe37 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md index b1b2d081832..9d65c62b1cb 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md index 411e05ae51d..7265ea284c7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md index 1a4b217fa4a..144c95a5c54 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md index 5c882d60186..82cd2166779 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md index 20d8dff13c7..05bdc47199f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md index 70ef9b29091..6b1d95a22a7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md index 92b17e11639..8d6aae60f74 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md index d7f1991d391..99e042cc690 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md index c5bf2a27070..1a150b8c9b1 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md index abdee363169..afad4a20be7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md index f97d8787c91..5e3a8d62316 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md index 3820b8965ce..c6186d77890 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md index 77d4587755e..4bf08c84367 100644 --- a/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md index b57668679fd..a6488876ed2 100644 --- a/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md index 14b613f7036..7a0ebbf04a3 100644 --- a/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md index dc37a3e6408..ff5165a1c65 100644 --- a/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/graphql/query.md b/docs/examples/1.4.x/client-android/kotlin/graphql/query.md index d8210709228..6b4c11190ef 100644 --- a/docs/examples/1.4.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.4.x/client-android/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/get.md b/docs/examples/1.4.x/client-android/kotlin/locale/get.md index a2044c72570..f07d3cf7eb5 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md index b4e949bb0dc..5f90626e21d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md index 610747ee131..5fc344d1701 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md index fa5483f0b0d..691a9583fde 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md index 6aba463a388..6ef8dcd7ac3 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md index c58456b0f51..4dcc23e85e2 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md index 2cf064402a0..f9fb666379d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md index afc00b1e77a..cdbcaa6f076 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md index 7bb79ac11ed..60a80bb6336 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md index 9430d7efe37..e4f094062bb 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md index 85bd22c9c12..ccc23d23fbc 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md index c5bbdef4199..5338b3ce45d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md index 7e7589c0790..acba4607d7d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md index 8fb6e244e89..14d7425c568 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md index 191a3cc97ca..258daaf3748 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md index 005270f3e4d..b5cc0d29988 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md index 4d1de49b70e..0690f0f0e16 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/create.md b/docs/examples/1.4.x/client-android/kotlin/teams/create.md index 5e70bd8df0b..2fa3cff014f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md index 04ef5d3490f..56157f296b7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/delete.md b/docs/examples/1.4.x/client-android/kotlin/teams/delete.md index 7d58960e7c3..149c120375d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md index 653bd520faf..78420a121e7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md index bfd8f7597fa..02e05873e80 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/get.md b/docs/examples/1.4.x/client-android/kotlin/teams/get.md index 72aea07f30a..7997e5aa2b6 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md index 53bd6f3b65b..79db9e57986 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/list.md b/docs/examples/1.4.x/client-android/kotlin/teams/list.md index 57c5fe83543..29b4d655e5f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md index 33de006871f..e1a3b53df59 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md index 40005ed3658..4c739742338 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md index 59c681232d8..d14522666a3 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md index 6a89ac768d6..954f6a7aebf 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..ec7bc357e17 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md index 311a3b6260f..cc9a14e931a 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..7d9b4e33674 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md index 929396ddc67..88efd04ca92 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md index c84edfc6e76..7c4048689e7 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md index caa66c161a6..40ad4c34fad 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..3b1548db4a8 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..6f52d97ebb1 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-verification.md b/docs/examples/1.4.x/client-apple/examples/account/create-verification.md index 2c96d202d01..9271178af8a 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create.md b/docs/examples/1.4.x/client-apple/examples/account/create.md index a7836f8e379..fe023e0f617 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md index 7cd37c9755c..d0b98e6791e 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/delete-session.md b/docs/examples/1.4.x/client-apple/examples/account/delete-session.md index 316a27d8f7b..6e42ce8a5ec 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..b45ea356fe4 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..7605035f35d 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/get-session.md b/docs/examples/1.4.x/client-apple/examples/account/get-session.md index 66b363574aa..6adf367a337 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/get.md b/docs/examples/1.4.x/client-apple/examples/account/get.md index f29f83f8e8e..0bfdb0a7053 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/get.md +++ b/docs/examples/1.4.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/list-identities.md b/docs/examples/1.4.x/client-apple/examples/account/list-identities.md index 86d713c2d4e..7c9961697e6 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/list-identities.md +++ b/docs/examples/1.4.x/client-apple/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/list-logs.md b/docs/examples/1.4.x/client-apple/examples/account/list-logs.md index 0c9725555e5..bc463217d69 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.4.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..9c1daf94b95 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-email.md b/docs/examples/1.4.x/client-apple/examples/account/update-email.md index a8c37af9464..c1c3dd52510 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md index 42a7f710b52..e0a340a6066 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-name.md b/docs/examples/1.4.x/client-apple/examples/account/update-name.md index a9d76812b55..04f8832a6b3 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-password.md b/docs/examples/1.4.x/client-apple/examples/account/update-password.md index bb3c3b0bea4..42a82dda330 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md index 41e26c3935c..a102cb740df 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md index 1c88595dc24..8e47f16be4e 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-phone.md b/docs/examples/1.4.x/client-apple/examples/account/update-phone.md index 306e8f5a939..e595ee3d082 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md index cc765480c5e..bab4b310e8e 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md index 335dd6aeef0..1e965beff0b 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-session.md b/docs/examples/1.4.x/client-apple/examples/account/update-session.md index b71826246d6..8e1d1116507 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-status.md b/docs/examples/1.4.x/client-apple/examples/account/update-status.md index 3f2d823641d..2c7753f3796 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-verification.md b/docs/examples/1.4.x/client-apple/examples/account/update-verification.md index 36af6b99dac..5a521a212a3 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md index 19c8d02b6d2..9f86b044356 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md index d7a680f35ed..1756c5b1468 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md index 01a7ec13445..945ce41a8cc 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md index eb33c906b6b..4044888df38 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md index ef0cd36920b..659749d9927 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md index 1bdd6f058a1..b9a5a7d0957 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md index 5c801d40bbd..edf910514f7 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/create-document.md b/docs/examples/1.4.x/client-apple/examples/databases/create-document.md index 533bbd534c2..d7f66d018c9 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md index c9a751294d8..f05f747b6ce 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/get-document.md b/docs/examples/1.4.x/client-apple/examples/databases/get-document.md index 53b71fb4f5c..8f85eae2a46 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md index 0b375df67a3..c05bc15e995 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/update-document.md b/docs/examples/1.4.x/client-apple/examples/databases/update-document.md index 5a943af8c11..238da36ec86 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md index 93702bfdbcd..8c696c8dec5 100644 --- a/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md index f1e53cb5708..b6ed7f7e75e 100644 --- a/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md index 0f182950eeb..5e6920aa213 100644 --- a/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md index d58b881df4d..aa8d9d318cb 100644 --- a/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-apple/examples/graphql/query.md b/docs/examples/1.4.x/client-apple/examples/graphql/query.md index 0aba98aeb88..78797a21a02 100644 --- a/docs/examples/1.4.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.4.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/get.md b/docs/examples/1.4.x/client-apple/examples/locale/get.md index d12470d66ab..95dc75d9f84 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md index 5832aa4ced0..1bce2ff930e 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md index 4853f77212d..83073b0210b 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..6f9d96899a3 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..46e86dbe965 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md index 75369d0606e..f5a43f040aa 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md index 92eea812756..bcbf30ec9dc 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..46fa89e0791 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/create-file.md b/docs/examples/1.4.x/client-apple/examples/storage/create-file.md index f8824208821..9abfb7678b4 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md index 27624b4bc20..d0222a52631 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md index ca96b31d93e..48d81066766 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md index 71c0f31f27d..17f75ae40da 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md index 85631efc835..f18fd82d3d1 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file.md index fa28b48d640..8f961898de7 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/list-files.md b/docs/examples/1.4.x/client-apple/examples/storage/list-files.md index 51f7fe8f053..ab0633ade53 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/update-file.md b/docs/examples/1.4.x/client-apple/examples/storage/update-file.md index 13bf635ec60..ac8ef4b3d45 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md index 6de7074644c..87dea9d9460 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/create.md b/docs/examples/1.4.x/client-apple/examples/teams/create.md index c28eec416d0..5e2b092a702 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md index 186f6ad6fb4..e14bba13c7f 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/delete.md b/docs/examples/1.4.x/client-apple/examples/teams/delete.md index e7585ec3876..5e39a53370b 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md index 02ee3dab422..a792889fd4e 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md index bcd65b68c46..9b7cf43c38e 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/get.md b/docs/examples/1.4.x/client-apple/examples/teams/get.md index c8630adaacf..689c5e68859 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md index 1f8a0ccb730..57876d3feae 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/list.md b/docs/examples/1.4.x/client-apple/examples/teams/list.md index 72226d4f5b7..cb9da6c7d5d 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md index 65a899cb1c7..5f8b723cd5d 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md index 1ac7d78f556..77328e8c985 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-name.md b/docs/examples/1.4.x/client-apple/examples/teams/update-name.md index 357182b1036..de4a6eb99e6 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md index 6cfe79e3a8c..1a1a21bd793 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create.md b/docs/examples/1.4.x/client-flutter/examples/account/create.md index 1ff2ae91cbf..d2866cf5b66 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md index c5ea2b39f3a..2ba4b6ff210 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteIdentity( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/get-session.md b/docs/examples/1.4.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/get.md b/docs/examples/1.4.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md index 2f2eed0da35..9d9d4db3c95 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listIdentities( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-email.md b/docs/examples/1.4.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-name.md b/docs/examples/1.4.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-password.md b/docs/examples/1.4.x/client-flutter/examples/account/update-password.md index b5e86de273f..42514bd6a1b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-session.md b/docs/examples/1.4.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-status.md b/docs/examples/1.4.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md index c0bffce70a0..160c5ec892e 100644 --- a/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.mutation( diff --git a/docs/examples/1.4.x/client-flutter/examples/graphql/query.md b/docs/examples/1.4.x/client-flutter/examples/graphql/query.md index 455cb0bd227..fd5d8e15002 100644 --- a/docs/examples/1.4.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.4.x/client-flutter/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.query( diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/get.md b/docs/examples/1.4.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md index d11cb7bd355..68419046653 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCodes(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md index 994462686f3..9065e5cd158 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/create.md b/docs/examples/1.4.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/delete.md b/docs/examples/1.4.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md index e9ae94eb3ff..6a40cf66842 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getPrefs( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/get.md b/docs/examples/1.4.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/list.md b/docs/examples/1.4.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md index 669568bd81b..1397b983948 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md index 5c794bd99bb..7f20a7c10b8 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateName( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md index c29cbb9eb1d..57711681778 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updatePrefs( diff --git a/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-email-session.md b/docs/examples/1.4.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-recovery.md b/docs/examples/1.4.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-verification.md b/docs/examples/1.4.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create.md b/docs/examples/1.4.x/client-web/examples/account/create.md index fda1d88e0f6..f15b65307dd 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create.md +++ b/docs/examples/1.4.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/delete-identity.md b/docs/examples/1.4.x/client-web/examples/account/delete-identity.md index b4230cef33d..7dd55f59e7f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/client-web/examples/account/delete-identity.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/delete-session.md b/docs/examples/1.4.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.4.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/get-prefs.md b/docs/examples/1.4.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.4.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/get-session.md b/docs/examples/1.4.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.4.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/get.md b/docs/examples/1.4.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.4.x/client-web/examples/account/get.md +++ b/docs/examples/1.4.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/list-identities.md b/docs/examples/1.4.x/client-web/examples/account/list-identities.md index 91e01e221f9..8e791353cd9 100644 --- a/docs/examples/1.4.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.4.x/client-web/examples/account/list-identities.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/list-logs.md b/docs/examples/1.4.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.4.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.4.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/list-sessions.md b/docs/examples/1.4.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.4.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-email.md b/docs/examples/1.4.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-name.md b/docs/examples/1.4.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-password.md b/docs/examples/1.4.x/client-web/examples/account/update-password.md index 2404a743e74..0dcff6bfde2 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-phone.md b/docs/examples/1.4.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-prefs.md b/docs/examples/1.4.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-recovery.md b/docs/examples/1.4.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-session.md b/docs/examples/1.4.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-status.md b/docs/examples/1.4.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-verification.md b/docs/examples/1.4.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-image.md b/docs/examples/1.4.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/create-document.md b/docs/examples/1.4.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/delete-document.md b/docs/examples/1.4.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/get-document.md b/docs/examples/1.4.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/list-documents.md b/docs/examples/1.4.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/update-document.md b/docs/examples/1.4.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/functions/create-execution.md b/docs/examples/1.4.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.4.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/functions/get-execution.md b/docs/examples/1.4.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.4.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/functions/list-executions.md b/docs/examples/1.4.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.4.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/graphql/mutation.md b/docs/examples/1.4.x/client-web/examples/graphql/mutation.md index 1a0b61cd3b5..c968d9a245a 100644 --- a/docs/examples/1.4.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/client-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/graphql/query.md b/docs/examples/1.4.x/client-web/examples/graphql/query.md index e507fbb5aa1..8d1e5edd18a 100644 --- a/docs/examples/1.4.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.4.x/client-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/get.md b/docs/examples/1.4.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/get.md +++ b/docs/examples/1.4.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-codes.md b/docs/examples/1.4.x/client-web/examples/locale/list-codes.md index a18baa00255..98b4152d036 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-codes.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-continents.md b/docs/examples/1.4.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-countries.md b/docs/examples/1.4.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-languages.md b/docs/examples/1.4.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/create-file.md b/docs/examples/1.4.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/delete-file.md b/docs/examples/1.4.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file.md b/docs/examples/1.4.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/list-files.md b/docs/examples/1.4.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.4.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/update-file.md b/docs/examples/1.4.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/create-membership.md b/docs/examples/1.4.x/client-web/examples/teams/create-membership.md index 3e4707753aa..7f9f4a73b1d 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/create.md b/docs/examples/1.4.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/create.md +++ b/docs/examples/1.4.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/delete.md b/docs/examples/1.4.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.4.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/get-membership.md b/docs/examples/1.4.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md index bcf3f43806b..6c729eead7c 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/get.md b/docs/examples/1.4.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/get.md +++ b/docs/examples/1.4.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/list.md b/docs/examples/1.4.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/list.md +++ b/docs/examples/1.4.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-membership.md b/docs/examples/1.4.x/client-web/examples/teams/update-membership.md index 662cb917814..aaa79028a0e 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-name.md b/docs/examples/1.4.x/client-web/examples/teams/update-name.md index 3159d51c6cd..80e59bbae62 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md index 36f60b18e72..4ff1ca7a7f2 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md index 9521cf68a56..81b49b3364e 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-email-session.md b/docs/examples/1.4.x/console-web/examples/account/create-email-session.md index 19812773df7..4b9d12c64fc 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md index 8a851df3699..86336ab693e 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md index 6917aa288c7..b000a713dd9 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md index bf33c52f30b..3dc8a90076a 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md index 85e7d68eed2..18fb31ee857 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md index 0b10961e53f..aadd2c149da 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-recovery.md b/docs/examples/1.4.x/console-web/examples/account/create-recovery.md index dd33c01f04a..9cc625a21d5 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-verification.md b/docs/examples/1.4.x/console-web/examples/account/create-verification.md index 7b1ec32f2f0..b3ce7d060fe 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create.md b/docs/examples/1.4.x/console-web/examples/account/create.md index 4c61ef8eb29..38ad6190fab 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create.md +++ b/docs/examples/1.4.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/delete-identity.md b/docs/examples/1.4.x/console-web/examples/account/delete-identity.md index 8e7a87270ae..fcc330580ba 100644 --- a/docs/examples/1.4.x/console-web/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/console-web/examples/account/delete-identity.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/delete-session.md b/docs/examples/1.4.x/console-web/examples/account/delete-session.md index b360b3bb892..c6a6188d4ef 100644 --- a/docs/examples/1.4.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md index 0d0fea88f44..6cf737e92ae 100644 --- a/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/get-prefs.md b/docs/examples/1.4.x/console-web/examples/account/get-prefs.md index 284f8fabdaf..939df8a13cc 100644 --- a/docs/examples/1.4.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/get-session.md b/docs/examples/1.4.x/console-web/examples/account/get-session.md index 651d35c7344..485ccb7f7cb 100644 --- a/docs/examples/1.4.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/get.md b/docs/examples/1.4.x/console-web/examples/account/get.md index f6fc4b94010..f4bc097c8e9 100644 --- a/docs/examples/1.4.x/console-web/examples/account/get.md +++ b/docs/examples/1.4.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/list-identities.md b/docs/examples/1.4.x/console-web/examples/account/list-identities.md index ea18a00081a..a2ba9573827 100644 --- a/docs/examples/1.4.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.4.x/console-web/examples/account/list-identities.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/list-logs.md b/docs/examples/1.4.x/console-web/examples/account/list-logs.md index 4f1d6813a78..68bc5a33863 100644 --- a/docs/examples/1.4.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/list-sessions.md b/docs/examples/1.4.x/console-web/examples/account/list-sessions.md index bd3b102b215..c54c6420f29 100644 --- a/docs/examples/1.4.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-email.md b/docs/examples/1.4.x/console-web/examples/account/update-email.md index 21b7fcc3f26..1d69f5d15aa 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md index 1bc748ed309..e73d344a75f 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-name.md b/docs/examples/1.4.x/console-web/examples/account/update-name.md index 5a9ab011b49..5a221115f1b 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-password.md b/docs/examples/1.4.x/console-web/examples/account/update-password.md index ca059e5304e..2fdc3bdf54b 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md index 4b47389a3c6..2f5ca7fa64e 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md index 99c13cb90ea..4f66ec5e810 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-phone.md b/docs/examples/1.4.x/console-web/examples/account/update-phone.md index 80f715e0bcc..19ebdd256b0 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-prefs.md b/docs/examples/1.4.x/console-web/examples/account/update-prefs.md index 0a85380d344..2cba25590f5 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-recovery.md b/docs/examples/1.4.x/console-web/examples/account/update-recovery.md index 64c1545e89b..f91b353d944 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-session.md b/docs/examples/1.4.x/console-web/examples/account/update-session.md index 29dc0c0907f..64abdcb0dc2 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-status.md b/docs/examples/1.4.x/console-web/examples/account/update-status.md index 87b51465255..c1a568439fb 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-verification.md b/docs/examples/1.4.x/console-web/examples/account/update-verification.md index 93dd5db120f..7ab66b2be6a 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/assistant/chat.md b/docs/examples/1.4.x/console-web/examples/assistant/chat.md index a6c22b98bc5..ca02c9fae07 100644 --- a/docs/examples/1.4.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.4.x/console-web/examples/assistant/chat.md @@ -5,7 +5,7 @@ const client = new Client(); const assistant = new Assistant(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md index f830effff2c..f2a966e6d35 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md index a4e67b25e73..a3f59418dac 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md index 14bc1b9b004..0076abdd54a 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md index 52ebe68c659..f6a66a01a8d 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-image.md b/docs/examples/1.4.x/console-web/examples/avatars/get-image.md index 517421e7f0f..2435fae9809 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md index 8b03b5d3863..0d5bc0a6c8f 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md index 89cea47ad9b..5f1d17d410d 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/console/variables.md b/docs/examples/1.4.x/console-web/examples/console/variables.md index 3c552dee381..27df66f8619 100644 --- a/docs/examples/1.4.x/console-web/examples/console/variables.md +++ b/docs/examples/1.4.x/console-web/examples/console/variables.md @@ -5,7 +5,7 @@ const client = new Client(); const console = new Console(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md index 3924ff5cc54..995eb48e4ba 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-collection.md b/docs/examples/1.4.x/console-web/examples/databases/create-collection.md index ff3dbd974db..a478b7eeb63 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md index 4e1f3190b3f..a6e825299a5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-document.md b/docs/examples/1.4.x/console-web/examples/databases/create-document.md index 4b9adc4e7c9..fdd014f39d0 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md index 8d2a5523b60..d25d0cdca3c 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md index 503290b951e..492fc94db7b 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md index 7ce41b6b0bd..e910e78d5f4 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-index.md b/docs/examples/1.4.x/console-web/examples/databases/create-index.md index 4da79809f45..90886275fc7 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md index 28218a16d74..5fc48e79806 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md index 88fcd66825b..4f393305779 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md index 6fe22ad22e7..5189dae44b0 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md index 8beade8f9d5..8b546994fb4 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md index 1cbd402c2e3..4c1621878ae 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create.md b/docs/examples/1.4.x/console-web/examples/databases/create.md index bca894d724b..035be47b85a 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md index 858010b3137..9b5259f1358 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md index 9ce95a5e54a..b654863416f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-document.md b/docs/examples/1.4.x/console-web/examples/databases/delete-document.md index d31d06b5210..727cf132ba6 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-index.md b/docs/examples/1.4.x/console-web/examples/databases/delete-index.md index 2ef22b82ad1..6c8f1485115 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete.md b/docs/examples/1.4.x/console-web/examples/databases/delete.md index bfd5b0cea3e..049280a06be 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md index 1542f64763c..610f07904be 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md index 983a6133735..df519530465 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-collection.md b/docs/examples/1.4.x/console-web/examples/databases/get-collection.md index 6dae02f5c20..f5fd435ff44 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md index f75040811e1..3c293f0211f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-document.md b/docs/examples/1.4.x/console-web/examples/databases/get-document.md index 87569bd8639..63ec42b8171 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-index.md b/docs/examples/1.4.x/console-web/examples/databases/get-index.md index d3df35d7a7d..92fe6b48f41 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-usage.md b/docs/examples/1.4.x/console-web/examples/databases/get-usage.md index aabe123e892..c0ad5ea3c23 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get.md b/docs/examples/1.4.x/console-web/examples/databases/get.md index 64c8a859ed6..036ebd5294a 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md index df9123680e5..cb07aba1f50 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md index 89662fe4b33..a6484de5e23 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-collections.md b/docs/examples/1.4.x/console-web/examples/databases/list-collections.md index 498e0d9c132..7d0e31ab0f9 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md index 0161998358f..34cf6c9c3df 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-documents.md b/docs/examples/1.4.x/console-web/examples/databases/list-documents.md index 9e29eb52c78..6365b91045d 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md index 3449b7d82be..e821f98a12e 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-logs.md b/docs/examples/1.4.x/console-web/examples/databases/list-logs.md index 3b3f0dcead4..b982f8791b5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list.md b/docs/examples/1.4.x/console-web/examples/databases/list.md index 20ae55793d2..d4ba3714c49 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md index 629f8644b04..2d2ae72d823 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-collection.md b/docs/examples/1.4.x/console-web/examples/databases/update-collection.md index c0043b25002..c6fb8f69b66 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md index f5be61d0e6a..57452ed4de5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-document.md b/docs/examples/1.4.x/console-web/examples/databases/update-document.md index 249af346483..2fbe08d3d22 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md index e9a89a9436c..bd7f56f0ed5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md index 8f0d5b6842d..5fae0029503 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md index 72fcd77e7bc..f79aa89f296 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md index d035b842b11..9be0327aa0f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md index 3373ae49ae6..579e5011b03 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md index a329d5b6ad0..aa97a12eb4f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md index 69482531edd..5afdd00648c 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md index 481394021d2..d57ba6db661 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update.md b/docs/examples/1.4.x/console-web/examples/databases/update.md index a8160956e52..5f2727847c9 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-build.md b/docs/examples/1.4.x/console-web/examples/functions/create-build.md index 141bb3247c7..a4d250ba582 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md index 6a97468f855..97434db6099 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-execution.md b/docs/examples/1.4.x/console-web/examples/functions/create-execution.md index cd623bb0562..b7c9d286528 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-variable.md b/docs/examples/1.4.x/console-web/examples/functions/create-variable.md index df147ac2c8f..d8bad947e28 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create.md b/docs/examples/1.4.x/console-web/examples/functions/create.md index ef53a13a7a3..d321444a0d1 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md index 9597da3dcfc..a5dc5584570 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md index 30f2c031aae..1687be849be 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/delete.md b/docs/examples/1.4.x/console-web/examples/functions/delete.md index 3cfa756613b..bee147500b8 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.4.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md index fc514e7cb44..7b0f0a9d547 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md index 3a16587aca0..e5e988c9409 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-execution.md b/docs/examples/1.4.x/console-web/examples/functions/get-execution.md index ac92b98af8e..d5b5d7400bf 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md index 9ac20346ea3..19bb6aa293c 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-usage.md b/docs/examples/1.4.x/console-web/examples/functions/get-usage.md index 6e3fe878607..8afeec514aa 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-variable.md b/docs/examples/1.4.x/console-web/examples/functions/get-variable.md index 3d4b07f44ef..0d6a078176e 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get.md b/docs/examples/1.4.x/console-web/examples/functions/get.md index 5cb2e289106..fbb4e8be3f7 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md index bd63271f279..1acf26b16f8 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-executions.md b/docs/examples/1.4.x/console-web/examples/functions/list-executions.md index 5df980d48b7..b1d40eb4b6e 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md index 18f13b2c830..c1e2c654d73 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-variables.md b/docs/examples/1.4.x/console-web/examples/functions/list-variables.md index 5fd03bfc190..4f37c95bd59 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list.md b/docs/examples/1.4.x/console-web/examples/functions/list.md index 721ad6bbb0c..903112a5f70 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md index 98752326efd..b668a3fabb3 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/update-variable.md b/docs/examples/1.4.x/console-web/examples/functions/update-variable.md index 33380ee102c..3ce70d0d627 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/update.md b/docs/examples/1.4.x/console-web/examples/functions/update.md index 473bbebbd60..8304a3d159d 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/update.md +++ b/docs/examples/1.4.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/graphql/mutation.md b/docs/examples/1.4.x/console-web/examples/graphql/mutation.md index ee70c3630c4..6de224be68f 100644 --- a/docs/examples/1.4.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/console-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/graphql/query.md b/docs/examples/1.4.x/console-web/examples/graphql/query.md index 055c6ad0020..f1c35d81ba9 100644 --- a/docs/examples/1.4.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.4.x/console-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md index 6d57550dd90..c55b33a3f56 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-cache.md b/docs/examples/1.4.x/console-web/examples/health/get-cache.md index 5748c8e9dc1..7c1563ced5b 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-d-b.md b/docs/examples/1.4.x/console-web/examples/health/get-d-b.md index 181dca70768..3c3c21b88c6 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md index a56abb704d0..ddea8989914 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md index a312fa7df03..a812a409bf0 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md index 29fcb6707a7..f1361cb68aa 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md index 481480a80d1..751a55eea16 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md index c1bbb9f655f..cc3fb76f3c5 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md index 0b011cb32d4..12e8a8b6ba5 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md index 2dc33b377b3..8ddfaf700bd 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md index 8d6d68228a1..4c2268515f5 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md index 8102e751823..c6b9dc12e17 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md index af0285313bd..2bccd1c00fd 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md index 534d68c7f46..b2ae504bd13 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue.md b/docs/examples/1.4.x/console-web/examples/health/get-queue.md index bdc3caf7498..a2163646594 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md index ff842f4ba6a..b7e8d86da67 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-time.md b/docs/examples/1.4.x/console-web/examples/health/get-time.md index 6d8e1c225a5..73e1155687e 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get.md b/docs/examples/1.4.x/console-web/examples/health/get.md index 76e74be74cf..faa1a0c7c1c 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get.md +++ b/docs/examples/1.4.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/get.md b/docs/examples/1.4.x/console-web/examples/locale/get.md index ac47468df81..bd3c27e3c32 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/get.md +++ b/docs/examples/1.4.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-codes.md b/docs/examples/1.4.x/console-web/examples/locale/list-codes.md index 9cb13350b36..ab67b3c7efe 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-codes.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-continents.md b/docs/examples/1.4.x/console-web/examples/locale/list-continents.md index b2358396fcf..0c3d6bb4996 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md index 59d6e24dbf7..7ac2906b4c7 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md index 898cb3cf31b..300c81d9538 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-countries.md b/docs/examples/1.4.x/console-web/examples/locale/list-countries.md index a36b8c25edf..3f26f6dba81 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md index 1f348914259..66163952bd7 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-languages.md b/docs/examples/1.4.x/console-web/examples/locale/list-languages.md index 4fb4dbf0be9..048c79d38ad 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md index 7001e18204b..f478d2cd63d 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md index de5becb5cab..9109f1f9c8b 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md index 07e3efb0801..0d55b2617fc 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md index b9a614d44af..c57effc4b24 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md index 38b533f66ba..f734e42a98d 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md index 9884956e548..304f9234c87 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/delete.md b/docs/examples/1.4.x/console-web/examples/migrations/delete.md index 88d82627184..937c2f7057a 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/delete.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md index 0b922b2bc50..e7880c6ea65 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md index 7b52ac95b78..bd5fe5a228f 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md index 3764d786a6a..602ddc2f391 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md index 34d34044084..b984ce85022 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md index 00fbb9e56fd..d27b198a69a 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get.md b/docs/examples/1.4.x/console-web/examples/migrations/get.md index 1331be2543f..7b6880a9b69 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md index 799f58714fe..0e31008788c 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/list.md b/docs/examples/1.4.x/console-web/examples/migrations/list.md index 61f7754aff9..9396ed9ab74 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/list.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/retry.md b/docs/examples/1.4.x/console-web/examples/migrations/retry.md index 4c39d98c5db..5562403b14f 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/retry.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/retry.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/create-variable.md b/docs/examples/1.4.x/console-web/examples/project/create-variable.md index 94c0f04fe0b..f3bc1dd13af 100644 --- a/docs/examples/1.4.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/delete-variable.md b/docs/examples/1.4.x/console-web/examples/project/delete-variable.md index 23c4144e394..2c28b029971 100644 --- a/docs/examples/1.4.x/console-web/examples/project/delete-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/get-usage.md b/docs/examples/1.4.x/console-web/examples/project/get-usage.md index c831a06ff18..4687d94252f 100644 --- a/docs/examples/1.4.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/project/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/get-variable.md b/docs/examples/1.4.x/console-web/examples/project/get-variable.md index c147f638e59..3c105d1e8f6 100644 --- a/docs/examples/1.4.x/console-web/examples/project/get-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/list-variables.md b/docs/examples/1.4.x/console-web/examples/project/list-variables.md index facfc321631..2bf69f7bc92 100644 --- a/docs/examples/1.4.x/console-web/examples/project/list-variables.md +++ b/docs/examples/1.4.x/console-web/examples/project/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/update-variable.md b/docs/examples/1.4.x/console-web/examples/project/update-variable.md index 57590189dc7..e32e3592db7 100644 --- a/docs/examples/1.4.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-key.md b/docs/examples/1.4.x/console-web/examples/projects/create-key.md index 02032e81c54..d65660599b2 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-platform.md b/docs/examples/1.4.x/console-web/examples/projects/create-platform.md index 4a319681713..b668ec12f76 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md index 356a5ffe866..0ca56346c4d 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create.md b/docs/examples/1.4.x/console-web/examples/projects/create.md index 87eab0aea0c..29f5cc5c911 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md index 0df4a1db5c2..1826f4a89f9 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-key.md b/docs/examples/1.4.x/console-web/examples/projects/delete-key.md index 74c6bd15621..399e97687a2 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md index da8ce56e54e..0d6fa3c55b3 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md index ba0bc8ead3f..389e4365c26 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md index 08e3af636fc..2de71ec3f31 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete.md b/docs/examples/1.4.x/console-web/examples/projects/delete.md index 4f227a49a69..6d22dc30753 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md index f7c193b95d0..0a368245ff6 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-key.md b/docs/examples/1.4.x/console-web/examples/projects/get-key.md index c0d3282c146..bfadb8de561 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-platform.md b/docs/examples/1.4.x/console-web/examples/projects/get-platform.md index fd65231affd..d178cbb8430 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md index 5fce9ffcfb1..be4f1dd8491 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-usage.md b/docs/examples/1.4.x/console-web/examples/projects/get-usage.md index 8d8c91355dd..af512463fbe 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md index 7f580b5f572..4357669a227 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get.md b/docs/examples/1.4.x/console-web/examples/projects/get.md index 23c235a741c..69e53ca0f23 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-keys.md b/docs/examples/1.4.x/console-web/examples/projects/list-keys.md index c2dce0a419a..8800067c24b 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md index 968438f6bb7..692de5c43fe 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md index e0e0af367f5..d960a75f982 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list.md b/docs/examples/1.4.x/console-web/examples/projects/list.md index 0cf5002afe9..a7476905fd5 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md index 37c69222df8..f74645388d4 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md index a63f5b4518e..4195655befe 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md index e3cb529d1b4..8f81a8fb937 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md index 67b885d49db..a5651e4e323 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md index ef2dffa67ae..21ce249f7aa 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md index 4751442d8fd..b183e1477c0 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md index b49594768a0..66939ea49e8 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-key.md b/docs/examples/1.4.x/console-web/examples/projects/update-key.md index fd2bde82bfa..659017451a2 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md index 34ce8142088..cf3c92658fa 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md index 6165e91b804..15800560a19 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-platform.md b/docs/examples/1.4.x/console-web/examples/projects/update-platform.md index ce49dfffd84..75f3b3b4e2c 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md index d348067194f..68fa5defbcf 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md index 5b727003b04..66010abf746 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md index 54edccd2aa2..74b14ead379 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md b/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md index 54f344e3a6d..730e41ffe6e 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-team.md b/docs/examples/1.4.x/console-web/examples/projects/update-team.md index 8b1c2f5665b..6c8f49d7a33 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-team.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-team.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md index 472271f8e60..8a18c842620 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md index 1339a458227..81fdd2913e9 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update.md b/docs/examples/1.4.x/console-web/examples/projects/update.md index 31281808c47..f162bd09b52 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md b/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md index fc11d86b973..61923b31363 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md index f21e4f2528c..05514b8c03b 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md index 99ddbca2732..ab8eb4ce2b6 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md index baa277339cd..72e86cfbf0a 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md index 33b442220c5..b0e45dc0cf9 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md index 7696b14294e..766a4835dc3 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/create-file.md b/docs/examples/1.4.x/console-web/examples/storage/create-file.md index d1bf55b42b8..ce0c8f0b9c7 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md index 4634b11f5b3..0a3305e862a 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/delete-file.md b/docs/examples/1.4.x/console-web/examples/storage/delete-file.md index b4c0ff0f9d8..1961a1fcde1 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md index 65c66d7aa04..58223df2aef 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md index 2b65e8b0cee..7b386458f9d 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md index 1ce57cb38a6..bdc8fb79d3f 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md index ab6bc18fc46..8f58323bd6e 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md index 7ce851f0252..aa482c46f5c 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file.md b/docs/examples/1.4.x/console-web/examples/storage/get-file.md index b6e800303d1..bb5a737721a 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-usage.md b/docs/examples/1.4.x/console-web/examples/storage/get-usage.md index f618ba4e16e..e9a8eb06729 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md index 5a356900fab..a14a0d02172 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/list-files.md b/docs/examples/1.4.x/console-web/examples/storage/list-files.md index 0c6170f11d1..ac7ef669dc0 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.4.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md index 09ed4ce441f..1d050c14b88 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/update-file.md b/docs/examples/1.4.x/console-web/examples/storage/update-file.md index abaaf9afd4e..12292761d23 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/create-membership.md b/docs/examples/1.4.x/console-web/examples/teams/create-membership.md index 4ceac9feda5..e2b71c7dcd8 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/create.md b/docs/examples/1.4.x/console-web/examples/teams/create.md index a2cb34296b6..881816db346 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/create.md +++ b/docs/examples/1.4.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md index 4e7d7e7a746..66274a17b65 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/delete.md b/docs/examples/1.4.x/console-web/examples/teams/delete.md index 0bc778ba635..d51318f89e2 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.4.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/get-membership.md b/docs/examples/1.4.x/console-web/examples/teams/get-membership.md index c0bdae5fc6c..881f37d8b09 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md index 2104c5f8986..f039b6e3dab 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/get.md b/docs/examples/1.4.x/console-web/examples/teams/get.md index 2dbfdb4b0b6..068d50c6d10 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/get.md +++ b/docs/examples/1.4.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/list-logs.md b/docs/examples/1.4.x/console-web/examples/teams/list-logs.md index 2c3c7311e26..7fb75214172 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md index f7a7d1a54e6..93e8588a555 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/list.md b/docs/examples/1.4.x/console-web/examples/teams/list.md index 99e482d8f3c..3a5311efe33 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/list.md +++ b/docs/examples/1.4.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md index 1c8ec3a27e3..cdc93967b33 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-membership.md b/docs/examples/1.4.x/console-web/examples/teams/update-membership.md index 1f9051fa77b..906b33ea2c0 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-name.md b/docs/examples/1.4.x/console-web/examples/teams/update-name.md index 4bee8deb525..9a8af03cd92 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md index 7d7ed633281..4f375b52cea 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md index f4dabafe189..e22db4f2987 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md index 247f579c9ca..809c9aab772 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md index 8a81f0801bf..13048d3ad68 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md index f7297c10234..448fb53ac24 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md index 3cefaf17dfa..d188ec648d7 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md index d8889fa2292..da40910a376 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md index 3c4b357e4c9..ba82d26d9f6 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create.md b/docs/examples/1.4.x/console-web/examples/users/create.md index 845895d6a5c..30e6ec9266f 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create.md +++ b/docs/examples/1.4.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete-identity.md b/docs/examples/1.4.x/console-web/examples/users/delete-identity.md index d2aa30d34bd..0324ff08b91 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete-identity.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete-session.md b/docs/examples/1.4.x/console-web/examples/users/delete-session.md index 70404ca574f..9098318a774 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md index b02771c7098..c8994db4e5a 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete.md b/docs/examples/1.4.x/console-web/examples/users/delete.md index 0bb95c395bd..8dd6885f0e5 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/get-prefs.md b/docs/examples/1.4.x/console-web/examples/users/get-prefs.md index 593552bd033..a0e8f78b94a 100644 --- a/docs/examples/1.4.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/get-usage.md b/docs/examples/1.4.x/console-web/examples/users/get-usage.md index 59d95e6dcb5..3c38b500d8b 100644 --- a/docs/examples/1.4.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/get.md b/docs/examples/1.4.x/console-web/examples/users/get.md index 46cee750f7b..816b41ad399 100644 --- a/docs/examples/1.4.x/console-web/examples/users/get.md +++ b/docs/examples/1.4.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-identities.md b/docs/examples/1.4.x/console-web/examples/users/list-identities.md index 214fa9728da..bbddf9b560e 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-identities.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-logs.md b/docs/examples/1.4.x/console-web/examples/users/list-logs.md index ded1e98b40b..cb2402e2d07 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-memberships.md b/docs/examples/1.4.x/console-web/examples/users/list-memberships.md index b47f7acf57a..3f9dca5ab21 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-sessions.md b/docs/examples/1.4.x/console-web/examples/users/list-sessions.md index 087834e5695..0c0109550bd 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list.md b/docs/examples/1.4.x/console-web/examples/users/list.md index 28a8258b126..f658f432bac 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list.md +++ b/docs/examples/1.4.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md index 019b0723714..7b9d2cc424e 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-email.md b/docs/examples/1.4.x/console-web/examples/users/update-email.md index e37d03a01c9..fe1f2500f83 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-labels.md b/docs/examples/1.4.x/console-web/examples/users/update-labels.md index 9d61425d708..5ad24020a58 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-labels.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-labels.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-name.md b/docs/examples/1.4.x/console-web/examples/users/update-name.md index 2834c747da4..2d491d7a569 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-password.md b/docs/examples/1.4.x/console-web/examples/users/update-password.md index 5192abda89b..8edb97138fc 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md index 17ddf467d96..d4fe6f00a18 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-phone.md b/docs/examples/1.4.x/console-web/examples/users/update-phone.md index a1d85aaaca4..ce74c710226 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-prefs.md b/docs/examples/1.4.x/console-web/examples/users/update-prefs.md index e3c5b76c2aa..c05c4df53d6 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-status.md b/docs/examples/1.4.x/console-web/examples/users/update-status.md index eafbec728f5..87e2197cfc6 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md index dc4591ef28b..8ac0a506ecb 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md index 84f919bbc18..d72fe1ee770 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md index b56f76b09f7..9fd383ea011 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md index 6dc92e92b06..c5584d2b61c 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md index b2c867d939d..b5d84993122 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md index f18d9993365..4c779dc1005 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md index 85eea5d62f1..50f0061d0cc 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md index 1ebc3a5fa19..c0ccf9e105e 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md index a95a2c1e350..28b65b82d76 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/create-verification.md b/docs/examples/1.4.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md index 7b8f09a353f..09f7ea42221 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/delete-session.md b/docs/examples/1.4.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/get-session.md b/docs/examples/1.4.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/get.md b/docs/examples/1.4.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/get.md +++ b/docs/examples/1.4.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/list-identities.md b/docs/examples/1.4.x/server-dart/examples/account/list-identities.md index 63789e529ff..67c9dbf4754 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-dart/examples/account/list-identities.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/list-logs.md b/docs/examples/1.4.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-email.md b/docs/examples/1.4.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-name.md b/docs/examples/1.4.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-password.md b/docs/examples/1.4.x/server-dart/examples/account/update-password.md index d5e27a7574e..559b875ebf1 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-phone.md b/docs/examples/1.4.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-session.md b/docs/examples/1.4.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-status.md b/docs/examples/1.4.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-verification.md b/docs/examples/1.4.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-document.md b/docs/examples/1.4.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-index.md b/docs/examples/1.4.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md index 01f2b42f754..01c7e0e5db3 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create.md b/docs/examples/1.4.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete.md b/docs/examples/1.4.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-document.md b/docs/examples/1.4.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-index.md b/docs/examples/1.4.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get.md b/docs/examples/1.4.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list.md b/docs/examples/1.4.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md index 94853d2819e..95b9735957b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md index f93aa815005..200266fda0c 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-document.md b/docs/examples/1.4.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md index 8fd104db321..c79242fcc94 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md index 20c44817ef5..29bbb49e496 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md index 50432542c6c..b395495516b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md index 2d3da6ced66..659631462c9 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md index 8c4cf4f3f24..c3bfa069b71 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md index 239e23daab4..35943d8f1a7 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md index 7f24507abae..54a3d0df6e4 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md index d7dd6758bbd..9787d2b7c51 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update.md b/docs/examples/1.4.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-build.md b/docs/examples/1.4.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md index 8be0f1a725d..b31b345c998 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create.md b/docs/examples/1.4.x/server-dart/examples/functions/create.md index 73d84fcf9a4..7e00eb099af 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/delete.md b/docs/examples/1.4.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md index d77d3aaff8c..aca94995266 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get.md b/docs/examples/1.4.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list.md b/docs/examples/1.4.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/update.md b/docs/examples/1.4.x/server-dart/examples/functions/update.md index 2b92f553874..bf36155e7ef 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md index 780ee09f4ac..160c049dc29 100644 --- a/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/graphql/query.md b/docs/examples/1.4.x/server-dart/examples/graphql/query.md index 7f22f5360d8..4191d3c271d 100644 --- a/docs/examples/1.4.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-dart/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-cache.md b/docs/examples/1.4.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md index ef20bed89fc..5eaed7c9f85 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md index e1236d9e36a..257ce544bf0 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md index a1540fbb46c..bf9a83b2ccc 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md index 7720d8231cd..a1598d0f715 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md index 52954f1d589..f7c6d49c220 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md index 794c2ec02ea..f774ac01c0b 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md index cc0989a64c2..f60a16271e5 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue.md index 8b7c823dc77..c9ff3e28fc7 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-time.md b/docs/examples/1.4.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get.md b/docs/examples/1.4.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/get.md b/docs/examples/1.4.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md index abc4528cfcc..26aac035e5c 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/create-file.md b/docs/examples/1.4.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/list-files.md b/docs/examples/1.4.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/update-file.md b/docs/examples/1.4.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md index cc8611817cb..ae9146f8c8e 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/create.md b/docs/examples/1.4.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/delete.md b/docs/examples/1.4.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md index 27f2ef15ad6..27608b6699d 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/get.md b/docs/examples/1.4.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/list.md b/docs/examples/1.4.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md index 85b126c13a3..7ae596a5557 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-name.md b/docs/examples/1.4.x/server-dart/examples/teams/update-name.md index 088a5cfbe68..324b691d3de 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md index d99e8217595..5c9d5180125 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create.md b/docs/examples/1.4.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md index 4bcfd6d4217..0fe6a9e6718 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete-session.md b/docs/examples/1.4.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete.md b/docs/examples/1.4.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/get.md b/docs/examples/1.4.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/get.md +++ b/docs/examples/1.4.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-identities.md b/docs/examples/1.4.x/server-dart/examples/users/list-identities.md index b19fed01fee..781937f7592 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-identities.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-logs.md b/docs/examples/1.4.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list.md b/docs/examples/1.4.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-email.md b/docs/examples/1.4.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-labels.md b/docs/examples/1.4.x/server-dart/examples/users/update-labels.md index ecd06e76995..c6c7d00345f 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-labels.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-name.md b/docs/examples/1.4.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-password.md b/docs/examples/1.4.x/server-dart/examples/users/update-password.md index 3dfedb4d4b4..bf99d92746b 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-phone.md b/docs/examples/1.4.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-status.md b/docs/examples/1.4.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/create-verification.md b/docs/examples/1.4.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md index f24954e2b6e..d2d43a8c9ad 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/delete-session.md b/docs/examples/1.4.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/get-session.md b/docs/examples/1.4.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/get.md b/docs/examples/1.4.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/get.md +++ b/docs/examples/1.4.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/list-identities.md b/docs/examples/1.4.x/server-deno/examples/account/list-identities.md index c3faa7b5b39..d930e9b784b 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-deno/examples/account/list-identities.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/list-logs.md b/docs/examples/1.4.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-email.md b/docs/examples/1.4.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-name.md b/docs/examples/1.4.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-password.md b/docs/examples/1.4.x/server-deno/examples/account/update-password.md index a271dfe7e6f..0a2e2b5b0f7 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-phone.md b/docs/examples/1.4.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-session.md b/docs/examples/1.4.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-status.md b/docs/examples/1.4.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-verification.md b/docs/examples/1.4.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-document.md b/docs/examples/1.4.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-index.md b/docs/examples/1.4.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md index e613a6f596f..787a24c6652 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create.md b/docs/examples/1.4.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete.md b/docs/examples/1.4.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-document.md b/docs/examples/1.4.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-index.md b/docs/examples/1.4.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get.md b/docs/examples/1.4.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list.md b/docs/examples/1.4.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md index c8b55b77e5a..bc5c976286b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md index 25549b4ed25..a7fce2f168a 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-document.md b/docs/examples/1.4.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md index 78d2403cd8b..679b9971bb4 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md index f47b96fc538..eb04ead02e0 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md index 62df38cddce..882beff1ca5 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md index 001671eda13..85eefe4eeed 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md index 8ee0d5c80a7..bc98ddfec23 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md index c12a64a9dcc..fa8f36e9959 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md index ab77495e23c..b166e1f6213 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md index c9ab818c80c..1c2411f4d10 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update.md b/docs/examples/1.4.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-build.md b/docs/examples/1.4.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md index 167d177bb7f..3afd2bf844c 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create.md b/docs/examples/1.4.x/server-deno/examples/functions/create.md index cd9c1503deb..a8dd7c2785c 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/delete.md b/docs/examples/1.4.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md index dc07358df19..8031278238d 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get.md b/docs/examples/1.4.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list.md b/docs/examples/1.4.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/update.md b/docs/examples/1.4.x/server-deno/examples/functions/update.md index 8ed2663ba72..9b60b79afe7 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md index 87beeabce65..f95cdc771d4 100644 --- a/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/graphql/query.md b/docs/examples/1.4.x/server-deno/examples/graphql/query.md index d2eec0a8dbf..27930bde4d6 100644 --- a/docs/examples/1.4.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-deno/examples/graphql/query.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-cache.md b/docs/examples/1.4.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md index 979ef0b51c8..3116d314fe6 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md index 4f457495dc8..3f59caf5167 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md index 639d1099be4..323cabd57e2 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md index 26ff3da2043..a47daba8e19 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md index 478ad80e80e..d187dc0b1fb 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md index ba018acae3d..eef3568f47d 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md index d779a1d6784..c8c7655870c 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue.md index 4c1f675bb63..a06fda06d16 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-time.md b/docs/examples/1.4.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get.md b/docs/examples/1.4.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/get.md b/docs/examples/1.4.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md index 1ca38d4e88d..ed351956efe 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/create-file.md b/docs/examples/1.4.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/list-files.md b/docs/examples/1.4.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/update-file.md b/docs/examples/1.4.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md index afb6b914922..17e98c760fe 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/create.md b/docs/examples/1.4.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/delete.md b/docs/examples/1.4.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md index 5a7fa4d98f0..3327463fac1 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/get.md b/docs/examples/1.4.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/list.md b/docs/examples/1.4.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md index 3ada2f47457..240cf1880bc 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-name.md b/docs/examples/1.4.x/server-deno/examples/teams/update-name.md index 47c3fc27653..bbac808c86a 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md index 83845be0364..7a8823b805c 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create.md b/docs/examples/1.4.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md index 7d7b88a7f90..9dac0a72173 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete-session.md b/docs/examples/1.4.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete.md b/docs/examples/1.4.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/get.md b/docs/examples/1.4.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/get.md +++ b/docs/examples/1.4.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-identities.md b/docs/examples/1.4.x/server-deno/examples/users/list-identities.md index 687770178c8..8c1f7e85699 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-identities.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-logs.md b/docs/examples/1.4.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list.md b/docs/examples/1.4.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-email.md b/docs/examples/1.4.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-labels.md b/docs/examples/1.4.x/server-deno/examples/users/update-labels.md index 73aee6485bb..f8f8dc51df1 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-labels.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-name.md b/docs/examples/1.4.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-password.md b/docs/examples/1.4.x/server-deno/examples/users/update-password.md index e6ae8b725e3..4d9d8b217e9 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-phone.md b/docs/examples/1.4.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-status.md b/docs/examples/1.4.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md index 570bb20f5e4..3dd38b8e05b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md index 1edc79bc502..afa76bbd9b1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md index 928fcb85616..09d73b228c4 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md index c5ff9878220..ae99527ba6a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md index c880a4f88db..163bd05e6a2 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md index 8dcefaf71ce..b683052f3b4 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md index ce3ecc1179d..6fed36e39ea 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md index 9560b6a78aa..9f4becbfb7c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/get.md b/docs/examples/1.4.x/server-dotnet/examples/account/get.md index 5a50299c733..4df0e2f2ceb 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md index 3a25342e5db..57889ef7044 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md index 03b50407f50..7873a8036ed 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md index aa813bc1dd5..b918cfe8067 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md index 0b457e0abb0..3d851672769 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md index b41ba372894..682ba83ab82 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md index d8bab0b4d23..153b62635e5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md index 6914e7805f7..032961664bd 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md index f3e2f14df75..8fa853a8ce3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md index 7a4f2378e49..c25dae59cb0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md index d26f4ab8dae..3c13952fc13 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md index f3365bb96b7..4a7600e8201 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md index c5e3e2c5764..0a01ee23251 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md index 697d2dffa4e..4531f25611d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md index 3ac58f8b475..4b9e62bf6ac 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md index 89f36fe35d1..5338e4f590b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md index dbabf05d574..78cf8f75610 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md index fc20581c1ce..7ef37404185 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md index 35bf382f12f..7c85d566f2a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md index 20ea37a3a42..7f40a3f2a0b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md index 33dcac6f918..3fe62f1bcc8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md index 439537a9cb3..6b86445fb83 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md index 1b7aa198a60..c1545c3a57f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md index 1fff2965ffd..5722be761fd 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md index c0081f1f200..bdd144c6c79 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md index e22ed7ddca6..416bcad541f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md index 773d41e9fa8..cdf4142ac96 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md index d0915184e8a..038abe997b5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md index b13de722aa6..ee8c4b6fd69 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md index 0d84ea7868d..0bb5c422293 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md index ca571d00bda..81362cda5ee 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md index 9c4a8c36043..37328d876e3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md index 645492eeabf..bd34f357aa7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md index 9425882decb..46368bf2f91 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create.md index 61ba46c03a5..671a3864b89 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md index 8ebde257c52..4ceffc29181 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md index 398185c509e..ecb627ceb4b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md index 6892b25438b..1107dce324c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md index c5dab69e0fc..c7423b974c3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md index cc8b4317e19..d7e3d2030db 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md index 13eae946e96..491a0db2f87 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md index b617da7810f..0b956208f66 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md index 079f93a4031..095d1a1e668 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md index d989ed46519..7a81d9b1195 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get.md index 5dfa70eec14..bc770bbf432 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md index 8af529df418..30362cf3987 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md index ed0d7bb56fc..6eae10213e8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md index 92895692f0a..47bb99e03af 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md index dbbed3ca537..87f1560ec48 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list.md index ec234ddbab3..c247e5abc2e 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md index 2d6fa80849a..6e3ee9a0d0b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md index aa477e4ce01..a946514ed6f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md index 81966f05f14..65ba0b5c7f3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md index b19d9226c69..e204c9b90fc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md index 5baf67fd729..59a94d850d9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md index 184ac1820f1..dfef22bf6de 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md index d68815ab07f..f6561415d57 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md index 2ad0e057549..e19cc9f6480 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md index 10fd34b3066..0f9d4ad2857 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md index 8a65da0a421..fa2042f18e7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md index 84fc2b8da95..5ce837ccbb9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md index e79812a77b1..a66a848951b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update.md index 743108fc66b..8ab4cc5ea0f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md index 71eb842c6c7..51c539a59d3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md index 9bbcc65dea3..51444d9347a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md index 93cd65be5d2..d6e17cbcd44 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md index 0724bc6eef4..a90e0e883fc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create.md index 695fe8b6262..f05e9ca69fd 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md index 2c17dfae9f2..907a3f03266 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md index cf201480fa1..3faa77f8ce8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md index 123e307c799..c3db166334a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md index d167c7ddfd0..e8a2f3d32e1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md index 7d895c6d82c..18f5206643f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md index ed65d26bef4..e6dfe4a9130 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md index 12083e5acb8..c17dd8cf62c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get.md index 1914ccf7acc..c21fc7dbd54 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md index cd6a7b94468..4e2e85fa528 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md index d4c73a0d362..7bf4598b4cc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md index ca1d125eb23..ad8a60936f7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md index 31177df9ff3..555e972af51 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list.md index 1b8897b76fb..76128c22bf3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md index 8cd7fc54257..ba2f2b1e5ac 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md index 63eac46609c..c222a9e27f2 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/update.md b/docs/examples/1.4.x/server-dotnet/examples/functions/update.md index d9b29e6e77e..fed73cc4785 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md index 8ab5f0e458e..7756823b7ee 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md index e019f43e5bd..24f480286d4 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md index b8b0d5d95e4..08bf1207329 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md index 2f36c10f3b1..98970f14425 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md index a263709073d..1ec2dea7fde 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md index 7850a7555c7..3e2bde164e7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md index 654ab8efbbf..46ab49174fe 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md index b2f945cbc72..4ae91c03cb0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md index 5bd24a4607e..fd6e4409d41 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md index 26a692ce4f3..36c61000772 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md index cf2ed7fc082..935bef44369 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md index 8821509dbc2..5ff91aa0256 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md index 41e09a221f8..e7d99cb23d7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md index 52b7aaf332e..d7f3c4d9622 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md index 49b0597c0c1..f37ce657e0d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md index d2ffb01c4df..12b0edb7115 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md index 1087bc12c8f..b158d6fa2c1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md index bc60cc6ccd6..36934e7443a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md index 15f17454537..ec6e71f0e9d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get.md b/docs/examples/1.4.x/server-dotnet/examples/health/get.md index d1ddd8fdf08..fb56bd5f3e9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/get.md b/docs/examples/1.4.x/server-dotnet/examples/locale/get.md index f049a920726..6713e1ed576 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md index 9eaab834627..be761094e6e 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md index dd91caba9de..34af0c22b7c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md index 8692c7b78e8..c515841b7dc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md index 8607ae90f58..ebe76e6bfd1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md index c67d863856a..a1a6ed3e3a8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md index 1bb3c427e04..dc04bca6f94 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md index 1c2897d4fb8..79e53a20377 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md index b1da6cb0bd0..120a177dd6f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md index f7d73152098..58118f66e1a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md index c8825f30639..a19aec20998 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md index 8b70175d97a..5300b3e3f33 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md index aca9020f285..dd97d871470 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md index e6aa24bea3e..50e79c821f8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md index 92565ae5efe..4bcb95323ac 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md index 081f2dce7ba..f0faf111eef 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md index 0299a91bbe9..a2640e3deb0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md index 2caae5e0af8..6b527b1aaf9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md index 9d861171acd..82cdd78bce1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md index eac74562092..8675d42d30f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md index c51d335eef2..dd6bad34a8f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md index 1fd8e265216..70ba09b27e0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/create.md b/docs/examples/1.4.x/server-dotnet/examples/teams/create.md index fa34098cb25..2cec3e20093 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md index e3c7562f998..3eb75eff7c6 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md index 8229839b1cf..497b365113d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md index 108dbadbe04..3cdaf1c8fd7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md index 08be12ba836..39fdbf4cbfc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/get.md b/docs/examples/1.4.x/server-dotnet/examples/teams/get.md index f6c92a007b1..3ed9ff67718 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md index 145376cfb9d..b2a5a0ed0b5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/list.md b/docs/examples/1.4.x/server-dotnet/examples/teams/list.md index 1acf615039f..133907dc2c0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md index bb377203ccb..d5514e77399 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md index 70ad79f23f7..bd954738b5c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md index 12867304375..bd0bd7df41c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md index 3dfc0a3fc1a..c75e761fc45 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md index 6038594547b..958efe5c510 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md index 954e1ad1cca..20297ef5d88 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md index de54ee98fec..a7b0ad13814 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md index e8ede042daf..60d1f6d7798 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md index f3816196514..68fcc2900ee 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md index c16cfe97f95..b03e4d0a121 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md index 1d6e60dd2d2..1cf9a2effe5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create.md b/docs/examples/1.4.x/server-dotnet/examples/users/create.md index 0a8421a5448..ad55ca54e2c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md index f1425a9ab37..ee1815bb085 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md index 841bd456c85..3f342d1178d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md index 8ff8f765228..bb5abd9a82b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete.md index 7833a7950fd..71ba2bf6881 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md index c19f5e07786..6f122c0ff27 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/get.md b/docs/examples/1.4.x/server-dotnet/examples/users/get.md index 9c315e60210..b42ff2bf731 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md index af8f99620f1..69acb5529a5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md index 277addcd25e..b56bf45aa8a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md index c25d98b41d2..d3099aad978 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md index fcd87f01ad5..43230b847d7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list.md b/docs/examples/1.4.x/server-dotnet/examples/users/list.md index 9cb177b6923..580396eca5f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md index 2b7a5b86748..5287a38ce01 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md index 0d371b13fc0..8bad70f9567 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md index 97d5db356a9..050486720c2 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md index f846543117c..8bfbeaafa20 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md index ce3241dfd5d..c6fd97306b3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md index c2fd1673de4..784ea37f188 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md index 90728d76c70..e293e53002f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md index a39d54565a1..5a443de5c79 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md index 713ece02ba5..d913bb5cb95 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md index 013b357f880..86416e08aaa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md index 284efc8107b..7f1a21b9dc8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md index 0280b4b15b1..c7911643c19 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md index 54bad5a9f02..4ce39edbbfe 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md index 2cd069eaa13..27ce537ecd6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md index 7a9999d3985..cd790a3ac73 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md index 3f6cd20c9dd..609707c4071 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/get-session.md b/docs/examples/1.4.x/server-kotlin/java/account/get-session.md index 17229e29de2..efe4fabba7d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/get.md b/docs/examples/1.4.x/server-kotlin/java/account/get.md index 80a4988af5b..a79e0279408 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md index d6fcb681279..d0d62fc9d5a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md index 971ac866e12..cfb15dccfca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md index 9d7e6308e51..f850618692a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-email.md b/docs/examples/1.4.x/server-kotlin/java/account/update-email.md index 67ab31ad88b..4e09bdf1a97 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-name.md b/docs/examples/1.4.x/server-kotlin/java/account/update-name.md index 6900f121746..6a5a1711eb8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-password.md b/docs/examples/1.4.x/server-kotlin/java/account/update-password.md index ace01fcc9ad..3797fcb7b4b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md index 8c3c9756de6..0c1d4407633 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md index 9365a0f0b9b..d51cc4497e3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md index 24a36258345..2c7e22f25fd 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md index bc3251d1602..ffbfd402b94 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-session.md b/docs/examples/1.4.x/server-kotlin/java/account/update-session.md index 62d77e1366f..ec83c2d357e 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-status.md b/docs/examples/1.4.x/server-kotlin/java/account/update-status.md index 4af2cf1083b..964ce9c5b0f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md index 2190daf1b7d..76780f4ac60 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md index 42e8e57ee11..0682288cfe9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md index 5e3b32b527f..f821a7638c9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md index 109f88f7193..95b91adb90b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md index 6ad820ae7a9..f0e2cda52db 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md index 26805449885..765a8024e50 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md index 8a86e7a01bd..8cbcee1497f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md index c57d70a8409..2d7e1332817 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md index 6e79f0a917c..c5d83a05ff4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md index 96b5d9b9743..77b5c9f7b72 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md index 307a8ffb653..c6d3c6f229f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md index 029c3f7a253..ede98c60462 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md index 8774c550b78..0200f11e7d1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md index e2cf6a28df3..c4ae2933a4f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md index 0fba6ac073a..ceede982b06 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md index 5dbdce895b8..44eba1df018 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md index 5446862fdbc..b0d8028a623 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md index fe37da96d57..a8ade8a4128 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md index 0b7e5f999fa..1c54712e5a0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md index a9b19160669..1a767be1d89 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md index 9c504d862bf..c1bee6e0ba3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create.md b/docs/examples/1.4.x/server-kotlin/java/databases/create.md index a3234340597..9a2d932dd89 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md index 68aeecd93be..d58ba87b289 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md index cd328b48a60..370781bea90 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md index 4f4c8495c32..46b9edf2f62 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md index 640bd0fc312..d633a8a2aed 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete.md index 897a450fa41..a7fad611e05 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md index 79c1d2b2add..fcea6fefb99 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md index 3ecfa0ca802..ce0eea0cb39 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md index 2061bed2020..cac1612f0c8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md index 2bf036a0575..753fef468f1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get.md b/docs/examples/1.4.x/server-kotlin/java/databases/get.md index 066ec4d2626..d4eeb222fd7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md index f42baa02f48..9c9c2623d3a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md index 67c343f38a7..639a45bc2e0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md index 7a4a1b70b2a..56de64ca4c6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md index be50cdd900d..58a7e3d2176 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list.md b/docs/examples/1.4.x/server-kotlin/java/databases/list.md index 04f81867f0e..b46abf235c8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md index 97cee2d5484..ac9e320ceca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md index 3f25c5047e9..831193fbf54 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md index 503f2debdfa..4b143f17ba5 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md index e9a596d3d42..39755884660 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md index 39ea153834d..336c25482e3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md index 969ea4eece2..cd9622fff92 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md index 67d76e425ff..0e84626db79 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md index b9308dc22b9..8cac2614886 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md index 6a936a5f361..51cb161ea22 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md index 272952b5970..624e66ed73e 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md index aba0d0e53ca..1f605fd0ee1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md index 87ab384929f..f1e29c43bc9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update.md b/docs/examples/1.4.x/server-kotlin/java/databases/update.md index b706df65243..11337ed0d3e 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md index 10c8d2fc801..5a571f76e8d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md index 4e6da334825..40b8aa5ea73 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md index 315f57d5cb5..d53744f70a7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md index 5e9c5a66bd9..3ce9c2d944d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create.md b/docs/examples/1.4.x/server-kotlin/java/functions/create.md index aac81692eac..2b143361f24 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md index 703dce63aa8..2da778a970d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md index d36615092da..cbdfabc97b2 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/delete.md b/docs/examples/1.4.x/server-kotlin/java/functions/delete.md index 8f398964115..2f4eb011f11 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md index 91898dc07a3..1d785c14efe 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md index 5b539d28016..54bf0c461aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md index b1ff9485e82..00bb0a1ab85 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md index 2be25a5c73d..01a05370645 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get.md b/docs/examples/1.4.x/server-kotlin/java/functions/get.md index 8ad5ea3522b..f6eb035a3ee 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md index 61f48c88c37..c5a81048ec7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md index 392e9c82c56..f4db7948dfa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..968f019f025 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md index 4fa47e8c57e..ad6d522b8f1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list.md b/docs/examples/1.4.x/server-kotlin/java/functions/list.md index 4224cf52b78..253cbafaa1c 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md index 2af0637379f..9e1db350714 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md index f30bbf8e4e3..c841731b533 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/update.md b/docs/examples/1.4.x/server-kotlin/java/functions/update.md index 8a53d75ea4a..d8c209b53a0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md index d689c62e60b..9e93425d248 100644 --- a/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/graphql/query.md b/docs/examples/1.4.x/server-kotlin/java/graphql/query.md index e4b8693b4f9..4ce7a5e66aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.4.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..0e081401324 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..4c53f7a35bc 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..9958d8bbdc4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md index ba945190848..176f2211f08 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md index ed22ab75a9c..1d5a4e250aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md index a0a3a22f8a5..7f4c32f49b0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md index 79b489771fe..cd7e25f159a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md index e746c5c8ff8..58f525a1ead 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md index 54b425f63cc..556c3e73e43 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md index 371c98f06d3..075eebf85d7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md index af36ecbac7f..d93dd7b1bf8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md index 4c7db58658e..ee4724b4266 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md index 966f470dee4..5b45a560997 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md index cbd6919d72e..344945db0aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md index 90b7eb35ad4..8072577f3ef 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..527499f94e9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-time.md b/docs/examples/1.4.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..0f78d412474 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get.md b/docs/examples/1.4.x/server-kotlin/java/health/get.md index 59badb05432..a14a4b5aeca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/get.md b/docs/examples/1.4.x/server-kotlin/java/locale/get.md index 4fb6be94169..22137f75b7b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md index a3feffe0662..4ef80dc5b6b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md index 661fcc3583a..3933873e37d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md index 6164ca02d29..9cb744abcb3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md index 2cb41c19f22..c81457dbbf7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md index 74d3b5d4022..491b654edee 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md index 54a0e4de40c..a4c49e35689 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md index 54976c5c08b..4f09bab65c9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md index c9ebc9178c9..268fa1563e6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md index c83557bf282..e6cdf748528 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md index f26e9ee5a19..c7844f9e90d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md index eb00b9706cc..b9095c139ba 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md index 2157dd7424c..f44d23fe902 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md index 8eef7e347e1..0b1207a0178 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md index 275e803000d..1356607a327 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md index adc0407c358..d5aa220f23d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md index 4cb6fe6db31..0bd4f682b13 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md index 49c29cad2da..e3a69b43d9f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md index 59719e530f2..dc87428ebbc 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md index 05483ea7252..08c77804e22 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md index 05385c2b88f..d2a1b6c4272 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md index 295674f9d1a..0446946d3c5 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/create.md b/docs/examples/1.4.x/server-kotlin/java/teams/create.md index 4f3be33609f..75d13b61069 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md index e82ab293be4..26d0fba99cb 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/delete.md b/docs/examples/1.4.x/server-kotlin/java/teams/delete.md index fa805ebd4d4..7699d575bf7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md index fc00d438731..e901b4438ed 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md index b14dfc94d37..8809420b196 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/get.md b/docs/examples/1.4.x/server-kotlin/java/teams/get.md index 6be034b4182..ef9c02df2f6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md index 0b9055f8169..8abf4644900 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/list.md b/docs/examples/1.4.x/server-kotlin/java/teams/list.md index 22a9d51d5fd..5f0540e6c46 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md index 64e69663d42..54ea9877155 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md index e1fd4325ee9..1dbfc500f27 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md index 3d95ccb9d25..317113b6167 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md index 674bc6424df..7667e504ba4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md index 47ac52c0863..0f1faf77e5c 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md index 91989dff0fe..3c34190dd3f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md index 35de18d1a34..be38f913a6c 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md index 7501f02f2f5..718f4100eb4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md index ae26de55437..e67c8745422 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md index da0936a01b3..7a665a7c945 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md index 9b48e06fbd2..9a99af84107 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create.md b/docs/examples/1.4.x/server-kotlin/java/users/create.md index 97aad153029..c9b3c8558ee 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md index cd165a6dc01..6894733f9f3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md index 84153284065..dfde18e516f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md index 9a2284c493b..45ed56eb53b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete.md b/docs/examples/1.4.x/server-kotlin/java/users/delete.md index 893a4d37940..7120f8035ca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md index 664843e32c8..2c3190194a0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/get.md b/docs/examples/1.4.x/server-kotlin/java/users/get.md index 1be96aee11f..43d32f8d1a2 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md index 011f3a6ca2a..8f64b27c4c3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md index 08ace35a19c..df4964211c1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md index 503dbcb10ab..89c90c8cc88 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md index efe091fe74e..8ea8833c2e0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list.md b/docs/examples/1.4.x/server-kotlin/java/users/list.md index d591bce79e1..0ca79280613 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md index 3d6d205bce0..91b989b6681 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-email.md b/docs/examples/1.4.x/server-kotlin/java/users/update-email.md index d0e9b17c1da..2d29d4cab1f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md index e0c7bdc5b85..0beaf4e7251 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-name.md b/docs/examples/1.4.x/server-kotlin/java/users/update-name.md index e16f539bdc4..9df5a00fd36 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-password.md b/docs/examples/1.4.x/server-kotlin/java/users/update-password.md index c94e6dd77b6..2d2f87ea024 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md index 8c9a26d6093..ac7796c0415 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md index 4a2accb7933..007d78dfd37 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md index b12a5d8e4f0..655ab79f5b6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-status.md b/docs/examples/1.4.x/server-kotlin/java/users/update-status.md index 012142cad7b..d4c753e8d88 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md index e18d4ce13b2..9af377fed56 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md index a219cb8196b..5a207d31f28 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md index 33846f1dba6..6ba8071254c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md index c21ccdab4a9..da07efd4aaa 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md index 60aa4f26046..76e71066c56 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md index a16622a526c..ac82578c8e1 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md index dbbba1d98f6..eba56b21df7 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md index 07861109b65..98b112b9122 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md index 1fb002ae240..95f54906520 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md index c300e28f7d1..3e0fd56893e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md index daddd758430..45ba397f94e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md index 132a5da23b2..6420e6afdb5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md index 1127bbc2b28..0c9216f9238 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md index 3de89a503ea..e5fb2264c4f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md index df92d9e9285..36ea44466bb 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md index 0ed51d30c21..7e0bb4905c2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md index 9c823bb6ac9..334f0fe1726 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md index 6226269a1f1..542ddcc739a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md index 1b676c1ad52..d0b04380e23 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md index bd3d28e3b82..61a3289047d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md index 3ed06279069..4f6562528d8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md index e73e555c602..288750a4712 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md index e9f6eb2919f..7dddeea92c0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md index c3413ac6442..3c56eb7ca99 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md index cd1ea0c7b37..2e27b70a011 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md index a81c59ae60b..e095c7b602c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md index 09cacde6f89..fd2e0c61497 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md index ba46fb0d292..c42703969de 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md index c43aabcfe3a..2fc413de2bc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 22de12384d1..5a4e85568ea 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md index 9ba70cf2fec..c48d2d49a23 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d410244ec81..9fe6efab3aa 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md index 95e5977b126..58bc1034015 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md index 292f31f5254..081557e950c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 99008a479b2..e951b71b149 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md index 68149625028..c26e5d37cc9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md index 42b3dbe7e16..d635002a12f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 57b2ff66a73..eafa05417a9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md index f941b82c9e6..daa18f083b7 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 22ebc4a5c76..a9a65f86a9b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md index c5d3d52853f..99930484773 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md index 8cd0731da13..238c73b7cc3 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md index d7d462a3ce7..bd9d922b009 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md index fef7a45cc40..9dddae53fcc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md index 676359331af..4fb66423e09 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md index 2bf047fe4eb..361218721bc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md index 59bd149224f..e54aa398973 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md index f927901f098..34d855ce238 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md index 4bba2dfa163..d3840b13b5c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md index 76ff9a1962f..e7127649cd8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md index 8bacaa57c2f..da5761f085f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md index 2d588dee731..d91f52b1116 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md index 5584d4dd878..1453534929d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md index 4057571393a..3e45c17e1dc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md index f563c431a72..8035796f102 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md index c081013fa03..df52ef1ab6e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md index 431d7acbff7..76c69880282 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md index 6ffece0bd53..d8c0090988b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index b74ad795471..ab0c1e23ac1 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md index f6ccffef9d1..57aba213726 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 013e437db5a..e50375fa607 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md index 10ff4c4b4c0..4abc8c5e8e8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md index 39ca4939ce0..ace50c67025 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md index ece9f22c76a..c13303e9bb5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md index ed9ec055e8e..951dba57236 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md index e881b01fa61..2bf2f0c3184 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md index 5ebe893ed58..7f443013820 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index 9c0ffecae65..b04e76c0dd5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md index c8db1709547..ff99f7d068d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md index 71d9bde8487..03ab3c4a747 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md index 3a4c6089427..b78fee1bb06 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md index 62f9d1addd3..fafed65c354 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md index 28b89a69f7b..21956d4789d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md index 62bce1fde01..13f476127f5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md index 6b23614d113..5b8bd6c6337 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md index d45be0b51bd..62cb4833a9f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md index 5187ba44195..57728a9ddd4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md index f0fe4a3d860..9d3c95e173e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md index f12095b5a89..b5a13223800 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md index 2388e829c9a..b7debc7cfb6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md index 4653e61f0e8..bd21f502454 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md index 929a003a18c..517a3499af3 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md index ce42276921b..ee73353aa09 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md index 9261ab897ad..4c47e68d91a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md index 3ec2c810eef..c9cfa4be08e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md index 5378c79dbcb..06f1bdfdf18 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md index 0e777cd1fe7..abe677c0347 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md index 10e74534f4b..729ade920cd 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md index a5f4f0d325a..6aeafdc2580 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md index 14b147384f5..8c0a93fc7a8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md index 1e0f3bbe5f3..e9990d56d11 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md index f8aed9d421d..126982018b6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md index aed06cd7a6c..82c2c19fd21 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md index bd29d431c4c..a271566de16 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md index e387fe0d951..d858d2189f2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md index 7aca9dd0080..daa7fb646eb 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md index 8e719142bb0..496c7216f25 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md index 421407a8319..e32f719e98d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md index 16f2bf6cb0f..93ce522dec6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md index f4163517058..31c83bd8919 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md index 80a38c104b1..7d73d972dc0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md index 3dca9011c3a..983cde9ae53 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md index b55241d8f27..d7653c3a7d7 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md index fb634ec63c6..1446de4c16d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md index 80083ef9513..f475ee1da57 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md index 13f6666fbac..3c65ab53952 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md index 4df1cf1d3be..6524d0a4d2d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md index bf4629d259a..11c9b7a6211 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md index ead51857ac6..5f2e0ce0f92 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md index f204168bc4d..b0087b6fb28 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md index 35f3bb9bd67..8a9645a42bb 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md index b547be9aa57..a790b949c46 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md index 1d84651fea4..25bf0e1d0b2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md index 28f02027e77..214bf3dc097 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md index bd9ad1825b4..bcaad832cd8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 5d3258335eb..b1e5671fb3b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md index e0f2ae3c6b0..1a9a2585ca4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md index 626d38133e7..cd8276e49b4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md index 6457056d70e..061a5c82cda 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md index 437b1c3fe92..6ed17be85e9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md index 27d73ffd070..1adf94ca061 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md index 1bdf5e48932..354e3bf94c4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md index 3730a052987..a70b731423a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md index dabf805e8b9..c6a2639376a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md index 0c7fcc137c3..c2abb7b3386 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md index 6c3c1fb4aea..67bcc5d5b41 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md index 372416ed12f..4b75e70d3e3 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md index 4b23cfc9c6f..691acb10550 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md index 211713c7b66..0f98d900a12 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md index 8c4c7bdaac8..b6bce3ace32 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md index 5243ed74cc5..af1c301c1cf 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md index 3de3b5460e8..b0117be004d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md index 3d7fb9ab269..8b85210d15f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md index b37a4533c76..455b103f9f2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md index 9e080a13467..5b0105bf712 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md index 16e73e48849..397a9b794ad 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md index c015a772c87..ab0b1c56328 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md index 4f2bed38002..bfb8ea94063 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md index 1bfcf07f7a5..7af89d21663 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md index 402aeb1bebc..a6f43f8f189 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md index e9eae80f0b0..0da1afdfc1b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md index aa10ca58fd0..43196f1d908 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md index 7fa6bd837c2..e9dc0d91eba 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md index 9ca3a30f40c..09803cb4aae 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md index d717c371bcd..d27c8243191 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md index 62fc9254150..d70eafb4009 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md index 438363aed32..81a1f9960f9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 977782ce3cb..15d101773a8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md index 6d6451f3769..86e13b9f1bd 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index c50b2c1da46..cadb580527d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 708935c970c..979cc2a01b1 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index d49f7db4717..b2164d5aa84 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md index aa006fb0db2..e5cabe92b70 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md index ae319d8cd82..fcc5e355ecf 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md index 7b4de829c73..d84da15d839 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md index f3a0264aa13..7b96b242135 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md index 5c0070c027b..580031ecac6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md index 30ee8f3d7a0..2e0013f0ab4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md index 564489c398d..a7ffd650bc6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md index fd7e4b7a1b9..f55878912ea 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md index 0135fb1c231..c7c9746f3c0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md index 691007588ec..5b3111f5529 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md index 316889e8943..0059c2dc68c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md index 1d7e950425b..fd9a7716d57 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md index e973a26e524..3a74a207570 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md index b4f97bbcab5..ea16acf33bd 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md index c6dfaefd2f0..4adad691848 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md index 4e869f82373..61300a263a0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md index 1d46c7a8fcd..b60d5656208 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md index f96158faa99..b6bfe65a9ae 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md index 909803bd94d..fe6bcf39c09 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md index 073dd6640a8..3d243c0db7c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md index 127035ca488..c05713d316f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md index 5899ed360f5..1966d5d6d05 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md index 2900aa17168..fd495b11368 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/get.md b/docs/examples/1.4.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md index fa2013bbf62..56c8864278d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md index b46500fd3c9..b2e638c28b6 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md index f680d1c03a5..efaa37d6408 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md index 3bdfc04e5f9..c9b81852e1c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md index 8b602d434fa..1f3b67b47b8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md index a96e89853b6..6500f99b46d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md index b0dfbb11dfb..c385feacdb3 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md index 2c0672dd999..8d6a688d898 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md index 8016aac6000..69f652b27e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md index 8eab99aa35e..398b2246b10 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md index 699148f882d..8bab7e543f2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md index c7e6fe9b7fa..f024f13d843 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md index d8cb42aafdc..0f58e004494 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md index 6d14142f2ff..f58f483eee2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create.md index ab193ff45aa..87803580f7a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md index d8bd913cc8f..16b74e86f7b 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/update.md b/docs/examples/1.4.x/server-nodejs/examples/functions/update.md index d8bf23f5a9b..c6b35f2459a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md index 6f9bed84260..f8f2da769c8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md index 35cd4060cc1..0f30d77e99d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md index b6902399104..5aa3cf3119d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md index ae6d6058023..d1f7db9d4a1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md index 0eedd16c749..3858ba923dc 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md index c2683c18453..e16f5c08687 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md index c8866baeb0a..4533c41fa08 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md index d499f6669a4..56bc7406c82 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md index 50dba96a236..ba2f2db5020 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md index 4caafecfa46..3f705e06d33 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get.md b/docs/examples/1.4.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/get.md b/docs/examples/1.4.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md index aa95dafc712..bd6f9c59a41 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md index 282e764cab7..12fe61f6ea7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/create.md b/docs/examples/1.4.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md index 0ac9e95ff1b..2d24bdc6e09 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/get.md b/docs/examples/1.4.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/list.md b/docs/examples/1.4.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md index d5ba30a9380..2306c056aec 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md index 962e18f1689..660c29859d8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md index eeeed6c7ebe..55352df9245 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create.md b/docs/examples/1.4.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md index c3acfa9eca0..e2bc8f4de67 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/get.md b/docs/examples/1.4.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md index 36a71b70510..1d2aa459923 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list.md b/docs/examples/1.4.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md index d727bf1ed21..9bd7ef9de5e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md index f08a5990f40..a5e98a03356 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/create-recovery.md b/docs/examples/1.4.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.4.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/create-verification.md b/docs/examples/1.4.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.4.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/delete-identity.md b/docs/examples/1.4.x/server-php/examples/account/delete-identity.md index 0b509afdc42..6e75fda760e 100644 --- a/docs/examples/1.4.x/server-php/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-php/examples/account/delete-identity.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/delete-session.md b/docs/examples/1.4.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.4.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/get-prefs.md b/docs/examples/1.4.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.4.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/get-session.md b/docs/examples/1.4.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.4.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/get.md b/docs/examples/1.4.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.4.x/server-php/examples/account/get.md +++ b/docs/examples/1.4.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/list-identities.md b/docs/examples/1.4.x/server-php/examples/account/list-identities.md index c522a15a3eb..4b4dd75cb40 100644 --- a/docs/examples/1.4.x/server-php/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-php/examples/account/list-identities.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/list-logs.md b/docs/examples/1.4.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.4.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/list-sessions.md b/docs/examples/1.4.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.4.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-email.md b/docs/examples/1.4.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-name.md b/docs/examples/1.4.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-password.md b/docs/examples/1.4.x/server-php/examples/account/update-password.md index 47e4c96695a..8bd4b4915c9 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-phone.md b/docs/examples/1.4.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-prefs.md b/docs/examples/1.4.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-recovery.md b/docs/examples/1.4.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-session.md b/docs/examples/1.4.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-status.md b/docs/examples/1.4.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-verification.md b/docs/examples/1.4.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-image.md b/docs/examples/1.4.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-collection.md b/docs/examples/1.4.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-document.md b/docs/examples/1.4.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-index.md b/docs/examples/1.4.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md index 4840a669374..97b00cda2fd 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create.md b/docs/examples/1.4.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-document.md b/docs/examples/1.4.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-index.md b/docs/examples/1.4.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete.md b/docs/examples/1.4.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-collection.md b/docs/examples/1.4.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-document.md b/docs/examples/1.4.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-index.md b/docs/examples/1.4.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get.md b/docs/examples/1.4.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-collections.md b/docs/examples/1.4.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-documents.md b/docs/examples/1.4.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list.md b/docs/examples/1.4.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md index 9e8b8699e1d..13b25b52c43 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-collection.md b/docs/examples/1.4.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md index 26214fb785c..efbb8713276 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-document.md b/docs/examples/1.4.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md index 7278881e3b9..ba670046c3e 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md index a77211b0f76..df0f6409ddb 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md index e73793e1fdf..9d27fa196fa 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md index 1cff205200a..795f2cfd448 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md index bb49d89c399..0f42ca3f407 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md index b68025b84c8..078d0338ca7 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md index 775d0fa2bec..0c821fe9d07 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md index 6d4845e7eb3..a14bde5d2db 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update.md b/docs/examples/1.4.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-build.md b/docs/examples/1.4.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md index b219b509de5..d5ddbd58c24 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-execution.md b/docs/examples/1.4.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-variable.md b/docs/examples/1.4.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create.md b/docs/examples/1.4.x/server-php/examples/functions/create.md index cd4b02be668..5f6d948304a 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/delete.md b/docs/examples/1.4.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md index d7a6d55e2a6..46401e3503a 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get-execution.md b/docs/examples/1.4.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get-variable.md b/docs/examples/1.4.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get.md b/docs/examples/1.4.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-executions.md b/docs/examples/1.4.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-variables.md b/docs/examples/1.4.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list.md b/docs/examples/1.4.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/update-variable.md b/docs/examples/1.4.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/update.md b/docs/examples/1.4.x/server-php/examples/functions/update.md index 072ff5cdbb5..05636d40bfe 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/update.md +++ b/docs/examples/1.4.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/graphql/mutation.md b/docs/examples/1.4.x/server-php/examples/graphql/mutation.md index 5622f7f2699..f75d53e86c4 100644 --- a/docs/examples/1.4.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-php/examples/graphql/mutation.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/graphql/query.md b/docs/examples/1.4.x/server-php/examples/graphql/query.md index 3ca1d940c49..369dcbd47e5 100644 --- a/docs/examples/1.4.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-php/examples/graphql/query.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-cache.md b/docs/examples/1.4.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-d-b.md b/docs/examples/1.4.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md index 721b5c2474b..8c4d031cf97 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md index 71d6ea8fe8b..9c1937df20a 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md index 154625a8299..9fffd33b421 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md index 84107ad35a4..866d3095f31 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md index ec7459af4cf..a6b0fe59db5 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md index 4b47d2ffa44..80e510b4106 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md index 3b7a001d852..49d636ffe89 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue.md b/docs/examples/1.4.x/server-php/examples/health/get-queue.md index 9feb1ad8e2b..4a51e4f8bf9 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-time.md b/docs/examples/1.4.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get.md b/docs/examples/1.4.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get.md +++ b/docs/examples/1.4.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/get.md b/docs/examples/1.4.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/get.md +++ b/docs/examples/1.4.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-codes.md b/docs/examples/1.4.x/server-php/examples/locale/list-codes.md index 55207ce32de..7f545a494ba 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-codes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-continents.md b/docs/examples/1.4.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-countries.md b/docs/examples/1.4.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-languages.md b/docs/examples/1.4.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/create-file.md b/docs/examples/1.4.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/delete-file.md b/docs/examples/1.4.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file.md b/docs/examples/1.4.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/list-files.md b/docs/examples/1.4.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/update-file.md b/docs/examples/1.4.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/create-membership.md b/docs/examples/1.4.x/server-php/examples/teams/create-membership.md index b20e15fb18c..32ba08840be 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/create.md b/docs/examples/1.4.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/create.md +++ b/docs/examples/1.4.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/delete.md b/docs/examples/1.4.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/get-membership.md b/docs/examples/1.4.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md index 0436f969629..211373dd8aa 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/get.md b/docs/examples/1.4.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/get.md +++ b/docs/examples/1.4.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/list.md b/docs/examples/1.4.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/list.md +++ b/docs/examples/1.4.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-membership.md b/docs/examples/1.4.x/server-php/examples/teams/update-membership.md index 37b8fa7388b..befef965d22 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-name.md b/docs/examples/1.4.x/server-php/examples/teams/update-name.md index e88a31862da..09c9b6f928d 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md index 4d044cce235..fd42914c458 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create.md b/docs/examples/1.4.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create.md +++ b/docs/examples/1.4.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete-identity.md b/docs/examples/1.4.x/server-php/examples/users/delete-identity.md index a25222751cc..43a7ad69fec 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete-identity.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete-session.md b/docs/examples/1.4.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete.md b/docs/examples/1.4.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/get-prefs.md b/docs/examples/1.4.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.4.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/get.md b/docs/examples/1.4.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.4.x/server-php/examples/users/get.md +++ b/docs/examples/1.4.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-identities.md b/docs/examples/1.4.x/server-php/examples/users/list-identities.md index 2d229e41199..ba75d77de34 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-identities.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-logs.md b/docs/examples/1.4.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-memberships.md b/docs/examples/1.4.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-sessions.md b/docs/examples/1.4.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list.md b/docs/examples/1.4.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list.md +++ b/docs/examples/1.4.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-email.md b/docs/examples/1.4.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-labels.md b/docs/examples/1.4.x/server-php/examples/users/update-labels.md index b9f4dc30dca..1d8683c000f 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-labels.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-name.md b/docs/examples/1.4.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-password.md b/docs/examples/1.4.x/server-php/examples/users/update-password.md index de5ec7d1320..040e9e45993 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-phone.md b/docs/examples/1.4.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-prefs.md b/docs/examples/1.4.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-status.md b/docs/examples/1.4.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/create-recovery.md b/docs/examples/1.4.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.4.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/create-verification.md b/docs/examples/1.4.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.4.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/delete-identity.md b/docs/examples/1.4.x/server-python/examples/account/delete-identity.md index bac43345859..f542ade63ae 100644 --- a/docs/examples/1.4.x/server-python/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-python/examples/account/delete-identity.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/delete-session.md b/docs/examples/1.4.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.4.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/get-prefs.md b/docs/examples/1.4.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.4.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/get-session.md b/docs/examples/1.4.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.4.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/get.md b/docs/examples/1.4.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.4.x/server-python/examples/account/get.md +++ b/docs/examples/1.4.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/list-identities.md b/docs/examples/1.4.x/server-python/examples/account/list-identities.md index 3c166d1df1a..479f835b92c 100644 --- a/docs/examples/1.4.x/server-python/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-python/examples/account/list-identities.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/list-logs.md b/docs/examples/1.4.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.4.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/list-sessions.md b/docs/examples/1.4.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.4.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-email.md b/docs/examples/1.4.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-name.md b/docs/examples/1.4.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-password.md b/docs/examples/1.4.x/server-python/examples/account/update-password.md index 955ada651d6..7881c472f3f 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-phone.md b/docs/examples/1.4.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-prefs.md b/docs/examples/1.4.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-recovery.md b/docs/examples/1.4.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-session.md b/docs/examples/1.4.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-status.md b/docs/examples/1.4.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-verification.md b/docs/examples/1.4.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-image.md b/docs/examples/1.4.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-collection.md b/docs/examples/1.4.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-document.md b/docs/examples/1.4.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-index.md b/docs/examples/1.4.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md index 4f69ecae003..041d8f20057 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create.md b/docs/examples/1.4.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-document.md b/docs/examples/1.4.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-index.md b/docs/examples/1.4.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete.md b/docs/examples/1.4.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-collection.md b/docs/examples/1.4.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-document.md b/docs/examples/1.4.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-index.md b/docs/examples/1.4.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get.md b/docs/examples/1.4.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-collections.md b/docs/examples/1.4.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-documents.md b/docs/examples/1.4.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list.md b/docs/examples/1.4.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md index e6a7d55fb6b..e9cd95c7830 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-collection.md b/docs/examples/1.4.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md index 5c792573ae6..de0ac103e97 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-document.md b/docs/examples/1.4.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md index 8148b012fd3..b67549292b6 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md index 65ef26f274f..79c491ecbe8 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md index efbf1ad04fe..9c34b6f8f27 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md index 61c74b86751..8ab1cd1d28a 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md index 7d5a35d749d..4bd7899ad81 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md index 7c426a61e3a..cc3b6207341 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md index 2ee236e6243..f59ee07ad98 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md index 119c787d2d8..a0b2e04b457 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update.md b/docs/examples/1.4.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-build.md b/docs/examples/1.4.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md index 1ee1be05ed7..035a643ae5b 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-execution.md b/docs/examples/1.4.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-variable.md b/docs/examples/1.4.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create.md b/docs/examples/1.4.x/server-python/examples/functions/create.md index bf663969610..ddb94da7603 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/delete.md b/docs/examples/1.4.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md index ee51f679366..9534735d6d5 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get-execution.md b/docs/examples/1.4.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get-variable.md b/docs/examples/1.4.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get.md b/docs/examples/1.4.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-executions.md b/docs/examples/1.4.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-variables.md b/docs/examples/1.4.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list.md b/docs/examples/1.4.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/update-variable.md b/docs/examples/1.4.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/update.md b/docs/examples/1.4.x/server-python/examples/functions/update.md index 3960054f3af..a03fd2c02e9 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/update.md +++ b/docs/examples/1.4.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/graphql/mutation.md b/docs/examples/1.4.x/server-python/examples/graphql/mutation.md index 24226a5a013..9f43d0e5d1c 100644 --- a/docs/examples/1.4.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-python/examples/graphql/mutation.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/graphql/query.md b/docs/examples/1.4.x/server-python/examples/graphql/query.md index 8e1597c7596..a7315f8d317 100644 --- a/docs/examples/1.4.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-python/examples/graphql/query.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-cache.md b/docs/examples/1.4.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-d-b.md b/docs/examples/1.4.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md index 43ada69a0f0..72fe297e6e0 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md index 3170559e159..b87480b2fea 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md index 4faff969057..aad59d06d7c 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md index c84b9be8286..b9917720a0f 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md index cc2c3bc85db..f71e209a6b6 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md index 95200f36a32..62001189892 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md index 1c916637a98..0b47ea048e1 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue.md b/docs/examples/1.4.x/server-python/examples/health/get-queue.md index 5a355881638..03561e6de22 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-time.md b/docs/examples/1.4.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get.md b/docs/examples/1.4.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get.md +++ b/docs/examples/1.4.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/get.md b/docs/examples/1.4.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/get.md +++ b/docs/examples/1.4.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-codes.md b/docs/examples/1.4.x/server-python/examples/locale/list-codes.md index 3dc6cf8327e..9c342603f0e 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-codes.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-continents.md b/docs/examples/1.4.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-countries.md b/docs/examples/1.4.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-languages.md b/docs/examples/1.4.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/create-file.md b/docs/examples/1.4.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/delete-file.md b/docs/examples/1.4.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file.md b/docs/examples/1.4.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/list-files.md b/docs/examples/1.4.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/update-file.md b/docs/examples/1.4.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/create-membership.md b/docs/examples/1.4.x/server-python/examples/teams/create-membership.md index cde8455a969..0c637ef99a7 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/create.md b/docs/examples/1.4.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/create.md +++ b/docs/examples/1.4.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/delete.md b/docs/examples/1.4.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/get-membership.md b/docs/examples/1.4.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md index 40909fa7d88..b2b10fbbb21 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/get.md b/docs/examples/1.4.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/get.md +++ b/docs/examples/1.4.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/list.md b/docs/examples/1.4.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/list.md +++ b/docs/examples/1.4.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-membership.md b/docs/examples/1.4.x/server-python/examples/teams/update-membership.md index 816c6ad8945..aa31d90be2e 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-name.md b/docs/examples/1.4.x/server-python/examples/teams/update-name.md index 929f4ecb489..b890196f110 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md index 4176c622a0b..ef5c5989f72 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create.md b/docs/examples/1.4.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create.md +++ b/docs/examples/1.4.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete-identity.md b/docs/examples/1.4.x/server-python/examples/users/delete-identity.md index d1038248ab8..c50d877ab1d 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete-identity.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete-session.md b/docs/examples/1.4.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete.md b/docs/examples/1.4.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/get-prefs.md b/docs/examples/1.4.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.4.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/get.md b/docs/examples/1.4.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.4.x/server-python/examples/users/get.md +++ b/docs/examples/1.4.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-identities.md b/docs/examples/1.4.x/server-python/examples/users/list-identities.md index 0addd3ec8a2..283c8a12311 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-identities.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-logs.md b/docs/examples/1.4.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-memberships.md b/docs/examples/1.4.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-sessions.md b/docs/examples/1.4.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list.md b/docs/examples/1.4.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list.md +++ b/docs/examples/1.4.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-email.md b/docs/examples/1.4.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-labels.md b/docs/examples/1.4.x/server-python/examples/users/update-labels.md index b2d4c2dd01b..67e1371cfc3 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-labels.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-name.md b/docs/examples/1.4.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-password.md b/docs/examples/1.4.x/server-python/examples/users/update-password.md index e79f1255b81..548768b400d 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-phone.md b/docs/examples/1.4.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-prefs.md b/docs/examples/1.4.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-status.md b/docs/examples/1.4.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md index 60e88d38ebf..54f287c24de 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md index 5bc3e8166b9..f6f5fbf80ae 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md index 2693bb6b1e1..5dcb637749c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md index 0aff3bfeaa6..c3164123f75 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md index 89589c0763e..f3b25e72325 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md index a1a6a2c14a1..46f18d9a675 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md index d2f684e3f01..e13c47b2f54 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/get-session.md b/docs/examples/1.4.x/server-ruby/examples/account/get-session.md index 12d048abef4..1b331e10aa9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/get.md b/docs/examples/1.4.x/server-ruby/examples/account/get.md index 29ca6207913..72cf8b90265 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md index dec816d9914..18af2b1a1d8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md index 874ea7e4438..01cdd0e7670 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md index 961142ebc29..8d08ef3e1e7 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-email.md b/docs/examples/1.4.x/server-ruby/examples/account/update-email.md index c9088d0ffc3..55acbc15db6 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-name.md b/docs/examples/1.4.x/server-ruby/examples/account/update-name.md index e75e9a1f074..455cf8048ac 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-password.md b/docs/examples/1.4.x/server-ruby/examples/account/update-password.md index c453a12b46d..b18cf533913 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md index 9a38320e7da..58f5e29e231 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md index 81bbb322d09..5f81881006d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md index 4a379d9bf05..bfaf7ad8850 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md index bbedfa17421..4202bca4c01 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-session.md b/docs/examples/1.4.x/server-ruby/examples/account/update-session.md index 724251e85ae..032c95d8d7d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-status.md b/docs/examples/1.4.x/server-ruby/examples/account/update-status.md index 5f3bb376103..520981db91c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md index 416ab5184df..92297e79ba8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md index 969eb5bb6c9..38786cf1c30 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md index 81a81ceeb27..c31c9e237d2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md index b1a574522aa..49683892d0e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md index ed53143b2fa..0080ba09a1f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md index 59fb6c36c54..7745cadb12a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md index 93263baccb4..8803ac8f355 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md index bdaa14f8923..fdc53b1021e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md index 524c01a2e30..201b3fd36bc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md index 396fa2b6cc4..d48dbec7799 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md index 7e306bf5e26..022cc4118ef 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md index e1faebd92ef..ec985cf34d2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md index c81b176ac74..73e89ffde02 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md index 1505c9db207..2e712d045c2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md index b1d7e981df3..9e3406b6e26 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md index 456e293f6e9..74df580eaf2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md index 55079da7c6b..4419e87ae1a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md index c414d631d53..ce04aa21a97 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md index 73ca419ff8b..a4e55221dfa 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md index 9027496caad..b6774761ead 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md index 6c7d356e8bf..18d119a9b98 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create.md b/docs/examples/1.4.x/server-ruby/examples/databases/create.md index 494ca1503b2..77c59ab3079 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md index de35bb2756c..ca2bbb85a62 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md index 07e3a439f2a..dbbd8852781 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md index 0e94edd3fa5..f88b2e6bc64 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md index 63436e57002..1f5096fc362 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete.md index ee34774cee9..04819fac041 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md index 585c311ff73..449cae1dbcf 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md index 3c53903ebbd..771edddf048 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md index 342812e659a..875d966bbb0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md index c32ec0565d0..3d918807f16 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get.md b/docs/examples/1.4.x/server-ruby/examples/databases/get.md index ab1f098b6d9..0e4943c7313 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md index 183d99d1932..2935ccbdcad 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md index 472800a4c10..18a84038e43 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md index 920946501d0..6eda1af0eaf 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md index 63b1e75ec25..5509ec0ea25 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list.md b/docs/examples/1.4.x/server-ruby/examples/databases/list.md index eb810096f5e..4d10505dd60 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md index 020d97689c3..ea01a100cb8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md index e185aef2aec..87ce4a6e214 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md index 2e931947d03..1ad37e80241 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md index 8b7680b85fa..38f7203c0f6 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md index 3d0dc5c8a49..533be7d1d4e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md index feb38711252..afe0141aafa 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md index ec14217766e..69450c0d7dc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md index 976bad938df..32f3386c7a3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md index 24d96b9d894..a072f2791db 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md index 345aea9deba..2b2d68bda00 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md index 1801723c16e..265eeb68826 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md index 429f690ed12..92f0a51ddbb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update.md b/docs/examples/1.4.x/server-ruby/examples/databases/update.md index f727f582d13..b866c979647 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md index 344f92a9ec7..f5a347823e4 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md index 491a80846e6..837bc7f972a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md index f14283b9d34..c9ec872b1b1 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md index ffb03ce042f..6c9ee947810 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create.md b/docs/examples/1.4.x/server-ruby/examples/functions/create.md index 92ced89620a..de5058941c0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md index 49004f60de6..51c68d42d76 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md index ef37dd5abbf..13bd8ee4d87 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/delete.md b/docs/examples/1.4.x/server-ruby/examples/functions/delete.md index 5e7d622fb72..902160ba898 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md index f6186a3037a..57edaba4348 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md index 35c2f011087..c3d8872f3e3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md index c464fbc2fcc..f82e539987b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md index 7559482af9f..ef581e150db 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get.md b/docs/examples/1.4.x/server-ruby/examples/functions/get.md index 54d61840c90..b3c99283a4f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md index d11e42e8d6b..976aee548fb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md index 792d606f9bf..34936f3b75f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md index a8c8fea4a31..ded2a6ffb20 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md index d7d088890a9..41a0c9570ef 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list.md b/docs/examples/1.4.x/server-ruby/examples/functions/list.md index 06f9ae7ae34..d65b551cc3b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md index c768e662ec6..77c68d74fd3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md index 07be591e9ed..b53ef4f96c9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/update.md b/docs/examples/1.4.x/server-ruby/examples/functions/update.md index f45fc1b312f..a5796514681 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md index ad4d03770b4..fea44506903 100644 --- a/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/graphql/query.md b/docs/examples/1.4.x/server-ruby/examples/graphql/query.md index a11b2881af7..9e3f8d23735 100644 --- a/docs/examples/1.4.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md index fbd90494412..23dc67ec193 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md index 3de43bf7637..0e8d905b8cd 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md index 8d37dec0bc1..7c9dc9f42e9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md index dac20b2231d..b4e8fd65f92 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md index 4fad17f30a9..837329c43a6 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md index 42e0863f9a9..779dd120a46 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md index 7536fc77683..344fe6a991d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md index ae96a911e48..01eab0af74b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md index e350779f791..b1420564f8f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md index 3fd4570d2ff..136720c2c6d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md index cb184182f5c..7cc9f2abdeb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md index 936d9fdffa4..207cb5f654c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md index 2d8a32b6a73..150463c1d5f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md index 0c10a192117..8be1eaea8fe 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md index e67a90b11c1..9af2ef2f133 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md index 4cede4153c4..da3ea231fc7 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-time.md b/docs/examples/1.4.x/server-ruby/examples/health/get-time.md index 21750d7b96c..5396edbcb85 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get.md b/docs/examples/1.4.x/server-ruby/examples/health/get.md index 395b039cec4..f8cebe49777 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/get.md b/docs/examples/1.4.x/server-ruby/examples/locale/get.md index 6a4ecb7df2e..1b3863df8a9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md index d32be917760..6034f358aa3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md index c154e3e74a7..c97151d3a59 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md index dbbeeace38d..55182c4ccfc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md index d44f0c6a7f0..276b5f868bc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md index 0431a5444ea..56b04ea98b1 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md index 610b45901cd..e8fa59419e9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md index dc09d481c26..154d2ff2eb0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md index be1229ddd64..7c2898c61fb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md index de207f1b64e..46f4b700b05 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md index bcb1b23a422..d1fea9a3149 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md index 4f0585773f8..f5a39397c54 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md index 1ee6843c8c3..ce635c27fca 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md index 4fe5798e6b1..af39e1e1921 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md index e76168c3eae..afb6a88e624 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md index 91dcbb59058..e484703cc12 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md index 2aea60a8daa..f1621af784d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md index 32016332363..a92d14c291a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md index 247426cc116..90f8db6555c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md index 97238c1eb03..245fd161bba 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md index 2a1fe43bc9d..ce0b106a57b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md index cb2ddfb0565..9485e3096e5 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/create.md b/docs/examples/1.4.x/server-ruby/examples/teams/create.md index 5f0f1f48277..7361dd31df7 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md index 2b78ca8ce1e..f2137a3d13e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/delete.md b/docs/examples/1.4.x/server-ruby/examples/teams/delete.md index 4d71b38ea9a..e57d3869436 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md index 864ff8b8ecc..a0464d55c14 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md index 22135af9ff9..a27fc9a1e1a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/get.md b/docs/examples/1.4.x/server-ruby/examples/teams/get.md index a0e2aeb2ab9..cbc84c4e7e2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md index c742c4520b0..6cd99fafcf8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/list.md b/docs/examples/1.4.x/server-ruby/examples/teams/list.md index 9f12e7f9edc..567fd01030c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md index 6c47214abc1..81a6fc4dce4 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md index d94291bcd13..c42f067f280 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md index 61914f7d5ac..cc36cfafa74 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md index 20e3942131b..10e0b54dc19 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md index 7249612c5f3..10d3db61810 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md index 1d253f687c7..04904eff446 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md index cc36572cf4b..b55c572ab46 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md index 30004fc3600..f9be63a721f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md index 809c313ca62..a25317929ea 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md index 46b17d1338e..81417b6cbdb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md index c84f7e7bab8..251d226f1d9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create.md b/docs/examples/1.4.x/server-ruby/examples/users/create.md index a73a489294b..3f1e303b4e0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md index dd14abb41c4..da10d067e8f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md index da0362bfcbf..72d897b633d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md index 647916fdf0d..2b0ce0d22a0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete.md b/docs/examples/1.4.x/server-ruby/examples/users/delete.md index b128e57c69c..e65afd4c160 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md index 984d1e60c3e..69cea324dfc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/get.md b/docs/examples/1.4.x/server-ruby/examples/users/get.md index f0ace233a90..62b2da23ee8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md index fc18bc9bfe8..156b3681afa 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md index 4bea6d152aa..28c43d95ab0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md index 94654413978..4ffbbb36773 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md index 27f04e1bb05..5178a7d73fd 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list.md b/docs/examples/1.4.x/server-ruby/examples/users/list.md index 3672217a75e..c2844342390 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md index 4ef455f9d48..4dfa52e7c97 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-email.md b/docs/examples/1.4.x/server-ruby/examples/users/update-email.md index 93e963e3251..4d5e5600869 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md index 7947ef67375..89d5126d93a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-name.md b/docs/examples/1.4.x/server-ruby/examples/users/update-name.md index 54a3edfb099..09e745aadd1 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-password.md b/docs/examples/1.4.x/server-ruby/examples/users/update-password.md index 2623267f553..8d1a98d9d08 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md index ec96581e21f..9e8dd9dee2b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md index 430f03aaeda..cef37175ab8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md index eb17d8f500f..d3058ff1b40 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-status.md b/docs/examples/1.4.x/server-ruby/examples/users/update-status.md index 34365cf58ed..2d27d29ac74 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md index cdeba917008..26ced5985bf 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md index fdb0e53765f..06cc974d663 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/create-verification.md b/docs/examples/1.4.x/server-swift/examples/account/create-verification.md index 63a6a7ac94f..1abcc4abb21 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md index 1ebcc46a7af..53f286ff873 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/delete-session.md b/docs/examples/1.4.x/server-swift/examples/account/delete-session.md index de9f736f9ce..e5c88080e93 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md index 0f58c600d25..971f34d524e 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md index ce72d7c340d..be9acecd9af 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/get-session.md b/docs/examples/1.4.x/server-swift/examples/account/get-session.md index e1b48b5aa50..3c5092f3be6 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/get.md b/docs/examples/1.4.x/server-swift/examples/account/get.md index 060b6a4a275..4d40b4b4748 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/get.md +++ b/docs/examples/1.4.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/list-identities.md b/docs/examples/1.4.x/server-swift/examples/account/list-identities.md index 4158e54b089..7940998f869 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-swift/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/list-logs.md b/docs/examples/1.4.x/server-swift/examples/account/list-logs.md index ee2e8bb7e6d..762062d1062 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md index 2baf5836a2a..c3b2b0aed0a 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-email.md b/docs/examples/1.4.x/server-swift/examples/account/update-email.md index 4041da0222f..74244ea9d79 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-name.md b/docs/examples/1.4.x/server-swift/examples/account/update-name.md index 440b1b6c245..cd4be44741a 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-password.md b/docs/examples/1.4.x/server-swift/examples/account/update-password.md index 91d55db20f0..82c03d73dbd 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md index 29052c573a9..22cc1e86586 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-phone.md b/docs/examples/1.4.x/server-swift/examples/account/update-phone.md index 645b6fc840b..9f215a9fe13 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md index 520f9d5fd42..05a1b445ae8 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md index 92825cae559..ba8d1fa1a0c 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-session.md b/docs/examples/1.4.x/server-swift/examples/account/update-session.md index 84229182aaa..d0002b6e497 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-status.md b/docs/examples/1.4.x/server-swift/examples/account/update-status.md index 96b94d63a1d..0f3e22b4011 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-verification.md b/docs/examples/1.4.x/server-swift/examples/account/update-verification.md index b8e925783eb..c50bf1b88d2 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md index df3a99c67a6..b566d6ca059 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md index ce4382d77b0..5b47aab1ab1 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md index 36c77218b74..77803cd5a07 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md index 849ec48cea1..16e566d9e1e 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md index d457976f549..2fd24c5c7d5 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md index 74d8d956db3..9062ca5ca73 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md index 537bfb5b43f..c8d7fba5be5 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md index 11eae088e7a..1be49bb0d44 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md index ff9172bb29a..b4bb744eee0 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md index 26020fb88fa..119c5ec830e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-document.md b/docs/examples/1.4.x/server-swift/examples/databases/create-document.md index b76eab7c708..5985560b67f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md index cddebec6b24..690a49b68a1 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md index dc56bff3950..b08ccbeb831 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md index ec01499e988..851afc2ac1a 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-index.md b/docs/examples/1.4.x/server-swift/examples/databases/create-index.md index 03cc91b0b44..2271a9898ef 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md index eeea1cb01bf..72cd31c5a83 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md index 948aa2ad376..c03c555f52f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md index adb7cbb1fc4..5cbf08e2a4f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md index 0d3e65442b8..daa04767a3f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md index 747a6c73673..94eefa1b610 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create.md b/docs/examples/1.4.x/server-swift/examples/databases/create.md index 5e4abf88a03..6578c5783bf 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md index 0fc94705708..a9c778b34c3 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md index b00916534e3..f410170aa84 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md index 185c33d4102..24dd564236c 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md index 0ad4ac3442a..fa5acc635ab 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete.md b/docs/examples/1.4.x/server-swift/examples/databases/delete.md index 48b687e237f..01be19d136e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md index e0ea280f568..4d4697052b7 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md index 39c36b3d617..a55294591a9 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-document.md b/docs/examples/1.4.x/server-swift/examples/databases/get-document.md index 2a12e1140ac..2d2768ca2c3 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-index.md b/docs/examples/1.4.x/server-swift/examples/databases/get-index.md index e69263346ae..69b694d0724 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get.md b/docs/examples/1.4.x/server-swift/examples/databases/get.md index 805fa3ee23b..9fa4abca507 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md index 475da0a7124..71fdcbc9971 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md index 8e451ca8a00..bf150e8596e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md index 24bb8597614..0ca2d5ff485 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md index 145c02ddcc4..be16b25a318 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list.md b/docs/examples/1.4.x/server-swift/examples/databases/list.md index fe7a54df444..45796c04c02 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md index 73b68190ba0..90dd5f748ee 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md index 807c5659f9c..d2969b4a4de 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md index 4ec71bbcf03..5f4444a08b4 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-document.md b/docs/examples/1.4.x/server-swift/examples/databases/update-document.md index 56eed000828..872711afcf3 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md index 11608e1fcab..3f72ca75a68 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md index fce99d4d03a..4a0560224ca 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md index 6cc8457d008..72393b3955e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md index cde600aad9f..56fcead9676 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md index 7d70495c27c..3f2e2e1b8a0 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md index e89c3658c21..f39630217b2 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md index 40ab7baa48b..6c8263674ca 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md index ef9198e3bb5..3adb9f83930 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update.md b/docs/examples/1.4.x/server-swift/examples/databases/update.md index 8e14f080094..b9185e6aaeb 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-build.md b/docs/examples/1.4.x/server-swift/examples/functions/create-build.md index 8419bf69500..2c469e5ea69 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md index c6d32a1ba86..25299ccaa0c 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md index 0354bf54883..1454b4e11a5 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md index f2613111929..914f189284e 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create.md b/docs/examples/1.4.x/server-swift/examples/functions/create.md index 739c79825a4..0c67dc478e1 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md index 228f9f62e23..378e1f35aa8 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md index 410cffe13c2..55e3d4a91f2 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/delete.md b/docs/examples/1.4.x/server-swift/examples/functions/delete.md index bee774e61b6..67b2f0332cf 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md index e75d1e7dfc6..e835027225e 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md index 0a463c41213..aba9a5084ab 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md index 7af8bd5906f..c8ec6c1aca5 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md index f2fa61b9034..f8acd3dda4f 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get.md b/docs/examples/1.4.x/server-swift/examples/functions/get.md index c5ba24ae266..aead1667f2b 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md index 652620bf401..c2c32eaa346 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md index fa32172cbdb..26536b7e034 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..c7de59bed3d 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md index d13c752254d..abf0f514be8 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list.md b/docs/examples/1.4.x/server-swift/examples/functions/list.md index 81363f17ff7..d04ab677f3f 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md index b0f4fc23c43..1e81e41286e 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md index 0eb5b2e9760..2ce5b597ea5 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/update.md b/docs/examples/1.4.x/server-swift/examples/functions/update.md index 3612a7c46df..ebbc92877bc 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md index db869d48c93..f2a0460e28b 100644 --- a/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/graphql/query.md b/docs/examples/1.4.x/server-swift/examples/graphql/query.md index 5e97508be50..58fe1041c45 100644 --- a/docs/examples/1.4.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..2c45f7a619a 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-cache.md b/docs/examples/1.4.x/server-swift/examples/health/get-cache.md index a682d63a6f6..8d54eede9c7 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md index 81645497b5c..e115eee2add 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md index 5bf027108a5..d06974d6293 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md index 5c8ac113668..426924a50c2 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md index 71f4dcfc436..f9490918e43 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md index a35bd6b232e..94a6cc06c2c 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md index fc0ec10f84e..06fb93c2827 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md index d6bdf767564..2f412b9da15 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md index 7580e46da17..6fc521baef1 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md index a9177a7a62f..0cd7fc1f633 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md index 04e36436152..68dea12e934 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md index 6b28b4ee64c..13f596b2691 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md index 431a5a031c9..42f1de37fea 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue.md index 6f8131d7e83..88e3b8a82b1 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md index ee807980bba..276b1635ae7 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-time.md b/docs/examples/1.4.x/server-swift/examples/health/get-time.md index f6d66d950a9..7b4bbb3dee8 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get.md b/docs/examples/1.4.x/server-swift/examples/health/get.md index 828f3453e0c..179b9694a2f 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/get.md b/docs/examples/1.4.x/server-swift/examples/locale/get.md index 5c5aee4cb4f..99df3ebbd11 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md index 72966a63712..9e0b107b548 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md index 8cd7964b639..d3b8a66262e 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md index a787e7b7222..a02f72cd7af 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md index cf16d2d0b29..2d4d7ef0068 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md index 32d5901e37e..ba769689a3e 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md index 6b1daa7422c..2211e1855fa 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md index 72c5649aaea..c8656709532 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md index d3f91ab7af0..80ffc45decc 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/create-file.md b/docs/examples/1.4.x/server-swift/examples/storage/create-file.md index 45dd245d318..664a54c53ff 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md index 4d41f1c373f..6c407365766 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md index b2168f8ca1a..5d547d82a55 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md index 8a27759e0e9..352aab3412f 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md index 5205e17d436..1784f72852d 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md index f6fbec66546..92fce42694d 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md index 5926bdd959b..10d9c181d18 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file.md index e516242775b..697dc83a16a 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md index a3e92b282e4..c991833cdb1 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/list-files.md b/docs/examples/1.4.x/server-swift/examples/storage/list-files.md index 153a10d27f7..1f0018a150c 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md index d2fd96c33de..f495e5efaae 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/update-file.md b/docs/examples/1.4.x/server-swift/examples/storage/update-file.md index f37202aa300..3a29db869db 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md index d441c26d27d..3f32ea08737 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/create.md b/docs/examples/1.4.x/server-swift/examples/teams/create.md index e4f8c09e576..2e2b7faba06 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md index 25326deba06..2f08c2cf0b3 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/delete.md b/docs/examples/1.4.x/server-swift/examples/teams/delete.md index c0e3d5e898d..104b19cecc3 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md index c399832ec26..c7adc3d0b62 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md index 4a79855f651..8cb4da49623 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/teams/get.md b/docs/examples/1.4.x/server-swift/examples/teams/get.md index 07980d4f480..a100c3d20b5 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md index 57d6ef7d379..31fd6131145 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/list.md b/docs/examples/1.4.x/server-swift/examples/teams/list.md index cdb174c357e..b5aa000dc03 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md index e209ece5eae..0ef80c00cc2 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md index 0bbb83228e5..cb2d9c776ea 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-name.md b/docs/examples/1.4.x/server-swift/examples/teams/update-name.md index 378d6d1ade4..66196008c72 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md index 142896ad8a7..1d1ffd1d949 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md index 5914c87d968..bdef66e02c6 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md index 4321365b5c3..2e2f17737b2 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md index 2302780c6b7..30033f8b9d3 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md index b856891a7d0..65cd8658f44 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md index c96661377ac..c6c8f41b073 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md index 3a9f70386ef..bfc1ba25e99 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md index dbe923de938..5716295eae6 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create.md b/docs/examples/1.4.x/server-swift/examples/users/create.md index db49c1f77f6..1727ee5acd3 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md index d4b26dbc68b..7c18ed06d68 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete-session.md b/docs/examples/1.4.x/server-swift/examples/users/delete-session.md index 161e11d2748..694dcdb7924 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md index 71bc2bf8931..a3d02a82030 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete.md b/docs/examples/1.4.x/server-swift/examples/users/delete.md index c8762da65ac..883e305527f 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md index 956724d0b3f..149ec000999 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/get.md b/docs/examples/1.4.x/server-swift/examples/users/get.md index a2b3a126f92..83126bd872e 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/get.md +++ b/docs/examples/1.4.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-identities.md b/docs/examples/1.4.x/server-swift/examples/users/list-identities.md index db550963683..9dd48cf22de 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-logs.md b/docs/examples/1.4.x/server-swift/examples/users/list-logs.md index 20a55b7f50e..71c3f667857 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md index c07287eb46b..089b27da64a 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md index 9f403d8da02..ed3c7677bf9 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list.md b/docs/examples/1.4.x/server-swift/examples/users/list.md index 6b41b200156..59a0e1d44d4 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md index b0649e63f6e..76e0a069b32 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-email.md b/docs/examples/1.4.x/server-swift/examples/users/update-email.md index 892ff0033fa..7d779fcd1f2 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-labels.md b/docs/examples/1.4.x/server-swift/examples/users/update-labels.md index 47fc1433874..8aade12c64c 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-labels.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-name.md b/docs/examples/1.4.x/server-swift/examples/users/update-name.md index a5ce6f9cadc..4f0e1118f63 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-password.md b/docs/examples/1.4.x/server-swift/examples/users/update-password.md index fa2de8b93c8..cac1e9c6a2f 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md index f837ffc1670..ea10791ac0f 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-phone.md b/docs/examples/1.4.x/server-swift/examples/users/update-phone.md index f2b8f350dec..465d2613c98 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md index fc4131ea2fa..387d04f82ed 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-status.md b/docs/examples/1.4.x/server-swift/examples/users/update-status.md index f382775b179..c89328d3412 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/client-android/java/account/add-authenticator.md b/docs/examples/1.5.x/client-android/java/account/add-authenticator.md index e81255d1e6f..c38ff35c729 100644 --- a/docs/examples/1.5.x/client-android/java/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md index 46ae275ea7b..1639cdc1f02 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-challenge.md b/docs/examples/1.5.x/client-android/java/account/create-challenge.md index 7a319205d90..4b93e74392f 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md b/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md index 85d460e5857..817bda0123d 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-email-token.md b/docs/examples/1.5.x/client-android/java/account/create-email-token.md index adf8b3def37..a4bc83b6013 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-email-token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md index 13e6e49e466..9aeb29c77a1 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md index 21108cc11c1..e57758aca47 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md index cc64341441c..b8b06c34f31 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md index a2c2aa4601d..d9d9bb67324 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md index 8ed8573c5ef..6e23ad2a996 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md index ba284a1a06c..59f5b418e73 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md b/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md index eb64da12e7e..610319682c7 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-phone-token.md b/docs/examples/1.5.x/client-android/java/account/create-phone-token.md index 29ef311c9ae..a1ad85be754 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md index ef14ce85316..cca9283392c 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-push-target.md b/docs/examples/1.5.x/client-android/java/account/create-push-target.md index 7eff45379a4..34e8fcb25d6 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-push-target.md +++ b/docs/examples/1.5.x/client-android/java/account/create-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-recovery.md b/docs/examples/1.5.x/client-android/java/account/create-recovery.md index 19006f63ef0..4d2af8b160a 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.5.x/client-android/java/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-session.md b/docs/examples/1.5.x/client-android/java/account/create-session.md index 013d372c00d..71d11a541cb 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-verification.md b/docs/examples/1.5.x/client-android/java/account/create-verification.md index 254a31b828d..be4f7c91b9e 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create.md b/docs/examples/1.5.x/client-android/java/account/create.md index 8ee1de3eda3..e7212486bcb 100644 --- a/docs/examples/1.5.x/client-android/java/account/create.md +++ b/docs/examples/1.5.x/client-android/java/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md index e095df776cd..95bba7ca0ab 100644 --- a/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md b/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md index c988cfa1e31..270fba43ba3 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-identity.md b/docs/examples/1.5.x/client-android/java/account/delete-identity.md index 1d6922a2f2e..6a62ea2a00b 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-identity.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md index e8219307b90..bb6cb09f0ab 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md @@ -5,13 +5,12 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); account.deleteMfaAuthenticator( AuthenticatorType.TOTP, // type - "", // otp new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-push-target.md b/docs/examples/1.5.x/client-android/java/account/delete-push-target.md index 484fc2cb138..c3208004190 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-session.md b/docs/examples/1.5.x/client-android/java/account/delete-session.md index 43440614385..2efc0f64634 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-sessions.md b/docs/examples/1.5.x/client-android/java/account/delete-sessions.md index 147523ed2a2..d4c438070e4 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md index 14e5023a176..acf5984f691 100644 --- a/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get-prefs.md b/docs/examples/1.5.x/client-android/java/account/get-prefs.md index bfa3c1a0e22..0fea3fe40a8 100644 --- a/docs/examples/1.5.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.5.x/client-android/java/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get-session.md b/docs/examples/1.5.x/client-android/java/account/get-session.md index 470f643b734..3ce4ab5177c 100644 --- a/docs/examples/1.5.x/client-android/java/account/get-session.md +++ b/docs/examples/1.5.x/client-android/java/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get.md b/docs/examples/1.5.x/client-android/java/account/get.md index 9006cb84110..5c25ed08cd1 100644 --- a/docs/examples/1.5.x/client-android/java/account/get.md +++ b/docs/examples/1.5.x/client-android/java/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-factors.md b/docs/examples/1.5.x/client-android/java/account/list-factors.md index e2d92b5e803..4e83332a6e1 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-factors.md +++ b/docs/examples/1.5.x/client-android/java/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-identities.md b/docs/examples/1.5.x/client-android/java/account/list-identities.md index cb5f74eccaa..7f9449dc225 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-identities.md +++ b/docs/examples/1.5.x/client-android/java/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-logs.md b/docs/examples/1.5.x/client-android/java/account/list-logs.md index 998d8a88f6c..3aa66e2b8d9 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.5.x/client-android/java/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md b/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md index e1a6fa69769..a10cb8d5205 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-sessions.md b/docs/examples/1.5.x/client-android/java/account/list-sessions.md index 9e70f0d70e9..aa8d37b3736 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.5.x/client-android/java/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-challenge.md b/docs/examples/1.5.x/client-android/java/account/update-challenge.md index b2953e3347b..90c4c4d9582 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-email.md b/docs/examples/1.5.x/client-android/java/account/update-email.md index 13c5b65c3bb..98cf9076c49 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-email.md +++ b/docs/examples/1.5.x/client-android/java/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md b/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md index 7c774c7d7f3..620a20c2670 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md index 339b1f7134e..1b79b73b1c7 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md index 44bb7f039dc..74321be38b7 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md index e30c733fa2d..a92f0070928 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md index 880d4780494..2aa82b1d440 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-name.md b/docs/examples/1.5.x/client-android/java/account/update-name.md index ff23acecf34..40a5e2ea554 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-name.md +++ b/docs/examples/1.5.x/client-android/java/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-password.md b/docs/examples/1.5.x/client-android/java/account/update-password.md index 764debfc2d7..355c06de71f 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-password.md +++ b/docs/examples/1.5.x/client-android/java/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-phone-session.md b/docs/examples/1.5.x/client-android/java/account/update-phone-session.md index 69d2dd76f0c..042238e397a 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-android/java/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md index 304e73edbc6..ba7b69cb343 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-phone.md b/docs/examples/1.5.x/client-android/java/account/update-phone.md index 795700a632e..b3ce0f6816c 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.5.x/client-android/java/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-prefs.md b/docs/examples/1.5.x/client-android/java/account/update-prefs.md index 71eae4c26bb..d74606739f9 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.5.x/client-android/java/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-push-target.md b/docs/examples/1.5.x/client-android/java/account/update-push-target.md index 90dc29ea3ab..f9491e06b7a 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-push-target.md +++ b/docs/examples/1.5.x/client-android/java/account/update-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-recovery.md b/docs/examples/1.5.x/client-android/java/account/update-recovery.md index 527351ccefa..e172f12ccfc 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.5.x/client-android/java/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-session.md b/docs/examples/1.5.x/client-android/java/account/update-session.md index e2ef0c35a78..b3e8706d2b3 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-session.md +++ b/docs/examples/1.5.x/client-android/java/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-status.md b/docs/examples/1.5.x/client-android/java/account/update-status.md index 61cb9449232..22166492842 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-status.md +++ b/docs/examples/1.5.x/client-android/java/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-verification.md b/docs/examples/1.5.x/client-android/java/account/update-verification.md index 3f141961e03..25949432439 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md b/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md index c73ac43fbb7..71261975204 100644 --- a/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-browser.md b/docs/examples/1.5.x/client-android/java/avatars/get-browser.md index a7b9e7f0478..f7e8651dfa1 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md index 61a8a5101e2..5b1ee0660e1 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md index d2f86c0971a..05bf590d721 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-flag.md b/docs/examples/1.5.x/client-android/java/avatars/get-flag.md index dc8cc2901b3..6a2185c543f 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-image.md b/docs/examples/1.5.x/client-android/java/avatars/get-image.md index 81e80292ab9..78fbf98f90a 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-initials.md b/docs/examples/1.5.x/client-android/java/avatars/get-initials.md index f6c3ee6bd30..621798be3a0 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md index d75b3b3b25a..fc8bc4397ef 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/create-document.md b/docs/examples/1.5.x/client-android/java/databases/create-document.md index 361d5fef1ff..6c7e068be88 100644 --- a/docs/examples/1.5.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/delete-document.md b/docs/examples/1.5.x/client-android/java/databases/delete-document.md index 26b67a239bc..0cbd6b50711 100644 --- a/docs/examples/1.5.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/get-document.md b/docs/examples/1.5.x/client-android/java/databases/get-document.md index ac894897c75..0918c884505 100644 --- a/docs/examples/1.5.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/list-documents.md b/docs/examples/1.5.x/client-android/java/databases/list-documents.md index 9f7042587b3..9cc722b0f37 100644 --- a/docs/examples/1.5.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.5.x/client-android/java/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/update-document.md b/docs/examples/1.5.x/client-android/java/databases/update-document.md index 430a617d68e..ccfb4982c9c 100644 --- a/docs/examples/1.5.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/functions/create-execution.md b/docs/examples/1.5.x/client-android/java/functions/create-execution.md index 0db569bc2f6..845f02ea70b 100644 --- a/docs/examples/1.5.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.5.x/client-android/java/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -15,6 +15,7 @@ functions.createExecution( "", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/client-android/java/functions/get-execution.md b/docs/examples/1.5.x/client-android/java/functions/get-execution.md index 66bf2639c01..c53ef0e093f 100644 --- a/docs/examples/1.5.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.5.x/client-android/java/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/client-android/java/functions/list-executions.md b/docs/examples/1.5.x/client-android/java/functions/list-executions.md index 1bb510a4a20..b796dc96b31 100644 --- a/docs/examples/1.5.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.5.x/client-android/java/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/client-android/java/graphql/mutation.md b/docs/examples/1.5.x/client-android/java/graphql/mutation.md index a7e5f6e3589..b79903b711e 100644 --- a/docs/examples/1.5.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.5.x/client-android/java/graphql/mutation.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/client-android/java/graphql/query.md b/docs/examples/1.5.x/client-android/java/graphql/query.md index a6420b4a0c7..82bad13666a 100644 --- a/docs/examples/1.5.x/client-android/java/graphql/query.md +++ b/docs/examples/1.5.x/client-android/java/graphql/query.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/get.md b/docs/examples/1.5.x/client-android/java/locale/get.md index cc378966301..29b542f41fd 100644 --- a/docs/examples/1.5.x/client-android/java/locale/get.md +++ b/docs/examples/1.5.x/client-android/java/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-codes.md b/docs/examples/1.5.x/client-android/java/locale/list-codes.md index 3fbdf85d5ef..d8c9a0bc6b8 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-codes.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-continents.md b/docs/examples/1.5.x/client-android/java/locale/list-continents.md index 296eaded39a..cf43045f6ab 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md index f674ac5bf19..b7b56ab8170 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md index 6280cbb860b..c3598c07390 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-countries.md b/docs/examples/1.5.x/client-android/java/locale/list-countries.md index eab9ae2a72a..91ac0520bed 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-currencies.md b/docs/examples/1.5.x/client-android/java/locale/list-currencies.md index 662e0253af7..5233004baef 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-languages.md b/docs/examples/1.5.x/client-android/java/locale/list-languages.md index dd68bf26d9b..0f10563846e 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md b/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md index e83b43c05da..e8fa79f772b 100644 --- a/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md index 5e8302b5d99..7e5b3d20175 100644 --- a/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/create-file.md b/docs/examples/1.5.x/client-android/java/storage/create-file.md index a0605520e01..bc9ebed4f4f 100644 --- a/docs/examples/1.5.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/delete-file.md b/docs/examples/1.5.x/client-android/java/storage/delete-file.md index 113dfceeb3c..eaeb47b669b 100644 --- a/docs/examples/1.5.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file-download.md b/docs/examples/1.5.x/client-android/java/storage/get-file-download.md index 22207caea21..d0fdc41f76a 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md index df81fb40473..c935e6fe2b5 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file-view.md b/docs/examples/1.5.x/client-android/java/storage/get-file-view.md index d64c3e6a1d4..bbfd04d51a7 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file.md b/docs/examples/1.5.x/client-android/java/storage/get-file.md index b68bf7897f0..a63122f57a8 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/list-files.md b/docs/examples/1.5.x/client-android/java/storage/list-files.md index 8b84ecb4529..dc327fc70a2 100644 --- a/docs/examples/1.5.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.5.x/client-android/java/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/update-file.md b/docs/examples/1.5.x/client-android/java/storage/update-file.md index 12b6443d982..ed81821cbea 100644 --- a/docs/examples/1.5.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/create-membership.md b/docs/examples/1.5.x/client-android/java/teams/create-membership.md index 468571ece2f..b30f1765c60 100644 --- a/docs/examples/1.5.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/create.md b/docs/examples/1.5.x/client-android/java/teams/create.md index 3c757acdb82..a0d4f07bc9b 100644 --- a/docs/examples/1.5.x/client-android/java/teams/create.md +++ b/docs/examples/1.5.x/client-android/java/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/delete-membership.md b/docs/examples/1.5.x/client-android/java/teams/delete-membership.md index e23409f7ad7..7f9189f55bc 100644 --- a/docs/examples/1.5.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/delete.md b/docs/examples/1.5.x/client-android/java/teams/delete.md index 567ea3dbd87..2f4e861248f 100644 --- a/docs/examples/1.5.x/client-android/java/teams/delete.md +++ b/docs/examples/1.5.x/client-android/java/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/get-membership.md b/docs/examples/1.5.x/client-android/java/teams/get-membership.md index c09a267be09..529feb22942 100644 --- a/docs/examples/1.5.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/get-prefs.md b/docs/examples/1.5.x/client-android/java/teams/get-prefs.md index 48a98153c8c..61da757178e 100644 --- a/docs/examples/1.5.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-android/java/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/get.md b/docs/examples/1.5.x/client-android/java/teams/get.md index 20a6f6a280d..39fe4d4a0ee 100644 --- a/docs/examples/1.5.x/client-android/java/teams/get.md +++ b/docs/examples/1.5.x/client-android/java/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/list-memberships.md b/docs/examples/1.5.x/client-android/java/teams/list-memberships.md index 2de609c2f5d..58430f074cb 100644 --- a/docs/examples/1.5.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-android/java/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/list.md b/docs/examples/1.5.x/client-android/java/teams/list.md index 7f7910c2f9f..914509f47d1 100644 --- a/docs/examples/1.5.x/client-android/java/teams/list.md +++ b/docs/examples/1.5.x/client-android/java/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md index 97e82427b19..513461331b1 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-membership.md b/docs/examples/1.5.x/client-android/java/teams/update-membership.md index 86f0ddd3f05..a60c2a0df3e 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-name.md b/docs/examples/1.5.x/client-android/java/teams/update-name.md index 1aa96f8b192..54f218e411e 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-prefs.md b/docs/examples/1.5.x/client-android/java/teams/update-prefs.md index e188a99442c..eaa161e611b 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject(""); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md b/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md index 2de3df7934f..f86ca203157 100644 --- a/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.AuthenticatorProvider; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Users users = new Users(client); diff --git a/docs/examples/1.5.x/client-android/java/users/list-providers.md b/docs/examples/1.5.x/client-android/java/users/list-providers.md index ca2f27d818a..8e64a15b16a 100644 --- a/docs/examples/1.5.x/client-android/java/users/list-providers.md +++ b/docs/examples/1.5.x/client-android/java/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Users users = new Users(client); diff --git a/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md index f96c175dcd3..c979d00e3ab 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md index 7961cc0ae48..50a011ae6b1 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md index 1018b96df5e..76a3ffb5963 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md index 57bc99b066e..8c447591381 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md index dd0bdf3a888..219e7930d78 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md index 3aefe4af0c7..50014d4cb8e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md index dad908e8b33..905e942b5d9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md index f2ff748b121..dacf56a5a24 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md index d43aa394596..22c965851de 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md index be25e742022..364bc0eb9d4 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md index d642de81cf5..fc9d8228c9d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md index 7d651b125f6..11a814b1094 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md index 9e72059ee06..56b53c26881 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md index 3c94fb8e1ee..531aead542a 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md b/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md index 66729cc142f..7dd2101a63c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md index 8afb76c012c..d03bd323177 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-session.md index 49daa6b9d35..2b3da6d47bb 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md index 0638a36be86..54174be38b4 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create.md b/docs/examples/1.5.x/client-android/kotlin/account/create.md index 48b8b669118..2ee3ae4a1ef 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md index 46084912921..650d5efb10d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md index bc532b88f85..0387ead98a9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md index 099b5ac1561..1e5d2065364 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md index c07afd099ef..48220b20c57 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md @@ -5,11 +5,10 @@ import io.appwrite.enums.AuthenticatorType val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) val result = account.deleteMfaAuthenticator( type = AuthenticatorType.TOTP, - otp = "", ) \ No newline at end of file diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md index c20d04a1ba4..e67b180a4f2 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md index ae2ed6747ab..0990989bfd6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md index 7caaea4696f..8c464e082bb 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md index 4a1652c61a8..bd12e834a14 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md index 08fdd136b61..9227effba72 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get-session.md b/docs/examples/1.5.x/client-android/kotlin/account/get-session.md index d0520ce8de5..42e61fd4756 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get.md b/docs/examples/1.5.x/client-android/kotlin/account/get.md index ed4874b184c..8c90304cbec 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md b/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md index 05ba2b8c222..c3ed1ff03c8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md index bde60231a34..53e388d3d42 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md index 56238f96f6c..683a94be453 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md b/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md index 9f8572ccc9e..ecfa6c2478a 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md index 9d64c74dff8..2da413da7b8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md index 2a82bfb7626..23fbdf90ec0 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-email.md b/docs/examples/1.5.x/client-android/kotlin/account/update-email.md index 5068962d7b6..072d6db9cae 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md b/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md index 79494906e91..3cac098946d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md index 0abb033543a..52d0ad76e1b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md index 8b1968019ed..321f25b2e8b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md index fe4cb1ecb04..021f51523f5 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md index f39b7c69672..d4ea7f5f91e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-name.md b/docs/examples/1.5.x/client-android/kotlin/account/update-name.md index 20aab9d8f89..374f84f2ec5 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-password.md b/docs/examples/1.5.x/client-android/kotlin/account/update-password.md index 86c862cc355..edf5117168c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md index 6c8fa6526e8..93e080dae91 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md index 445a47e3d2b..226b21dcae8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md index c8f50c34a32..772c099cd5f 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md index f449ccb10cc..c5c7a3de3ea 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md b/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md index 5fff5548713..c6e6f21ce31 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md index da1f27edecd..b4481148e97 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-session.md b/docs/examples/1.5.x/client-android/kotlin/account/update-session.md index 32520394614..43d84e13c31 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-status.md b/docs/examples/1.5.x/client-android/kotlin/account/update-status.md index 2b542144460..4f44ce1a83c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md index 5f7f902276d..3c9c465afb3 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md index 9c306d4db39..9c9abd9dd1d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md index 1e632174836..34f6f28d2ad 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md index 23fbbfd4542..52eea79f6e2 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md index a2d5e1884bf..5f83bdd0af0 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md index b1ac6326386..cfd5d010d17 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md index bb76b4cacde..a9a7c2aa5c6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md index b2a1c25533a..bd2ae1b9b9f 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md index 853d94ec758..9e02a0c6ad7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md index 10b6fdfefd3..2b77405d626 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md index 3eb114788e5..e3e6de326fc 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md index 6c5f92a73b5..6ed6c8ba62b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md index 7b1e8512d29..ff419c44a61 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md index de6b1923083..630e2b6c66e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md index de841868364..937bb4fdaa7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val functions = Functions(client) @@ -15,4 +15,5 @@ val result = functions.createExecution( path = "", // (optional) method = ExecutionMethod.GET, // (optional) headers = mapOf( "a" to "b" ), // (optional) + scheduledAt = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md index 0c4de1e5e23..60b2e0f6306 100644 --- a/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md index d28b32cccc0..90b2bf6ff10 100644 --- a/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md index a429a664b01..e90c9ae301e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/graphql/query.md b/docs/examples/1.5.x/client-android/kotlin/graphql/query.md index 0c39eddb2fe..2ce0cb10838 100644 --- a/docs/examples/1.5.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.5.x/client-android/kotlin/graphql/query.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/get.md b/docs/examples/1.5.x/client-android/kotlin/locale/get.md index d38572a9048..f2f235a209e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md index 9f506f06c4b..895c96df3a8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md index 96cfda556a3..e32034496c6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md index 54faf5e6dc8..b9182aa1dec 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md index 9e4bec13f92..961ebd348f6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md index 4299efb5d26..1ebae69bead 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md index 2bb7ca7fe9a..7500aa717f9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md index a9035e913a4..2be0ba59d60 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md b/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md index 3f1d476a6a0..db233422bd5 100644 --- a/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md index febf6225aa8..ab0d479df32 100644 --- a/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md index ccd342ee2c6..d327e724a0c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md index 8def7d99d91..60df78e7369 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md index c6e8fa4b245..bb975411ba7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md index 9c9993cb5dc..904f3ec103b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md index 83f8b3196c1..898c1eec425 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md index df662eabb81..a07095d3754 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md index 4e28fc52ef9..640b7050d0e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md index c84dadb72a8..f7a20f0d128 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md index a892663e102..63f3c67d8f9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/create.md b/docs/examples/1.5.x/client-android/kotlin/teams/create.md index 22d6e7f981b..f214a3733e7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md index 66e57169e0a..f3a54b38db2 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/delete.md b/docs/examples/1.5.x/client-android/kotlin/teams/delete.md index a73fa75b912..bc8e8d0c97c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md index 80640c71ff3..e5a589e061f 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md index 31001bd2777..af7503a4346 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/get.md b/docs/examples/1.5.x/client-android/kotlin/teams/get.md index 4387118eccc..70759bcb882 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md index 7c8c686e958..abb140e2ddb 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/list.md b/docs/examples/1.5.x/client-android/kotlin/teams/list.md index e73d9e46d28..5d808736caa 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md index 08668921d0b..9ecf4170dea 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md index 799c5946c01..15b2ac08e9b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md index 5e2399a5939..0040737a660 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md index 62febab0507..f70a5eb99ca 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md index 9c361733fea..6a4a250bd17 100644 --- a/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.AuthenticatorProvider val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val users = Users(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md b/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md index 008cf93706f..e757d6fbe6c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md +++ b/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val users = Users(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md index a820b54de9d..37e83761e87 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..f676bac4da4 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md index 9d3b54a152d..4ebb3cbbfa6 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md index 8740f0caa91..15051827b86 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md b/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md index 40535d583ab..b9d39ff27f9 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..c1c0f22dffc 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md index 1fd73607328..83eb681673b 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md index 2146831781c..7b103e0b247 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md index 4045203b299..6d262d9c74a 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md index c49dca53baf..1390b9de69d 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md index e7d6a539e39..32da4a28419 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md index 677450ecdbe..7bbfe98f48c 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md index a0c3a8cd876..acb7a696bcb 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..e0c4a21d963 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md b/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md index 36135264e99..75d694bcf6b 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..65536ee2113 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-session.md b/docs/examples/1.5.x/client-apple/examples/account/create-session.md index 4ed985dda3a..3ea51195697 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-verification.md b/docs/examples/1.5.x/client-apple/examples/account/create-verification.md index 2c96d202d01..702c3c52828 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create.md b/docs/examples/1.5.x/client-apple/examples/account/create.md index e7caef4dc0e..cad7e44c449 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md index 56386ccb9ca..5c0523f0f04 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md index 0836b13b5ae..81602b17202 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md index 335f4f74de8..37ca520d4cb 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md index 8fef7735d00..d9fe0ad8ea2 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md @@ -3,12 +3,11 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) let result = try await account.deleteMfaAuthenticator( - type: .totp, - otp: "" + type: .totp ) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md index 9090710f4c9..660a9c0376a 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-session.md b/docs/examples/1.5.x/client-apple/examples/account/delete-session.md index d7f13e3d821..59f89a9b5e0 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..bfce736622b 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md index 80b9550390c..79e3a2c8b33 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..0e7909bd124 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get-session.md b/docs/examples/1.5.x/client-apple/examples/account/get-session.md index 63cb9e2b69b..3ed89fcbf23 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get.md b/docs/examples/1.5.x/client-apple/examples/account/get.md index f29f83f8e8e..2a0c2a58130 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-factors.md b/docs/examples/1.5.x/client-apple/examples/account/list-factors.md index bc8ef1ae992..b7d00eaa1c3 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-factors.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-identities.md b/docs/examples/1.5.x/client-apple/examples/account/list-identities.md index da9592ca714..4d8c580a180 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-identities.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-logs.md b/docs/examples/1.5.x/client-apple/examples/account/list-logs.md index a90e2cbc649..ecb5617d0b3 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md index df34b641d2e..3af3427b29e 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..8b9e165c488 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md index 4743d06080e..efdf38b3bab 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-email.md b/docs/examples/1.5.x/client-apple/examples/account/update-email.md index a8c37af9464..4dbd3359a74 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md index 82fded780ec..eefcd79fda2 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md index 6950792fb51..8e0a26a6ef7 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md index de645954155..8ef2b241011 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md index 109c7ba5657..1c5874f7841 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md @@ -2,11 +2,11 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "", otp: "" ) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md index 76b3835548a..fb5ea5a898c 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-name.md b/docs/examples/1.5.x/client-apple/examples/account/update-name.md index 7a493dbf94d..893d96c77e0 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-password.md b/docs/examples/1.5.x/client-apple/examples/account/update-password.md index cf27be34310..60737dc5d2f 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md index 71d404eee4a..50a88cbe519 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md index 13dcb2f9f1f..045ba8d9b67 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-phone.md b/docs/examples/1.5.x/client-apple/examples/account/update-phone.md index 306e8f5a939..b43b975179a 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md index cc765480c5e..ea49c34f049 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md b/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md index 345764632ab..351801e1be3 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md index aec12912ec2..1e50a14632d 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-session.md b/docs/examples/1.5.x/client-apple/examples/account/update-session.md index b879ab78467..5fe7116cc1e 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-status.md b/docs/examples/1.5.x/client-apple/examples/account/update-status.md index 3f2d823641d..a7f99c34027 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-verification.md b/docs/examples/1.5.x/client-apple/examples/account/update-verification.md index 57441c9d3f1..c17a787490c 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md index e71c52f39d8..c6096867384 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md index 0c4a194c945..e18a2b2cc9f 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md index 08a89304cf5..94a7bf69c0e 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md index 0e72f0ba6bb..95af5f59820 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md index 22d77fde25c..b79cf57ae84 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md index 13e756ad85c..f01e21bf8d9 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md index 482be2c18ef..8593288a816 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md index d03d79a9ca8..370209a842d 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/create-document.md b/docs/examples/1.5.x/client-apple/examples/databases/create-document.md index 5631b7abb86..1dff3625769 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md index 4926bd6872d..80ca2eb0a94 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/get-document.md b/docs/examples/1.5.x/client-apple/examples/databases/get-document.md index bd5c446c00d..fa7aeb9090d 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md index c2377bd5765..6b2cbbca7a3 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/update-document.md b/docs/examples/1.5.x/client-apple/examples/databases/update-document.md index 9de18fdfa5b..22602720293 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md index f74bd53e9af..6d585ea42b1 100644 --- a/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) @@ -13,6 +13,7 @@ let execution = try await functions.createExecution( async: false, // optional path: "", // optional method: .gET, // optional - headers: [:] // optional + headers: [:], // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md index e478988a19f..dbf12e17cbc 100644 --- a/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md index 618fea32b16..4eb2694f7c4 100644 --- a/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md index d58b881df4d..8e54971f840 100644 --- a/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-apple/examples/graphql/query.md b/docs/examples/1.5.x/client-apple/examples/graphql/query.md index 0aba98aeb88..db93660f1d8 100644 --- a/docs/examples/1.5.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-apple/examples/graphql/query.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/get.md b/docs/examples/1.5.x/client-apple/examples/locale/get.md index d12470d66ab..ec071cd3a60 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md index 5832aa4ced0..adb35393f42 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md index 4853f77212d..934b2640513 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..393e523847b 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..840e9043f62 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md index 75369d0606e..e6adb9e7d31 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md index 92eea812756..b34a9715a76 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..db41d39e007 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md index 9c25454d3e6..0e3793b7bcb 100644 --- a/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md index 1f5baabde44..3a8b7c40cee 100644 --- a/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/create-file.md b/docs/examples/1.5.x/client-apple/examples/storage/create-file.md index 6f467aa2426..2e5b945198e 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md index 30d67210184..caeb173fc5f 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md index bc7521a6831..3d8bf6bfb9e 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md index 4d16f200c14..17e42f9065e 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md index 9edf46bb996..e62afb77274 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file.md index f07798834d8..367fd39b2ea 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/list-files.md b/docs/examples/1.5.x/client-apple/examples/storage/list-files.md index bc1129eb758..3996ba718cb 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/update-file.md b/docs/examples/1.5.x/client-apple/examples/storage/update-file.md index eaeb5dae467..37a3001e950 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md index 032579083a3..e911b2aa5a5 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/create.md b/docs/examples/1.5.x/client-apple/examples/teams/create.md index e5307029e65..b355a633c67 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md index 8cd8a9afea8..8252272ec77 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/delete.md b/docs/examples/1.5.x/client-apple/examples/teams/delete.md index 34edd05d9d5..1caee83031a 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md index 9365dcd30b9..62e3a513ef5 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md index 08e90631277..04ece549173 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/get.md b/docs/examples/1.5.x/client-apple/examples/teams/get.md index d5e956a327d..c5673bdae3b 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md index bde4f9b629a..e85b11cecbe 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/list.md b/docs/examples/1.5.x/client-apple/examples/teams/list.md index c7ed8d45927..c5e7175d30d 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md index b76670b3539..c50ef0e8610 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md index 85a7cb57937..c4500a3ff10 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-name.md b/docs/examples/1.5.x/client-apple/examples/teams/update-name.md index a7e117ad1d3..64e2cab0370 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md index 469ba86b0ab..a69d48567dc 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md b/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md index 0ff210d3c4d..337ec1732db 100644 --- a/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let users = Users(client) diff --git a/docs/examples/1.5.x/client-apple/examples/users/list-providers.md b/docs/examples/1.5.x/client-apple/examples/users/list-providers.md index 974bce12237..9e6eb9f556d 100644 --- a/docs/examples/1.5.x/client-apple/examples/users/list-providers.md +++ b/docs/examples/1.5.x/client-apple/examples/users/list-providers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let users = Users(client) diff --git a/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md index 6f32c0428d3..05c3d15a7f6 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md index 8eea4bf4f5f..50887f10dea 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md index a66111694db..fc87bdf0975 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md index d90d9e264c2..64c0e93ca24 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md index 2532d82d919..140689a9044 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md index 1e33c888d9f..256f28e0f3f 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md index 8c430c86f91..cf2d1bd1feb 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md index b43ec1a6161..2b35cc9ed4f 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md index 64bcb36730f..ad1b8c201f4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md index 68fdaaa4c52..22b3b44cafd 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md index ea651e73055..d00a1c7144d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md index 4227359c4fc..b1478bf9dff 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md index efcdcbe8ecc..08dce5f7b27 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md index ad0da61dd35..727cfe50121 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md b/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md index be945eec972..de324b842e2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md index 8b8a41a8690..09d0994dd1d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-session.md index 29aca9c5df5..e35cc1978da 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md index c3a4f0f7f13..85142abee90 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create.md b/docs/examples/1.5.x/client-flutter/examples/account/create.md index 032c523e790..98f6fcbaa2c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md index f987391f8e2..7a05586efb1 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md index f4f44b1b72b..ac6a9f0b02e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md index ab68036af93..9846a0c11c2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md index 3f62177e18e..6d2a21ce896 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -2,11 +2,10 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); await account.deleteMfaAuthenticator( type: AuthenticatorType.totp, - otp: '', ); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md index 2081bf670b5..f6ec230d718 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md index 7f84f82a6d0..07978e2c114 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md index c17afd0d91b..faafcb97bda 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md index 008f8cede30..413fb059e6a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md index 6b3789962ac..bc7731daaa0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get-session.md b/docs/examples/1.5.x/client-flutter/examples/account/get-session.md index 6954e51e294..4958fd1c94d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get.md b/docs/examples/1.5.x/client-flutter/examples/account/get.md index 2790b57a0ef..c38dd7f4fdc 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md b/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md index b58f175dcf5..d81e5277b5b 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md index 763e25335b6..183d525b3bb 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md index d3b06dd95eb..ec29b9510d1 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md index 08186e3edc2..bb320225cd3 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md index 0bde760d310..3af2299e04d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md index a27e620fd74..409b432f6c7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-email.md b/docs/examples/1.5.x/client-flutter/examples/account/update-email.md index 0ce8eb5ed5a..b3c7ffe9117 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-email.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md index 1f5f709b07c..c376c72917d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 2eb4b33d802..e75aba3ffd7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md index 4f5074e29e2..d2d974fbfe9 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md index 34c37801017..bbe7c03470a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md @@ -2,11 +2,11 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '', otp: '', ); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md index 914366fb32b..fd2aaf721b0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-name.md b/docs/examples/1.5.x/client-flutter/examples/account/update-name.md index dc2c4c6afef..77e774c767b 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-name.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-password.md b/docs/examples/1.5.x/client-flutter/examples/account/update-password.md index 37c6ecf4e26..8d36c1f68da 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-password.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md index f6871317631..64d8d84201c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md index 0facc29f158..5c67e1a5c01 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md index 24000c4b9dc..6c9559db147 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md index d83e25f911c..ca9b709a500 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md b/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md index 0311d0be172..a54b1aa30f5 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md index f87e8723b2f..648d25b1b67 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-session.md b/docs/examples/1.5.x/client-flutter/examples/account/update-session.md index 5a12ad273c9..2cdf32aae04 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-status.md b/docs/examples/1.5.x/client-flutter/examples/account/update-status.md index 8b7bc49c5a9..0b0fb95ea69 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-status.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md index c3db86b8ca5..3071a0409ea 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md index 74f7111bd85..19df7d90d27 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md index 6bc6e5410ed..21dae2114e0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md index d5b96383adb..a580e3bdaa0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md index 10047b4402a..f35f5a71a0e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md index 66a5b202474..8f358261241 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md index 15f3ea6e649..5d8a9865371 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md index 2d540a1dbea..26302d02c38 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md index 94b34bdaa0f..40f0b5068c2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md index 6645b4edc69..7853329a05f 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md index fc7c5ef1d5d..14cec01c0a7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md index 4f2ba3e3b17..55206357b22 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md index da43b17d09d..e78a02de6b4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md index 42f5b657266..29ee8781ff4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md index 6ca5e14bbcf..94f0ae55819 100644 --- a/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Functions functions = Functions(client); @@ -13,4 +13,5 @@ Execution result = await functions.createExecution( path: '', // optional method: ExecutionMethod.gET, // optional headers: {}, // optional + scheduledAt: '', // optional ); diff --git a/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md index 67439f40681..b4595146242 100644 --- a/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md index 3902d6e7c8c..ba4b4e41d7e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md index d94c53158ad..1ac9ba0a0d6 100644 --- a/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/graphql/query.md b/docs/examples/1.5.x/client-flutter/examples/graphql/query.md index 13c21eeb459..2c06a838ab2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-flutter/examples/graphql/query.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/get.md b/docs/examples/1.5.x/client-flutter/examples/locale/get.md index b705b834ef0..53cfda5c200 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/get.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md index c9ca329778a..bfd53f97bca 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md index b174e606087..c462c2e46b5 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md index e3772f0f6bd..0f5629b54fb 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md index 9e0ed7483bc..ee8689a986c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md index 12c57042a63..0c1bae6016e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md index 0d6662ee137..a9c53b1264c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md index b2f22a16a1b..c5bdd2643b4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md index fc3b2596e84..1284151b610 100644 --- a/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md index 5cd62597e87..aa66acbf175 100644 --- a/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md index 55216ba31f7..1a0a498b762 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md @@ -3,7 +3,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md index bab2a4774a5..39135824b73 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md index 1a612be00e6..3346442532a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md index 2649bb2c60c..2bb09976169 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md index 5d0e38e8812..c5f8ea1147b 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md index b7b894b420d..83a32190a44 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md index f75ef6e33cb..d5f8b0b4d7c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md index cca06533ca6..c88355a52c7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md index 1cf042674a4..04eedde662c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/create.md b/docs/examples/1.5.x/client-flutter/examples/teams/create.md index 04593d46ee2..1afcbf1ce57 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/create.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md index 38f47c791db..83c80a27038 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/delete.md b/docs/examples/1.5.x/client-flutter/examples/teams/delete.md index 4107155b451..5a4d0dba424 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/delete.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md index 10fd959487e..3ae0844c81a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md index b8f3692231c..0f93c25a338 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/get.md b/docs/examples/1.5.x/client-flutter/examples/teams/get.md index 12ed636c01b..bcf45530eea 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/get.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md index ca98b5f1c90..7fc920a2d09 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/list.md b/docs/examples/1.5.x/client-flutter/examples/teams/list.md index 25aaafa4e9b..75b29554c09 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/list.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md index ae05c371e6f..e08f63bac87 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md index 41f2a9be563..33e6568da1e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md index 2b3b288d1f0..43d1b0c7fca 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md index 8afb99ad2fa..2a446f08004 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md index 259f97c6b7b..02447e24dce 100644 --- a/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = users.deleteAuthenticator( diff --git a/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md b/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md index d0df43eaf63..894939fe0d9 100644 --- a/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md +++ b/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = users.listProviders( diff --git a/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md b/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md index 8a0fad387c9..63802a782e5 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md @@ -12,5 +12,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/create.md b/docs/examples/1.5.x/client-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/create.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md index de14ae68f3a..fc5486623a9 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,6 @@ mutation { accountDeleteMfaAuthenticator( - type: "totp", - otp: "" + type: "totp" ) { status } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/get.md b/docs/examples/1.5.x/client-graphql/examples/account/get.md index e4db8f0e414..f4f07c187f2 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/get.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/get.md @@ -28,6 +28,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-email.md b/docs/examples/1.5.x/client-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "", otp: "" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-name.md b/docs/examples/1.5.x/client-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-password.md b/docs/examples/1.5.x/client-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md b/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md b/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md index 059702dc974..3c402cdf12a 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md @@ -11,5 +11,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-status.md b/docs/examples/1.5.x/client-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md index 1627ee93397..1479aa3bb60 100644 --- a/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md @@ -5,7 +5,8 @@ mutation { async: false, path: "", method: "GET", - headers: "{}" + headers: "{}", + scheduledAt: "" ) { _id _createdAt @@ -29,5 +30,6 @@ mutation { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md b/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md index f9f8ef05526..6ded51a50cc 100644 --- a/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md @@ -25,5 +25,6 @@ query { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md b/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md index 745ec32377a..a0c02fa76f2 100644 --- a/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md @@ -28,6 +28,7 @@ query { logs errors duration + scheduledAt } } } diff --git a/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md index 16569fccd55..e9324d22797 100644 --- a/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md @@ -1,10 +1,10 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md index 1c807bdc964..333e19942bd 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createAnonymousSession(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md index d338cbe2331..0718e393765 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md index cb2a31145b9..13d08f0b2f2 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createEmailToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md index 88ea31c5a31..fd060c8c327 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createJWT(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md index f2e7e8faf6d..b627ca6c5fb 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md index 88bc313a88e..d34d9957b17 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md index 119a204f0bb..f5c94903d05 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge( AuthenticationFactor.Email // factor ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md index 4ffd8a39a18..66ec3680d05 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md index 2302aaaa1eb..7dff5734650 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md index 3479924e64a..85ffb2a2bf4 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md index 93fc1b7f51b..33988887a27 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createPhoneToken( '+12065550100' // phone ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md index 28833c1806c..39a3313556c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createPhoneVerification(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md index dd15821eaab..da020dae34a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createPushTarget( '' // providerId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md b/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md index 5d2855486b5..c46c9079537 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createRecovery( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-session.md index f8a9f109a7c..3c85dc8a464 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createSession( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md index d072126c4e6..cce3e1aae09 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createVerification( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create.md b/docs/examples/1.5.x/client-react-native/examples/account/create.md index 300f59b219a..5db3d7d9f15 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.create( '' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md index 9ff1bbd35d2..c25a5a4417a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteIdentity( '' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md index c5f5695ddff..5be2b161aaa 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '' // otp + AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md index 351b933bd01..34e89ab4a37 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deletePushTarget( '' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md index 22966495c1d..60791284b6d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteSession( '' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md index b0967bf0193..67652f21e85 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.deleteSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md index d1c38fdde0c..06f09b8d346 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.getMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md b/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md index b2502d7b196..ef4185ca12c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.getPrefs(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-session.md b/docs/examples/1.5.x/client-react-native/examples/account/get-session.md index 3ecb79feee3..ca6cfb72aa4 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.getSession( '' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get.md b/docs/examples/1.5.x/client-react-native/examples/account/get.md index 94f0779d53f..cd5d50fe284 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md index e7ca637afe8..6189f80e0fc 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listIdentities( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md index 424f8d76af9..48fe10be13a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md index c6343a732eb..ada7d487626 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.listMfaFactors(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md b/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md index b0840c59e3a..cc081d5e3c9 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.listSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-email.md b/docs/examples/1.5.x/client-react-native/examples/account/update-email.md index 560581e63c9..5f879989e3f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateEmail( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md index 38fd716c6a7..30f5f64199b 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateMFA( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md index bb0c000126e..a5b92765dc0 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md index d8ec7aed65f..f3f3276dfd6 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator( '' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md index 7d875064574..b26d387ad2f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge( '' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md index cfbbf6f3c8d..81d27f7c549 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.updateMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-name.md b/docs/examples/1.5.x/client-react-native/examples/account/update-name.md index 8a403f2ab16..47e5db988b0 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateName( '' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-password.md b/docs/examples/1.5.x/client-react-native/examples/account/update-password.md index 09edf09182b..a37ee4c355f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePassword( 'password' // oldPassword (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md index cf026227fcb..d7098e5155a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md index 8467309a06d..582061fac5c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md index 46efc141428..cc39c5ef0f2 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhone( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md index a3ff8c34081..4478e02320d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md index 8096568d55c..6871a1016ca 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePushTarget( '' // identifier ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md b/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md index 1ee93d35f94..73184b84b5b 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.updateRecovery( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-session.md index 397e07edc21..34bc567fb55 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateSession( '' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-status.md b/docs/examples/1.5.x/client-react-native/examples/account/update-status.md index 27ce5186217..0b6ec6f7928 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-status.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.updateStatus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md index 0007335fa5b..9d00a4826c6 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateVerification( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md index 9ceb1a39cf9..bbcb0df83a5 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md index 0de631974ad..a97cc6c430d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md index 6e23a774c01..067aa74000d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md index 6761052394a..f2268fcc69c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md index b4956df8f1e..3816e7b4643 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md index ba70a9cb036..b8545b37ca6 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md index d4f2db2df81..5c80c6ae2ca 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md index 15d1afcdc32..58053ca0aa5 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.createDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md index f6fef3bcdf5..beeb7b2a720 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteDocument( '' // documentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md index 502f2f4640f..df2333b5cc7 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.getDocument( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md index 90dcd6318cd..88d94a90895 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listDocuments( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md index fa04f2134a8..5021c0b0f20 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.updateDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md index 1b4bfaa609d..9933beb2774 100644 --- a/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const functions = new Functions(client); @@ -12,7 +12,8 @@ const result = await functions.createExecution( false, // async (optional) '', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md b/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md index adda0435433..79fffec4b42 100644 --- a/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getExecution( '' // executionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md index b1fdd6bd6f2..0615ecbf57e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listExecutions( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md b/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md index b3c35838049..2fae4783f15 100644 --- a/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.mutation( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/graphql/query.md b/docs/examples/1.5.x/client-react-native/examples/graphql/query.md index e15400d05dc..39d8cb13bb3 100644 --- a/docs/examples/1.5.x/client-react-native/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-react-native/examples/graphql/query.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.query( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/get.md b/docs/examples/1.5.x/client-react-native/examples/locale/get.md index 4af9df39bce..0d48cd85cba 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/get.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/get.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md index 8737fde873f..f1466beeb54 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md index e8c3920a178..a813a69f177 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listContinents(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md index 0a2abc53c78..7ba7149edde 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesEU(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md index d4d00ae3941..6d3093dce29 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesPhones(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md index 8839b6f0393..9ffb09b829c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCountries(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md index 6700ef12920..06326651d2e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCurrencies(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md index db9b17294e7..1ef69e5921e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listLanguages(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md index bf5a0cec1dc..153cd2e3aa0 100644 --- a/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createSubscriber( '' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md index da995fc419f..6d61172ac40 100644 --- a/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.deleteSubscriber( '' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md index 73908c6de0a..f6e4f472633 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.createFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md index 4373ebec043..55aed16a468 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.deleteFile( '' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md index 943bf9dd768..b4b1374ca1f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md index 76713c86947..10d473ae06e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "react-native-appwrit const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md index b551e024051..1a54452911d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md index 8731c8463d2..bbbb3fe9fde 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getFile( '' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md index c72b9ba8a51..731a1d1ef4e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -12,4 +12,4 @@ const result = await storage.listFiles( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md index 87f81ab038a..ba8cc6068a7 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.updateFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md index a5d6fa043e6..c4fc557461e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -16,4 +16,4 @@ const result = await teams.createMembership( '' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/create.md b/docs/examples/1.5.x/client-react-native/examples/teams/create.md index f61df435a21..c252f3df893 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/create.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.create( [] // roles (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md index f5ed1bcf9cc..683c92d12bd 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.deleteMembership( '' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/delete.md b/docs/examples/1.5.x/client-react-native/examples/teams/delete.md index 77dac565b0c..dfd63fc9178 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.delete( '' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md index 44a664c5dba..4e30d1bda6a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.getMembership( '' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md index 5f7cf16921a..40cffb127ed 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.getPrefs( '' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get.md b/docs/examples/1.5.x/client-react-native/examples/teams/get.md index 28d8895c9c5..dc2d6cd4d17 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.get( '' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md index afc2e39d209..7eabeeeeaba 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.listMemberships( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/list.md b/docs/examples/1.5.x/client-react-native/examples/teams/list.md index cd97431d141..64b9324dce8 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/list.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.list( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md index 85eecb93204..0e42de97464 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -13,4 +13,4 @@ const result = await teams.updateMembershipStatus( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md index 684c40a2d0e..e22fc975d94 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.updateMembership( [] // roles ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md index 75f3fda4ef6..27447af384e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updateName( '' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md index f9c4c21623e..02be2aca760 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md index 6e885831642..c6ea0979117 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md index f18903c8b81..3e4485908b2 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md b/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md index f1c96ce045e..a296b5597ee 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md index a7a3f688665..9d225fcfc2a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ -POST /v1/account/jwt HTTP/1.1 -Host: cloud.appwrite.io +POST /v1/account/jwts HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md index cc88e87f9bd..12581613dce 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md index 9273151f902..fef6b8476c9 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md index d70105084dd..2019a1e52c5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "factor": "email" diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md index f00650d13d3..81e5621ecea 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md index 1eab4518794..7c7384e449a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md @@ -1,6 +1,6 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md index b7c4d078268..f353a881b7b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,6 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md index d7cdcd50891..45d501a7702 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md index a8bd3ad8bd7..bc2bedb3ec0 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md @@ -1,8 +1,8 @@ POST /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md b/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md index 87a61799f10..8de4e0cd3a3 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md @@ -1,8 +1,8 @@ POST /v1/account/targets/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: { diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md b/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md index ee811be613d..0c4c0046c29 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md @@ -1,10 +1,10 @@ POST /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-session.md b/docs/examples/1.5.x/client-rest/examples/account/create-session.md index 725adf4977c..62c8afeb3d4 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/token HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-verification.md b/docs/examples/1.5.x/client-rest/examples/account/create-verification.md index e440939e8fe..d89b0ccd040 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-verification.md @@ -1,10 +1,10 @@ POST /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "url": "https://example.com" diff --git a/docs/examples/1.5.x/client-rest/examples/account/create.md b/docs/examples/1.5.x/client-rest/examples/account/create.md index c1a959b43f6..f484be7bbdf 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create.md @@ -1,8 +1,8 @@ POST /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md b/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md index b43c8deafda..dbbceb4036b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md @@ -1,8 +1,8 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md index dfb054f980e..77d8d215ada 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md @@ -1,11 +1,8 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: -{ - "otp": "" -} \ No newline at end of file diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md index 3647456bef3..ebc60fddb71 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ DELETE /v1/account/targets/{targetId}/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-session.md b/docs/examples/1.5.x/client-rest/examples/account/delete-session.md index ba75cdd52de..7f839667cb5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-session.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md index b6b3ac55271..6f741155cb5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md index 095029fc039..7750e99c9df 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md index b240b0c36f8..5d12b5fc062 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/get-session.md b/docs/examples/1.5.x/client-rest/examples/account/get-session.md index 525008c4061..72494570178 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get-session.md @@ -1,8 +1,8 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/get.md b/docs/examples/1.5.x/client-rest/examples/account/get.md index 3318040ddaa..0ff1878deea 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get.md @@ -1,8 +1,8 @@ GET /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-identities.md b/docs/examples/1.5.x/client-rest/examples/account/list-identities.md index 52399703502..41aa1dd70cf 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-identities.md @@ -1,8 +1,8 @@ GET /v1/account/identities HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-logs.md b/docs/examples/1.5.x/client-rest/examples/account/list-logs.md index 9c4a838d5a4..55b5782ae5c 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-logs.md @@ -1,8 +1,8 @@ GET /v1/account/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md index 0fcbebf6620..3e8479aef87 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md index fbf968ef86e..89f747387fc 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md @@ -1,8 +1,8 @@ GET /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-email.md b/docs/examples/1.5.x/client-rest/examples/account/update-email.md index e5a131b0606..be4709dbc71 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-email.md @@ -1,10 +1,10 @@ PATCH /v1/account/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md index 49311807e75..c7ef57666ef 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md @@ -1,10 +1,10 @@ PATCH /v1/account/mfa HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "mfa": false diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md index 5789bc204e8..5ca270cc73a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md index a55ba579bc7..68eabe28116 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "otp": "" diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md index 5e50a0e88d3..520b5875625 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "challengeId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md index 4ba1cb68569..398d84e4ded 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md @@ -1,8 +1,8 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-name.md b/docs/examples/1.5.x/client-rest/examples/account/update-name.md index 40b50e2f0d2..bf7823fab9b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-name.md @@ -1,10 +1,10 @@ PATCH /v1/account/name HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "name": "" diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-password.md b/docs/examples/1.5.x/client-rest/examples/account/update-password.md index e254c25cd36..eeaf183a149 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-password.md @@ -1,10 +1,10 @@ PATCH /v1/account/password HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "password": , diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md index a9e1a939504..7b62067b9e5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md index 3ab8ee88715..8050b8ab69b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-phone.md b/docs/examples/1.5.x/client-rest/examples/account/update-phone.md index b67ed03bea3..0123b564a79 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-phone.md @@ -1,10 +1,10 @@ PATCH /v1/account/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "phone": "+12065550100", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md index 6f7c7308b8d..39a2466ed4a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md @@ -1,10 +1,10 @@ PATCH /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "prefs": {} diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md b/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md index 9ddd76232c1..6c9b318df40 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md @@ -1,8 +1,8 @@ PUT /v1/account/targets/{targetId}/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: { diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md index c0c0bf6c8e0..cf388ea9afe 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md @@ -1,10 +1,10 @@ PUT /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-session.md b/docs/examples/1.5.x/client-rest/examples/account/update-session.md index ef778661349..ca04f76e6c0 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-session.md @@ -1,8 +1,8 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-status.md b/docs/examples/1.5.x/client-rest/examples/account/update-status.md index 809357b70b3..1f47e378b23 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-status.md @@ -1,8 +1,8 @@ PATCH /v1/account/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-verification.md b/docs/examples/1.5.x/client-rest/examples/account/update-verification.md index e798222b4aa..2558e5b4ffe 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md index fb573e4eb6e..93b41903430 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md @@ -1,8 +1,8 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md index 1b175ec64cd..d67ce3cd965 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md @@ -1,8 +1,8 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md index 03caca5f8fd..f36d5b88f38 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md @@ -1,8 +1,8 @@ GET /v1/avatars/favicon HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md index dfe77dcfc04..c5fe6059b7d 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md @@ -1,8 +1,8 @@ GET /v1/avatars/flags/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md index 566ee63a891..03dd55aa6c5 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md @@ -1,8 +1,8 @@ GET /v1/avatars/image HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md index cac12f0c6e3..3f78e796b17 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md @@ -1,8 +1,8 @@ GET /v1/avatars/initials HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md index a2ee2e0ca4a..129560b001d 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md @@ -1,8 +1,8 @@ GET /v1/avatars/qr HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/databases/create-document.md b/docs/examples/1.5.x/client-rest/examples/databases/create-document.md index 9ce28584566..f4e595f77ff 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/create-document.md @@ -1,10 +1,10 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "documentId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md b/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md index b085a2a9f64..c26d715d42c 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md @@ -1,8 +1,8 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/databases/get-document.md b/docs/examples/1.5.x/client-rest/examples/databases/get-document.md index 5baf4f70311..2815e446ca7 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/get-document.md @@ -1,8 +1,8 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md index 95e788f0bb8..d6b7746f034 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md @@ -1,8 +1,8 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/databases/update-document.md b/docs/examples/1.5.x/client-rest/examples/databases/update-document.md index 87119b61ff8..ae0aa4df281 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/update-document.md @@ -1,10 +1,10 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "data": {}, diff --git a/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md b/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md index 5a9c4449b27..600a8b5cf3b 100644 --- a/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md @@ -1,15 +1,16 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "body": "", "async": false, "path": "", "method": "GET", - "headers": {} + "headers": {}, + "scheduledAt": } diff --git a/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md index 10a55824b41..36879bf50f9 100644 --- a/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md @@ -1,8 +1,8 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md index 11f64ba362c..e87274915d9 100644 --- a/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md @@ -1,8 +1,8 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md b/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md index ced360c0921..6def0f1720a 100644 --- a/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md @@ -1,11 +1,11 @@ POST /v1/graphql/mutation HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "query": {} diff --git a/docs/examples/1.5.x/client-rest/examples/graphql/query.md b/docs/examples/1.5.x/client-rest/examples/graphql/query.md index 8edf1338f16..cba232be9fc 100644 --- a/docs/examples/1.5.x/client-rest/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-rest/examples/graphql/query.md @@ -1,11 +1,11 @@ POST /v1/graphql HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "query": {} diff --git a/docs/examples/1.5.x/client-rest/examples/locale/get.md b/docs/examples/1.5.x/client-rest/examples/locale/get.md index 6fb003b3003..df152587a1d 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/get.md @@ -1,8 +1,8 @@ GET /v1/locale HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md index 9ee5aa201c7..82025385290 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md @@ -1,8 +1,8 @@ GET /v1/locale/codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md index 25873b28305..83e2e5cefdf 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md @@ -1,8 +1,8 @@ GET /v1/locale/continents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md index 98bb6f4f968..a759f6648e0 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,8 +1,8 @@ GET /v1/locale/countries/eu HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md index 2128ba9bebe..a5f24fb4464 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md @@ -1,8 +1,8 @@ GET /v1/locale/countries/phones HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md index 8bd074f8f71..5e6bd113610 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md @@ -1,8 +1,8 @@ GET /v1/locale/countries HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md index 06d8ab1aabd..9682eb8aa73 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md @@ -1,8 +1,8 @@ GET /v1/locale/currencies HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md index fa855689d34..832862033e2 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md @@ -1,8 +1,8 @@ GET /v1/locale/languages HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md index add7db20350..a9a293bec1e 100644 --- a/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md @@ -1,9 +1,9 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: +X-Appwrite-JWT: X-Appwrite-Session: { diff --git a/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md index d9cb558e50d..4b1d3129789 100644 --- a/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md @@ -1,8 +1,8 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: +X-Appwrite-JWT: X-Appwrite-Session: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/create-file.md b/docs/examples/1.5.x/client-rest/examples/storage/create-file.md index 4f4d6e18d59..5eebfa95db1 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/create-file.md @@ -1,10 +1,10 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md b/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md index 4c615d3f672..fc4bc5f09a9 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md @@ -1,8 +1,8 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md index 40e66ae9e27..fe870a0f85a 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md index 64c142275df..97d26eb1e16 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md index fbc29da6b21..d24c5fdc49e 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file.md index 42bca7c1de7..31500497b5c 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/list-files.md b/docs/examples/1.5.x/client-rest/examples/storage/list-files.md index 9b463a721b2..53bea3033f0 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/list-files.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/update-file.md b/docs/examples/1.5.x/client-rest/examples/storage/update-file.md index 3659c229b55..ab03cd18e03 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/update-file.md @@ -1,10 +1,10 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "name": "", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md index f47ae88b650..4bf97cb154c 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md @@ -1,10 +1,10 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/create.md b/docs/examples/1.5.x/client-rest/examples/teams/create.md index 6208bd164b5..d24eaf69a4d 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/create.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/create.md @@ -1,10 +1,10 @@ POST /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "teamId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md index fd9e054bdd1..f162ef71adc 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md @@ -1,8 +1,8 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/delete.md b/docs/examples/1.5.x/client-rest/examples/teams/delete.md index 5766cc8a271..4ed41db00f7 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/delete.md @@ -1,8 +1,8 @@ DELETE /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md index 7c94a9e6dc6..8a7488ec3b5 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md index dfac0657344..0486648b296 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/get.md b/docs/examples/1.5.x/client-rest/examples/teams/get.md index 2b2a13fdb67..25e5d59eba5 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/get.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md index 22624768b4f..691fecfa4dc 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/list.md b/docs/examples/1.5.x/client-rest/examples/teams/list.md index 9baa9b359f7..4fbc6a6afa8 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/list.md @@ -1,8 +1,8 @@ GET /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md index dbcfd29391d..5fa7888d063 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md @@ -1,10 +1,10 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "userId": "", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md index 843e99ef24e..672e8c5f1c6 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md @@ -1,10 +1,10 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "roles": [] diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-name.md b/docs/examples/1.5.x/client-rest/examples/teams/update-name.md index 9df25968b92..07d3be22ba0 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-name.md @@ -1,10 +1,10 @@ PUT /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "name": "" diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md index 1cf422595b1..b6b2cc6b977 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md @@ -1,10 +1,10 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: { "prefs": {} diff --git a/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md index e3241bc0be2..c1e7e3fb9de 100644 --- a/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md index 618b0034575..9a78549a302 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createAnonymousSession(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-challenge.md b/docs/examples/1.5.x/client-web/examples/account/create-challenge.md index b56439fba64..2b4e9796e93 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md index 7bbb30e4985..517a7c75183 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-email-token.md b/docs/examples/1.5.x/client-web/examples/account/create-email-token.md index 3591fcd5059..bcc9316b4e4 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createEmailToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md index 467d7ab93e3..e01d8de36e5 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createJWT(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md index c65b5e51c7a..155944702a1 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md index e367f24bf75..6551d13f219 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md index 48318c749d8..c620ca20cd9 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge( AuthenticationFactor.Email // factor ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md index ef5d35d5742..5a3f6f2d8c6 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md index c158e3e77b0..0d797a8eac6 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md index a4ca0496f53..a8d7300675e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md index d67892a4814..01a5d68af46 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createPhoneToken( '+12065550100' // phone ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md index cdb4629a229..5da89e9bc09 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.createPhoneVerification(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-push-target.md b/docs/examples/1.5.x/client-web/examples/account/create-push-target.md index fe6dd99a4cc..abbbf420576 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createPushTarget( '' // providerId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-recovery.md b/docs/examples/1.5.x/client-web/examples/account/create-recovery.md index d6014cd94cc..4d3ec34786e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createRecovery( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-session.md b/docs/examples/1.5.x/client-web/examples/account/create-session.md index a3ee7ccca8f..fe43a12c71c 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createSession( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-verification.md b/docs/examples/1.5.x/client-web/examples/account/create-verification.md index 1757f3c984a..60bb2d270e5 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createVerification( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create.md b/docs/examples/1.5.x/client-web/examples/account/create.md index 069ade299bd..eb4634faeb1 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create.md +++ b/docs/examples/1.5.x/client-web/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.create( '' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md index 24a0871e205..317d60daa12 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md index f3c504865df..cb97fb7d482 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-identity.md b/docs/examples/1.5.x/client-web/examples/account/delete-identity.md index 07558e07916..7a6dbae0be5 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteIdentity( '' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md index 6d389247e38..44f00653996 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '' // otp + AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md index a5e7cb3fdf1..7b8f505196a 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deletePushTarget( '' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-session.md b/docs/examples/1.5.x/client-web/examples/account/delete-session.md index 4d5129f51ef..15e91fada04 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteSession( '' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md index a15d1309a16..71761b2e77c 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.deleteSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md index fe3b7a37594..3a8c308052b 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.getMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get-prefs.md b/docs/examples/1.5.x/client-web/examples/account/get-prefs.md index a65891177fe..749df1642fd 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/account/get-prefs.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.getPrefs(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get-session.md b/docs/examples/1.5.x/client-web/examples/account/get-session.md index b11278b9377..6e491f5f68e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.getSession( '' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get.md b/docs/examples/1.5.x/client-web/examples/account/get.md index 7c000bbe898..16498a4b395 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get.md +++ b/docs/examples/1.5.x/client-web/examples/account/get.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-factors.md b/docs/examples/1.5.x/client-web/examples/account/list-factors.md index a8a152f763d..d9d2bcb0ef2 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-factors.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-identities.md b/docs/examples/1.5.x/client-web/examples/account/list-identities.md index 4c627ce07df..f6febdf192c 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listIdentities( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-logs.md b/docs/examples/1.5.x/client-web/examples/account/list-logs.md index 973e37b2f00..02f1abb0b78 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md index 2e7a6f19348..9a9c0d4cd66 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.listMfaFactors(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-sessions.md b/docs/examples/1.5.x/client-web/examples/account/list-sessions.md index 0220b3abf1f..a42018a00f7 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.listSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-challenge.md b/docs/examples/1.5.x/client-web/examples/account/update-challenge.md index 7437b3a6fc2..de95606069a 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-email.md b/docs/examples/1.5.x/client-web/examples/account/update-email.md index 06fabe0888d..e15f23c1c99 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateEmail( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md index 4e6bb651af2..8ac76070867 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateMFA( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md index 665b9f28df9..5f268f89835 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md index 50bd12105b3..34419463039 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator( '' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md index ca9a85d0f43..6c83570d3d7 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge( '' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md index 529fbae4400..dce2d4e2e0a 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.updateMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-name.md b/docs/examples/1.5.x/client-web/examples/account/update-name.md index ac11894f8cc..26258fd0558 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateName( '' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-password.md b/docs/examples/1.5.x/client-web/examples/account/update-password.md index f7c815ba765..84267c06498 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePassword( 'password' // oldPassword (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md index 1d64eb539ec..5ab19851878 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md index 53251691ea6..91cb79d0631 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-phone.md b/docs/examples/1.5.x/client-web/examples/account/update-phone.md index 87779d4afba..03947e31d5e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhone( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-prefs.md b/docs/examples/1.5.x/client-web/examples/account/update-prefs.md index d97cd059188..4f3039f3d8f 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-push-target.md b/docs/examples/1.5.x/client-web/examples/account/update-push-target.md index a8ac97c23f6..4803f6ba1e1 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePushTarget( '' // identifier ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-recovery.md b/docs/examples/1.5.x/client-web/examples/account/update-recovery.md index 90bfb6d442e..716efd2b484 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.updateRecovery( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-session.md b/docs/examples/1.5.x/client-web/examples/account/update-session.md index 5f30f172e54..b4370569b94 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateSession( '' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-status.md b/docs/examples/1.5.x/client-web/examples/account/update-status.md index e67bc78021d..c4b2c0eafb2 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-status.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); const result = await account.updateStatus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-verification.md b/docs/examples/1.5.x/client-web/examples/account/update-verification.md index a57fe4bf630..f928efdb4ea 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateVerification( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md index 905ff39792c..1c943e098e2 100644 --- a/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md index 682ba98f474..3ead6d6d2bf 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md index 68b5337eac7..1391a33f19f 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md index 5d5e93bef5f..4da10c5f30b 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md index e8521c9fa42..3bfe49d6491 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-image.md b/docs/examples/1.5.x/client-web/examples/avatars/get-image.md index 8b8fbd97e9f..ef639f60799 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md index cc456a4638e..25d23203dd8 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md index 5254a56fd04..83344a0c84e 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/databases/create-document.md b/docs/examples/1.5.x/client-web/examples/databases/create-document.md index 3a4d53d24d2..45448a893c4 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.createDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/delete-document.md b/docs/examples/1.5.x/client-web/examples/databases/delete-document.md index a08b3c7cc07..623e172a010 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteDocument( '' // documentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/get-document.md b/docs/examples/1.5.x/client-web/examples/databases/get-document.md index d8fe456dbb2..bdf9089c500 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.getDocument( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/list-documents.md b/docs/examples/1.5.x/client-web/examples/databases/list-documents.md index 3070b002b63..1d5e48a8dbf 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-web/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listDocuments( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/update-document.md b/docs/examples/1.5.x/client-web/examples/databases/update-document.md index 1daaf01038d..b7e4d5b276a 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.updateDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/functions/create-execution.md b/docs/examples/1.5.x/client-web/examples/functions/create-execution.md index 4a62462c158..401874f3751 100644 --- a/docs/examples/1.5.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-web/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const functions = new Functions(client); @@ -12,7 +12,8 @@ const result = await functions.createExecution( false, // async (optional) '', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/functions/get-execution.md b/docs/examples/1.5.x/client-web/examples/functions/get-execution.md index 06f9e484cde..05e2c3c7221 100644 --- a/docs/examples/1.5.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-web/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getExecution( '' // executionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/functions/list-executions.md b/docs/examples/1.5.x/client-web/examples/functions/list-executions.md index f6a1c1f2fbf..93a70d950c5 100644 --- a/docs/examples/1.5.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-web/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listExecutions( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/graphql/mutation.md b/docs/examples/1.5.x/client-web/examples/graphql/mutation.md index ca03455d197..b875f0e93ab 100644 --- a/docs/examples/1.5.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-web/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.mutation( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/graphql/query.md b/docs/examples/1.5.x/client-web/examples/graphql/query.md index 305e4c19271..c0f925a3a00 100644 --- a/docs/examples/1.5.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-web/examples/graphql/query.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.query( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/get.md b/docs/examples/1.5.x/client-web/examples/locale/get.md index 006f3392dff..f3a46b43fdd 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/get.md +++ b/docs/examples/1.5.x/client-web/examples/locale/get.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-codes.md b/docs/examples/1.5.x/client-web/examples/locale/list-codes.md index ca73077f855..36957e9fec7 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-codes.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-continents.md b/docs/examples/1.5.x/client-web/examples/locale/list-continents.md index 83e35e207ba..be3b2fa6473 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-continents.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listContinents(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md index 7a18ab12f46..a3af6ae93c9 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesEU(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md index 2e0daa12268..d6845b70db3 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesPhones(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-countries.md b/docs/examples/1.5.x/client-web/examples/locale/list-countries.md index 28ce9ccc322..defdfec006a 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-countries.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCountries(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md index 9ab5b1308db..7cbf8b81d90 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listCurrencies(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-languages.md b/docs/examples/1.5.x/client-web/examples/locale/list-languages.md index ea02c7fa5f6..4f3f877332d 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-languages.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const locale = new Locale(client); const result = await locale.listLanguages(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md index 6485fe37846..1fa1de5d518 100644 --- a/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createSubscriber( '' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md index 1319c9a2ee0..bbed0715c09 100644 --- a/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.deleteSubscriber( '' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/create-file.md b/docs/examples/1.5.x/client-web/examples/storage/create-file.md index 644fc652f39..db2200b86a1 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.createFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/delete-file.md b/docs/examples/1.5.x/client-web/examples/storage/delete-file.md index aefef46a62e..52cc1d4fa2d 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.deleteFile( '' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md index 4ec5e6376f0..d37541dd063 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md index c674e937b78..629417325be 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md index db161059417..9a58250003e 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file.md b/docs/examples/1.5.x/client-web/examples/storage/get-file.md index e52dc19a537..36c4b45ca60 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getFile( '' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/list-files.md b/docs/examples/1.5.x/client-web/examples/storage/list-files.md index ab5a755b5bb..731a76e3125 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-web/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -12,4 +12,4 @@ const result = await storage.listFiles( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/update-file.md b/docs/examples/1.5.x/client-web/examples/storage/update-file.md index 8eac864d292..75aefc1120a 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.updateFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/create-membership.md b/docs/examples/1.5.x/client-web/examples/teams/create-membership.md index 9d255ec1c66..3f585859a99 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -16,4 +16,4 @@ const result = await teams.createMembership( '' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/create.md b/docs/examples/1.5.x/client-web/examples/teams/create.md index 00ca64da29f..ffa14148786 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/create.md +++ b/docs/examples/1.5.x/client-web/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.create( [] // roles (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md index c2045cd8c4d..dc871165ee8 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.deleteMembership( '' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/delete.md b/docs/examples/1.5.x/client-web/examples/teams/delete.md index f6e5cb7a96d..99ce85673fa 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-web/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.delete( '' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/get-membership.md b/docs/examples/1.5.x/client-web/examples/teams/get-membership.md index 9871a42b186..d4abeeff736 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.getMembership( '' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md index a3d036ba262..b5b3d1295f7 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.getPrefs( '' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/get.md b/docs/examples/1.5.x/client-web/examples/teams/get.md index f54180f2abd..8306cc59b6d 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/get.md +++ b/docs/examples/1.5.x/client-web/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.get( '' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md index 436a79b9015..b1c068112b4 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.listMemberships( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/list.md b/docs/examples/1.5.x/client-web/examples/teams/list.md index 2376863b675..0d000e9b35c 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/list.md +++ b/docs/examples/1.5.x/client-web/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.list( '' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md index 2e240fa8e73..dd32bbb6f1b 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -13,4 +13,4 @@ const result = await teams.updateMembershipStatus( '' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-membership.md b/docs/examples/1.5.x/client-web/examples/teams/update-membership.md index dc55d04804f..ae7fb9a49cb 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.updateMembership( [] // roles ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-name.md b/docs/examples/1.5.x/client-web/examples/teams/update-name.md index c000401069a..553c77de3fb 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updateName( '' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md index e0fbb766f68..55b273b9961 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md b/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md index 78e1a0e4a9c..e874ce32dea 100644 --- a/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/client-web/examples/users/list-providers.md b/docs/examples/1.5.x/client-web/examples/users/list-providers.md index c75066c9881..7ed886ec18f 100644 --- a/docs/examples/1.5.x/client-web/examples/users/list-providers.md +++ b/docs/examples/1.5.x/client-web/examples/users/list-providers.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md index c36e9d55789..d4664855b5c 100644 --- a/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md @@ -1,3 +1,2 @@ appwrite account deleteMfaAuthenticator \ - --type totp \ - --otp + --type totp diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md index d48c3470fec..f5adb497ece 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateBooleanAttribute \ --collectionId \ --key '' \ --required false \ - --default false + --default false \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md index 9fc56373ed7..fe4a4626649 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateDatetimeAttribute \ --collectionId \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md index 9f7bffeb9cf..58510a6f8e5 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateEmailAttribute \ --collectionId \ --key '' \ --required false \ - --default email@example.com + --default email@example.com \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md index bf562a0a824..21d56d3e64a 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md @@ -4,4 +4,5 @@ appwrite databases updateEnumAttribute \ --key '' \ --elements one two three \ --required false \ - --default + --default \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md index 097dfd310a2..a9bba3eb5e8 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateFloatAttribute \ --collectionId \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md index 6a6b0747a83..660cd4d1480 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateIntegerAttribute \ --collectionId \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md index 2439b5a8de1..a400eadc1ea 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateIpAttribute \ --collectionId \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md index be03a707363..6e2dbd927d5 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md @@ -3,3 +3,4 @@ appwrite databases updateRelationshipAttribute \ --collectionId \ --key '' \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md index ebf45253fa8..526ece0b72e 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md @@ -3,4 +3,6 @@ appwrite databases updateStringAttribute \ --collectionId \ --key '' \ --required false \ - --default + --default \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md index aa11a588dbd..e6f401b8ca6 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateUrlAttribute \ --collectionId \ --key '' \ --required false \ - --default https://example.com + --default https://example.com \ + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/create-build.md b/docs/examples/1.5.x/console-cli/examples/functions/create-build.md index 98d087b089e..5a99f7a908d 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/create-build.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/create-build.md @@ -1,4 +1,4 @@ appwrite functions createBuild \ --functionId \ --deploymentId \ - --buildId + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md b/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md index 1efb7018291..febe88c5412 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md @@ -5,3 +5,4 @@ appwrite functions createExecution \ + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/create.md b/docs/examples/1.5.x/console-cli/examples/functions/create.md index cfc3c9c2adf..8b83c0ea0a2 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/create.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/create.md @@ -19,3 +19,5 @@ appwrite functions create \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/delete-execution.md b/docs/examples/1.5.x/console-cli/examples/functions/delete-execution.md new file mode 100644 index 00000000000..2926b5aaf1c --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/delete-execution.md @@ -0,0 +1,3 @@ +appwrite functions deleteExecution \ + --functionId \ + --executionId diff --git a/docs/examples/1.5.x/console-cli/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/console-cli/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..2cbb2bd6555 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/get-deployment-download.md @@ -0,0 +1,3 @@ +appwrite functions getDeploymentDownload \ + --functionId \ + --deploymentId diff --git a/docs/examples/1.5.x/console-cli/examples/functions/get-template.md b/docs/examples/1.5.x/console-cli/examples/functions/get-template.md new file mode 100644 index 00000000000..15c6068f355 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/get-template.md @@ -0,0 +1,2 @@ +appwrite functions getTemplate \ + --templateId diff --git a/docs/examples/1.5.x/console-cli/examples/functions/list-specifications.md b/docs/examples/1.5.x/console-cli/examples/functions/list-specifications.md new file mode 100644 index 00000000000..1d64bc68e76 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/list-specifications.md @@ -0,0 +1 @@ +appwrite functions listSpecifications diff --git a/docs/examples/1.5.x/console-cli/examples/functions/list-templates.md b/docs/examples/1.5.x/console-cli/examples/functions/list-templates.md new file mode 100644 index 00000000000..b48bab53e1f --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/list-templates.md @@ -0,0 +1,5 @@ +appwrite functions listTemplates \ + + + + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/console-cli/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..ddaf1e5955e --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/update-deployment-build.md @@ -0,0 +1,3 @@ +appwrite functions updateDeploymentBuild \ + --functionId \ + --deploymentId diff --git a/docs/examples/1.5.x/console-cli/examples/functions/update.md b/docs/examples/1.5.x/console-cli/examples/functions/update.md index 6f42584e4a2..7ac63e0cd1e 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/update.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/update.md @@ -15,3 +15,5 @@ appwrite functions update \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/console-cli/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..9cce9637489 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/health/get-queue-stats-resources.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsResources \ + diff --git a/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md b/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md index e1873425038..18d8ec5aeca 100644 --- a/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md @@ -1,7 +1,10 @@ appwrite messaging createPush \ --messageId \ - --title \ - --body <BODY> \ + + + + + diff --git a/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md b/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md index 70f215c9351..1f4427cee7d 100644 --- a/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md @@ -15,3 +15,6 @@ appwrite messaging updatePush \ + + + diff --git a/docs/examples/1.5.x/console-cli/examples/projects/create-j-w-t.md b/docs/examples/1.5.x/console-cli/examples/projects/create-j-w-t.md new file mode 100644 index 00000000000..d703d36b65a --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/create-j-w-t.md @@ -0,0 +1,4 @@ +appwrite projects createJWT \ + --projectId <PROJECT_ID> \ + --scopes one two three \ + diff --git a/docs/examples/1.5.x/console-cli/examples/projects/update-memberships-privacy.md b/docs/examples/1.5.x/console-cli/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..6c811ccfceb --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/update-memberships-privacy.md @@ -0,0 +1,5 @@ +appwrite projects updateMembershipsPrivacy \ + --projectId <PROJECT_ID> \ + --userName false \ + --userEmail false \ + --mfa false diff --git a/docs/examples/1.5.x/console-cli/examples/projects/update-mock-numbers.md b/docs/examples/1.5.x/console-cli/examples/projects/update-mock-numbers.md new file mode 100644 index 00000000000..733cc16887c --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/update-mock-numbers.md @@ -0,0 +1,3 @@ +appwrite projects updateMockNumbers \ + --projectId <PROJECT_ID> \ + --numbers one two three diff --git a/docs/examples/1.5.x/console-cli/examples/projects/update-session-alerts.md b/docs/examples/1.5.x/console-cli/examples/projects/update-session-alerts.md new file mode 100644 index 00000000000..bd23b7417aa --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/update-session-alerts.md @@ -0,0 +1,3 @@ +appwrite projects updateSessionAlerts \ + --projectId <PROJECT_ID> \ + --alerts false diff --git a/docs/examples/1.5.x/console-cli/examples/users/create-j-w-t.md b/docs/examples/1.5.x/console-cli/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..220086bb1a8 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/users/create-j-w-t.md @@ -0,0 +1,4 @@ +appwrite users createJWT \ + --userId <USER_ID> \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/vcs/get-repository-contents.md b/docs/examples/1.5.x/console-cli/examples/vcs/get-repository-contents.md new file mode 100644 index 00000000000..7d378d7efa9 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/vcs/get-repository-contents.md @@ -0,0 +1,4 @@ +appwrite vcs getRepositoryContents \ + --installationId <INSTALLATION_ID> \ + --providerRepositoryId <PROVIDER_REPOSITORY_ID> \ + diff --git a/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md index a93945117b2..0a699c7d3b4 100644 --- a/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md index c3efd84a2d1..ef433a8fb68 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createAnonymousSession(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-challenge.md b/docs/examples/1.5.x/console-web/examples/account/create-challenge.md index 2a2bd708e4e..f4e89c39d9b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md b/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md index 09004c1a750..0f51387343a 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-email-token.md b/docs/examples/1.5.x/console-web/examples/account/create-email-token.md index 9536329336d..b55f7c46bc1 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createEmailToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md index 72ecc6a066a..4f47136a6b7 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createJWT(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md index dcdef26e26b..68662b8a294 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md index 94dac4d8bbe..97bd528cbf4 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md index 2893120c8ac..ed2cd38628c 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge( AuthenticationFactor.Email // factor ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md index 13c28bbcdd3..06f25dd8170 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md index 35ef6f84209..e565dd58408 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md index a35bb3837e5..14c0d00af4a 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md b/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md index 5d7c160cfd1..21fdb81e31a 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createPhoneToken( '+12065550100' // phone ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md index 7a1320c7c1d..4d193cbd398 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createPhoneVerification(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-push-target.md b/docs/examples/1.5.x/console-web/examples/account/create-push-target.md index 093abcce429..339b9972c61 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createPushTarget( '<PROVIDER_ID>' // providerId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-recovery.md b/docs/examples/1.5.x/console-web/examples/account/create-recovery.md index 137e7c720ef..b28d4f8b015 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createRecovery( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-session.md b/docs/examples/1.5.x/console-web/examples/account/create-session.md index be5a2a38e1a..06e12603e1f 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-verification.md b/docs/examples/1.5.x/console-web/examples/account/create-verification.md index 34bacb0e995..555030a79ef 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createVerification( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create.md b/docs/examples/1.5.x/console-web/examples/account/create.md index 9c0d0353f07..120aceb9d9b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create.md +++ b/docs/examples/1.5.x/console-web/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.create( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md index a10dded6a87..9868f5f4fd9 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md index af72aae918c..b7191f30c33 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-identity.md b/docs/examples/1.5.x/console-web/examples/account/delete-identity.md index ed23adf0e0f..a541e9bd346 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteIdentity( '<IDENTITY_ID>' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md index 6b25790c061..64f27fdfacc 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '<OTP>' // otp + AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md b/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md index 630ebfed045..017ebd438b1 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deletePushTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-session.md b/docs/examples/1.5.x/console-web/examples/account/delete-session.md index 490880022ab..1045e98a825 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md index 76dd39963ba..ff8c069503c 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete.md b/docs/examples/1.5.x/console-web/examples/account/delete.md index 2f8cfac8e15..7fa1ef10d1c 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.delete(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md index 1dee196749b..6d47bc3b7cb 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get-prefs.md b/docs/examples/1.5.x/console-web/examples/account/get-prefs.md index 2a56a093c95..1470b683e58 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/account/get-prefs.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getPrefs(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get-session.md b/docs/examples/1.5.x/console-web/examples/account/get-session.md index 6707c5184a4..b7de88646ad 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.getSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get.md b/docs/examples/1.5.x/console-web/examples/account/get.md index d8ef1be4546..68dbf30b40b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get.md +++ b/docs/examples/1.5.x/console-web/examples/account/get.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-factors.md b/docs/examples/1.5.x/console-web/examples/account/list-factors.md index 79e1549b40e..dab56b79306 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-factors.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-identities.md b/docs/examples/1.5.x/console-web/examples/account/list-identities.md index ad308c6647b..f67e5817b31 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listIdentities( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-logs.md b/docs/examples/1.5.x/console-web/examples/account/list-logs.md index 15c5054f5cb..0532a94e19e 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md index a990fb1175f..3fa9652dbc6 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listMfaFactors(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-sessions.md b/docs/examples/1.5.x/console-web/examples/account/list-sessions.md index b0b48c58660..2cc26632635 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-challenge.md b/docs/examples/1.5.x/console-web/examples/account/update-challenge.md index 2c5c34e5b6c..8c79655a5ee 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-email.md b/docs/examples/1.5.x/console-web/examples/account/update-email.md index eecb26fd614..d7b6fb7aca9 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateEmail( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md b/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md index a039ee65463..3c9dac03262 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateMFA( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md index d82c7c24e51..6bafae7723b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md index 7a5c6407bff..430bf63cd97 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md index 2f3c8a77c80..c170cc272d5 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md index d9ad68a1e24..f61a5a1c1ef 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-name.md b/docs/examples/1.5.x/console-web/examples/account/update-name.md index d3c0d895361..b2991305c51 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-password.md b/docs/examples/1.5.x/console-web/examples/account/update-password.md index 1d797293a9b..1c6c4ce5d06 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePassword( 'password' // oldPassword (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md index c08b9927de6..a9c75466744 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md index 5417e11bf0c..de1f471e888 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-phone.md b/docs/examples/1.5.x/console-web/examples/account/update-phone.md index 82c1e9f0840..8c1880b482f 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhone( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-prefs.md b/docs/examples/1.5.x/console-web/examples/account/update-prefs.md index c5113b267d5..e3581de3414 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-push-target.md b/docs/examples/1.5.x/console-web/examples/account/update-push-target.md index 612515134fa..1cbf9e933ff 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePushTarget( '<IDENTIFIER>' // identifier ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-recovery.md b/docs/examples/1.5.x/console-web/examples/account/update-recovery.md index 4034ad5901d..3acc705f001 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.updateRecovery( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-session.md b/docs/examples/1.5.x/console-web/examples/account/update-session.md index a55c078fcb8..88f51f18f21 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-status.md b/docs/examples/1.5.x/console-web/examples/account/update-status.md index ef3d9406754..3ed146cff8d 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-status.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateStatus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-verification.md b/docs/examples/1.5.x/console-web/examples/account/update-verification.md index d221ebf338d..42d05ff3ef8 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md index 0ccb9de98c8..c6042ea7812 100644 --- a/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/assistant/chat.md b/docs/examples/1.5.x/console-web/examples/assistant/chat.md index 76a461fdc8c..9c44d5709a1 100644 --- a/docs/examples/1.5.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.5.x/console-web/examples/assistant/chat.md @@ -2,7 +2,7 @@ import { Client, Assistant } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const assistant = new Assistant(client); @@ -10,4 +10,4 @@ const result = await assistant.chat( '<PROMPT>' // prompt ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md index 421edc439fb..3604984b896 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md index 8eec98f455f..ec38da8a6b5 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md index 330ebb62327..87a310aaa34 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md index efb03314bb0..dd9e2f60ae0 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-image.md b/docs/examples/1.5.x/console-web/examples/avatars/get-image.md index f8e2f38efa6..8cb6546cf2c 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md index 384f6350a22..81cfc5ca3e9 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md index 4bafd30d0f7..d685011dc98 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/console/variables.md b/docs/examples/1.5.x/console-web/examples/console/variables.md index 1891b4daa57..0ee1f574831 100644 --- a/docs/examples/1.5.x/console-web/examples/console/variables.md +++ b/docs/examples/1.5.x/console-web/examples/console/variables.md @@ -2,10 +2,10 @@ import { Client, Console } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const console = new Console(client); const result = await console.variables(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md index c1c8c864947..ae76596cb2d 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createBooleanAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-collection.md b/docs/examples/1.5.x/console-web/examples/databases/create-collection.md index d8d2bc3302c..29e9eeed7de 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createCollection( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md index 1b0a0822e6d..7344660f51a 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createDatetimeAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-document.md b/docs/examples/1.5.x/console-web/examples/databases/create-document.md index 85114bdcdbb..8f1a69afe1c 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.createDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md index 867f9ed1ac4..32a51c506d6 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createEmailAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md index fb8ed88b245..ab460cde2b0 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -16,4 +16,4 @@ const result = await databases.createEnumAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md index 51c4f23f1c0..7019deb0aa2 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createFloatAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-index.md b/docs/examples/1.5.x/console-web/examples/databases/create-index.md index dd21231d29d..e8a3470879d 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-index.md @@ -2,7 +2,7 @@ import { Client, Databases, IndexType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createIndex( [] // orders (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md index d73139c9cce..a2cdda2b1cc 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createIntegerAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md index 1609c87be0f..daf7e4fd113 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createIpAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md index f212ac4b63d..a64548c9632 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases, RelationshipType, RelationMutate } from "@appwrite.i const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createRelationshipAttribute( RelationMutate.Cascade // onDelete (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md index 0d04eee83b2..6e9541ed573 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createStringAttribute( false // encrypt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md index 72e06b516e4..dc2dfc3ba0b 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createUrlAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create.md b/docs/examples/1.5.x/console-web/examples/databases/create.md index b443c87cba7..a7f560eef77 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.create( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md index 8d21126bd61..cec93bef6d5 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteAttribute( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md index 0f3b98d4bec..ef2aa905828 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.deleteCollection( '<COLLECTION_ID>' // collectionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-document.md b/docs/examples/1.5.x/console-web/examples/databases/delete-document.md index d2d986fce17..961bc639343 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteDocument( '<DOCUMENT_ID>' // documentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-index.md b/docs/examples/1.5.x/console-web/examples/databases/delete-index.md index 3ecb1f1f2cd..152a93e0a1d 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-index.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteIndex( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete.md b/docs/examples/1.5.x/console-web/examples/databases/delete.md index 439130279f6..b6485ad9d94 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,4 +10,4 @@ const result = await databases.delete( '<DATABASE_ID>' // databaseId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md index 20ce69c8d73..20c555cb9ec 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.getAttribute( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md index d7cfc423145..4b14f1fd93b 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md @@ -2,7 +2,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.getCollectionUsage( DatabaseUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-collection.md b/docs/examples/1.5.x/console-web/examples/databases/get-collection.md index b7d6429035f..59ab03be1ee 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.getCollection( '<COLLECTION_ID>' // collectionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md index 9ad346f5c7e..c0f15e4e6a3 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md @@ -2,7 +2,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.getDatabaseUsage( DatabaseUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-document.md b/docs/examples/1.5.x/console-web/examples/databases/get-document.md index f9617272366..cf16708bfb3 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.getDocument( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-index.md b/docs/examples/1.5.x/console-web/examples/databases/get-index.md index 340414c47a1..85a1c03b1b1 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-index.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.getIndex( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-usage.md b/docs/examples/1.5.x/console-web/examples/databases/get-usage.md index 3d75f6a43c8..9d926e5ffb3 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-usage.md @@ -2,7 +2,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,4 +10,4 @@ const result = await databases.getUsage( DatabaseUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get.md b/docs/examples/1.5.x/console-web/examples/databases/get.md index 86af9723328..8b9e02ed19f 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,4 +10,4 @@ const result = await databases.get( '<DATABASE_ID>' // databaseId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md index a4d5477a63e..987e1741f0b 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listAttributes( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md index f2119e786dd..d01a57ea0d8 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listCollectionLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-collections.md b/docs/examples/1.5.x/console-web/examples/databases/list-collections.md index b1aa2706f2d..28450a7bfd1 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-collections.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listCollections( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md index 94bb129b60c..c1c2b06ede5 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.listDocumentLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-documents.md b/docs/examples/1.5.x/console-web/examples/databases/list-documents.md index d704eda5f44..27d4d77b90e 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listDocuments( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md index c1818ad2ecd..829f6d7b023 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listIndexes( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-logs.md b/docs/examples/1.5.x/console-web/examples/databases/list-logs.md index d889ec777f6..ec42922d4c6 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-logs.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list.md b/docs/examples/1.5.x/console-web/examples/databases/list.md index f5742ff85fa..d41bdabb7bd 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md index 4963701b61c..82b4c3ca2d8 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-collection.md b/docs/examples/1.5.x/console-web/examples/databases/update-collection.md index 7a94d88edfa..f5e6176811f 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.updateCollection( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md index ce12ecf94d0..453b2f369dc 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-document.md b/docs/examples/1.5.x/console-web/examples/databases/update-document.md index 82307c7e7c3..635c50722dc 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.updateDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md index eaf1167a255..581d7ab48ea 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md index 4dba524a08b..999335a27e4 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md index c8c73e1b869..91e946dad4c 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,10 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md index c113213e535..84ed1656d6e 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,10 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md index 81c47d4ec65..f2a018c4b40 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md index 649cae12a46..bc5f41cf92e 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases, RelationMutate } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,7 +10,8 @@ const result = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - RelationMutate.Cascade // onDelete (optional) + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md index 54d7875fdf4..f652c304ebf 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,9 @@ const result = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md index 3d02628464b..e09220304e8 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update.md b/docs/examples/1.5.x/console-web/examples/databases/update.md index 41529ed8841..a8c2b33ae48 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.update( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-build.md b/docs/examples/1.5.x/console-web/examples/functions/create-build.md index 034ea7e56dc..89c7d0817cd 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-build.md @@ -2,14 +2,14 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); const result = await functions.createBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>', // deploymentId - '<BUILD_ID>' // buildId + '<BUILD_ID>' // buildId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md index d3086ceb6e8..75715323561 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -14,4 +14,4 @@ const result = await functions.createDeployment( '<COMMANDS>' // commands (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-execution.md b/docs/examples/1.5.x/console-web/examples/functions/create-execution.md index d8ff507012d..dfaf2ef2601 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,7 +12,8 @@ const result = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-variable.md b/docs/examples/1.5.x/console-web/examples/functions/create-variable.md index 3b8f6d38028..60d9a10b294 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.createVariable( '<VALUE>' // value ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create.md b/docs/examples/1.5.x/console-web/examples/functions/create.md index f726c5754b1..63df3bfa03c 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create.md @@ -2,7 +2,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -18,6 +18,7 @@ const result = await functions.create( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) @@ -26,7 +27,8 @@ const result = await functions.create( '<TEMPLATE_REPOSITORY>', // templateRepository (optional) '<TEMPLATE_OWNER>', // templateOwner (optional) '<TEMPLATE_ROOT_DIRECTORY>', // templateRootDirectory (optional) - '<TEMPLATE_BRANCH>' // templateBranch (optional) + '<TEMPLATE_VERSION>', // templateVersion (optional) + '' // specification (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md index fac4afedb8e..28fd5b29e3b 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.deleteDeployment( '<DEPLOYMENT_ID>' // deploymentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete-execution.md b/docs/examples/1.5.x/console-web/examples/functions/delete-execution.md new file mode 100644 index 00000000000..2a857d6535d --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md index d6f7f925347..60c4de54cc7 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.deleteVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete.md b/docs/examples/1.5.x/console-web/examples/functions/delete.md index 5cb2ee4c22b..b6dd5ccf3e7 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.delete( '<FUNCTION_ID>' // functionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md index cea99706707..edb8284c383 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/console-web/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..34f5b4e45f8 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/functions/get-deployment-download.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = functions.getDeploymentDownload( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md index 372697a00a0..242c77cfe04 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getDeployment( '<DEPLOYMENT_ID>' // deploymentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-execution.md b/docs/examples/1.5.x/console-web/examples/functions/get-execution.md index 7dbb0501f31..6daf1757fdf 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getExecution( '<EXECUTION_ID>' // executionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md index e465afcc50b..cfa6c003b04 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md @@ -2,7 +2,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getFunctionUsage( FunctionUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-template.md b/docs/examples/1.5.x/console-web/examples/functions/get-template.md new file mode 100644 index 00000000000..a230c7aba96 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/functions/get-template.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getTemplate( + '<TEMPLATE_ID>' // templateId +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-usage.md b/docs/examples/1.5.x/console-web/examples/functions/get-usage.md index c222f0ea341..7fdf2d2f44d 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-usage.md @@ -2,7 +2,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.getUsage( FunctionUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-variable.md b/docs/examples/1.5.x/console-web/examples/functions/get-variable.md index 3507968b032..14fd5550775 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get.md b/docs/examples/1.5.x/console-web/examples/functions/get.md index 51c8190f455..7eb5d29923b 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.get( '<FUNCTION_ID>' // functionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md index 30ae40f22e1..453e92cfaa3 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listDeployments( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-executions.md b/docs/examples/1.5.x/console-web/examples/functions/list-executions.md index 5236bf6562c..1aad664cda6 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listExecutions( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md index 9935779e373..36010611f00 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md @@ -2,10 +2,10 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); const result = await functions.listRuntimes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-specifications.md b/docs/examples/1.5.x/console-web/examples/functions/list-specifications.md new file mode 100644 index 00000000000..a3c11f1d835 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listSpecifications(); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-templates.md b/docs/examples/1.5.x/console-web/examples/functions/list-templates.md new file mode 100644 index 00000000000..3970f8f6699 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/functions/list-templates.md @@ -0,0 +1,16 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listTemplates( + [], // runtimes (optional) + [], // useCases (optional) + 1, // limit (optional) + 0 // offset (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-variables.md b/docs/examples/1.5.x/console-web/examples/functions/list-variables.md index ca43b90f308..fc659e3e7d3 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-variables.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.listVariables( '<FUNCTION_ID>' // functionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list.md b/docs/examples/1.5.x/console-web/examples/functions/list.md index 586e51d49bc..26e4864e95a 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/console-web/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..bd11a2a80e2 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/functions/update-deployment-build.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.updateDeploymentBuild( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md index 373c9a4bf63..3aad019b137 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.updateDeployment( '<DEPLOYMENT_ID>' // deploymentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update-variable.md b/docs/examples/1.5.x/console-web/examples/functions/update-variable.md index bd6b0b23ddf..5046499cc75 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -13,4 +13,4 @@ const result = await functions.updateVariable( '<VALUE>' // value (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update.md b/docs/examples/1.5.x/console-web/examples/functions/update.md index 3bb85eec5ee..a8d1709aca9 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/update.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update.md @@ -2,7 +2,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -18,11 +18,13 @@ const result = await functions.update( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) false, // providerSilentMode (optional) - '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/graphql/mutation.md b/docs/examples/1.5.x/console-web/examples/graphql/mutation.md index d3e96765764..0b9b76a2fd2 100644 --- a/docs/examples/1.5.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/console-web/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.mutation( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/graphql/query.md b/docs/examples/1.5.x/console-web/examples/graphql/query.md index a06a916535e..a708c3904e7 100644 --- a/docs/examples/1.5.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.5.x/console-web/examples/graphql/query.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.query( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md index 4d7b1cbd982..3c36cd720e9 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getAntivirus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-cache.md b/docs/examples/1.5.x/console-web/examples/health/get-cache.md index 34ca3ce8f1b..0bdb8947339 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-cache.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getCache(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-certificate.md b/docs/examples/1.5.x/console-web/examples/health/get-certificate.md index 08f90b893d6..4bd5c8a6b47 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-certificate.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getCertificate( '' // domain (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-d-b.md b/docs/examples/1.5.x/console-web/examples/health/get-d-b.md index f0015197e05..d18ed28f649 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-d-b.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getDB(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md index b1768a7b6f7..e1e57b1654d 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md @@ -2,7 +2,7 @@ import { Client, Health, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -11,4 +11,4 @@ const result = await health.getFailedJobs( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md index fd2773503d4..9b398f5b140 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getPubSub(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md index 00c702ee6be..0ee109f8dd7 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueBuilds( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md index aafe14aab18..ce82ab00de9 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueCertificates( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md index 9ea4d8c10bd..8a96fcf00ba 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -11,4 +11,4 @@ const result = await health.getQueueDatabases( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md index 2e7fcbc41a7..840607e1131 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueDeletes( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md index 7afce2b33f0..35c612a7af8 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueFunctions( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md index 4c3477b3124..9f5d51dc298 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueLogs( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md index c4ff788134e..58d694d7b8b 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueMails( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md index 33f68de8b72..cfecdf9a634 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueMessaging( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md index d2c873f661a..5a8b74e79cd 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueMigrations( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..97f4c5b4e9b --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md index e88640edce0..dddfb821c59 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md index 7961ad62829..703574a3ba6 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueUsage( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md index 0fce435c69d..1c003864a58 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueWebhooks( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue.md b/docs/examples/1.5.x/console-web/examples/health/get-queue.md index 755624eb924..c6443fee3f1 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md index 280d5fea40e..82c6b8bebfa 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getStorageLocal(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-storage.md b/docs/examples/1.5.x/console-web/examples/health/get-storage.md index 13dc5456527..a7a377a4246 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-storage.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-storage.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getStorage(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-time.md b/docs/examples/1.5.x/console-web/examples/health/get-time.md index 696d7acd400..8e126c0c074 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-time.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getTime(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get.md b/docs/examples/1.5.x/console-web/examples/health/get.md index 85a6fd9f77f..3f2f0fbd85a 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get.md +++ b/docs/examples/1.5.x/console-web/examples/health/get.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/get.md b/docs/examples/1.5.x/console-web/examples/locale/get.md index 387aedc0743..fc4f1490ac4 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/get.md +++ b/docs/examples/1.5.x/console-web/examples/locale/get.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-codes.md b/docs/examples/1.5.x/console-web/examples/locale/list-codes.md index d426e06a850..547ff184182 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-codes.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-continents.md b/docs/examples/1.5.x/console-web/examples/locale/list-continents.md index 544550a4632..2c09d6a472d 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-continents.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listContinents(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md index a675d30d563..12769b40f52 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesEU(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md index 938b248b9da..6bd09be13e9 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesPhones(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-countries.md b/docs/examples/1.5.x/console-web/examples/locale/list-countries.md index e3f84b0c3a8..e245f18aa74 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-countries.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountries(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md index 8ffe9ad2fd5..4fabdd6a710 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCurrencies(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-languages.md b/docs/examples/1.5.x/console-web/examples/locale/list-languages.md index c9a74bf9689..3de7d36e2f9 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-languages.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listLanguages(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md index d329d2626ea..eee34083867 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md index 2313716128e..2c9592eacb7 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.createApnsProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-email.md b/docs/examples/1.5.x/console-web/examples/messaging/create-email.md index 7d1b1184e35..cf9800827c0 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-email.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -21,4 +21,4 @@ const result = await messaging.createEmail( '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md index a4774c7561f..8437f1dc58a 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md index 64091866fb2..e4db7c5b876 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -13,4 +13,4 @@ const result = await messaging.createFcmProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md index 70e60593fc6..e03a7adc7e9 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -19,4 +19,4 @@ const result = await messaging.createMailgunProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md index e066f1c3e5d..2576d818e86 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createMsg91Provider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-push.md b/docs/examples/1.5.x/console-web/examples/messaging/create-push.md index dcb8654d1e4..9a4fd4269a0 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-push.md @@ -1,15 +1,15 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -20,9 +20,12 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md index d29de0dceaf..56f7320b4da 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md index d463ba3c502..c7b6d755214 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md index 10c1987c1e0..309df22c6c1 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.createSendgridProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md b/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md index 91393f627c5..8cdc8ffd428 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -16,4 +16,4 @@ const result = await messaging.createSms( '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md index fd8aa44cf27..a1363e6ded8 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -23,4 +23,4 @@ const result = await messaging.createSmtpProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md index 71e2e045bc7..9e6705488d9 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createSubscriber( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md index d0105fff1e5..03928d1cba6 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createTelesignProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md index 9eccf339d72..f3a4f21a491 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createTextmagicProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md index ce49f9d097a..46a7a10f382 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createTopic( ["any"] // subscribe (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md index 37e6851ac4e..4a1dbef2567 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createTwilioProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md index 81b3d16ff84..97dfed44f31 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createVonageProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md index dbdc076e490..03626ffd6f9 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.deleteProvider( '<PROVIDER_ID>' // providerId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md index c88a0a57816..dc10349ebb3 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.deleteSubscriber( '<SUBSCRIBER_ID>' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md index 1adaa6a561b..f009f770af2 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.deleteTopic( '<TOPIC_ID>' // topicId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete.md b/docs/examples/1.5.x/console-web/examples/messaging/delete.md index 5adcdda136a..daf58d29002 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.delete( '<MESSAGE_ID>' // messageId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-message.md b/docs/examples/1.5.x/console-web/examples/messaging/get-message.md index d2969194e1c..3e141f41823 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-message.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.getMessage( '<MESSAGE_ID>' // messageId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md index ec576d2d4e2..834241ffb3e 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.getProvider( '<PROVIDER_ID>' // providerId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md index 72706a0c7d4..22860485dcb 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.getSubscriber( '<SUBSCRIBER_ID>' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md index 277d611ff77..dd30034a249 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.getTopic( '<TOPIC_ID>' // topicId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md index 20ec0be37ed..709a433e737 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listMessageLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md b/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md index e7d58f9ccdc..42cf8874e5e 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listMessages( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md index 9b338e39fac..228a83e6ca2 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listProviderLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md b/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md index 5c3e1bde0c7..e135b4afb70 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listProviders( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md index 2ef14d7cd5c..33f4bdf0b1d 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listSubscriberLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md index c317de9cffb..09818406d5e 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.listSubscribers( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md b/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md index 1628d1dac12..92adc0cf346 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listTargets( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md index a3675031fe5..2ab33f65333 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listTopicLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md b/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md index d42ae79a49a..8983f834f7d 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listTopics( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md index 24e3a59a3e5..bb89e23de30 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md index adde33676d7..4face789204 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.updateApnsProvider( false // sandbox (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-email.md b/docs/examples/1.5.x/console-web/examples/messaging/update-email.md index ea9ff13858e..905ba629c4c 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-email.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -21,4 +21,4 @@ const result = await messaging.updateEmail( [] // attachments (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md index e734ce66151..7f800a3e411 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md index bf408da2908..0c1b2627dc8 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -13,4 +13,4 @@ const result = await messaging.updateFcmProvider( {} // serviceAccountJSON (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md index 8edfd8f43e5..8dbf6b8bc39 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -19,4 +19,4 @@ const result = await messaging.updateMailgunProvider( '<REPLY_TO_EMAIL>' // replyToEmail (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md index 4a8148a24ff..68db8ffe2d7 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateMsg91Provider( '<AUTH_KEY>' // authKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-push.md b/docs/examples/1.5.x/console-web/examples/messaging/update-push.md index e6ec29c2cdd..fa2220d3c6c 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-push.md @@ -1,8 +1,8 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -22,7 +22,10 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md index b43057ac587..c277ed618fb 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md index 163512e004e..d4d05e49767 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md index a815cfacd38..5cb6907f059 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.updateSendgridProvider( '<REPLY_TO_EMAIL>' // replyToEmail (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md b/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md index 058ed8a3a4d..c26662680a1 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -16,4 +16,4 @@ const result = await messaging.updateSms( '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md index a8556fe4824..aca32d19020 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -23,4 +23,4 @@ const result = await messaging.updateSmtpProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md index 5ae3543a5ee..fcba0648f50 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateTelesignProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md index 45c19fc3f22..c2f1c2506a8 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateTextmagicProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md index 19da6c56055..d5d953511bc 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.updateTopic( ["any"] // subscribe (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md index fd1b314287c..d6a8d07a4b3 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateTwilioProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md index 7fd146680b0..939cd821d6c 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateVonageProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md index 91e71539861..4e5b463e388 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -13,4 +13,4 @@ const result = await migrations.createAppwriteMigration( '<API_KEY>' // apiKey ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md index 20e75883d71..9e59eda642b 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -11,4 +11,4 @@ const result = await migrations.createFirebaseMigration( '<SERVICE_ACCOUNT>' // serviceAccount ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md index c35c654be7e..fca6e8ca18b 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md index e87a6efd00d..281b584d351 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -17,4 +17,4 @@ const result = await migrations.createNHostMigration( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md index 5377c6beaf6..290009b498f 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -16,4 +16,4 @@ const result = await migrations.createSupabaseMigration( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md index 5707be782d0..e6cb6735871 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/delete.md b/docs/examples/1.5.x/console-web/examples/migrations/delete.md index 2a0af9b0faa..d5f68fffaff 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/delete.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/delete.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -10,4 +10,4 @@ const result = await migrations.delete( '<MIGRATION_ID>' // migrationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md index 82313bc14fd..b5de0848bcf 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -13,4 +13,4 @@ const result = await migrations.getAppwriteReport( '<KEY>' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md index 634f2f0f41b..cb4ee846896 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md index 1d9ebaa6fb1..112dd629d76 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -11,4 +11,4 @@ const result = await migrations.getFirebaseReport( '<SERVICE_ACCOUNT>' // serviceAccount ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md index 7d66870e4c7..ec615014f1b 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -17,4 +17,4 @@ const result = await migrations.getNHostReport( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md index 4a5e1a97192..5f6dd316e75 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -16,4 +16,4 @@ const result = await migrations.getSupabaseReport( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get.md b/docs/examples/1.5.x/console-web/examples/migrations/get.md index 4c1f5d3b90b..3397c2faa84 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -10,4 +10,4 @@ const result = await migrations.get( '<MIGRATION_ID>' // migrationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md index 018b1211fc7..8c981c9fb6c 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/list.md b/docs/examples/1.5.x/console-web/examples/migrations/list.md index 65c2c1888dc..05207f4a6ad 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/list.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -11,4 +11,4 @@ const result = await migrations.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/retry.md b/docs/examples/1.5.x/console-web/examples/migrations/retry.md index 110e600e40a..e70bc0700f2 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/retry.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/retry.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -10,4 +10,4 @@ const result = await migrations.retry( '<MIGRATION_ID>' // migrationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/create-variable.md b/docs/examples/1.5.x/console-web/examples/project/create-variable.md index d9efb5eb1e2..5d72427d9fa 100644 --- a/docs/examples/1.5.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/create-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -11,4 +11,4 @@ const result = await project.createVariable( '<VALUE>' // value ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/delete-variable.md b/docs/examples/1.5.x/console-web/examples/project/delete-variable.md index 657520fb46b..f7a9cf7f3f7 100644 --- a/docs/examples/1.5.x/console-web/examples/project/delete-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/delete-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -10,4 +10,4 @@ const result = await project.deleteVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/get-usage.md b/docs/examples/1.5.x/console-web/examples/project/get-usage.md index b81026eaa98..28d2e32a501 100644 --- a/docs/examples/1.5.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/project/get-usage.md @@ -2,7 +2,7 @@ import { Client, Project, ProjectUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -12,4 +12,4 @@ const result = await project.getUsage( ProjectUsageRange.OneHour // period (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/get-variable.md b/docs/examples/1.5.x/console-web/examples/project/get-variable.md index f7cb80272d0..8765ccaf17b 100644 --- a/docs/examples/1.5.x/console-web/examples/project/get-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/get-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -10,4 +10,4 @@ const result = await project.getVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/list-variables.md b/docs/examples/1.5.x/console-web/examples/project/list-variables.md index 41e448e406d..fde2ccfaf03 100644 --- a/docs/examples/1.5.x/console-web/examples/project/list-variables.md +++ b/docs/examples/1.5.x/console-web/examples/project/list-variables.md @@ -2,10 +2,10 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); const result = await project.listVariables(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/update-variable.md b/docs/examples/1.5.x/console-web/examples/project/update-variable.md index 532fbdc82b9..7263032bfb4 100644 --- a/docs/examples/1.5.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/update-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -12,4 +12,4 @@ const result = await project.updateVariable( '<VALUE>' // value (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-j-w-t.md b/docs/examples/1.5.x/console-web/examples/projects/create-j-w-t.md new file mode 100644 index 00000000000..2674a12ae18 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/create-j-w-t.md @@ -0,0 +1,15 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createJWT( + '<PROJECT_ID>', // projectId + [], // scopes + 0 // duration (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-key.md b/docs/examples/1.5.x/console-web/examples/projects/create-key.md index 29f9258d5b4..80ab9cc4293 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -13,4 +13,4 @@ const result = await projects.createKey( '' // expire (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-platform.md b/docs/examples/1.5.x/console-web/examples/projects/create-platform.md index e8ad4f846c8..472517a6257 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-platform.md @@ -2,7 +2,7 @@ import { Client, Projects, PlatformType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -15,4 +15,4 @@ const result = await projects.createPlatform( '' // hostname (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md b/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md index dab2e5ec9bb..205a60846df 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md @@ -2,7 +2,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -19,4 +19,4 @@ const result = await projects.createSmtpTest( SMTPSecure.Tls // secure (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md index 8dec04c3150..066b1b78aaa 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -17,4 +17,4 @@ const result = await projects.createWebhook( '<HTTP_PASS>' // httpPass (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create.md b/docs/examples/1.5.x/console-web/examples/projects/create.md index b008f9bc740..8d1eb12cac7 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create.md @@ -2,7 +2,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -22,4 +22,4 @@ const result = await projects.create( '<LEGAL_TAX_ID>' // legalTaxId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md index 13a384cb275..582c7562602 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md @@ -2,7 +2,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.deleteEmailTemplate( EmailTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-key.md b/docs/examples/1.5.x/console-web/examples/projects/delete-key.md index c1ac0a74961..21643859f70 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.deleteKey( '<KEY_ID>' // keyId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md index 28e1109152a..8a0dd667ac2 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.deletePlatform( '<PLATFORM_ID>' // platformId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md index 281384cab2a..cee473637e1 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md @@ -2,7 +2,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite. const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.deleteSmsTemplate( SmsTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md index f61268b342d..9b8b0ca0b53 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.deleteWebhook( '<WEBHOOK_ID>' // webhookId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete.md b/docs/examples/1.5.x/console-web/examples/projects/delete.md index abcdb644f47..606b4493889 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.delete( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md index 177291a07d9..41da628ce2e 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md @@ -2,7 +2,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.getEmailTemplate( EmailTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-key.md b/docs/examples/1.5.x/console-web/examples/projects/get-key.md index ef5c30ba3e1..8965f7250a2 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.getKey( '<KEY_ID>' // keyId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-platform.md b/docs/examples/1.5.x/console-web/examples/projects/get-platform.md index e79319c0461..aa0b0847263 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-platform.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.getPlatform( '<PLATFORM_ID>' // platformId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md index 8d28308b616..5c424db1608 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md @@ -2,7 +2,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite. const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.getSmsTemplate( SmsTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md index 70ffb98010e..eff61f8e712 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.getWebhook( '<WEBHOOK_ID>' // webhookId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get.md b/docs/examples/1.5.x/console-web/examples/projects/get.md index 5efff32c1b4..eb537bfa3f2 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.get( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list-keys.md b/docs/examples/1.5.x/console-web/examples/projects/list-keys.md index 2a2ce198328..a381e9f5088 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list-keys.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.listKeys( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md index 884a712878b..d2dbc82a0cd 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.listPlatforms( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md index e060f4d5e17..c0e90e92023 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.listWebhooks( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list.md b/docs/examples/1.5.x/console-web/examples/projects/list.md index 51e65ac59c6..01d68f4fb09 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md b/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md index 937e3895425..8ef4562852f 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md b/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md index 37a9666f845..5378a3511eb 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateApiStatusAll( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md b/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md index e53a3bd4337..63328d4486d 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md @@ -2,7 +2,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.updateApiStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md index a46001a55a0..82738f3798a 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthDuration( 0 // duration ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md index 12b444a7d30..e76582e0e25 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthLimit( 0 // limit ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md index 8510cfe32d1..bd76c9b4b93 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthPasswordDictionary( false // enabled ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md index acf2c4673b2..02aa65bbb83 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthPasswordHistory( 0 // limit ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md index a47267aab2f..69efff8cbae 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthSessionsLimit( 1 // limit ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md index 1f4d3978fb9..fc38aa64879 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md @@ -2,7 +2,7 @@ import { Client, Projects, AuthMethod } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.updateAuthStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md index 5b16b9596dd..178193b4522 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md @@ -2,7 +2,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -17,4 +17,4 @@ const result = await projects.updateEmailTemplate( 'email@example.com' // replyTo (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-key.md b/docs/examples/1.5.x/console-web/examples/projects/update-key.md index 1a17ac848df..287133deee7 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -14,4 +14,4 @@ const result = await projects.updateKey( '' // expire (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-memberships-privacy.md b/docs/examples/1.5.x/console-web/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..2cde25faa56 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/update-memberships-privacy.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMembershipsPrivacy( + '<PROJECT_ID>', // projectId + false, // userName + false, // userEmail + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-mock-numbers.md b/docs/examples/1.5.x/console-web/examples/projects/update-mock-numbers.md new file mode 100644 index 00000000000..c371e721e9f --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/update-mock-numbers.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMockNumbers( + '<PROJECT_ID>', // projectId + [] // numbers +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md index 6e2ff1ca9c9..fc9cd5a31e5 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md @@ -2,7 +2,7 @@ import { Client, Projects, OAuthProvider } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -14,4 +14,4 @@ const result = await projects.updateOAuth2( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md index b597bc0c959..be52d712401 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updatePersonalDataCheck( false // enabled ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-platform.md b/docs/examples/1.5.x/console-web/examples/projects/update-platform.md index 3bb24ac9911..a34d5cccebf 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-platform.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -15,4 +15,4 @@ const result = await projects.updatePlatform( '' // hostname (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md index 17ac72e7ff4..9a64f375a41 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateServiceStatusAll( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md index cffa9554a05..e1af528617d 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md @@ -2,7 +2,7 @@ import { Client, Projects, ApiService } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.updateServiceStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-session-alerts.md b/docs/examples/1.5.x/console-web/examples/projects/update-session-alerts.md new file mode 100644 index 00000000000..f718d251216 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/update-session-alerts.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateSessionAlerts( + '<PROJECT_ID>', // projectId + false // alerts +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md index 1d35691af0c..97e70017754 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md @@ -2,7 +2,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite. const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -13,4 +13,4 @@ const result = await projects.updateSmsTemplate( '<MESSAGE>' // message ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md b/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md index 91c5d5721b5..d2cba5cff12 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md @@ -2,7 +2,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -19,4 +19,4 @@ const result = await projects.updateSmtp( SMTPSecure.Tls // secure (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-team.md b/docs/examples/1.5.x/console-web/examples/projects/update-team.md index 416ccfda6ff..71ef96c9fbb 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-team.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-team.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateTeam( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md index 8c83e156d22..14a277c0e12 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateWebhookSignature( '<WEBHOOK_ID>' // webhookId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md index eccb7a69053..3b248a8d29f 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -18,4 +18,4 @@ const result = await projects.updateWebhook( '<HTTP_PASS>' // httpPass (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update.md b/docs/examples/1.5.x/console-web/examples/projects/update.md index f77fdb22e5d..c5d2961acbe 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -20,4 +20,4 @@ const result = await projects.update( '<LEGAL_TAX_ID>' // legalTaxId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md b/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md index 69b7396ea3f..e2eecb0f7f9 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md @@ -2,7 +2,7 @@ import { Client, Proxy, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -12,4 +12,4 @@ const result = await proxy.createRule( '<RESOURCE_ID>' // resourceId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md index 6db415ee421..4e8cc42375c 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -10,4 +10,4 @@ const result = await proxy.deleteRule( '<RULE_ID>' // ruleId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md index 41dfcb1ef5f..3e4ae78a1cb 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -10,4 +10,4 @@ const result = await proxy.getRule( '<RULE_ID>' // ruleId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md index 349750440fb..01b5cc0527c 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -11,4 +11,4 @@ const result = await proxy.listRules( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md index 480053b6751..6ae0a0274e2 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -10,4 +10,4 @@ const result = await proxy.updateRuleVerification( '<RULE_ID>' // ruleId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md index 39671600b6f..eec0272c589 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -19,4 +19,4 @@ const result = await storage.createBucket( false // antivirus (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/create-file.md b/docs/examples/1.5.x/console-web/examples/storage/create-file.md index 639676f4161..21c58dcbb0a 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.createFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md index 0a924a6408f..c20989887d3 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -10,4 +10,4 @@ const result = await storage.deleteBucket( '<BUCKET_ID>' // bucketId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/delete-file.md b/docs/examples/1.5.x/console-web/examples/storage/delete-file.md index 00ffd6e3428..3e2010a0279 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.deleteFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md index 2511bbcf5f1..f28d21773a2 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md @@ -2,7 +2,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getBucketUsage( StorageUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md index 669d9749206..b69202ddd28 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -10,4 +10,4 @@ const result = await storage.getBucket( '<BUCKET_ID>' // bucketId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md index 2d9ca0b5f2f..2376adc4708 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md index e63beb9ec16..ee390c5231c 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "@appwrite.io/console const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md index fe46fd5040e..82689b59675 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file.md b/docs/examples/1.5.x/console-web/examples/storage/get-file.md index e901709c6c0..f4c0aa9c50b 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-usage.md b/docs/examples/1.5.x/console-web/examples/storage/get-usage.md index e1c0abfe8d8..6090311d54f 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-usage.md @@ -2,7 +2,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -10,4 +10,4 @@ const result = await storage.getUsage( StorageUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md index a5b8c019eaf..eb4c561386c 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.listBuckets( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/list-files.md b/docs/examples/1.5.x/console-web/examples/storage/list-files.md index db6aaf87b3a..e5039136ff3 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.5.x/console-web/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -12,4 +12,4 @@ const result = await storage.listFiles( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md index 3561b372865..89593957828 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -19,4 +19,4 @@ const result = await storage.updateBucket( false // antivirus (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/update-file.md b/docs/examples/1.5.x/console-web/examples/storage/update-file.md index 759adaeb269..2d3fedbfcbc 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.updateFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/create-membership.md b/docs/examples/1.5.x/console-web/examples/teams/create-membership.md index 6988e395527..2ea76b1987d 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -16,4 +16,4 @@ const result = await teams.createMembership( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/create.md b/docs/examples/1.5.x/console-web/examples/teams/create.md index b9c4be1ea49..40cd4763c1c 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/create.md +++ b/docs/examples/1.5.x/console-web/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.create( [] // roles (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md index afe0791dd15..c7a307da48d 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.deleteMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/delete.md b/docs/examples/1.5.x/console-web/examples/teams/delete.md index 8e02cdd424c..fe71deed638 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.5.x/console-web/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.delete( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/get-membership.md b/docs/examples/1.5.x/console-web/examples/teams/get-membership.md index cf9117c34e2..99e67ea8ffa 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.getMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md index bb79b377b46..9b5c724aadd 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.getPrefs( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/get.md b/docs/examples/1.5.x/console-web/examples/teams/get.md index 1d629a8997a..d87b58f05c9 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/get.md +++ b/docs/examples/1.5.x/console-web/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.get( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/list-logs.md b/docs/examples/1.5.x/console-web/examples/teams/list-logs.md index 51d0855e0fd..76ba484ddba 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/teams/list-logs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md index dfb8dfde3a8..9f1a6f91220 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.listMemberships( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/list.md b/docs/examples/1.5.x/console-web/examples/teams/list.md index 3b2aea921d1..b738fe925bd 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/list.md +++ b/docs/examples/1.5.x/console-web/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md index ec9f36e5ad3..b7fe25d3eea 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -13,4 +13,4 @@ const result = await teams.updateMembershipStatus( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-membership.md b/docs/examples/1.5.x/console-web/examples/teams/update-membership.md index 35df0fb6049..2e6f75941e6 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.updateMembership( [] // roles ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-name.md b/docs/examples/1.5.x/console-web/examples/teams/update-name.md index 3cfcec14c1e..c8792637f13 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md index 42689cdbe19..d81c93dccef 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md index 93d7ef2abfc..b39f688c8e8 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createArgon2User( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md index d0631748eee..874b4e76250 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createBcryptUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-j-w-t.md b/docs/examples/1.5.x/console-web/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..aefc6208001 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md index 8bad78c0768..da6d1065b4f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createMD5User( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md index d5d609f9551..6689014cfa6 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.createMfaRecoveryCodes( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md index bb26fedc4ac..235df140592 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createPHPassUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md index 43159288984..a13d0342f09 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import { Client, Users, PasswordHash } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -14,4 +14,4 @@ const result = await users.createSHAUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md index 401eb4cbb4f..e6e1c42c021 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -16,4 +16,4 @@ const result = await users.createScryptModifiedUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md index 2efaaa82751..c8e9340c50f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -18,4 +18,4 @@ const result = await users.createScryptUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-session.md b/docs/examples/1.5.x/console-web/examples/users/create-session.md index d64ce3b6d92..55704e5af1a 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-session.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-session.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.createSession( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-target.md b/docs/examples/1.5.x/console-web/examples/users/create-target.md index bcb047c4a34..28daa912020 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-target.md @@ -2,7 +2,7 @@ import { Client, Users, MessagingProviderType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -15,4 +15,4 @@ const result = await users.createTarget( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-token.md b/docs/examples/1.5.x/console-web/examples/users/create-token.md index af25ba8c08e..6c91898d2f4 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-token.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-token.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -12,4 +12,4 @@ const result = await users.createToken( 60 // expire (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create.md b/docs/examples/1.5.x/console-web/examples/users/create.md index c83f8d0609f..8959c127d43 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create.md +++ b/docs/examples/1.5.x/console-web/examples/users/create.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -14,4 +14,4 @@ const result = await users.create( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md b/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md index 572b1c67c81..3ac87876f87 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-identity.md b/docs/examples/1.5.x/console-web/examples/users/delete-identity.md index e6e9381342e..b8ef32e24df 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.deleteIdentity( '<IDENTITY_ID>' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md index c8d26083027..586940ecb0c 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.deleteMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-session.md b/docs/examples/1.5.x/console-web/examples/users/delete-session.md index 89534bf0673..3380f90cc47 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-session.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.deleteSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md index fd0de488181..3b0e153b3f1 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.deleteSessions( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-target.md b/docs/examples/1.5.x/console-web/examples/users/delete-target.md index cd0e15c0618..1877265f085 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-target.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.deleteTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete.md b/docs/examples/1.5.x/console-web/examples/users/delete.md index db3dbb206d4..60a7e16fb43 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.delete( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md index 280a30ddf3f..7b74479420b 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.getMfaRecoveryCodes( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-prefs.md b/docs/examples/1.5.x/console-web/examples/users/get-prefs.md index fff61ee0c00..882cbd6c95f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.getPrefs( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-target.md b/docs/examples/1.5.x/console-web/examples/users/get-target.md index 803e8767120..a6b89622461 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-target.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.getTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-usage.md b/docs/examples/1.5.x/console-web/examples/users/get-usage.md index ffb46678d65..5b559158b37 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-usage.md @@ -2,7 +2,7 @@ import { Client, Users, UserUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.getUsage( UserUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get.md b/docs/examples/1.5.x/console-web/examples/users/get.md index 791292a698f..84f0f33207f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get.md +++ b/docs/examples/1.5.x/console-web/examples/users/get.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.get( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-factors.md b/docs/examples/1.5.x/console-web/examples/users/list-factors.md index 7f84d3d783f..afb6d725792 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-factors.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-identities.md b/docs/examples/1.5.x/console-web/examples/users/list-identities.md index 72f60217f6e..0836749535e 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-identities.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.listIdentities( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-logs.md b/docs/examples/1.5.x/console-web/examples/users/list-logs.md index 23436ba75fe..246cf260ce7 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-logs.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-memberships.md b/docs/examples/1.5.x/console-web/examples/users/list-memberships.md index 07b04eb6e45..98189427548 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.listMemberships( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md index 29f95d5a84a..13d5571554d 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.listMfaFactors( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-providers.md b/docs/examples/1.5.x/console-web/examples/users/list-providers.md index 3df0e025c7c..3e249a74e40 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-providers.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-providers.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/users/list-sessions.md b/docs/examples/1.5.x/console-web/examples/users/list-sessions.md index 537dd7bd384..b99d79b7453 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-sessions.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.listSessions( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-targets.md b/docs/examples/1.5.x/console-web/examples/users/list-targets.md index 3d414afa233..3374bf91c7e 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-targets.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-targets.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.listTargets( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list.md b/docs/examples/1.5.x/console-web/examples/users/list.md index c26f302603b..0876ef39508 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list.md +++ b/docs/examples/1.5.x/console-web/examples/users/list.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md index 2548b1e6c86..869424d51a7 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateEmailVerification( false // emailVerification ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-email.md b/docs/examples/1.5.x/console-web/examples/users/update-email.md index 9600c18d817..2e47e0106d2 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-email.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateEmail( 'email@example.com' // email ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-labels.md b/docs/examples/1.5.x/console-web/examples/users/update-labels.md index aa6e30ed516..5c8cddafafb 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-labels.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-labels.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateLabels( [] // labels ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md index 6785a1375e7..2705a2acd99 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.updateMfaRecoveryCodes( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-mfa.md b/docs/examples/1.5.x/console-web/examples/users/update-mfa.md index b8cb93b9ceb..50a8a1d3661 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-mfa.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateMfa( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-name.md b/docs/examples/1.5.x/console-web/examples/users/update-name.md index 0e1e07e5fcc..e615c4695e1 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-name.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-password.md b/docs/examples/1.5.x/console-web/examples/users/update-password.md index 58615724bc4..3e8c33cb5bc 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-password.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePassword( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md index 0d141db5397..87cc8ee1685 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePhoneVerification( false // phoneVerification ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-phone.md b/docs/examples/1.5.x/console-web/examples/users/update-phone.md index 4ac5380ab84..65448535330 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-phone.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePhone( '+12065550100' // number ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-prefs.md b/docs/examples/1.5.x/console-web/examples/users/update-prefs.md index 227ca36b132..d65a5e736ea 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-status.md b/docs/examples/1.5.x/console-web/examples/users/update-status.md index cbc4dfeb886..4e61a50cf59 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-status.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-target.md b/docs/examples/1.5.x/console-web/examples/users/update-target.md index 3bb88996a19..2872b9a57f3 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-target.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -14,4 +14,4 @@ const result = await users.updateTarget( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md index 22b49a8ac29..4f269bf1a77 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -12,4 +12,4 @@ const result = await vcs.createRepositoryDetection( '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md index 43abe6aceb6..d48e174eac6 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -12,4 +12,4 @@ const result = await vcs.createRepository( false // private ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md index f4d657873b0..0f49408ecb1 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -10,4 +10,4 @@ const result = await vcs.deleteInstallation( '<INSTALLATION_ID>' // installationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md index 1f97d204ab7..ec4b6d6729f 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -10,4 +10,4 @@ const result = await vcs.getInstallation( '<INSTALLATION_ID>' // installationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/get-repository-contents.md b/docs/examples/1.5.x/console-web/examples/vcs/get-repository-contents.md new file mode 100644 index 00000000000..8a2fc294cce --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/vcs/get-repository-contents.md @@ -0,0 +1,15 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.getRepositoryContents( + '<INSTALLATION_ID>', // installationId + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId + '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md index 9707e9ebdaf..2161d0c22bd 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.getRepository( '<PROVIDER_REPOSITORY_ID>' // providerRepositoryId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md index a7e83071210..8213b832591 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.listInstallations( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md index 365f028810c..e69f9eeb756 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.listRepositories( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md index affe85a4461..4d3ab499125 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.listRepositoryBranches( '<PROVIDER_REPOSITORY_ID>' // providerRepositoryId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md index d1fbf346a22..8ad52a64dc0 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -12,4 +12,4 @@ const result = await vcs.updateExternalDeployments( '<PROVIDER_PULL_REQUEST_ID>' // providerPullRequestId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md index da87a6d0594..a68cdd296e3 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md index 200b49ee303..2363017b6e2 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md index 758915e7a96..97c7e125d60 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md index 9e07cd81ab1..bd423de9441 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md b/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md index 70870d93ca8..b57a5f06417 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md index 4e452abe4f0..205e244917f 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md index ac60b0df0e0..3c071b825ed 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md index a920b4754ce..38ffb3630c9 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md index f7e24ff992f..5578e32fcb6 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md index d44817e511a..d89ccd1d287 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md index 993733caa3c..44955f1af96 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md index 2d33ad3981c..a23fa7231b3 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md index 8653ad00a8d..e59ad503e11 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md index 40d6f2fca79..a47ad80f92a 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md index 0b0584dac8a..0479b71c2d7 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-session.md b/docs/examples/1.5.x/server-dart/examples/account/create-session.md index a85be647b30..209f5502d5c 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-verification.md b/docs/examples/1.5.x/server-dart/examples/account/create-verification.md index 4ec54dc1105..414a193aa32 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create.md b/docs/examples/1.5.x/server-dart/examples/account/create.md index ac630d1bb55..59523e6201d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md index 049a3e43ea5..962a945df0f 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md index 2b7f4111403..656b49de59a 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md index 4982e13a0ec..a0db3ccc705 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md index cbeb5cde40d..27a5883ca84 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -2,12 +2,11 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); await account.deleteMfaAuthenticator( type: AuthenticatorType.totp, - otp: '<OTP>', ); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-session.md b/docs/examples/1.5.x/server-dart/examples/account/delete-session.md index eb740f19b16..ffbe4160766 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md index e42f161819e..ae93cf9b590 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md index b378ee7f4b5..2b2018315e2 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md index 4f5ad7c973d..355075c85c3 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get-session.md b/docs/examples/1.5.x/server-dart/examples/account/get-session.md index e2423d67f93..c4b4acedb6d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get.md b/docs/examples/1.5.x/server-dart/examples/account/get.md index 86a80747199..64c923ce0da 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-factors.md b/docs/examples/1.5.x/server-dart/examples/account/list-factors.md index 2f2b00626ae..cd4208465fc 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-identities.md b/docs/examples/1.5.x/server-dart/examples/account/list-identities.md index bcd36718a01..289963709bf 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-identities.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-logs.md b/docs/examples/1.5.x/server-dart/examples/account/list-logs.md index a45ddf2999e..78f527ca990 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-logs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md index 1a8a41664ba..1140e5c0e05 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md index 7469ba55fa1..0a512d439dd 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md index 9c32207257c..bc8c6bb9181 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-email.md b/docs/examples/1.5.x/server-dart/examples/account/update-email.md index 325b764a504..91c701f8aff 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-email.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md index 102525e39cf..f029979ea99 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md index 535d26d7198..e9f24349c16 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md index f7d585ecb1f..3f5d6997e7d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md index 024ac9d650c..2843d2f1b43 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md @@ -2,12 +2,12 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md index 789914372b9..0ee6e92d61e 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-name.md b/docs/examples/1.5.x/server-dart/examples/account/update-name.md index bf05b276f69..4eb46121bc0 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-name.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-password.md b/docs/examples/1.5.x/server-dart/examples/account/update-password.md index 92d53fadcd2..d379268e396 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-password.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md index 2586a89346a..0648c637127 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md index a7789677038..bb7443dda2d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-phone.md b/docs/examples/1.5.x/server-dart/examples/account/update-phone.md index 9613bda833e..996e057b629 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-phone.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md index 1ef69ee90db..1c555085b8f 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md index c0923c180fd..5c4c0735519 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-session.md b/docs/examples/1.5.x/server-dart/examples/account/update-session.md index 624b006d573..cb1930c1343 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-status.md b/docs/examples/1.5.x/server-dart/examples/account/update-status.md index 211421c1d4f..502522ce9ae 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-status.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-verification.md b/docs/examples/1.5.x/server-dart/examples/account/update-verification.md index e0e2518775a..1f0d0c1abb9 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md index 839acf00653..99136985d01 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md index 4ad79d3712d..ba298590a46 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md index 95f84b629c6..e8495823a2b 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md index 5fc30514a1a..d6d8c654b91 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md index 3f7a10db6b0..cda8d0fdb67 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md index f1d911ee0eb..da2541f37ef 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md index da2849c8c85..f1261d1c054 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md index 97d31d53ad2..1a9e906ca40 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md index 4c707302406..65537bab512 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md index 2a6d8e93818..8b01aaad435 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md index 6d44a263ca5..6a53b0457f7 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-document.md b/docs/examples/1.5.x/server-dart/examples/databases/create-document.md index b9d5eb0d69b..10382e3a786 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md index 15bf0129267..fe77148e999 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md index f1df262d02b..f0bdb6a67f0 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md index 548962a2ffc..29568ca011b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-index.md b/docs/examples/1.5.x/server-dart/examples/databases/create-index.md index 7c978466c94..b7c0c04ba9c 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-index.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md index 2449950d01f..35b60850663 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md index 05aa298c728..a7c3116b77a 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md index f838747c9d9..37ba8eb775b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md index d4a47541489..974c7dadfa7 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md index f427bba5410..034ee47dd91 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create.md b/docs/examples/1.5.x/server-dart/examples/databases/create.md index 01cd75c391a..199b982f311 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md index 605220c49ed..f0bcf3b0548 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md index 4243c8b90be..b97f27407a5 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md index 8e1b233fc24..89347017518 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md index df5a195a514..9f0e92f69e0 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete.md b/docs/examples/1.5.x/server-dart/examples/databases/delete.md index 5325af3f43d..0d4853d652d 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md index fc6129ea54d..33e4a4a6958 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md index 606018bc9a6..42dcea3423b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-document.md b/docs/examples/1.5.x/server-dart/examples/databases/get-document.md index 17b2ca6ca25..ecda80ef376 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-index.md b/docs/examples/1.5.x/server-dart/examples/databases/get-index.md index 0dac7f522fa..0bbf4f555bf 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-index.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get.md b/docs/examples/1.5.x/server-dart/examples/databases/get.md index c0878b8ff97..b2c0a0a2c7c 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md index fe51fc1ff30..4bacaa976a4 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md index de25c4078c0..e9bc510793b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md index d3caa082b49..244d4a7d186 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md index a5c616c8583..e9534e78204 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list.md b/docs/examples/1.5.x/server-dart/examples/databases/list.md index 23d6830458c..2678ede98fa 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md index fe88c9e8d66..489ce4099ad 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeBoolean result = await databases.updateBooleanAttribute( key: '', xrequired: false, xdefault: false, + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md index a8c95b2a574..a8d1593c78c 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md index d4bba1034a7..73f61e26d76 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeDatetime result = await databases.updateDatetimeAttribute( key: '', xrequired: false, xdefault: '', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-document.md b/docs/examples/1.5.x/server-dart/examples/databases/update-document.md index eccc98e9b18..c25b23f2b00 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md index a5c72c9f006..37bcd4d7e78 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeEmail result = await databases.updateEmailAttribute( key: '', xrequired: false, xdefault: 'email@example.com', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md index a3ebfe57739..f47078c8919 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -14,4 +14,5 @@ AttributeEnum result = await databases.updateEnumAttribute( elements: [], xrequired: false, xdefault: '<DEFAULT>', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md index fe86fa69e13..b85ebf7aaf1 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -12,7 +12,8 @@ AttributeFloat result = await databases.updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md index 49a0b186999..486c192712f 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -12,7 +12,8 @@ AttributeInteger result = await databases.updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md index 3549d5c1a99..dc83bd00438 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeIp result = await databases.updateIpAttribute( key: '', xrequired: false, xdefault: '', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md index e6dea661901..6d14f52d19d 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -12,4 +12,5 @@ AttributeRelationship result = await databases.updateRelationshipAttribute( collectionId: '<COLLECTION_ID>', key: '', onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md index cb2a4b64b4b..f9498aa36bd 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,6 @@ AttributeString result = await databases.updateStringAttribute( key: '', xrequired: false, xdefault: '<DEFAULT>', + size: 1, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md index 4042ed5e8f8..20c11fafc52 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeUrl result = await databases.updateUrlAttribute( key: '', xrequired: false, xdefault: 'https://example.com', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update.md b/docs/examples/1.5.x/server-dart/examples/databases/update.md index ad8a76ee449..0139f280d1b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-build.md b/docs/examples/1.5.x/server-dart/examples/functions/create-build.md index a90dc7ca9ac..2835f8239f5 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-build.md @@ -2,13 +2,13 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); result = await functions.createBuild( functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - buildId: '<BUILD_ID>', + buildId: '<BUILD_ID>', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md index dd32c609274..297bdc612af 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md @@ -1,9 +1,10 @@ +import 'dart:io'; import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md index 8d3eb7446a4..2bf146e285a 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Functions functions = Functions(client); @@ -14,4 +14,5 @@ Execution result = await functions.createExecution( path: '<PATH>', // (optional) method: ExecutionMethod.gET, // (optional) headers: {}, // (optional) + scheduledAt: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md index 7b4f0623361..5333f88dfea 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create.md b/docs/examples/1.5.x/server-dart/examples/functions/create.md index 18e2d3e4787..b4283a9953f 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); @@ -19,6 +19,7 @@ Func result = await functions.create( logging: false, // (optional) entrypoint: '<ENTRYPOINT>', // (optional) commands: '<COMMANDS>', // (optional) + scopes: [], // (optional) installationId: '<INSTALLATION_ID>', // (optional) providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) providerBranch: '<PROVIDER_BRANCH>', // (optional) @@ -27,5 +28,6 @@ Func result = await functions.create( templateRepository: '<TEMPLATE_REPOSITORY>', // (optional) templateOwner: '<TEMPLATE_OWNER>', // (optional) templateRootDirectory: '<TEMPLATE_ROOT_DIRECTORY>', // (optional) - templateBranch: '<TEMPLATE_BRANCH>', // (optional) + templateVersion: '<TEMPLATE_VERSION>', // (optional) + specification: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md index a50d9e441cf..e793812468b 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-dart/examples/functions/delete-execution.md new file mode 100644 index 00000000000..a69267f6c4a --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +await functions.deleteExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>', +); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md index d677576e87a..1a52f9168ab 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete.md b/docs/examples/1.5.x/server-dart/examples/functions/delete.md index bca7d189999..9ee35f1a5fc 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md index 40e39a28ab0..d40c253da51 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..bbf9561ed76 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment-download.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +UInt8List result = await functions.getDeploymentDownload( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md index 007e84866c9..e2438024544 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md index 856b92b3227..3ba1795f7a7 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md index 23285727480..e9ba95912cb 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get.md b/docs/examples/1.5.x/server-dart/examples/functions/get.md index b6d8c4ce45c..e81ac8d1cc7 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md index c9fbc11b128..c2db9a76990 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md index 3b0af609dfb..573634e7b1d 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md index 199ccce5f77..d2316a9613f 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-dart/examples/functions/list-specifications.md new file mode 100644 index 00000000000..4a77316978c --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-specifications.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +SpecificationList result = await functions.listSpecifications(); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md index 4c8396bba08..6c882090b4d 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list.md b/docs/examples/1.5.x/server-dart/examples/functions/list.md index d44b40ab51f..96516e7068a 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..ecd4d37bac6 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment-build.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Build result = await functions.updateDeploymentBuild( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md index 78d5061c8e6..61e4d22e953 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md index d534be3f4d9..570d4df3a05 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update.md b/docs/examples/1.5.x/server-dart/examples/functions/update.md index bc069a06c94..42aff7b8233 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); @@ -19,9 +19,11 @@ Func result = await functions.update( logging: false, // (optional) entrypoint: '<ENTRYPOINT>', // (optional) commands: '<COMMANDS>', // (optional) + scopes: [], // (optional) installationId: '<INSTALLATION_ID>', // (optional) providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) providerBranch: '<PROVIDER_BRANCH>', // (optional) providerSilentMode: false, // (optional) providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // (optional) + specification: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md index 75ba4cb0ee4..1eed406b60b 100644 --- a/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/server-dart/examples/graphql/query.md b/docs/examples/1.5.x/server-dart/examples/graphql/query.md index b69a6da1675..3e2700cd590 100644 --- a/docs/examples/1.5.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-dart/examples/graphql/query.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md index 2c68b241c6e..d492d0e33a7 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-cache.md b/docs/examples/1.5.x/server-dart/examples/health/get-cache.md index b379ce5348c..9a3ccbd06cc 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-cache.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md b/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md index bd5c94e6221..2c1c60b7cb4 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md index 3363a249cc9..201f787f3f4 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md index 5e241f02981..324a6420132 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md index c683c97515c..dab221fb4fb 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md index ba71783e628..42b3913f1c3 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md index 1f2f44e2e94..bdd2913b518 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md index d10f47c287c..66f5822737a 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md index 340e107cf19..1b3666d6d1d 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md index 73e7d1459d5..836891002c6 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md index f901273e0e0..074d1a823eb 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md index a0f142925d2..5960e94456c 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md index d4e09f9521a..9b287116bc7 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md index 42d8aa10dd1..80ad6d25773 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..d0b443e3ce2 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueStatsResources( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md index 7b8d61efebb..543cfdd433e 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md index 2d08bb75677..a8990b1dcb5 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md index d1d4c3ef11e..10e5787ea79 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue.md index 87f72f4bf9e..1087b217a6e 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md index 22232c00f30..34b8f7e3c15 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-storage.md b/docs/examples/1.5.x/server-dart/examples/health/get-storage.md index f02b535b9d2..d3745bca3c7 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-storage.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-time.md b/docs/examples/1.5.x/server-dart/examples/health/get-time.md index 51f865cfafe..539e0984654 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-time.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get.md b/docs/examples/1.5.x/server-dart/examples/health/get.md index ebabd7fdbef..6286018d892 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/get.md b/docs/examples/1.5.x/server-dart/examples/locale/get.md index 12dd0749cd7..b5b6878b4c5 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/get.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md index 40a62a93043..0b37c79f51d 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md index 5adf67a8535..9c8fb6d206d 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md index 14890ae4bc4..e114831ebac 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md index a4764593f6e..6f73ed3704b 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md index 5cc508b92c2..404b9a12a74 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md index afb4cf49343..8e74090bdfa 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md index 2a83e2d7473..3a2d54b609d 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md index 792cd997bb6..069cc6b5c24 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md index fa6b867e7d0..fc7c30efda3 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md index 56b542eeb7a..de06809fb07 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md index 595feb7f5d1..5191086a2d3 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md index 2f14a3dbe1b..480a6ed578f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md index c41871205a3..6617ff8c1d5 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md index 696d132a4cf..785c55ce4a2 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md index 0249485f0a1..e496de9d27c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md @@ -2,15 +2,15 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); Message result = await messaging.createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // (optional) + body: '<BODY>', // (optional) topics: [], // (optional) users: [], // (optional) targets: [], // (optional) @@ -21,7 +21,10 @@ Message result = await messaging.createPush( sound: '<SOUND>', // (optional) color: '<COLOR>', // (optional) tag: '<TAG>', // (optional) - badge: '<BADGE>', // (optional) + badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md index 82bbaab24e3..c27d8f10655 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md index c22c27c047e..52d6e28a1ee 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md index 7194fd6f8f6..2f6d51d2fb0 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md index ed6726109a0..8d31dc630d6 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md index 7eb8f907be0..352369a8bb2 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md index d7e313853ff..5fdd4c84044 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md index b5c475ca7c1..4fef6312787 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md index 5b40a6ab8e4..b7b456de722 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md index f735285749d..0e83103213d 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md index 050e06a34c7..1d9e4f44b08 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md index 31e3e8295e3..2bbad6591a7 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md index 1761eb8da24..189cdb310a6 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md index 7a098dda2b6..7cfbdae02c6 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md index 7455d50be54..a64056fc0f9 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete.md index 549c5eb0374..0cbc89ab229 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md index a89f8030483..b95babd1f59 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md index 3b1f23387e3..1ba21b81fbf 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md index 33caa7613ee..9a6711ba8db 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md index d90aea0cd1c..2418390f2ff 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md index c3f6a27e84e..09c669dd845 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md index 6532f0f9ca2..e58ab7f7878 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md index a21afd48f4c..fb8b6296759 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md index 072cb32cbd7..5ff2ac533f8 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md index 993b0936f88..8ccbe9c8c88 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md index 87a2e79effc..81db0613d91 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md index e3e95823c84..af02c235df9 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md index 232d6ecc147..afb80a24ba2 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md index 538937490c0..1516056ce1f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md index 7a321532aac..83fb65bf538 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md index 9c13397b674..72eb8744586 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md index c6d69caa8ec..a53209abfd8 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md index 12ddad79e2f..3f436718122 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md index ec2ff349b9e..4b2bf6bd19c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md index ddf4ef4ae00..6acc4950d67 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md index 7b1c32d8f34..10a8aa1655a 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md index 7b01b5c372d..f5d75332e24 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); @@ -24,4 +24,7 @@ Message result = await messaging.updatePush( badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md index f091ba6fc8b..37ed6fa3c0c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md index d74bbcd2a6b..5ff91473f6f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md index f23d0369932..ce00ee26e32 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md index 054da06088c..795d03e9eb7 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md index 5d3fff930b1..c85e62ee93c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md index d347df249fc..d313321ad0f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md index ef0be2180ea..dc966eccecf 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md index 29bda3d6c13..8c149c57f1d 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md index 7eb7cbf4c52..a246dd62b9c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md index 9965229ab8d..d848a648feb 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md index 4cdc5b56490..e9b817f3671 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/create-file.md b/docs/examples/1.5.x/server-dart/examples/storage/create-file.md index fb46c84c2b5..0e06f4220c6 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/create-file.md @@ -3,7 +3,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md index 28b8a5fffbf..51fa7aafca2 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md index b50ebce4327..25f74b68bb6 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md index b425a9f8964..20dfac75b6a 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md index 06612637dac..ddbc538b8bb 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md index 70a233210a8..0f9cada9b30 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md index fa1471051cb..d9854177e8d 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file.md index c5ca6182ac6..c79b608c431 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md index d5e26a2ca63..7d9afb7ea14 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/list-files.md b/docs/examples/1.5.x/server-dart/examples/storage/list-files.md index 45555f229b1..02e52ba44a5 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/list-files.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md index 202157678a4..23bfdb7395f 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/update-file.md b/docs/examples/1.5.x/server-dart/examples/storage/update-file.md index 5801bfd4bb7..d03e60406e0 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/update-file.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md index 679a9c028e2..96b037a1c0d 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/create.md b/docs/examples/1.5.x/server-dart/examples/teams/create.md index 1606dfb9173..f6575bc4408 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/create.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md index f43961000ac..6f495ef4344 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/delete.md b/docs/examples/1.5.x/server-dart/examples/teams/delete.md index c41fbd98804..021368cb054 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/delete.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md index 5b8b51f492e..1d5c3b35505 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md index 4038c0927b5..1e89d0e2770 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/get.md b/docs/examples/1.5.x/server-dart/examples/teams/get.md index 677c708424e..31d238ab963 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/get.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md index 6c1da3f73d7..1cb91dd477f 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/list.md b/docs/examples/1.5.x/server-dart/examples/teams/list.md index 09a4548c608..e4c764c517e 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/list.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md index befb753c4b5..71c343663a9 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md index 5e976887d31..256c0823fe0 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-name.md b/docs/examples/1.5.x/server-dart/examples/teams/update-name.md index 93e2e3c20a6..a1727ced110 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-name.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md index 22c13dac978..1b3208b79fc 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md index 080e66a5120..68dd98841ec 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md index afddc2c9bc0..cb000391c67 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-dart/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..2a9c67bead5 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Jwt result = await users.createJWT( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', // (optional) + duration: 0, // (optional) +); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md index 05a9cc19915..4ade88bc7d9 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md index 15cc9c10fc8..598cef49014 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md index 952584d4380..1c95cbe2634 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md index 9b29c5b8d46..17122072e4a 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md index 967fc3806ec..063fc97d844 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md index ba4fce846b4..03717bd7f09 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-session.md b/docs/examples/1.5.x/server-dart/examples/users/create-session.md index 8efc2d959fa..013707bcc52 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-session.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-target.md b/docs/examples/1.5.x/server-dart/examples/users/create-target.md index 630afbfce09..88c0c19e420 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-token.md b/docs/examples/1.5.x/server-dart/examples/users/create-token.md index 51a9892a47b..16040215a3e 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-token.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create.md b/docs/examples/1.5.x/server-dart/examples/users/create.md index 8faa909e55b..a0f0c3fe3de 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md index 62eac5899fd..240790c0479 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md index 3ad24e32622..07ba49764e8 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md index 8c67955d32c..d48ab6d4f0a 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-session.md b/docs/examples/1.5.x/server-dart/examples/users/delete-session.md index 4cca314fc86..a2c985a7e77 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-session.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md index df0c5f1deb5..e86e0e29aa4 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-target.md b/docs/examples/1.5.x/server-dart/examples/users/delete-target.md index 34283a1c44d..bae674cdcd7 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete.md b/docs/examples/1.5.x/server-dart/examples/users/delete.md index 6801e13b6b9..dbee4e8cc9b 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md index 95f5543a228..1e8baf2b9fd 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md index 54da404ad2f..9fa4c8bd532 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get-target.md b/docs/examples/1.5.x/server-dart/examples/users/get-target.md index 4f1f1b4b28e..2a62d94e9b1 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get.md b/docs/examples/1.5.x/server-dart/examples/users/get.md index d57f9800d74..04dfcb6a9b1 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-factors.md b/docs/examples/1.5.x/server-dart/examples/users/list-factors.md index 7071dce1070..1744f4ac5a5 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-identities.md b/docs/examples/1.5.x/server-dart/examples/users/list-identities.md index d811428aa54..aa20d3f6012 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-identities.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-logs.md b/docs/examples/1.5.x/server-dart/examples/users/list-logs.md index 539710acc94..18b34a10dee 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md index bc1bf36bdb3..495ab938199 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md index b70fcc55377..cca4df00d22 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-providers.md b/docs/examples/1.5.x/server-dart/examples/users/list-providers.md index e4c751a1c4f..f3b45eabede 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-providers.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md index 108fd279f21..4e1a47bc472 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-targets.md b/docs/examples/1.5.x/server-dart/examples/users/list-targets.md index a4831fef988..459d0cd4387 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-targets.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list.md b/docs/examples/1.5.x/server-dart/examples/users/list.md index 6da9d811bd1..b909d76ef0c 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md index 8f373b9f7d8..e350eb68f31 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-email.md b/docs/examples/1.5.x/server-dart/examples/users/update-email.md index 5391891cb9d..af995fc520f 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-email.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-labels.md b/docs/examples/1.5.x/server-dart/examples/users/update-labels.md index 115e0e8eddf..5cd609d2d61 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-labels.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md index 15f0f6b6baf..3fdfc7c55b5 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md b/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md index be50cb6fa07..e1efba91b4d 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-name.md b/docs/examples/1.5.x/server-dart/examples/users/update-name.md index bd39acd1cb0..2a742bcc510 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-name.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-password.md b/docs/examples/1.5.x/server-dart/examples/users/update-password.md index 532f4c66958..8650291bd13 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-password.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md index f77847435c6..cb8efa4a702 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-phone.md b/docs/examples/1.5.x/server-dart/examples/users/update-phone.md index 684cd1dcaa4..5334986f38e 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-phone.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md index 1ee538f8104..2a1f0572a8a 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-status.md b/docs/examples/1.5.x/server-dart/examples/users/update-status.md index 82b57cf1e7b..2948e6e6c32 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-status.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-target.md b/docs/examples/1.5.x/server-dart/examples/users/update-target.md index 0713439363d..c3e907175b2 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md index 0bb56d4dad2..d3925aeb1c9 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md index d3dae32db0a..f71baa9d5d9 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md index 459232859a2..8c592e639c4 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md index ee2d6985a72..ad62b8883e8 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md b/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md index 3a555ff99a8..2e33d2bc335 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md index 9b0707ee3a0..15197d099a2 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md index b8c2cf4e731..57697d4039f 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md index d8206d55649..be345dc1598 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md index 7edc2bf8588..877c20392c2 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md index 514da0e4616..18ce21a076b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md index b6a8ca8a2f6..72442ca23c8 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md index e1ff3b861e0..037da38d685 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md index 6dcdff94f79..800f0210a11 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md index fa42f5ad604..5a9c87b7f62 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md index bf33fad2522..e32600111bf 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-session.md b/docs/examples/1.5.x/server-deno/examples/account/create-session.md index 37825fe8b9e..a34d3e37d97 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-verification.md b/docs/examples/1.5.x/server-deno/examples/account/create-verification.md index 2631b628b8e..fd11e13b33a 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create.md b/docs/examples/1.5.x/server-deno/examples/account/create.md index 422be324032..9f1b16b7b9e 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md index d08d1b6e2d5..5e2342d7fed 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md index 14681f8f6e6..6598a8a7743 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md index cf6908304ec..30b14688918 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md index 217dde84cce..7247155e2bf 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md @@ -2,12 +2,11 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); const response = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '<OTP>' // otp + AuthenticatorType.Totp // type ); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-session.md b/docs/examples/1.5.x/server-deno/examples/account/delete-session.md index 44277946bfd..5fd77c155ab 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md index c698bab6e69..6d676cf8f80 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md index c664309c33d..5861c1b561b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md index dc990d8633f..685aa63ca60 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get-session.md b/docs/examples/1.5.x/server-deno/examples/account/get-session.md index cd49260a4d2..91242d45652 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get.md b/docs/examples/1.5.x/server-deno/examples/account/get.md index d630fb09799..59f91ca8468 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-factors.md b/docs/examples/1.5.x/server-deno/examples/account/list-factors.md index c2877395a3f..28c64e963cc 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-identities.md b/docs/examples/1.5.x/server-deno/examples/account/list-identities.md index 8e5964c044a..501042160da 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-logs.md b/docs/examples/1.5.x/server-deno/examples/account/list-logs.md index 5360f472d01..230c3f46a62 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md index d7cc93cf8e9..bf9d6b40e43 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md index 0eb7ae88e43..927ccfc67c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md index 36a736a0711..0c5745abc32 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-email.md b/docs/examples/1.5.x/server-deno/examples/account/update-email.md index f68a0163f8c..9136450824c 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md index 4f629176fe5..db315e54685 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md index 9cf1c6e2db2..99243ec118b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md index 08ecb162e6e..5c437194feb 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md index 4c75f1d78fb..4e0638ea42d 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md index 0825cc04bd1..3d604f6efde 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-name.md b/docs/examples/1.5.x/server-deno/examples/account/update-name.md index 4d4f26024d9..7e0e0122d0b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-password.md b/docs/examples/1.5.x/server-deno/examples/account/update-password.md index ab178b332af..6d546291d87 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md index 9efe6b0abce..1d9104829eb 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md index ee8b4888674..9737de02ac2 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-phone.md b/docs/examples/1.5.x/server-deno/examples/account/update-phone.md index b8d68474f6c..8b1bc7c7f06 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md index 7a1fe04a6f9..58582c6bcab 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md index f8cf494c107..1b64a3beaf4 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-session.md b/docs/examples/1.5.x/server-deno/examples/account/update-session.md index 199ef85690f..93dd40fcc50 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-status.md b/docs/examples/1.5.x/server-deno/examples/account/update-status.md index 1430663193b..60a3d51f0dc 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-status.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-verification.md b/docs/examples/1.5.x/server-deno/examples/account/update-verification.md index 805b1c652d4..208988894f4 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md index 214856be3d5..6021b61cda6 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md index 3265c6c1d05..c8e72644345 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md index 10f31982880..8e1b3dba624 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "https://deno.land/x/appwrite/mod.ts const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md index a7981a69d30..5f50687f915 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md index 346119f64f9..daa488e443a 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md index e37c975e055..fc72b74cf7d 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md index 988f879afb3..d6d8dc8c7ce 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md index 7a806f58893..bfa7833b508 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md index 730adba675b..232efa137f4 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md index 72f1100159e..8ae3e6acdbc 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md index 62b4af40da9..10017f2162d 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-document.md b/docs/examples/1.5.x/server-deno/examples/databases/create-document.md index a8e69def287..f0f54b79ec5 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md index 24568a93e25..979c5137242 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md index 013ac96376c..163a9e49bd8 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md index 7cd652a243e..3b0e4193985 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-index.md b/docs/examples/1.5.x/server-deno/examples/databases/create-index.md index d8a8aba1e22..8b7d9c676f9 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-index.md @@ -2,8 +2,8 @@ import { Client, Databases, IndexType } from "https://deno.land/x/appwrite/mod.t const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md index e6a04bc424f..1a2e394d512 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md index e44ddccb423..e0acc270163 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md index 9f751fa4acd..83b3e5833b9 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases, RelationshipType, RelationMutate } from "https://den const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md index 37f202f1f76..d35b8a791f0 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md index 9b20d0bf34a..9127e3acd06 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create.md b/docs/examples/1.5.x/server-deno/examples/databases/create.md index d6bb161ab3d..a4252aa7c86 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md index 0de42f8a082..142ae5af138 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md index 22ddaefd798..3d72fa038aa 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md index 1b11e26fad9..ade8151b807 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md index f48eb722146..5bca23adf5e 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete.md b/docs/examples/1.5.x/server-deno/examples/databases/delete.md index 9a42e8f29e0..c729b9791ce 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md index a2fe4e60fbf..a8300ea2a08 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md index 6c49c6dcc62..b5213943e6e 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-document.md b/docs/examples/1.5.x/server-deno/examples/databases/get-document.md index dc37d41b6e9..1e5669ac964 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-index.md b/docs/examples/1.5.x/server-deno/examples/databases/get-index.md index 2540e2f88a0..bfd74021fa1 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-index.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get.md b/docs/examples/1.5.x/server-deno/examples/databases/get.md index ffaddd7ba8a..386fbfedc6f 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md index 193752eabf1..bedab6c9f62 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md index d35f4db4b8a..9b4f76c57af 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md index a65d720c9d3..0aa7b3f0b39 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md index da01d7218b5..58222cbb553 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list.md b/docs/examples/1.5.x/server-deno/examples/databases/list.md index e312057d6d7..8c8374e7ee2 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md index e0e74ded3ed..dc107667aae 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md index 3a26a935845..88a34932678 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md index d75a2ed846b..7de5a2c8471 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-document.md b/docs/examples/1.5.x/server-deno/examples/databases/update-document.md index 66113df00f9..fe9947e7454 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md index b238c66a024..41df1826512 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md index 885ab0ce096..6c0f9127b0b 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -13,5 +13,6 @@ const response = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md index cb422a3ebc7..9511a68be4c 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,7 +12,8 @@ const response = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md index 2c4fa43f039..92aed877b7d 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,7 +12,8 @@ const response = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md index 37ec1e9db38..9348cfa0b4a 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md index 63886f9e289..3d0bfdd9162 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases, RelationMutate } from "https://deno.land/x/appwrite/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -11,5 +11,6 @@ const response = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - RelationMutate.Cascade // onDelete (optional) + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md index 33b106c1d64..d57f8fd663a 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,7 @@ const response = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md index f06fcf91062..f1027d84b69 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update.md b/docs/examples/1.5.x/server-deno/examples/databases/update.md index ce4023247a0..2e19221d1a9 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-build.md b/docs/examples/1.5.x/server-deno/examples/functions/create-build.md index 9a58bf2eab4..c68fb256e06 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-build.md @@ -2,13 +2,13 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); const response = await functions.createBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>', // deploymentId - '<BUILD_ID>' // buildId + '<BUILD_ID>' // buildId (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md index ec6ea915797..5b976e65396 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md index 6edabb4cafe..c794d72231d 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new Functions(client); @@ -13,5 +13,6 @@ const response = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md index 9f933ebcd33..472a7982071 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create.md b/docs/examples/1.5.x/server-deno/examples/functions/create.md index 14e26a7c2bb..2bb31f7d0c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create.md @@ -2,8 +2,8 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); @@ -19,6 +19,7 @@ const response = await functions.create( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) @@ -27,5 +28,6 @@ const response = await functions.create( '<TEMPLATE_REPOSITORY>', // templateRepository (optional) '<TEMPLATE_OWNER>', // templateOwner (optional) '<TEMPLATE_ROOT_DIRECTORY>', // templateRootDirectory (optional) - '<TEMPLATE_BRANCH>' // templateBranch (optional) + '<TEMPLATE_VERSION>', // templateVersion (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md index 229c0842776..b640055473a 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-deno/examples/functions/delete-execution.md new file mode 100644 index 00000000000..1785a0ed9ee --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md index 5694a5fb457..c4786ffe21d 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete.md b/docs/examples/1.5.x/server-deno/examples/functions/delete.md index a56e5e23e36..7155610689f 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md index 5697c5e2193..5af14f27080 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..c619208b501 --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment-download.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const result = functions.getDeploymentDownload( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md index 30426da2dc8..50e4cc50c06 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md index 7007f79f4a7..af68d743605 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md index ba335cb50df..2352321bff4 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get.md b/docs/examples/1.5.x/server-deno/examples/functions/get.md index 1f76c2af332..f90767de19d 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md index ec89f55cb7f..2f4c345de22 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md index 1d497a258ba..b8ce31703e6 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md index 67a3e9ac894..f78dfd03e73 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-deno/examples/functions/list-specifications.md new file mode 100644 index 00000000000..5dff4354ee4 --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-specifications.md @@ -0,0 +1,10 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.listSpecifications(); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md index edcb4d48889..991292aac1c 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list.md b/docs/examples/1.5.x/server-deno/examples/functions/list.md index 7cbcb0b1f77..6d1e09ba525 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..65ea3a97e6e --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment-build.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.updateDeploymentBuild( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md index 95fd45046cd..87af2f34bfd 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md index 4f4d6a5836d..5213a92ee82 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update.md b/docs/examples/1.5.x/server-deno/examples/functions/update.md index 1e6f385e2be..ab275257dbe 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/update.md @@ -2,8 +2,8 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); @@ -19,9 +19,11 @@ const response = await functions.update( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) false, // providerSilentMode (optional) - '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md index a0ff9dd8662..68c06aa4e41 100644 --- a/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-deno/examples/graphql/query.md b/docs/examples/1.5.x/server-deno/examples/graphql/query.md index ecec1c4c0cc..480c481f9cc 100644 --- a/docs/examples/1.5.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-deno/examples/graphql/query.md @@ -2,8 +2,8 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md index 81142669b6e..ccf2968dd84 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-cache.md b/docs/examples/1.5.x/server-deno/examples/health/get-cache.md index 45d4464f3b7..2811f017a7c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-cache.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md b/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md index dc456022c32..5bde913750c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md index 36f5a67ef1f..598c163b447 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md index 0057bbb985d..dd44711e5e1 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md @@ -2,8 +2,8 @@ import { Client, Health, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md index afa519e0613..9ecda7d32ac 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md index 6d1c88ef7f8..3b05fe66c3f 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md index d7c0a2406f9..73139a0806c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md index fb98bbaa46c..9130cb8c349 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md index 9e2a530b77c..967e27d4a75 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md index 811efb334c5..a621d140a1c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md index 17f62087358..7443b04fc49 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md index 26b58fb485e..f794deb8add 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md index 0198dce3dae..f04652e5978 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md index 5dfa6ea416e..5b3ba573511 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..03f48beb658 --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md index ccc5c1eb7c4..3e650b63fbd 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md index 7c83e593334..54dc92f7fd2 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md index 600d477bf1a..b1c8b54665a 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue.md index 013c93ebda3..2349c8f007a 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md index dd711319296..afffff6e1d2 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-storage.md b/docs/examples/1.5.x/server-deno/examples/health/get-storage.md index ee7d34cb833..c7fe4358c9b 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-storage.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-time.md b/docs/examples/1.5.x/server-deno/examples/health/get-time.md index 4d26bdab6dc..658ce30624f 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-time.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get.md b/docs/examples/1.5.x/server-deno/examples/health/get.md index d3e4b20ec18..4483f9595ed 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/get.md b/docs/examples/1.5.x/server-deno/examples/locale/get.md index f931ae48552..5d52acb3863 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/get.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md index 93dedef2770..bed3b4cd814 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md index 985b654171e..61b53851cd2 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md index 311ef653d75..231c2f7f8b0 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md index c732edaa6cf..34be4cb8da5 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md index 73b530cbf0a..dfa085b0a19 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md index 942622c6968..0c809286899 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md index e96ccc27cc2..8625649350b 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md index c0b89623846..e0c8f57e3e4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md index 8a1c6b57cdc..8b890925649 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md index 28609fb9049..552e9e3ed42 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md index 1bec150514a..b152b3b13d3 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md index e3b773f7000..bd9f0756c8f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md index 0ede7b6ec70..3192bb2567b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md index 86dbbf4533b..bd6b0304ad3 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md index 28fe84dcdd6..7b419119189 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md @@ -1,16 +1,16 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); const response = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const response = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md index a49c4d7548a..d6c031caa68 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md index a48fc40d908..4b0f64d820b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md index fe0a791822a..c6d4e2a8ee4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md index 13fb9f5bfcf..c316ea5ac14 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md index 613045f18c7..c1fb9ece507 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md index daa6ce230aa..26d7a97175e 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md index f3da859c2b2..391483a8af0 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md index eca653d8673..934372f82f5 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md index 0f01817886d..75d1103e5ed 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md index b72935429a1..ee17992c719 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md index 6236cb6df9a..3e8dd36ec7a 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md index 26408a48fdc..8ade1615f3d 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md index 5f789a4b18d..1df31754608 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md index ec26f943e81..fb50be8d5e7 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete.md index d3245403154..edd34565976 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md index f6030180d88..42d46131aa4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md index ad1d7abd756..fe444769344 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md index 518bf48f81d..abfc167056b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md index 2079f367300..0e104881162 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md index ca72b3a5137..b9424fa7cc2 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md index 27d2fb9b4e2..159d61b5853 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md index f29af3a82a3..af33244a7d5 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md index 1a6ae91db9b..8aa51c4474f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md index b1c096baa2f..036b69af0a7 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md index 622f68c23f2..bc820a4283b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md index 9399c490e5b..f2e7d470587 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md index cb5c46d2349..bb57ea99ea3 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md index 1992fd76f1d..4933b229fe4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md index 483fafdfbfd..c510a1b2daf 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md index 0db3da40ba0..1786ad44bae 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md index a54d7f40d77..534bc3f2f30 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md index 1379d6e8b59..e4c33609687 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md index 15cb41fbc36..f9d1533d5f6 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md index 62efe62bc4e..7de8939ff5a 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md index c5e222f42e8..5cbb3d9a740 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md index a6ae3c079e4..11437fabe1f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md @@ -1,9 +1,9 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); @@ -23,5 +23,8 @@ const response = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md index 627f06b9b0e..0f36d1e29c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md index d16d988be9b..e3281cdc4e7 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md index 64709e2b965..66dffb18f9d 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md index dc4da7ed932..a027f1dda9c 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md index 78eb0dee228..6eb90cebbd1 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md index 531b37edb84..cc8448f5b25 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md index 1ae95f14534..fa12103524f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md index ebcbd4f1063..1b60af0f377 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md index 67012cf48cc..e63a54cc116 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md index ba894cedd93..c4c68b290c8 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md index 69457579cca..095f390e835 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/create-file.md b/docs/examples/1.5.x/server-deno/examples/storage/create-file.md index 6f52c9bb609..9a420bb65c7 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md index 78a652e00e0..eafb60eb772 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md index 684f719adc5..554dbeb4cde 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md index fcf34962e9d..1e0107edb8f 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md index 10c4030c950..b3612f297db 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md index 9eb85502bb7..d1a91c25aac 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "https://deno.land/x/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md index 4e1605c223f..14e28a07b7a 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file.md index 6cc3423dae4..0ad049a0414 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md index c52da7dccee..667f65f87d7 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/list-files.md b/docs/examples/1.5.x/server-deno/examples/storage/list-files.md index e569eb4ff57..7d18165f336 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md index 9adb0232370..7af2c1a6a54 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/update-file.md b/docs/examples/1.5.x/server-deno/examples/storage/update-file.md index ca3f4762595..153ce08071e 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md index 1b4a56ec745..69465f5efa4 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/create.md b/docs/examples/1.5.x/server-deno/examples/teams/create.md index d8a6f9db97a..abcc0fd6aa9 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md index 890a36da3dc..a2a4807922a 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/delete.md b/docs/examples/1.5.x/server-deno/examples/teams/delete.md index 2384672340b..05d35f0cbf8 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md index b6ee8e06201..9f9722ebde5 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md index 26940f00544..d741911586c 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/get.md b/docs/examples/1.5.x/server-deno/examples/teams/get.md index 8c822adbe1c..f5d7c12a86d 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md index 7a5e26e402d..01988a7d17f 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/list.md b/docs/examples/1.5.x/server-deno/examples/teams/list.md index 03c8d0e3517..dd295a013a1 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md index 7692eed29af..349ae6d12d1 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md index 67e4d80b097..0f03ecb8dd7 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-name.md b/docs/examples/1.5.x/server-deno/examples/teams/update-name.md index faaf1e6e8f0..4e678ea881f 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md index 1638b068599..9d11a5dd38a 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md index 178fadb1a5f..1dec8dc5c1e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md index 5787a4e0370..a57d1aeaa88 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-deno/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..bc5205d0066 --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md index 5cdde635f99..095d19f758b 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md index 350ae3cc809..da3741a14ab 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md index baf2f656375..d3ada293783 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md index 995c970f3cb..0d63f1b29c2 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md @@ -2,8 +2,8 @@ import { Client, Users, PasswordHash } from "https://deno.land/x/appwrite/mod.ts const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md index dfeff7cf4ec..0ee061e743e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md index 75d4738240b..fcf42316134 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-session.md b/docs/examples/1.5.x/server-deno/examples/users/create-session.md index 1e95dc70941..07c1623a614 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-session.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-target.md b/docs/examples/1.5.x/server-deno/examples/users/create-target.md index ae63ba659d4..82a44f938a9 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-target.md @@ -2,8 +2,8 @@ import { Client, Users, MessagingProviderType } from "https://deno.land/x/appwri const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-token.md b/docs/examples/1.5.x/server-deno/examples/users/create-token.md index 705f2726f85..aa15668a799 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-token.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create.md b/docs/examples/1.5.x/server-deno/examples/users/create.md index 4c1c2266b7b..cd7c5b19bd4 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md index 1165dd04ccc..fd8a9e1b69a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md index 07c1466f46e..3a4280cf165 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md index 26ff1785e6c..92078bbb15e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md @@ -2,8 +2,8 @@ import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/m const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-session.md b/docs/examples/1.5.x/server-deno/examples/users/delete-session.md index ffc359f23f4..0f9c12b57c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-session.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md index 071d2e4e58c..94e2f84133a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-target.md b/docs/examples/1.5.x/server-deno/examples/users/delete-target.md index d7c0fb50ffd..ee6a280ab34 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-target.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete.md b/docs/examples/1.5.x/server-deno/examples/users/delete.md index e5df110290f..3c43d5a72c3 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md index 26145a966b5..e63ae70917b 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md index 281a621facd..ef38e96f0e3 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get-target.md b/docs/examples/1.5.x/server-deno/examples/users/get-target.md index ce0965cdccb..e3d8568cc4b 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get-target.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get.md b/docs/examples/1.5.x/server-deno/examples/users/get.md index 8a2e0d440d3..d5c2155e49f 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-factors.md b/docs/examples/1.5.x/server-deno/examples/users/list-factors.md index d2fac0e8a2f..dd50519acd1 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-identities.md b/docs/examples/1.5.x/server-deno/examples/users/list-identities.md index e4402f7b7f5..c12a37eb511 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-identities.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-logs.md b/docs/examples/1.5.x/server-deno/examples/users/list-logs.md index 8d7f37fec71..4fc2e6091da 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-logs.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md index ec5a57b78f0..55ca2593cbe 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md index 90bfba8cafc..7d368b3d374 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-providers.md b/docs/examples/1.5.x/server-deno/examples/users/list-providers.md index d1b6a41a032..e2d795d88d7 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-providers.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md index e4b0ede6864..c425ded1e09 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-targets.md b/docs/examples/1.5.x/server-deno/examples/users/list-targets.md index c15847d1bc6..e9a26ff6b08 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-targets.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list.md b/docs/examples/1.5.x/server-deno/examples/users/list.md index f60536638c2..d4d9da33fa8 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md index a3684dfc2eb..76f6e443418 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-email.md b/docs/examples/1.5.x/server-deno/examples/users/update-email.md index 592079111a8..80b727bfa27 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-email.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-labels.md b/docs/examples/1.5.x/server-deno/examples/users/update-labels.md index 847c70a9047..c41955caa1a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-labels.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md index 4ce52fddc31..201ffba616c 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md b/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md index ced8232c9f3..3f061ef366a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-name.md b/docs/examples/1.5.x/server-deno/examples/users/update-name.md index 61042dd0f26..df53c0ffb9e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-name.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-password.md b/docs/examples/1.5.x/server-deno/examples/users/update-password.md index cdefd18e041..451604f20b6 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-password.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md index 6bcf61f5b87..4f97a18c48f 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-phone.md b/docs/examples/1.5.x/server-deno/examples/users/update-phone.md index 54756eaa864..d0ae0d7a088 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-phone.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md index 61cbb155bf7..81a329400c2 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-status.md b/docs/examples/1.5.x/server-deno/examples/users/update-status.md index 2bf8feeec71..5b1c9892d76 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-status.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-target.md b/docs/examples/1.5.x/server-deno/examples/users/update-target.md index a34f651575b..8a816c8df0e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-target.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md index 3adfaa337e1..88a10694948 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md index f971377fbc4..4ee42ff9118 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md index 0e81524d356..d72a7c1c6be 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md index 8dd10f164df..4b2331223fe 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md index e248e03ff66..954848e6378 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md index 92379f442e1..200b025191a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md index 5dd68b2d205..1a435de405b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md index b2f82e19129..284f44e24ec 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md index 6781e13cd8e..5a9ac58d15c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md index e83eaf69bf1..647e11a5272 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md index 01f66a575df..d00791513ba 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md index d81d711a555..2936426d336 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md index e23b25ff4ea..131f7c2e477 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md index 2497cbbbfb9..c422790e11f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md index f92c4ff8639..f50a065cd1b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md index 70d648e7d3f..0c0bfae941c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md index ae28e9292c3..64f54f7c0ee 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create.md b/docs/examples/1.5.x/server-dotnet/examples/account/create.md index d59fe481f91..5deeb885141 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md index dc9d38d0bf1..b47fe1f82b8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md index 4a9736ec385..f3e890820e2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md index b0e8051cf80..c70eed79313 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md index 9d99795af1c..dd36da1a349 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md @@ -5,12 +5,11 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); await account.DeleteMfaAuthenticator( - type: AuthenticatorType.Totp, - otp: "<OTP>" + type: AuthenticatorType.Totp ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md index a98b8fb30b4..3be113d517a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md index 36fa4e60015..5d7aecc2005 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md index 39b23bb3d34..c798ad3a483 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md index e470ede66b2..0c5ee40a357 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md index a7206b6c047..82bff873880 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get.md b/docs/examples/1.5.x/server-dotnet/examples/account/get.md index 9719ab70a19..c87f4dda16c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md index 5d6075d955f..95d0b6cefec 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md index dc2d94d4133..6d94a157449 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md index 50bf7c75df4..f4c20fa38b8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md index 1117668ee6a..f6ef37882a7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md index 75ab1bfab94..e6d634b1201 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md index e49a69231d7..aff706f1a8b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md index 98afbe531db..c7934f8d192 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md index 0e259985777..7cee1ad712d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md index 41b912f4f83..5ecf64f74f4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md index 8da8027ada8..ac8ce0631fa 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md index 333161462dc..ec32f8c9007 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md @@ -4,12 +4,12 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); - result = await account.UpdateMfaChallenge( +Session result = await account.UpdateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md index 003a96372bd..1e031e9c196 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md index 8c51112073c..e84fb9a96e2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md index e496d3e097f..e0524a6f732 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md index 6cfcfa6e5b8..5004730502c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md index 7276998710f..b6b310401bb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md index b8354dc226e..dab96b6f6b9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md index c7f0347bb94..82d892d8a36 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md index bbf309dea61..efcea1ee106 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md index 43cbc2672a3..9d7eddc6d6b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md index 0a6e7547a06..9c9fc01c407 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md index 59f464c500f..d8cc8adedf3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md index 47a34e0a53c..6a02dda3255 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md index e938d71e9ef..0fc9ac7316a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md index f7b3a6a6bd6..3dc07cfc434 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md index 02a60c8bcad..f7a3d9fed69 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md index 2abdb1b3e4b..734d7d75176 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md index 2026e4e9dff..942bffb258d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md index e9fbf31c539..5b47eea4744 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md index 67f29775f18..b90ed074d11 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md index cc470567076..0f113b05825 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md index 03b7655da22..6b03dacd35e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md index 486985fbe9c..fac8f1b9836 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md index 7650391f32d..438928d2dc4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md index 8bd4b34152b..640e8ee09aa 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md index 4b14bab9e24..3b0a78764f8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md index 8d6a5705846..620c451d789 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md index 4de78eeab37..a7363f4c67e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md index b0a8fd0c627..3676c662f9a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md index 42e492229f2..faad215f262 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md index 9c39d1fb5e0..eb10afce645 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md index 45ba803a4ee..9d6aa904e55 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md index 2299c937f24..9dd1913251d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create.md index f882c8d37a1..ea33e15992a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md index 3f1933c1e33..9e4658999f3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md index 7d3c02f2599..bd9ced02a51 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md index 17b31dea72c..1c03debad5b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md index 3d0f6d40f66..21457ad19f5 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md index d0ff3e48639..ddc1497c608 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md index 5d2661160cd..5eaa11ee0a6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md index e27bd88d6a8..055d5473c6a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md index dab529aade0..51d05832f08 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md index df36cf6e1fd..4cf44b66e20 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get.md index 12252126dc3..c9278acd478 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md index 0b4312b8096..516e3a3efa4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md index 0a50302d947..1665b449d27 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md index 51f8f29e35a..7471d96a649 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md index 1d13c81e6e1..f567ce9c8e7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list.md index c6a17397fc3..9972bda9347 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md index 34765d811e8..7c435f51cec 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeBoolean result = await databases.UpdateBooleanAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md index d73920fb644..2860ba69746 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md index 354f9373d9c..a8208202c87 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeDatetime result = await databases.UpdateDatetimeAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md index fb069fbf496..ce0aa580340 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md index 498c9aa6d35..f7dde2ac2f2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeEmail result = await databases.UpdateEmailAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md index 4ce38fa2326..6abd3a607c0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,5 +15,6 @@ AttributeEnum result = await databases.UpdateEnumAttribute( key: "", elements: new List<string>(), required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md index 3cc29709b45..7191c51d2c0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,7 +14,8 @@ AttributeFloat result = await databases.UpdateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md index a19090b69f8..6a261cd1092 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,7 +14,8 @@ AttributeInteger result = await databases.UpdateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md index bb5f31d6007..0be862b0048 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeIp result = await databases.UpdateIpAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md index 95f1183b10b..b49f72ccf86 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeRelationship result = await databases.UpdateRelationshipAttribute( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: RelationMutate.Cascade // optional + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md index a5930b74a08..a180815a505 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,7 @@ AttributeString result = await databases.UpdateStringAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md index 35ef786d90e..30a9a6298a4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeUrl result = await databases.UpdateUrlAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update.md index 8eccfe84c4d..1e55d8eccad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md index 4e53429ed3b..fa53854b3c6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md @@ -4,13 +4,13 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); result = await functions.CreateBuild( functionId: "<FUNCTION_ID>", deploymentId: "<DEPLOYMENT_ID>", - buildId: "<BUILD_ID>" + buildId: "<BUILD_ID>" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md index a2e06dc2273..7c3d4d887c6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md index c6b6db28c15..abe5454c83a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Functions functions = new Functions(client); @@ -16,5 +16,6 @@ Execution result = await functions.CreateExecution( async: false, // optional path: "<PATH>", // optional method: ExecutionMethod.GET, // optional - headers: [object] // optional + headers: [object], // optional + scheduledAt: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md index 1813b57a557..2775c5b459b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create.md index 424b6a5351b..0ea11a8b9f4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -22,6 +22,7 @@ Function result = await functions.Create( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: new List<string>(), // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional @@ -30,5 +31,6 @@ Function result = await functions.Create( templateRepository: "<TEMPLATE_REPOSITORY>", // optional templateOwner: "<TEMPLATE_OWNER>", // optional templateRootDirectory: "<TEMPLATE_ROOT_DIRECTORY>", // optional - templateBranch: "<TEMPLATE_BRANCH>" // optional + templateVersion: "<TEMPLATE_VERSION>", // optional + specification: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md index 33b5240cc86..387383ed2b6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-execution.md new file mode 100644 index 00000000000..18bd347b705 --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-execution.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +await functions.DeleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md index 8c7782640b1..9be23cdcbed 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md index d18ba2942fd..7666b624079 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md index a06a70136bb..fce305f5d46 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..b67351e70ca --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment-download.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +byte[] result = await functions.GetDeploymentDownload( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md index 8323923165e..0fb27cc6232 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md index 6ab4ec49ade..27b8f4d6207 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md index fcaf10dfcbd..2c897dd6489 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get.md index a75c98e04d9..e1fdefd7fb1 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md index 43169b61d59..d78eb6a2490 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md index 6b325ca70c8..fe2b1d98acd 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md index f390dc5ae2a..68f34291be8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-specifications.md new file mode 100644 index 00000000000..21f3b1320e0 --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-specifications.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +SpecificationList result = await functions.ListSpecifications(); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md index 3d8aec4ab3f..77f429ded09 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list.md index 7c0cbbedb4f..a6c5511f8ad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..3d33b61714d --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment-build.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Build result = await functions.UpdateDeploymentBuild( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md index e9cf91fe674..348d01eb2bd 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md index f6c52cdb4cd..fceb7587d75 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update.md index 3ac69458642..b94f5f3ebc7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -22,9 +22,11 @@ Function result = await functions.Update( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: new List<string>(), // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional providerSilentMode: false, // optional - providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>" // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md index 7fa2d634871..5fb0f9a1908 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md index 74b57d18b27..e1f6f859db2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md index 63852498d16..674e0e70f20 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md index 2afc5220b28..d61e2207945 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md index 5c7df9cb79b..de536fd9ddb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md index cdcdbaa2148..8c1bf763ca0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md index baa2fa827bd..871abf0bc05 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md index 95c55cbcf73..7fe20cdcf85 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md index 06a979a8ad6..65596b49cfa 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md index fa57789e80d..06e629d12c4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md index 13c25ab218e..80733ec20d2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md index 645ea40540f..7e280a1b62b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md index f7e80f4379a..8efd075b45e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md index ba89c040f2c..2a6767dd74a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md index b16a497edb5..2be751cf009 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md index 9f6ecdd26c4..5681495382b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md index 024672ed2d5..f3677243106 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..339877afc2b --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueStatsResources( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md index cbd89bd1691..c714a487a11 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md index ad79ae2e654..14ca7580015 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md index 485f43004a9..6dbbe052350 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md index 5825a2fb541..afe666b17d0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md index d96df2cfaee..80e4f7574a5 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md index eb61c192042..4643825b96c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md index 5120df9704a..0b5d9b8a5d2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get.md b/docs/examples/1.5.x/server-dotnet/examples/health/get.md index f062b0195c2..16ac413bc41 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/get.md b/docs/examples/1.5.x/server-dotnet/examples/locale/get.md index 54a42381d53..4ef0232eaa8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/get.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md index 2286882e3a5..eea75da7d51 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md index 926a4ae89fa..4148a3068da 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md index 4f5adf2dbb7..4c86505bc73 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md index aed1b46bc05..0277e032d18 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md index 6bed4bcb0c4..f85c5283542 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md index eb3bf0bffff..384a5f4e12f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md index 915d1ea1ee0..50f9dea6a9e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md index db540ab1219..0953e595824 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md @@ -5,7 +5,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md index a2be62c7e0d..b4b358dad25 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md index 60eec84bb67..1ce8b2cd407 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md index cfb6e4fc1e5..6fe64c35e0f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md @@ -5,7 +5,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md index 3041a1e9898..7558191115c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md index aac15984032..311ad7f948d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md index a0a8daa1fdc..596e63d635c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md index 10e633d536c..588781b3a18 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md @@ -1,18 +1,19 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); Message result = await messaging.CreatePush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: new List<string>(), // optional users: new List<string>(), // optional targets: new List<string>(), // optional @@ -23,7 +24,10 @@ Message result = await messaging.CreatePush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md index d5bfd6acdcf..c2eca58a062 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md @@ -5,7 +5,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md index 66ff4fa4a44..583bbb4d1e9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md index 56b28c673a6..64de3805dd7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md index b84ad5dde7c..3ef5cb925e9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md index db98dc722a5..fdbd4ea5c3f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md index 3360e3429eb..f188a4fefa7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md index bf3eaee45d8..8476f08866c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md index 49e909bac92..98fbf86c238 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md index f943f4384f2..4e28defc50f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md index 36f88816507..7902da1a34e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md index 3c613760752..4dfe73175f7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md index c7d80739378..767323047e0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md index 249b6b09141..54b41887736 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md index e39f2c45f67..22226992c75 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md index efbb7e0f0da..d0b2a243a28 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md index 97c92229887..19597387580 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md index 261c13247af..bc413b1ca11 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md index 8a20feffe29..9a158961b1c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md index 857ffc0ab6d..43b7bcb55d9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md index 4075261193f..2d1a5fe9b78 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md index 7936a67cea3..5004c7d0c45 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md index 904663e2c21..47b55acc266 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md index cd81771ec7b..2a1b4426e8b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md index 4dff73101f6..5dd1cf01b8a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md index 4e3ad1f5ae4..ca83034be08 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md index ebe2b5ab100..9889e1f7260 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md index 88bc1fc0dc3..b986a8babe4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md index 02f397cd81f..37842ad45ad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md index 366f8386335..36ff7717f3d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md index 9c9667f437e..6750f3b7865 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md index a5db38cbe26..6fbb686d83e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md index 050f8c8e2e0..2467a1cb414 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md index b1a8f1ff5cc..9208e930e4b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md index 065d122755b..6dd80b63498 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md index 713ed5fc87d..ca9c7e4e8b9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md index f306272b174..2b48d1827d2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md @@ -1,11 +1,12 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); @@ -25,5 +26,8 @@ Message result = await messaging.UpdatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md index 4c64ff6b329..847ace5b576 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md index 4cb1beae4a6..9538efa02ed 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md index 896b8d2b538..94f5d5af2b6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md index e53c7286986..df2252a98b0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md index 1354332553b..a8560554209 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md index 2a26134a61b..b44d068084d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md index da238934541..6fe2f2d6941 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md index ba80bf1a238..b4a3e8ed79d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md index b6060cfcc6b..73078bd7a17 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md index 89553a15e72..94bc3f400fe 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md index c3d9733cdc2..0a2953775b1 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md index 149281a1ea6..1fc110269f9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md index 23c6634ec6f..d7cd28a911c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md index 9d4e191da81..859f81e79d5 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md index 13ddf50d660..ea7c78c001f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md index c6b1294424e..8bb19126a8d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md index bde0e4106db..877e913eee3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md index 9497543be45..e0824051029 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md index 2c32d9d0263..314998b73ad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md index 5545be76f52..8b59250dd96 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md index 6f75cc4fe62..cd3b52c45cc 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md index 029e9ab1dd0..1bd2f4f0912 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md index 9d21890be69..d256e21b4f8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md index 3ac3f51a7f6..dd768c2335e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/create.md b/docs/examples/1.5.x/server-dotnet/examples/teams/create.md index 991423559a2..5b5c8014b4d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/create.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md index 5bce1d4c6d5..93f60402d79 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md index ddf53413bdf..1c69bf0ea82 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md index 80fe57efef0..bb91bc9e892 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md index 80333e12f52..4e6012df169 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/get.md b/docs/examples/1.5.x/server-dotnet/examples/teams/get.md index fbc40f662d0..c221122e7e1 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/get.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md index 8664ad98084..d44f12b41c3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/list.md b/docs/examples/1.5.x/server-dotnet/examples/teams/list.md index f06ab42a230..9c1a0fee657 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/list.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md index 5631ea4948e..151f17566eb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md index 33bc0575038..1d9faebbf91 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md index eec43cf61a1..b3db0576af9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md index ea600cac194..84b9b11ca83 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md index 1658290e443..7ee4d1d89d6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md index 6142ffe14e8..9ff609d5f40 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..2997767f795 --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-j-w-t.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +JWT result = await users.CreateJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", // optional + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md index fe4571c5f37..7294c805eda 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md index 5c308dc84e8..bbc41a66a19 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md index 0bbbc334e27..3db0dc707d3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md index 4912995488d..873e666cdc6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md index 389585c825f..7af9f2ab8bc 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md index 8a08036eec9..14ee42e4891 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md index ef29c037496..f624ff8554c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md index 9ac56a9c7f8..80717ae19bf 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md index 8243fe7207f..ce96abc50cb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create.md b/docs/examples/1.5.x/server-dotnet/examples/users/create.md index 87c2943d8ea..04e25c32730 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md index 8cc8f63c439..b17b6558640 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md index e02a0f0d7cc..9579eba7a2d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md index c642cd84499..c3d081bf56b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md index a86909517d5..ff46be8ad23 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md index 21d96f33226..5b9f5e1aa9a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md index cfbbe671232..482b229912d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete.md index 1adfb1821aa..670b98cbd16 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md index 5734cf48192..a69c58da2a4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md index 732f754aaf7..ec25c4160f0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md index 776a7a86dd2..10a6955e49f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get.md b/docs/examples/1.5.x/server-dotnet/examples/users/get.md index a3120b814e2..7dc7eebdaa8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md index a76aa24e848..302fd230c7f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md index fe776a3c947..36a9b5f7703 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md index eb1d8c451c1..303839792b0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md index 1d347055221..5c833de3667 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md index 224f4f08363..31e1ee3d555 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md index dbe0bab5a6c..989ae5783e0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md index df0ecd816b3..a5c07505297 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md index 2f79c89d410..ded2ade2b69 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list.md b/docs/examples/1.5.x/server-dotnet/examples/users/list.md index 92060abd672..74bce0bb1a7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md index 1d93191870c..025d4f0a213 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md index 63efb73bdd6..250290539f8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md index 283287a264b..865556db2f0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md index 807c1c03d66..cb4f68eb040 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md index 9f3404d3e85..bd881528c83 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md index 164ebec2d15..492a45ed688 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md index 69f580748ac..aa6e621180a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md index e4752024193..13ded37df6b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md index d92f0b75370..50708008ba6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md index 57b6e5f1cd2..8015f738482 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md index 0657570a73c..f476bc58236 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md index fb431035d83..9fe888c7e3b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-go/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-go/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..bdf9c1b8e83 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-anonymous-session.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateAnonymousSession( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-go/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..b6573084a99 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-email-password-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateEmailPasswordSession( + "email@example.com", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-email-token.md b/docs/examples/1.5.x/server-go/examples/account/create-email-token.md new file mode 100644 index 00000000000..b9aae640a0f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-email-token.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateEmailToken( + "<USER_ID>", + "email@example.com", + account.WithCreateEmailTokenPhrase(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-go/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..fa4d41b315e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-j-w-t.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateJWT( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-go/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..cd1d07e5e05 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateMagicURLToken( + "<USER_ID>", + "email@example.com", + account.WithCreateMagicURLTokenUrl("https://example.com"), + account.WithCreateMagicURLTokenPhrase(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..150e4d18d62 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-mfa-authenticator.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateMfaAuthenticator( + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-go/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..93e122f8b3f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-mfa-challenge.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateMfaChallenge( + "email", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..005b9603d88 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-go/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..6cc11b004bd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-o-auth2token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateOAuth2Token( + "amazon", + account.WithCreateOAuth2TokenSuccess("https://example.com"), + account.WithCreateOAuth2TokenFailure("https://example.com"), + account.WithCreateOAuth2TokenScopes([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-go/examples/account/create-phone-token.md new file mode 100644 index 00000000000..eff0aa2ae0e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-phone-token.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreatePhoneToken( + "<USER_ID>", + "+12065550100", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-go/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..fff450710d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-phone-verification.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreatePhoneVerification( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-recovery.md b/docs/examples/1.5.x/server-go/examples/account/create-recovery.md new file mode 100644 index 00000000000..6fc0115b033 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-recovery.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateRecovery( + "email@example.com", + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-session.md b/docs/examples/1.5.x/server-go/examples/account/create-session.md new file mode 100644 index 00000000000..c525401b5ff --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-verification.md b/docs/examples/1.5.x/server-go/examples/account/create-verification.md new file mode 100644 index 00000000000..9e2cecc6f9c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-verification.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateVerification( + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create.md b/docs/examples/1.5.x/server-go/examples/account/create.md new file mode 100644 index 00000000000..9cc27a5f1da --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.Create( + "<USER_ID>", + "email@example.com", + "", + account.WithCreateName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-identity.md b/docs/examples/1.5.x/server-go/examples/account/delete-identity.md new file mode 100644 index 00000000000..939a3efa01c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-identity.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteIdentity( + "<IDENTITY_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..664628b44ed --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteMfaAuthenticator( + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-session.md b/docs/examples/1.5.x/server-go/examples/account/delete-session.md new file mode 100644 index 00000000000..c153451efec --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-go/examples/account/delete-sessions.md new file mode 100644 index 00000000000..3c782b93ddf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-sessions.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteSessions( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..d6abf99553f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get-prefs.md b/docs/examples/1.5.x/server-go/examples/account/get-prefs.md new file mode 100644 index 00000000000..555e99d04d6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get-prefs.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetPrefs( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get-session.md b/docs/examples/1.5.x/server-go/examples/account/get-session.md new file mode 100644 index 00000000000..b9958823bbd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get.md b/docs/examples/1.5.x/server-go/examples/account/get.md new file mode 100644 index 00000000000..47e52e895f9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-identities.md b/docs/examples/1.5.x/server-go/examples/account/list-identities.md new file mode 100644 index 00000000000..01b398018f5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-identities.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListIdentities( + account.WithListIdentitiesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-logs.md b/docs/examples/1.5.x/server-go/examples/account/list-logs.md new file mode 100644 index 00000000000..9cbdaa35694 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-logs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListLogs( + account.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-go/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..8e028c96153 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-mfa-factors.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListMfaFactors( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-sessions.md b/docs/examples/1.5.x/server-go/examples/account/list-sessions.md new file mode 100644 index 00000000000..12454750d1c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-sessions.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListSessions( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-email.md b/docs/examples/1.5.x/server-go/examples/account/update-email.md new file mode 100644 index 00000000000..16c31efe88f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-email.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateEmail( + "email@example.com", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-go/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..f06eb959c19 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-m-f-a.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateMFA( + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-go/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..aaf8d697720 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.UpdateMagicURLSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..350dcfaf64f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-mfa-authenticator.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateMfaAuthenticator( + "totp", + "<OTP>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-go/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..2c367fbc96c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-mfa-challenge.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateMfaChallenge( + "<CHALLENGE_ID>", + "<OTP>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..c04f169fa88 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-name.md b/docs/examples/1.5.x/server-go/examples/account/update-name.md new file mode 100644 index 00000000000..31baf1f1dae --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-name.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateName( + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-password.md b/docs/examples/1.5.x/server-go/examples/account/update-password.md new file mode 100644 index 00000000000..770d748ccf5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-password.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdatePassword( + "", + account.WithUpdatePasswordOldPassword("password"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-go/examples/account/update-phone-session.md new file mode 100644 index 00000000000..4fb1e2ac69e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-phone-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.UpdatePhoneSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-go/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..0e3af857546 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-phone-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdatePhoneVerification( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-phone.md b/docs/examples/1.5.x/server-go/examples/account/update-phone.md new file mode 100644 index 00000000000..3c39ab28997 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-phone.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdatePhone( + "+12065550100", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-prefs.md b/docs/examples/1.5.x/server-go/examples/account/update-prefs.md new file mode 100644 index 00000000000..822c6fdfbb2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdatePrefs( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-recovery.md b/docs/examples/1.5.x/server-go/examples/account/update-recovery.md new file mode 100644 index 00000000000..0450f9a03c8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-recovery.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateRecovery( + "<USER_ID>", + "<SECRET>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-session.md b/docs/examples/1.5.x/server-go/examples/account/update-session.md new file mode 100644 index 00000000000..cc03ef1acdf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-status.md b/docs/examples/1.5.x/server-go/examples/account/update-status.md new file mode 100644 index 00000000000..2e1f4f2e2ba --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-status.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateStatus( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-verification.md b/docs/examples/1.5.x/server-go/examples/account/update-verification.md new file mode 100644 index 00000000000..4e245c6bd63 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateVerification( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-go/examples/avatars/get-browser.md new file mode 100644 index 00000000000..41e6d3a64ac --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-browser.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetBrowser( + "aa", + avatars.WithGetBrowserWidth(0), + avatars.WithGetBrowserHeight(0), + avatars.WithGetBrowserQuality(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-go/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..29fa7c17155 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-credit-card.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetCreditCard( + "amex", + avatars.WithGetCreditCardWidth(0), + avatars.WithGetCreditCardHeight(0), + avatars.WithGetCreditCardQuality(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-go/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..52d71201335 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-favicon.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetFavicon( + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-go/examples/avatars/get-flag.md new file mode 100644 index 00000000000..2024a671c76 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-flag.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetFlag( + "af", + avatars.WithGetFlagWidth(0), + avatars.WithGetFlagHeight(0), + avatars.WithGetFlagQuality(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-image.md b/docs/examples/1.5.x/server-go/examples/avatars/get-image.md new file mode 100644 index 00000000000..cbcb8c7b805 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-image.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetImage( + "https://example.com", + avatars.WithGetImageWidth(0), + avatars.WithGetImageHeight(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-go/examples/avatars/get-initials.md new file mode 100644 index 00000000000..83c2f212da7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-initials.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetInitials( + avatars.WithGetInitialsName("<NAME>"), + avatars.WithGetInitialsWidth(0), + avatars.WithGetInitialsHeight(0), + avatars.WithGetInitialsBackground(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-go/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..172e2720168 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-q-r.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetQR( + "<TEXT>", + avatars.WithGetQRSize(1), + avatars.WithGetQRMargin(0), + avatars.WithGetQRDownload(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..e0a0a4255d8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-boolean-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateBooleanAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateBooleanAttributeDefault(false), + databases.WithCreateBooleanAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-collection.md b/docs/examples/1.5.x/server-go/examples/databases/create-collection.md new file mode 100644 index 00000000000..8b42c00dc17 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-collection.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<NAME>", + databases.WithCreateCollectionPermissions(interface{}{"read("any")"}), + databases.WithCreateCollectionDocumentSecurity(false), + databases.WithCreateCollectionEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..f8dc80f7fd1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-datetime-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateDatetimeAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateDatetimeAttributeDefault(""), + databases.WithCreateDatetimeAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-document.md b/docs/examples/1.5.x/server-go/examples/databases/create-document.md new file mode 100644 index 00000000000..19bcdba0a4c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-document.md @@ -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.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + map[string]interface{}{}, + databases.WithCreateDocumentPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..c79d5f28cad --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-email-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateEmailAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateEmailAttributeDefault("email@example.com"), + databases.WithCreateEmailAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..ade770e80e2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-enum-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateEnumAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + []interface{}{}, + false, + databases.WithCreateEnumAttributeDefault("<DEFAULT>"), + databases.WithCreateEnumAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..fc873a21f0a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-float-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateFloatAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateFloatAttributeMin(0), + databases.WithCreateFloatAttributeMax(0), + databases.WithCreateFloatAttributeDefault(0), + databases.WithCreateFloatAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-index.md b/docs/examples/1.5.x/server-go/examples/databases/create-index.md new file mode 100644 index 00000000000..417a5ffbe9e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-index.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + "key", + []interface{}{}, + databases.WithCreateIndexOrders([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..3ab7505e51b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-integer-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateIntegerAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateIntegerAttributeMin(0), + databases.WithCreateIntegerAttributeMax(0), + databases.WithCreateIntegerAttributeDefault(0), + databases.WithCreateIntegerAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..5f80658c777 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-ip-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateIpAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateIpAttributeDefault(""), + databases.WithCreateIpAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..2e9431901cf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-relationship-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateRelationshipAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<RELATED_COLLECTION_ID>", + "oneToOne", + databases.WithCreateRelationshipAttributeTwoWay(false), + databases.WithCreateRelationshipAttributeKey(""), + databases.WithCreateRelationshipAttributeTwoWayKey(""), + databases.WithCreateRelationshipAttributeOnDelete("cascade"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..07fc841f747 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-string-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateStringAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + 1, + false, + databases.WithCreateStringAttributeDefault("<DEFAULT>"), + databases.WithCreateStringAttributeArray(false), + databases.WithCreateStringAttributeEncrypt(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..a4525afc012 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-url-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateUrlAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateUrlAttributeDefault("https://example.com"), + databases.WithCreateUrlAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create.md b/docs/examples/1.5.x/server-go/examples/databases/create.md new file mode 100644 index 00000000000..3303b897224 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Create( + "<DATABASE_ID>", + "<NAME>", + databases.WithCreateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..6d4f2c89d7d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-attribute.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-go/examples/databases/delete-collection.md new file mode 100644 index 00000000000..33b6cce1c8a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-collection.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-document.md b/docs/examples/1.5.x/server-go/examples/databases/delete-document.md new file mode 100644 index 00000000000..e1d98e79c22 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-document.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-index.md b/docs/examples/1.5.x/server-go/examples/databases/delete-index.md new file mode 100644 index 00000000000..540afeac4a2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete.md b/docs/examples/1.5.x/server-go/examples/databases/delete.md new file mode 100644 index 00000000000..76139289cec --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Delete( + "<DATABASE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/get-attribute.md new file mode 100644 index 00000000000..b819b75820d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-attribute.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-collection.md b/docs/examples/1.5.x/server-go/examples/databases/get-collection.md new file mode 100644 index 00000000000..9b9cd41aa33 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-collection.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-document.md b/docs/examples/1.5.x/server-go/examples/databases/get-document.md new file mode 100644 index 00000000000..d1e2d7b3776 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-document.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + databases.WithGetDocumentQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-index.md b/docs/examples/1.5.x/server-go/examples/databases/get-index.md new file mode 100644 index 00000000000..6c7f35113fa --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get.md b/docs/examples/1.5.x/server-go/examples/databases/get.md new file mode 100644 index 00000000000..8e1e002258d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Get( + "<DATABASE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-go/examples/databases/list-attributes.md new file mode 100644 index 00000000000..8d127abbe61 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-attributes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListAttributes( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListAttributesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-collections.md b/docs/examples/1.5.x/server-go/examples/databases/list-collections.md new file mode 100644 index 00000000000..cd76783838c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-collections.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListCollections( + "<DATABASE_ID>", + databases.WithListCollectionsQueries([]interface{}{}), + databases.WithListCollectionsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-documents.md b/docs/examples/1.5.x/server-go/examples/databases/list-documents.md new file mode 100644 index 00000000000..237b6d17f78 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-go/examples/databases/list-indexes.md new file mode 100644 index 00000000000..d0792e8dbff --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-indexes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListIndexes( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListIndexesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list.md b/docs/examples/1.5.x/server-go/examples/databases/list.md new file mode 100644 index 00000000000..3548af44841 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.List( + databases.WithListQueries([]interface{}{}), + databases.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..b5386f01113 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-boolean-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateBooleanAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + false, + databases.WithUpdateBooleanAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-collection.md b/docs/examples/1.5.x/server-go/examples/databases/update-collection.md new file mode 100644 index 00000000000..2e9c9200227 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-collection.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<NAME>", + databases.WithUpdateCollectionPermissions(interface{}{"read("any")"}), + databases.WithUpdateCollectionDocumentSecurity(false), + databases.WithUpdateCollectionEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..53a66e8cfe8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-datetime-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateDatetimeAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "", + databases.WithUpdateDatetimeAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-document.md b/docs/examples/1.5.x/server-go/examples/databases/update-document.md new file mode 100644 index 00000000000..c9345686078 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-document.md @@ -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.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + databases.WithUpdateDocumentData(map[string]interface{}{}), + databases.WithUpdateDocumentPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..0dd72beb4b0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-email-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateEmailAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "email@example.com", + databases.WithUpdateEmailAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..aec51772ee4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-enum-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateEnumAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + []interface{}{}, + false, + "<DEFAULT>", + databases.WithUpdateEnumAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..7f45543b64f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-float-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateFloatAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + 0, + databases.WithUpdateFloatAttributeMin(0), + databases.WithUpdateFloatAttributeMax(0), + databases.WithUpdateFloatAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..07da6f38ee6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-integer-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateIntegerAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + 0, + databases.WithUpdateIntegerAttributeMin(0), + databases.WithUpdateIntegerAttributeMax(0), + databases.WithUpdateIntegerAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..b47672c530e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-ip-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateIpAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "", + databases.WithUpdateIpAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..7deadc7c152 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-relationship-attribute.md @@ -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.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateRelationshipAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + databases.WithUpdateRelationshipAttributeOnDelete("cascade"), + databases.WithUpdateRelationshipAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..f3e6addb072 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-string-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateStringAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "<DEFAULT>", + databases.WithUpdateStringAttributeSize(1), + databases.WithUpdateStringAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..98dc66fa99c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-url-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateUrlAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "https://example.com", + databases.WithUpdateUrlAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update.md b/docs/examples/1.5.x/server-go/examples/databases/update.md new file mode 100644 index 00000000000..af9e20ba28a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Update( + "<DATABASE_ID>", + "<NAME>", + databases.WithUpdateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-build.md b/docs/examples/1.5.x/server-go/examples/functions/create-build.md new file mode 100644 index 00000000000..33e645bb028 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-build.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateBuild( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + functions.WithCreateBuildBuildId("<BUILD_ID>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/create-deployment.md new file mode 100644 index 00000000000..c6ec69ca4a3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-deployment.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateDeployment( + "<FUNCTION_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + false, + functions.WithCreateDeploymentEntrypoint("<ENTRYPOINT>"), + functions.WithCreateDeploymentCommands("<COMMANDS>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-execution.md b/docs/examples/1.5.x/server-go/examples/functions/create-execution.md new file mode 100644 index 00000000000..4924e2338c7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-execution.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateExecution( + "<FUNCTION_ID>", + functions.WithCreateExecutionBody("<BODY>"), + functions.WithCreateExecutionAsync(false), + functions.WithCreateExecutionPath("<PATH>"), + functions.WithCreateExecutionMethod("GET"), + functions.WithCreateExecutionHeaders(map[string]interface{}{}), + functions.WithCreateExecutionScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-variable.md b/docs/examples/1.5.x/server-go/examples/functions/create-variable.md new file mode 100644 index 00000000000..9d50f0e0ec5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-variable.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.CreateVariable( + "<FUNCTION_ID>", + "<KEY>", + "<VALUE>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create.md b/docs/examples/1.5.x/server-go/examples/functions/create.md new file mode 100644 index 00000000000..01cd0f0402c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create.md @@ -0,0 +1,47 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Create( + "<FUNCTION_ID>", + "<NAME>", + "node-14.5", + functions.WithCreateExecute(interface{}{"any"}), + functions.WithCreateEvents([]interface{}{}), + functions.WithCreateSchedule(""), + functions.WithCreateTimeout(1), + functions.WithCreateEnabled(false), + functions.WithCreateLogging(false), + functions.WithCreateEntrypoint("<ENTRYPOINT>"), + functions.WithCreateCommands("<COMMANDS>"), + functions.WithCreateScopes([]interface{}{}), + functions.WithCreateInstallationId("<INSTALLATION_ID>"), + functions.WithCreateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + functions.WithCreateProviderBranch("<PROVIDER_BRANCH>"), + functions.WithCreateProviderSilentMode(false), + functions.WithCreateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + functions.WithCreateTemplateRepository("<TEMPLATE_REPOSITORY>"), + functions.WithCreateTemplateOwner("<TEMPLATE_OWNER>"), + functions.WithCreateTemplateRootDirectory("<TEMPLATE_ROOT_DIRECTORY>"), + functions.WithCreateTemplateVersion("<TEMPLATE_VERSION>"), + functions.WithCreateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..3e189ea1c6e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-go/examples/functions/delete-execution.md new file mode 100644 index 00000000000..184f6234c79 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete-execution.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteExecution( + "<FUNCTION_ID>", + "<EXECUTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-go/examples/functions/delete-variable.md new file mode 100644 index 00000000000..da9cb443da4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.DeleteVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete.md b/docs/examples/1.5.x/server-go/examples/functions/delete.md new file mode 100644 index 00000000000..c19495f32b8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Delete( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-go/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..16b29f5b910 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-deployment-download.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetDeploymentDownload( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/get-deployment.md new file mode 100644 index 00000000000..879f5b3e461 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-execution.md b/docs/examples/1.5.x/server-go/examples/functions/get-execution.md new file mode 100644 index 00000000000..7ec459b7e12 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-execution.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetExecution( + "<FUNCTION_ID>", + "<EXECUTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-variable.md b/docs/examples/1.5.x/server-go/examples/functions/get-variable.md new file mode 100644 index 00000000000..f949ba5111c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.GetVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get.md b/docs/examples/1.5.x/server-go/examples/functions/get.md new file mode 100644 index 00000000000..3e31a307884 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Get( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-go/examples/functions/list-deployments.md new file mode 100644 index 00000000000..9549636b8d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-deployments.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListDeployments( + "<FUNCTION_ID>", + functions.WithListDeploymentsQueries([]interface{}{}), + functions.WithListDeploymentsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-executions.md b/docs/examples/1.5.x/server-go/examples/functions/list-executions.md new file mode 100644 index 00000000000..2a6291c6f34 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-executions.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListExecutions( + "<FUNCTION_ID>", + functions.WithListExecutionsQueries([]interface{}{}), + functions.WithListExecutionsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-go/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..d5124b2d687 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-runtimes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListRuntimes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-go/examples/functions/list-specifications.md new file mode 100644 index 00000000000..5fb03bb8d50 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-specifications.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListSpecifications( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-variables.md b/docs/examples/1.5.x/server-go/examples/functions/list-variables.md new file mode 100644 index 00000000000..374c64ae546 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-variables.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.ListVariables( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list.md b/docs/examples/1.5.x/server-go/examples/functions/list.md new file mode 100644 index 00000000000..124126fc918 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.List( + functions.WithListQueries([]interface{}{}), + functions.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-go/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..92af3ee31fb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update-deployment-build.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateDeploymentBuild( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/update-deployment.md new file mode 100644 index 00000000000..da08d0d8c69 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update-variable.md b/docs/examples/1.5.x/server-go/examples/functions/update-variable.md new file mode 100644 index 00000000000..fce59eb7140 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update-variable.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.UpdateVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + "<KEY>", + functions.WithUpdateVariableValue("<VALUE>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update.md b/docs/examples/1.5.x/server-go/examples/functions/update.md new file mode 100644 index 00000000000..c29bf748ba2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update.md @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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) + response, error := service.Update( + "<FUNCTION_ID>", + "<NAME>", + functions.WithUpdateRuntime("node-14.5"), + functions.WithUpdateExecute(interface{}{"any"}), + functions.WithUpdateEvents([]interface{}{}), + functions.WithUpdateSchedule(""), + functions.WithUpdateTimeout(1), + functions.WithUpdateEnabled(false), + functions.WithUpdateLogging(false), + functions.WithUpdateEntrypoint("<ENTRYPOINT>"), + functions.WithUpdateCommands("<COMMANDS>"), + functions.WithUpdateScopes([]interface{}{}), + functions.WithUpdateInstallationId("<INSTALLATION_ID>"), + functions.WithUpdateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + functions.WithUpdateProviderBranch("<PROVIDER_BRANCH>"), + functions.WithUpdateProviderSilentMode(false), + functions.WithUpdateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + functions.WithUpdateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/graphql/mutation.md b/docs/examples/1.5.x/server-go/examples/graphql/mutation.md new file mode 100644 index 00000000000..e011bc8016f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/graphql/mutation.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/graphql" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := graphql.NewGraphql(client) + response, error := service.Mutation( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/graphql/query.md b/docs/examples/1.5.x/server-go/examples/graphql/query.md new file mode 100644 index 00000000000..6dec430cd7a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/graphql/query.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/graphql" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := graphql.NewGraphql(client) + response, error := service.Query( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-go/examples/health/get-antivirus.md new file mode 100644 index 00000000000..2ed5b0dd5a0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-antivirus.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetAntivirus( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-cache.md b/docs/examples/1.5.x/server-go/examples/health/get-cache.md new file mode 100644 index 00000000000..4e6b8de6ced --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-cache.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetCache( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-certificate.md b/docs/examples/1.5.x/server-go/examples/health/get-certificate.md new file mode 100644 index 00000000000..d251fff351b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-certificate.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetCertificate( + health.WithGetCertificateDomain(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-d-b.md b/docs/examples/1.5.x/server-go/examples/health/get-d-b.md new file mode 100644 index 00000000000..a6fbda00520 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-d-b.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetDB( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-go/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..6e89dd400d5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-failed-jobs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetFailedJobs( + "v1-database", + health.WithGetFailedJobsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-go/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..5ab0d90ef63 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-pub-sub.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetPubSub( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..bd68bdf8b41 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-builds.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueBuilds( + health.WithGetQueueBuildsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..1e43f62b980 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-certificates.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueCertificates( + health.WithGetQueueCertificatesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..d0fb2fb1149 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-databases.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueDatabases( + health.WithGetQueueDatabasesName("<NAME>"), + health.WithGetQueueDatabasesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..d4f76f57f22 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-deletes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueDeletes( + health.WithGetQueueDeletesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..75bc0cb3c14 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-functions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueFunctions( + health.WithGetQueueFunctionsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..686e42c84e6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-logs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueLogs( + health.WithGetQueueLogsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..32433a1f79e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-mails.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueMails( + health.WithGetQueueMailsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..56c50010fcc --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-messaging.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueMessaging( + health.WithGetQueueMessagingThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..dba9bd18096 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-migrations.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueMigrations( + health.WithGetQueueMigrationsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..74462449e1b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-stats-resources.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueStatsResources( + health.WithGetQueueStatsResourcesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..f4315e37fb3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-usage.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueUsage( + health.WithGetQueueUsageThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..70f3b9888c5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-webhooks.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetQueueWebhooks( + health.WithGetQueueWebhooksThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-go/examples/health/get-storage-local.md new file mode 100644 index 00000000000..1bebff56d45 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-storage-local.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetStorageLocal( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-storage.md b/docs/examples/1.5.x/server-go/examples/health/get-storage.md new file mode 100644 index 00000000000..8ac0f7fb361 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-storage.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetStorage( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-time.md b/docs/examples/1.5.x/server-go/examples/health/get-time.md new file mode 100644 index 00000000000..447954b76b7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-time.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.GetTime( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get.md b/docs/examples/1.5.x/server-go/examples/health/get.md new file mode 100644 index 00000000000..35022c7302d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := health.NewHealth(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/get.md b/docs/examples/1.5.x/server-go/examples/locale/get.md new file mode 100644 index 00000000000..233ee953dd0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-codes.md b/docs/examples/1.5.x/server-go/examples/locale/list-codes.md new file mode 100644 index 00000000000..d3d049b1fd6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-continents.md b/docs/examples/1.5.x/server-go/examples/locale/list-continents.md new file mode 100644 index 00000000000..ba80f2549bf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-continents.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListContinents( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-go/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..1fbc22c1e5b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-countries-e-u.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCountriesEU( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-go/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..72b7d96a19d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-countries-phones.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCountriesPhones( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-countries.md b/docs/examples/1.5.x/server-go/examples/locale/list-countries.md new file mode 100644 index 00000000000..894ae4c15bb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-countries.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCountries( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-go/examples/locale/list-currencies.md new file mode 100644 index 00000000000..4335a934895 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-currencies.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCurrencies( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-languages.md b/docs/examples/1.5.x/server-go/examples/locale/list-languages.md new file mode 100644 index 00000000000..789d5701029 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-languages.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListLanguages( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..feabfae8461 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-apns-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateApnsProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateApnsProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithCreateApnsProviderTeamId("<TEAM_ID>"), + messaging.WithCreateApnsProviderBundleId("<BUNDLE_ID>"), + messaging.WithCreateApnsProviderSandbox(false), + messaging.WithCreateApnsProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-email.md b/docs/examples/1.5.x/server-go/examples/messaging/create-email.md new file mode 100644 index 00000000000..87d386452f2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-email.md @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateEmail( + "<MESSAGE_ID>", + "<SUBJECT>", + "<CONTENT>", + messaging.WithCreateEmailTopics([]interface{}{}), + messaging.WithCreateEmailUsers([]interface{}{}), + messaging.WithCreateEmailTargets([]interface{}{}), + messaging.WithCreateEmailCc([]interface{}{}), + messaging.WithCreateEmailBcc([]interface{}{}), + messaging.WithCreateEmailAttachments([]interface{}{}), + messaging.WithCreateEmailDraft(false), + messaging.WithCreateEmailHtml(false), + messaging.WithCreateEmailScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..54223961974 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-fcm-provider.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateFcmProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateFcmProviderServiceAccountJSON(map[string]interface{}{}), + messaging.WithCreateFcmProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..2b26246fba1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateMailgunProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateMailgunProviderApiKey("<API_KEY>"), + messaging.WithCreateMailgunProviderDomain("<DOMAIN>"), + messaging.WithCreateMailgunProviderIsEuRegion(false), + messaging.WithCreateMailgunProviderFromName("<FROM_NAME>"), + messaging.WithCreateMailgunProviderFromEmail("email@example.com"), + messaging.WithCreateMailgunProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateMailgunProviderReplyToEmail("email@example.com"), + messaging.WithCreateMailgunProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..e2d74128623 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-msg91provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateMsg91Provider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateMsg91ProviderTemplateId("<TEMPLATE_ID>"), + messaging.WithCreateMsg91ProviderSenderId("<SENDER_ID>"), + messaging.WithCreateMsg91ProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateMsg91ProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-push.md b/docs/examples/1.5.x/server-go/examples/messaging/create-push.md new file mode 100644 index 00000000000..b40037472f2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-push.md @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreatePush( + "<MESSAGE_ID>", + messaging.WithCreatePushTitle("<TITLE>"), + messaging.WithCreatePushBody("<BODY>"), + messaging.WithCreatePushTopics([]interface{}{}), + messaging.WithCreatePushUsers([]interface{}{}), + messaging.WithCreatePushTargets([]interface{}{}), + messaging.WithCreatePushData(map[string]interface{}{}), + messaging.WithCreatePushAction("<ACTION>"), + messaging.WithCreatePushImage("[ID1:ID2]"), + messaging.WithCreatePushIcon("<ICON>"), + messaging.WithCreatePushSound("<SOUND>"), + messaging.WithCreatePushColor("<COLOR>"), + messaging.WithCreatePushTag("<TAG>"), + messaging.WithCreatePushBadge(0), + messaging.WithCreatePushDraft(false), + messaging.WithCreatePushScheduledAt(""), + messaging.WithCreatePushContentAvailable(false), + messaging.WithCreatePushCritical(false), + messaging.WithCreatePushPriority("normal"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..1f70761a7d3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateSendgridProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateSendgridProviderApiKey("<API_KEY>"), + messaging.WithCreateSendgridProviderFromName("<FROM_NAME>"), + messaging.WithCreateSendgridProviderFromEmail("email@example.com"), + messaging.WithCreateSendgridProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSendgridProviderReplyToEmail("email@example.com"), + messaging.WithCreateSendgridProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-go/examples/messaging/create-sms.md new file mode 100644 index 00000000000..74583d236d4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-sms.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateSms( + "<MESSAGE_ID>", + "<CONTENT>", + messaging.WithCreateSmsTopics([]interface{}{}), + messaging.WithCreateSmsUsers([]interface{}{}), + messaging.WithCreateSmsTargets([]interface{}{}), + messaging.WithCreateSmsDraft(false), + messaging.WithCreateSmsScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..136e274ed74 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-smtp-provider.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateSmtpProvider( + "<PROVIDER_ID>", + "<NAME>", + "<HOST>", + messaging.WithCreateSmtpProviderPort(1), + messaging.WithCreateSmtpProviderUsername("<USERNAME>"), + messaging.WithCreateSmtpProviderPassword("<PASSWORD>"), + messaging.WithCreateSmtpProviderEncryption("none"), + messaging.WithCreateSmtpProviderAutoTLS(false), + messaging.WithCreateSmtpProviderMailer("<MAILER>"), + messaging.WithCreateSmtpProviderFromName("<FROM_NAME>"), + messaging.WithCreateSmtpProviderFromEmail("email@example.com"), + messaging.WithCreateSmtpProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSmtpProviderReplyToEmail("email@example.com"), + messaging.WithCreateSmtpProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-go/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..38f8418accc --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-subscriber.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token + + service := messaging.NewMessaging(client) + response, error := service.CreateSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..7de661031b8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-telesign-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateTelesignProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTelesignProviderFrom("+12065550100"), + messaging.WithCreateTelesignProviderCustomerId("<CUSTOMER_ID>"), + messaging.WithCreateTelesignProviderApiKey("<API_KEY>"), + messaging.WithCreateTelesignProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..c58bbe7569c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateTextmagicProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTextmagicProviderFrom("+12065550100"), + messaging.WithCreateTextmagicProviderUsername("<USERNAME>"), + messaging.WithCreateTextmagicProviderApiKey("<API_KEY>"), + messaging.WithCreateTextmagicProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/create-topic.md new file mode 100644 index 00000000000..d435d5e4a09 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-topic.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateTopic( + "<TOPIC_ID>", + "<NAME>", + messaging.WithCreateTopicSubscribe(interface{}{"any"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..73c3656ec68 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-twilio-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateTwilioProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTwilioProviderFrom("+12065550100"), + messaging.WithCreateTwilioProviderAccountSid("<ACCOUNT_SID>"), + messaging.WithCreateTwilioProviderAuthToken("<AUTH_TOKEN>"), + messaging.WithCreateTwilioProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..37568abc686 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-vonage-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.CreateVonageProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateVonageProviderFrom("+12065550100"), + messaging.WithCreateVonageProviderApiKey("<API_KEY>"), + messaging.WithCreateVonageProviderApiSecret("<API_SECRET>"), + messaging.WithCreateVonageProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..304293d7805 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete-provider.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.DeleteProvider( + "<PROVIDER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-go/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..1e918d95876 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete-subscriber.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token + + service := messaging.NewMessaging(client) + response, error := service.DeleteSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..36c13a4a552 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete-topic.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.DeleteTopic( + "<TOPIC_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete.md b/docs/examples/1.5.x/server-go/examples/messaging/delete.md new file mode 100644 index 00000000000..ce4b8a2e73c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.Delete( + "<MESSAGE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-message.md b/docs/examples/1.5.x/server-go/examples/messaging/get-message.md new file mode 100644 index 00000000000..d0d2d21d277 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-message.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.GetMessage( + "<MESSAGE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/get-provider.md new file mode 100644 index 00000000000..9796d60fd36 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-provider.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.GetProvider( + "<PROVIDER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-go/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..c0c39a928c6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-subscriber.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.GetSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/get-topic.md new file mode 100644 index 00000000000..8c8f4613daa --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-topic.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.GetTopic( + "<TOPIC_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..6d82a61ee23 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-message-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListMessageLogs( + "<MESSAGE_ID>", + messaging.WithListMessageLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-go/examples/messaging/list-messages.md new file mode 100644 index 00000000000..047ff9bd1fd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-messages.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListMessages( + messaging.WithListMessagesQueries([]interface{}{}), + messaging.WithListMessagesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..89449d193a1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-provider-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListProviderLogs( + "<PROVIDER_ID>", + messaging.WithListProviderLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-go/examples/messaging/list-providers.md new file mode 100644 index 00000000000..b8ae055baeb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-providers.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListProviders( + messaging.WithListProvidersQueries([]interface{}{}), + messaging.WithListProvidersSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..679039ec919 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListSubscriberLogs( + "<SUBSCRIBER_ID>", + messaging.WithListSubscriberLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-go/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..7da3d67bc70 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-subscribers.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListSubscribers( + "<TOPIC_ID>", + messaging.WithListSubscribersQueries([]interface{}{}), + messaging.WithListSubscribersSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-go/examples/messaging/list-targets.md new file mode 100644 index 00000000000..448e3f58a41 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-targets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListTargets( + "<MESSAGE_ID>", + messaging.WithListTargetsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..49316663b3b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-topic-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListTopicLogs( + "<TOPIC_ID>", + messaging.WithListTopicLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-go/examples/messaging/list-topics.md new file mode 100644 index 00000000000..39478d30f30 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-topics.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.ListTopics( + messaging.WithListTopicsQueries([]interface{}{}), + messaging.WithListTopicsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..bd331bca3c7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-apns-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateApnsProvider( + "<PROVIDER_ID>", + messaging.WithUpdateApnsProviderName("<NAME>"), + messaging.WithUpdateApnsProviderEnabled(false), + messaging.WithUpdateApnsProviderAuthKey("<AUTH_KEY>"), + messaging.WithUpdateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithUpdateApnsProviderTeamId("<TEAM_ID>"), + messaging.WithUpdateApnsProviderBundleId("<BUNDLE_ID>"), + messaging.WithUpdateApnsProviderSandbox(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-email.md b/docs/examples/1.5.x/server-go/examples/messaging/update-email.md new file mode 100644 index 00000000000..86c7ee0601c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-email.md @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateEmail( + "<MESSAGE_ID>", + messaging.WithUpdateEmailTopics([]interface{}{}), + messaging.WithUpdateEmailUsers([]interface{}{}), + messaging.WithUpdateEmailTargets([]interface{}{}), + messaging.WithUpdateEmailSubject("<SUBJECT>"), + messaging.WithUpdateEmailContent("<CONTENT>"), + messaging.WithUpdateEmailDraft(false), + messaging.WithUpdateEmailHtml(false), + messaging.WithUpdateEmailCc([]interface{}{}), + messaging.WithUpdateEmailBcc([]interface{}{}), + messaging.WithUpdateEmailScheduledAt(""), + messaging.WithUpdateEmailAttachments([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..c6bd3ba4857 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-fcm-provider.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateFcmProvider( + "<PROVIDER_ID>", + messaging.WithUpdateFcmProviderName("<NAME>"), + messaging.WithUpdateFcmProviderEnabled(false), + messaging.WithUpdateFcmProviderServiceAccountJSON(map[string]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..00789d2f6db --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateMailgunProvider( + "<PROVIDER_ID>", + messaging.WithUpdateMailgunProviderName("<NAME>"), + messaging.WithUpdateMailgunProviderApiKey("<API_KEY>"), + messaging.WithUpdateMailgunProviderDomain("<DOMAIN>"), + messaging.WithUpdateMailgunProviderIsEuRegion(false), + messaging.WithUpdateMailgunProviderEnabled(false), + messaging.WithUpdateMailgunProviderFromName("<FROM_NAME>"), + messaging.WithUpdateMailgunProviderFromEmail("email@example.com"), + messaging.WithUpdateMailgunProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateMailgunProviderReplyToEmail("<REPLY_TO_EMAIL>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..0bda860823c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-msg91provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateMsg91Provider( + "<PROVIDER_ID>", + messaging.WithUpdateMsg91ProviderName("<NAME>"), + messaging.WithUpdateMsg91ProviderEnabled(false), + messaging.WithUpdateMsg91ProviderTemplateId("<TEMPLATE_ID>"), + messaging.WithUpdateMsg91ProviderSenderId("<SENDER_ID>"), + messaging.WithUpdateMsg91ProviderAuthKey("<AUTH_KEY>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-push.md b/docs/examples/1.5.x/server-go/examples/messaging/update-push.md new file mode 100644 index 00000000000..d1b47256c07 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-push.md @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdatePush( + "<MESSAGE_ID>", + messaging.WithUpdatePushTopics([]interface{}{}), + messaging.WithUpdatePushUsers([]interface{}{}), + messaging.WithUpdatePushTargets([]interface{}{}), + messaging.WithUpdatePushTitle("<TITLE>"), + messaging.WithUpdatePushBody("<BODY>"), + messaging.WithUpdatePushData(map[string]interface{}{}), + messaging.WithUpdatePushAction("<ACTION>"), + messaging.WithUpdatePushImage("[ID1:ID2]"), + messaging.WithUpdatePushIcon("<ICON>"), + messaging.WithUpdatePushSound("<SOUND>"), + messaging.WithUpdatePushColor("<COLOR>"), + messaging.WithUpdatePushTag("<TAG>"), + messaging.WithUpdatePushBadge(0), + messaging.WithUpdatePushDraft(false), + messaging.WithUpdatePushScheduledAt(""), + messaging.WithUpdatePushContentAvailable(false), + messaging.WithUpdatePushCritical(false), + messaging.WithUpdatePushPriority("normal"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..e7205716ccb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateSendgridProvider( + "<PROVIDER_ID>", + messaging.WithUpdateSendgridProviderName("<NAME>"), + messaging.WithUpdateSendgridProviderEnabled(false), + messaging.WithUpdateSendgridProviderApiKey("<API_KEY>"), + messaging.WithUpdateSendgridProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSendgridProviderFromEmail("email@example.com"), + messaging.WithUpdateSendgridProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSendgridProviderReplyToEmail("<REPLY_TO_EMAIL>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-go/examples/messaging/update-sms.md new file mode 100644 index 00000000000..2f74b58422b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-sms.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateSms( + "<MESSAGE_ID>", + messaging.WithUpdateSmsTopics([]interface{}{}), + messaging.WithUpdateSmsUsers([]interface{}{}), + messaging.WithUpdateSmsTargets([]interface{}{}), + messaging.WithUpdateSmsContent("<CONTENT>"), + messaging.WithUpdateSmsDraft(false), + messaging.WithUpdateSmsScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..5c0ecedf944 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-smtp-provider.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateSmtpProvider( + "<PROVIDER_ID>", + messaging.WithUpdateSmtpProviderName("<NAME>"), + messaging.WithUpdateSmtpProviderHost("<HOST>"), + messaging.WithUpdateSmtpProviderPort(1), + messaging.WithUpdateSmtpProviderUsername("<USERNAME>"), + messaging.WithUpdateSmtpProviderPassword("<PASSWORD>"), + messaging.WithUpdateSmtpProviderEncryption("none"), + messaging.WithUpdateSmtpProviderAutoTLS(false), + messaging.WithUpdateSmtpProviderMailer("<MAILER>"), + messaging.WithUpdateSmtpProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSmtpProviderFromEmail("email@example.com"), + messaging.WithUpdateSmtpProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSmtpProviderReplyToEmail("<REPLY_TO_EMAIL>"), + messaging.WithUpdateSmtpProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..c30c288caa1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-telesign-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateTelesignProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTelesignProviderName("<NAME>"), + messaging.WithUpdateTelesignProviderEnabled(false), + messaging.WithUpdateTelesignProviderCustomerId("<CUSTOMER_ID>"), + messaging.WithUpdateTelesignProviderApiKey("<API_KEY>"), + messaging.WithUpdateTelesignProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..baaed6020d2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateTextmagicProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTextmagicProviderName("<NAME>"), + messaging.WithUpdateTextmagicProviderEnabled(false), + messaging.WithUpdateTextmagicProviderUsername("<USERNAME>"), + messaging.WithUpdateTextmagicProviderApiKey("<API_KEY>"), + messaging.WithUpdateTextmagicProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/update-topic.md new file mode 100644 index 00000000000..4f5b003e3bc --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-topic.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateTopic( + "<TOPIC_ID>", + messaging.WithUpdateTopicName("<NAME>"), + messaging.WithUpdateTopicSubscribe(interface{}{"any"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..1763a5f02df --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-twilio-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateTwilioProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTwilioProviderName("<NAME>"), + messaging.WithUpdateTwilioProviderEnabled(false), + messaging.WithUpdateTwilioProviderAccountSid("<ACCOUNT_SID>"), + messaging.WithUpdateTwilioProviderAuthToken("<AUTH_TOKEN>"), + messaging.WithUpdateTwilioProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..ea1d6fe3936 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-vonage-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := messaging.NewMessaging(client) + response, error := service.UpdateVonageProvider( + "<PROVIDER_ID>", + messaging.WithUpdateVonageProviderName("<NAME>"), + messaging.WithUpdateVonageProviderEnabled(false), + messaging.WithUpdateVonageProviderApiKey("<API_KEY>"), + messaging.WithUpdateVonageProviderApiSecret("<API_SECRET>"), + messaging.WithUpdateVonageProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/create-bucket.md new file mode 100644 index 00000000000..9ab1965854a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/create-bucket.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := storage.NewStorage(client) + response, error := service.CreateBucket( + "<BUCKET_ID>", + "<NAME>", + storage.WithCreateBucketPermissions(interface{}{"read("any")"}), + storage.WithCreateBucketFileSecurity(false), + storage.WithCreateBucketEnabled(false), + storage.WithCreateBucketMaximumFileSize(1), + storage.WithCreateBucketAllowedFileExtensions([]interface{}{}), + storage.WithCreateBucketCompression("none"), + storage.WithCreateBucketEncryption(false), + storage.WithCreateBucketAntivirus(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/create-file.md b/docs/examples/1.5.x/server-go/examples/storage/create-file.md new file mode 100644 index 00000000000..e561e22e3e8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/create-file.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.CreateFile( + "<BUCKET_ID>", + "<FILE_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + storage.WithCreateFilePermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..227ae84109f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/delete-bucket.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := storage.NewStorage(client) + response, error := service.DeleteBucket( + "<BUCKET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/delete-file.md b/docs/examples/1.5.x/server-go/examples/storage/delete-file.md new file mode 100644 index 00000000000..d67861b0b20 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/delete-file.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.DeleteFile( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/get-bucket.md new file mode 100644 index 00000000000..3aa33b40c06 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-bucket.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := storage.NewStorage(client) + response, error := service.GetBucket( + "<BUCKET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-go/examples/storage/get-file-download.md new file mode 100644 index 00000000000..aa9185cadd9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file-download.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFileDownload( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-go/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..2210c4559e9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file-preview.md @@ -0,0 +1,38 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFilePreview( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithGetFilePreviewWidth(0), + storage.WithGetFilePreviewHeight(0), + storage.WithGetFilePreviewGravity("center"), + storage.WithGetFilePreviewQuality(0), + storage.WithGetFilePreviewBorderWidth(0), + storage.WithGetFilePreviewBorderColor(""), + storage.WithGetFilePreviewBorderRadius(0), + storage.WithGetFilePreviewOpacity(0), + storage.WithGetFilePreviewRotation(-360), + storage.WithGetFilePreviewBackground(""), + storage.WithGetFilePreviewOutput("jpg"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-go/examples/storage/get-file-view.md new file mode 100644 index 00000000000..e4a3ece23c2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file-view.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFileView( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file.md b/docs/examples/1.5.x/server-go/examples/storage/get-file.md new file mode 100644 index 00000000000..4dfc7df8294 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFile( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-go/examples/storage/list-buckets.md new file mode 100644 index 00000000000..571d46376e9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/list-buckets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := storage.NewStorage(client) + response, error := service.ListBuckets( + storage.WithListBucketsQueries([]interface{}{}), + storage.WithListBucketsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/list-files.md b/docs/examples/1.5.x/server-go/examples/storage/list-files.md new file mode 100644 index 00000000000..13f4549a9a0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/list-files.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.ListFiles( + "<BUCKET_ID>", + storage.WithListFilesQueries([]interface{}{}), + storage.WithListFilesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/update-bucket.md new file mode 100644 index 00000000000..6c7f9463c90 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/update-bucket.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := storage.NewStorage(client) + response, error := service.UpdateBucket( + "<BUCKET_ID>", + "<NAME>", + storage.WithUpdateBucketPermissions(interface{}{"read("any")"}), + storage.WithUpdateBucketFileSecurity(false), + storage.WithUpdateBucketEnabled(false), + storage.WithUpdateBucketMaximumFileSize(1), + storage.WithUpdateBucketAllowedFileExtensions([]interface{}{}), + storage.WithUpdateBucketCompression("none"), + storage.WithUpdateBucketEncryption(false), + storage.WithUpdateBucketAntivirus(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/update-file.md b/docs/examples/1.5.x/server-go/examples/storage/update-file.md new file mode 100644 index 00000000000..820e6d4f230 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/update-file.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.UpdateFile( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithUpdateFileName("<NAME>"), + storage.WithUpdateFilePermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/create-membership.md b/docs/examples/1.5.x/server-go/examples/teams/create-membership.md new file mode 100644 index 00000000000..186520d47a8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/create-membership.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.CreateMembership( + "<TEAM_ID>", + []interface{}{}, + teams.WithCreateMembershipEmail("email@example.com"), + teams.WithCreateMembershipUserId("<USER_ID>"), + teams.WithCreateMembershipPhone("+12065550100"), + teams.WithCreateMembershipUrl("https://example.com"), + teams.WithCreateMembershipName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/create.md b/docs/examples/1.5.x/server-go/examples/teams/create.md new file mode 100644 index 00000000000..b429e396a66 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.Create( + "<TEAM_ID>", + "<NAME>", + teams.WithCreateRoles([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-go/examples/teams/delete-membership.md new file mode 100644 index 00000000000..536aa91f93a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/delete-membership.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.DeleteMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/delete.md b/docs/examples/1.5.x/server-go/examples/teams/delete.md new file mode 100644 index 00000000000..8e1c5d48934 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.Delete( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/get-membership.md b/docs/examples/1.5.x/server-go/examples/teams/get-membership.md new file mode 100644 index 00000000000..3bc8650dd9b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/get-membership.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.GetMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-go/examples/teams/get-prefs.md new file mode 100644 index 00000000000..bb2ff1c7780 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/get-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.GetPrefs( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/get.md b/docs/examples/1.5.x/server-go/examples/teams/get.md new file mode 100644 index 00000000000..69b00075a90 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.Get( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-go/examples/teams/list-memberships.md new file mode 100644 index 00000000000..45a6267e989 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/list-memberships.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.ListMemberships( + "<TEAM_ID>", + teams.WithListMembershipsQueries([]interface{}{}), + teams.WithListMembershipsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/list.md b/docs/examples/1.5.x/server-go/examples/teams/list.md new file mode 100644 index 00000000000..96c5f8ab747 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.List( + teams.WithListQueries([]interface{}{}), + teams.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-go/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..accc79ebce0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-membership-status.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdateMembershipStatus( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-membership.md b/docs/examples/1.5.x/server-go/examples/teams/update-membership.md new file mode 100644 index 00000000000..9f18528938d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-membership.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdateMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-name.md b/docs/examples/1.5.x/server-go/examples/teams/update-name.md new file mode 100644 index 00000000000..05459deb4a3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-name.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdateName( + "<TEAM_ID>", + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-go/examples/teams/update-prefs.md new file mode 100644 index 00000000000..314cf6c6852 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-prefs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdatePrefs( + "<TEAM_ID>", + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-go/examples/users/create-argon2user.md new file mode 100644 index 00000000000..87226b8033b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-argon2user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateArgon2User( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateArgon2UserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-go/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..89e979d1b87 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-bcrypt-user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateBcryptUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateBcryptUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-go/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..37d1a5d0eba --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-j-w-t.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateJWT( + "<USER_ID>", + users.WithCreateJWTSessionId("<SESSION_ID>"), + users.WithCreateJWTDuration(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-go/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..d2c87b4d147 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-m-d5user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateMD5User( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateMD5UserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..6757a627215 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-go/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..f8a9f4007d4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-p-h-pass-user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreatePHPassUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreatePHPassUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-go/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..b8e348c8844 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-s-h-a-user.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateSHAUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateSHAUserPasswordVersion("sha1"), + users.WithCreateSHAUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..935ecc12cc7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateScryptModifiedUser( + "<USER_ID>", + "email@example.com", + "password", + "<PASSWORD_SALT>", + "<PASSWORD_SALT_SEPARATOR>", + "<PASSWORD_SIGNER_KEY>", + users.WithCreateScryptModifiedUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..8320412796c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-user.md @@ -0,0 +1,34 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateScryptUser( + "<USER_ID>", + "email@example.com", + "password", + "<PASSWORD_SALT>", + 0, + 0, + 0, + 0, + users.WithCreateScryptUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-session.md b/docs/examples/1.5.x/server-go/examples/users/create-session.md new file mode 100644 index 00000000000..b246b8feb7a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateSession( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-target.md b/docs/examples/1.5.x/server-go/examples/users/create-target.md new file mode 100644 index 00000000000..d4802c19980 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-target.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateTarget( + "<USER_ID>", + "<TARGET_ID>", + "email", + "<IDENTIFIER>", + users.WithCreateTargetProviderId("<PROVIDER_ID>"), + users.WithCreateTargetName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-token.md b/docs/examples/1.5.x/server-go/examples/users/create-token.md new file mode 100644 index 00000000000..ea9b5a1e8b3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.CreateToken( + "<USER_ID>", + users.WithCreateTokenLength(4), + users.WithCreateTokenExpire(60), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create.md b/docs/examples/1.5.x/server-go/examples/users/create.md new file mode 100644 index 00000000000..f1b8f25d616 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.Create( + "<USER_ID>", + users.WithCreateEmail("email@example.com"), + users.WithCreatePhone("+12065550100"), + users.WithCreatePassword(""), + users.WithCreateName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-identity.md b/docs/examples/1.5.x/server-go/examples/users/delete-identity.md new file mode 100644 index 00000000000..af33140a4fd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-identity.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.DeleteIdentity( + "<IDENTITY_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..eb8f23b6a30 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.DeleteMfaAuthenticator( + "<USER_ID>", + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-session.md b/docs/examples/1.5.x/server-go/examples/users/delete-session.md new file mode 100644 index 00000000000..b29c8b0d709 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-session.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.DeleteSession( + "<USER_ID>", + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-go/examples/users/delete-sessions.md new file mode 100644 index 00000000000..9fc4e8012a2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-sessions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.DeleteSessions( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-target.md b/docs/examples/1.5.x/server-go/examples/users/delete-target.md new file mode 100644 index 00000000000..73443c5a1d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-target.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.DeleteTarget( + "<USER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete.md b/docs/examples/1.5.x/server-go/examples/users/delete.md new file mode 100644 index 00000000000..4e4e0468919 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.Delete( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..6e70217d0d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.GetMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get-prefs.md b/docs/examples/1.5.x/server-go/examples/users/get-prefs.md new file mode 100644 index 00000000000..8c05fddc5f6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.GetPrefs( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get-target.md b/docs/examples/1.5.x/server-go/examples/users/get-target.md new file mode 100644 index 00000000000..761d008b374 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get-target.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.GetTarget( + "<USER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get.md b/docs/examples/1.5.x/server-go/examples/users/get.md new file mode 100644 index 00000000000..44852bb9721 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.Get( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-identities.md b/docs/examples/1.5.x/server-go/examples/users/list-identities.md new file mode 100644 index 00000000000..a4cbbbd1eeb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-identities.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.ListIdentities( + users.WithListIdentitiesQueries([]interface{}{}), + users.WithListIdentitiesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-logs.md b/docs/examples/1.5.x/server-go/examples/users/list-logs.md new file mode 100644 index 00000000000..a713ee3ba29 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.ListLogs( + "<USER_ID>", + users.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-memberships.md b/docs/examples/1.5.x/server-go/examples/users/list-memberships.md new file mode 100644 index 00000000000..5770fd8c7e3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-memberships.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.ListMemberships( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-go/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..d89e0f3f967 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-mfa-factors.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.ListMfaFactors( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-sessions.md b/docs/examples/1.5.x/server-go/examples/users/list-sessions.md new file mode 100644 index 00000000000..a58d0532df5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-sessions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.ListSessions( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-targets.md b/docs/examples/1.5.x/server-go/examples/users/list-targets.md new file mode 100644 index 00000000000..45f967b4245 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-targets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.ListTargets( + "<USER_ID>", + users.WithListTargetsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list.md b/docs/examples/1.5.x/server-go/examples/users/list.md new file mode 100644 index 00000000000..b84ee0e3b73 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.List( + users.WithListQueries([]interface{}{}), + users.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-go/examples/users/update-email-verification.md new file mode 100644 index 00000000000..af4c066543b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-email-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateEmailVerification( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-email.md b/docs/examples/1.5.x/server-go/examples/users/update-email.md new file mode 100644 index 00000000000..ea18cc68637 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-email.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateEmail( + "<USER_ID>", + "email@example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-labels.md b/docs/examples/1.5.x/server-go/examples/users/update-labels.md new file mode 100644 index 00000000000..63bbe1255b5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-labels.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateLabels( + "<USER_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..408721b2ec7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-mfa.md b/docs/examples/1.5.x/server-go/examples/users/update-mfa.md new file mode 100644 index 00000000000..9da9d05fd07 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-mfa.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateMfa( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-name.md b/docs/examples/1.5.x/server-go/examples/users/update-name.md new file mode 100644 index 00000000000..7d5a2553ea9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-name.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateName( + "<USER_ID>", + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-password.md b/docs/examples/1.5.x/server-go/examples/users/update-password.md new file mode 100644 index 00000000000..64f5766c9b7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-password.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdatePassword( + "<USER_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-go/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..409cdf3c18c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-phone-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdatePhoneVerification( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-phone.md b/docs/examples/1.5.x/server-go/examples/users/update-phone.md new file mode 100644 index 00000000000..0440906d1ec --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-phone.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdatePhone( + "<USER_ID>", + "+12065550100", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-prefs.md b/docs/examples/1.5.x/server-go/examples/users/update-prefs.md new file mode 100644 index 00000000000..184235d2dd2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-prefs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdatePrefs( + "<USER_ID>", + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-status.md b/docs/examples/1.5.x/server-go/examples/users/update-status.md new file mode 100644 index 00000000000..a081d0bff43 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-status.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateStatus( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-target.md b/docs/examples/1.5.x/server-go/examples/users/update-target.md new file mode 100644 index 00000000000..a06c395cab1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-target.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://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 := users.NewUsers(client) + response, error := service.UpdateTarget( + "<USER_ID>", + "<TARGET_ID>", + users.WithUpdateTargetIdentifier("<IDENTIFIER>"), + users.WithUpdateTargetProviderId("<PROVIDER_ID>"), + users.WithUpdateTargetName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-graphql/examples/account/create.md b/docs/examples/1.5.x/server-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/create.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md index de14ae68f3a..fc5486623a9 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,6 @@ mutation { accountDeleteMfaAuthenticator( - type: "totp", - otp: "<OTP>" + type: "totp" ) { status } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/get.md b/docs/examples/1.5.x/server-graphql/examples/account/get.md index e4db8f0e414..f4f07c187f2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/get.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/get.md @@ -28,6 +28,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-email.md b/docs/examples/1.5.x/server-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-name.md b/docs/examples/1.5.x/server-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-password.md b/docs/examples/1.5.x/server-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md b/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-status.md b/docs/examples/1.5.x/server-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md index 6e969a587ec..aa0bfa832e4 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md index 05175cc1e78..51eb51f4101 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md index fcd5cb37a20..47601df0d8e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md index 1f23a23ba7b..e5845ccd47c 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md index 410a7983b45..d13c080e4ac 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md @@ -14,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md index ae6f9f72d61..2a270c3aff8 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md index efc92a798c2..2875a9b4b7d 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md @@ -13,5 +13,7 @@ mutation { error attributes orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md index 1dc43f6b0d0..8c79706817a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md index b2fd7215a0a..0f4ad9e1396 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md index ddca20b83aa..f66b87d6afc 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md index 3c290712e9b..62d97d69623 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md index d2a39756c94..89ad873e52b 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md b/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md index f76b71b6bab..ed27286b0d6 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md @@ -19,6 +19,8 @@ query { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md b/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md index de3c44ebe08..29de7a76f82 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md @@ -10,5 +10,7 @@ query { error attributes orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md b/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md index b821b6c4cf2..8dafbf7042f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md @@ -22,6 +22,8 @@ query { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md index e1c11b6c038..3cb67c64511 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md @@ -12,6 +12,8 @@ query { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md index 4c9aa62ef03..d508e62139d 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md index fc78bb8efc1..e918c058b88 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md index 3da44838371..a21b910edc9 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md index 36dd14d6463..6c83d80e162 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md index f2954f070f4..378e32f9b87 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md @@ -5,7 +5,8 @@ mutation { key: "", elements: [], required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" ) { key type @@ -13,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md index de987485a77..c70232e7491 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md @@ -4,9 +4,10 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0 + newKey: "" ) { key type @@ -14,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md index 34ceca93afd..b24af5f2605 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md @@ -4,9 +4,10 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0 + newKey: "" ) { key type @@ -14,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md index a3a2aec5853..7a262242005 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md index aa994f14ae2..6694540d93f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md @@ -3,7 +3,8 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: "cascade" + onDelete: "cascade", + newKey: "" ) { key type @@ -11,6 +12,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md index cc98a1a177d..afafb307f5b 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md @@ -4,7 +4,9 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, + newKey: "" ) { key type @@ -12,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md index e94723efe1b..f9f14a04f61 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md index 3cda4d74424..5f94c49f29e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md @@ -1,9 +1,9 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md index 1627ee93397..1479aa3bb60 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md @@ -5,7 +5,8 @@ mutation { async: false, path: "<PATH>", method: "GET", - headers: "{}" + headers: "{}", + scheduledAt: "" ) { _id _createdAt @@ -29,5 +30,6 @@ mutation { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/create.md b/docs/examples/1.5.x/server-graphql/examples/functions/create.md index f4eba8fafaf..88cb6df2239 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/create.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/create.md @@ -11,6 +11,7 @@ mutation { logging: false, entrypoint: "<ENTRYPOINT>", commands: "<COMMANDS>", + scopes: [], installationId: "<INSTALLATION_ID>", providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", providerBranch: "<PROVIDER_BRANCH>", @@ -19,7 +20,8 @@ mutation { templateRepository: "<TEMPLATE_REPOSITORY>", templateOwner: "<TEMPLATE_OWNER>", templateRootDirectory: "<TEMPLATE_ROOT_DIRECTORY>", - templateBranch: "<TEMPLATE_BRANCH>" + templateVersion: "<TEMPLATE_VERSION>", + specification: "" ) { _id _createdAt @@ -31,6 +33,7 @@ mutation { logging runtime deployment + scopes vars { _id _createdAt @@ -51,5 +54,6 @@ mutation { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-graphql/examples/functions/delete-execution.md new file mode 100644 index 00000000000..c6e950afc9b --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/functions/delete-execution.md @@ -0,0 +1,8 @@ +mutation { + functionsDeleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment-download.md similarity index 100% rename from docs/examples/1.6.x/client-graphql/examples/functions/get-deployment-download.md rename to docs/examples/1.5.x/server-graphql/examples/functions/get-deployment-download.md diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md index 1e1e7208a31..1f47561dd59 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md @@ -11,6 +11,7 @@ query { resourceType entrypoint size + buildSize buildId activate status diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md b/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md index f9f8ef05526..6ded51a50cc 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md @@ -25,5 +25,6 @@ query { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/get.md b/docs/examples/1.5.x/server-graphql/examples/functions/get.md index 1b00e91c735..016a942bce2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/get.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/get.md @@ -12,6 +12,7 @@ query { logging runtime deployment + scopes vars { _id _createdAt @@ -32,5 +33,6 @@ query { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md index b736744384a..57b50fc98f1 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md @@ -14,6 +14,7 @@ query { resourceType entrypoint size + buildSize buildId activate status diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md index 745ec32377a..a0c02fa76f2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md @@ -28,6 +28,7 @@ query { logs errors duration + scheduledAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md index 2c2b207e60e..445ff9dd082 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md @@ -3,6 +3,7 @@ query { total runtimes { _id + key name version base diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-specifications.md new file mode 100644 index 00000000000..a86b6ea4948 --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +query { + functionsListSpecifications { + total + specifications { + memory + cpus + enabled + slug + } + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list.md b/docs/examples/1.5.x/server-graphql/examples/functions/list.md index fd63347701a..25341ed0ddd 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list.md @@ -15,6 +15,7 @@ query { logging runtime deployment + scopes vars { _id _createdAt @@ -35,6 +36,7 @@ query { providerBranch providerRootDirectory providerSilentMode + specification } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..484d4b39ce8 --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment-build.md @@ -0,0 +1,16 @@ +mutation { + functionsUpdateDeploymentBuild( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + deploymentId + status + stdout + stderr + startTime + endTime + duration + size + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md index d19fb87f675..310efb206b6 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md @@ -13,6 +13,7 @@ mutation { logging runtime deployment + scopes vars { _id _createdAt @@ -33,5 +34,6 @@ mutation { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/update.md b/docs/examples/1.5.x/server-graphql/examples/functions/update.md index 8804dcc091a..cb384058c6c 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/update.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/update.md @@ -11,11 +11,13 @@ mutation { logging: false, entrypoint: "<ENTRYPOINT>", commands: "<COMMANDS>", + scopes: [], installationId: "<INSTALLATION_ID>", providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", providerBranch: "<PROVIDER_BRANCH>", providerSilentMode: false, - providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>" + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", + specification: "" ) { _id _createdAt @@ -27,6 +29,7 @@ mutation { logging runtime deployment + scopes vars { _id _createdAt @@ -47,5 +50,6 @@ mutation { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-graphql/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ce5cf59ecad --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/health/get-queue-stats-resources.md @@ -0,0 +1,7 @@ +query { + healthGetQueueStatsResources( + threshold: 0 + ) { + size + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md index 3084c97635f..92264d1b675 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md @@ -13,9 +13,12 @@ mutation { sound: "<SOUND>", color: "<COLOR>", tag: "<TAG>", - badge: "<BADGE>", + badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md index 54096dd70a4..2e1672d0106 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md @@ -16,6 +16,7 @@ query { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md index 5c48ae34bb8..a5a4f91e567 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md @@ -19,6 +19,7 @@ query { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md index 8e356dce5fe..aa82276de24 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md @@ -13,6 +13,7 @@ query { providerId providerType identifier + expired } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md index 9039792573a..8ee2f576107 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md @@ -15,7 +15,10 @@ mutation { tag: "<TAG>", badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md index ece52b9f876..ceb5b613bc4 100644 --- a/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md @@ -1,11 +1,11 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md index 464dc754c9a..7f99622e524 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md index 4d4bb091945..26659176ebf 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-graphql/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..bf0b1bd6382 --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-j-w-t.md @@ -0,0 +1,9 @@ +mutation { + usersCreateJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", + duration: 0 + ) { + jwt + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md index e8e833e6de4..7e642b8233e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md index 53960e7890a..4c06b007a24 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md index 17e287f8b32..f99da2752da 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md index 6d51fb29ba6..624ffcdd386 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md @@ -36,6 +36,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md index 0d4bac1db8b..68a5f4c75f7 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md @@ -38,6 +38,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-target.md b/docs/examples/1.5.x/server-graphql/examples/users/create-target.md index a3a0696deca..7068c21aba1 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-target.md @@ -15,5 +15,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create.md b/docs/examples/1.5.x/server-graphql/examples/users/create.md index 826a5168efd..465da804322 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md index 227c340c68d..43f73404f0a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md @@ -3,35 +3,6 @@ mutation { userId: "<USER_ID>", type: "totp" ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/get-target.md b/docs/examples/1.5.x/server-graphql/examples/users/get-target.md index e4ba1a04a1d..c84f947898e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/get-target.md @@ -11,5 +11,6 @@ query { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/get.md b/docs/examples/1.5.x/server-graphql/examples/users/get.md index f94a5818eda..9d0be685d95 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/get.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/get.md @@ -30,6 +30,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md b/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md index 05e796f1673..408fd96f804 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md @@ -13,6 +13,7 @@ query { providerId providerType identifier + expired } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/list.md b/docs/examples/1.5.x/server-graphql/examples/users/list.md index e2326dd1a2f..a90121adf2f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/list.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/list.md @@ -33,6 +33,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md index 6bb27818545..cda7278ac0b 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-email.md b/docs/examples/1.5.x/server-graphql/examples/users/update-email.md index 046937ac048..408a74972b4 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md b/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md index 93da33d805a..cb3c5b64830 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md b/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md index 9219aa1aea7..ac09ea19a4f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-name.md b/docs/examples/1.5.x/server-graphql/examples/users/update-name.md index 01a53ce479c..ec7e3dc27cc 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-name.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-password.md b/docs/examples/1.5.x/server-graphql/examples/users/update-password.md index c95637c4ceb..95ef74c83dd 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md index 58343ae365f..c6afa54ba4a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md b/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md index dbcb076c659..d3fc7d5f378 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-status.md b/docs/examples/1.5.x/server-graphql/examples/users/update-status.md index ad05bc75fff..2499c1c2588 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-status.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-target.md b/docs/examples/1.5.x/server-graphql/examples/users/update-target.md index fe3444ede7d..1f7cc1147a5 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-target.md @@ -14,5 +14,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md index 3c3ac2b0646..06b329802c8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md index ba833732d64..0ba9c6967c7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md index 14c538d9d31..a1aad6fd10c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md index 0af4269f3fb..75fa73fb002 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md index 040b59b4518..eff6d4310c5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md index 1e223e40293..285d1e04bb1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md index 71a318c3f9c..3f9bda200b9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md index 9cf177f64ca..eb127bd4585 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md index 6a3d9ceb701..e5fcbe95769 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md index 6a9342d7967..b64fb7dda63 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md index 3b77fb677b6..851b0cd8f16 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md index 4c92629612c..47873c5af70 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md index 022eaa4e30b..1f7c05c3614 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md index bfe3722db5e..07937ab2570 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md index 590fee3d080..d74106bbb79 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-session.md index 0a9606e6b0a..861af3da091 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md index d38067b1679..4479cc69156 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create.md b/docs/examples/1.5.x/server-kotlin/java/account/create.md index f0d3a51e059..3bcfe1dff6e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md index abe274064d0..f0e46f6cb84 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md index 5d11dcd2783..fbd552cf67c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md index 9417083719f..5eec2424d85 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md index c335161a2b4..7f3b6b9558b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md @@ -5,14 +5,13 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); account.deleteMfaAuthenticator( AuthenticatorType.TOTP, // type - "<OTP>", // otp new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md index b77ac28b324..687df8193bc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md index 80103a4ebe2..0bfa1f23f5c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md index 7298699bda1..f99634d71e4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md index fd05e63d551..46d41816c71 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get-session.md b/docs/examples/1.5.x/server-kotlin/java/account/get-session.md index 60c4312ebc2..6d07a85b4a6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get.md b/docs/examples/1.5.x/server-kotlin/java/account/get.md index f49288116c8..6d0eb40cf2e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md b/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md index 55d50db3ba5..373915375f5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md index 4b073999a51..8977a23b20e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md index b33b55a450f..e26cab9ad42 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md index 9232cdf4830..74f3e53444c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md index c1fd54076e4..6b01d445b24 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md index f3e008c7701..b94cfa5a1b5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-email.md b/docs/examples/1.5.x/server-kotlin/java/account/update-email.md index 453e1da0de6..391e5311ed8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md b/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md index 28780aeb789..58ac56bed81 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md index f11d09abf0c..62fe856fe0c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md index cc6b7740e9d..b492d8c4a32 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md index 8b907b1526f..74ca4815d78 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md index c00cd9e79d1..8f38ad83454 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-name.md b/docs/examples/1.5.x/server-kotlin/java/account/update-name.md index 48805222eaf..1ce2abfa122 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-password.md b/docs/examples/1.5.x/server-kotlin/java/account/update-password.md index 078301ad25b..437e825be54 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md index b4fdb3cb045..c401de4c65d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md index 509f220dab0..ddf786a2dea 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md index 18087675327..6a47fd10994 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md index 0ff11167120..8c10ede3bd5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md index 11cd3e7a58d..be4301c516f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-session.md b/docs/examples/1.5.x/server-kotlin/java/account/update-session.md index a944695f7ee..96e35069a91 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-status.md b/docs/examples/1.5.x/server-kotlin/java/account/update-status.md index 888bd3102dd..7c42f35ba61 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md index 3b2db934047..ed8a40bc830 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md index f572ef14636..4169363ba5a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md index 7e89188474a..4cd18b69586 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md index e6e60049ed0..eadbf5de9aa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md index 3819896781e..9f519412aa7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md index b5dc08ab409..1b7f423ad87 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md index f1d0d297f7e..af5f217e77d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md index 8d69379a855..4b00f730330 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md index 8a34781ea22..903e2b0d1df 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md index c1325cf256d..d959a65a9c6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md index 4be72451c0a..9a17b263911 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md index 514933cb01f..b35d4894e42 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md index 73f2c5a86fc..e05d1fe5de1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md index 375ca5c2caf..5a42e97c865 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md index c0190bca143..59cbd46dc4f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md index 844ae50e78b..cdbdbb24d39 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md index bcfb327474d..a3f09d43794 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md @@ -5,8 +5,8 @@ import io.appwrite.enums.IndexType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md index feab2442345..37e7f37352b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md index f6242128661..bdb009374c0 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md index ed998b4834d..f3d0f51f3d6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ import io.appwrite.enums.RelationshipType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md index 70257ea4777..7d9d8d48f03 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md index 706db3f3753..57ed89d8146 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create.md b/docs/examples/1.5.x/server-kotlin/java/databases/create.md index 3700e180b63..5b665108877 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md index ee14deb737a..8f9d2f0e240 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md index de17e072a05..334e7adffb2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md index 722bb4fcac0..a42b3f14b01 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md index ed3640819fe..725045eb151 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete.md index aa323b2ae10..41fb72bb7f5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md index be2dc5d00c9..1b29312a678 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md index 75701bd4fd2..41bbb234b0f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md index 7b6d04386af..870642bb2c8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md index 1c5dec77670..eb33b87f6d6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get.md b/docs/examples/1.5.x/server-kotlin/java/databases/get.md index f21ee37ab22..b276da4eabd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md index 3f5b659cb87..417fe6e5e47 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md index cdb807fae5a..e12e1580d37 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md index 3dd929da4c4..4fab62aeaff 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md index 5d59dfa7591..c26626531d2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list.md b/docs/examples/1.5.x/server-kotlin/java/databases/list.md index 19334f3cb0e..d014a70c7cc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md index 8b4791312b0..01a8ba13d36 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateBooleanAttribute( "", // key false, // required false, // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md index f3cdf9adf39..533d7a762b4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md index bc6bee4aa8b..00b35689d36 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateDatetimeAttribute( "", // key false, // required "", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md index 246a9000f3b..43c9600c58b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md index a62447d4ae0..b9313701892 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateEmailAttribute( "", // key false, // required "email@example.com", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md index b78fb885686..febf784f96d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -16,6 +16,7 @@ databases.updateEnumAttribute( listOf(), // elements false, // required "<DEFAULT>", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md index 89e6c61c355..061e2a9e331 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,9 +14,10 @@ databases.updateFloatAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md index 1e90bdc2400..24a26eb8b41 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,9 +14,10 @@ databases.updateIntegerAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md index 8df90b5970a..72b85cf531d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateIpAttribute( "", // key false, // required "", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md index 1fd638f8ae6..73e21218b12 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,6 +14,7 @@ databases.updateRelationshipAttribute( "<COLLECTION_ID>", // collectionId "", // key RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md index b5cf75ab597..2d690061814 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,8 @@ databases.updateStringAttribute( "", // key false, // required "<DEFAULT>", // default + 1, // size (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md index c93f509cb93..dcfbf3065da 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateUrlAttribute( "", // key false, // required "https://example.com", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update.md b/docs/examples/1.5.x/server-kotlin/java/databases/update.md index 2d9695b51ba..f1e6dd3972d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md index 097587f1bdc..ad55df1fcbf 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md @@ -4,15 +4,15 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); functions.createBuild( "<FUNCTION_ID>", // functionId "<DEPLOYMENT_ID>", // deploymentId - "<BUILD_ID>", // buildId + "<BUILD_ID>", // buildId (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md index 25ca118b2e1..920998e6019 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md @@ -5,8 +5,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md index f3507f392f0..62c0634b60f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Functions functions = new Functions(client); @@ -16,6 +16,7 @@ functions.createExecution( "<PATH>", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md index f833f3466a0..a1d6c7b82f6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create.md b/docs/examples/1.5.x/server-kotlin/java/functions/create.md index edaaa1197cc..db0cc56b6bf 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Runtime; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -22,6 +22,7 @@ functions.create( false, // logging (optional) "<ENTRYPOINT>", // entrypoint (optional) "<COMMANDS>", // commands (optional) + listOf(), // scopes (optional) "<INSTALLATION_ID>", // installationId (optional) "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) "<PROVIDER_BRANCH>", // providerBranch (optional) @@ -30,7 +31,8 @@ functions.create( "<TEMPLATE_REPOSITORY>", // templateRepository (optional) "<TEMPLATE_OWNER>", // templateOwner (optional) "<TEMPLATE_ROOT_DIRECTORY>", // templateRootDirectory (optional) - "<TEMPLATE_BRANCH>", // templateBranch (optional) + "<TEMPLATE_VERSION>", // templateVersion (optional) + "", // specification (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md index 83de97038ec..f115bcc1916 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete-execution.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete-execution.md new file mode 100644 index 00000000000..68c11bd4366 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete-execution.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.deleteExecution( + "<FUNCTION_ID>", // functionId + "<EXECUTION_ID>", // executionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md index 6d91f50df92..ca4d4f4440d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete.md index 647da6e5255..94c7da516fa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md index e2414811949..69dfdae97f3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment-download.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment-download.md new file mode 100644 index 00000000000..719d662f7f7 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment-download.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.getDeploymentDownload( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md index 12575adf52b..f039beed2d9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md index 1f0d01b92e7..253ff54bd8c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md index 6b89b16619a..3d01fa49426 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get.md b/docs/examples/1.5.x/server-kotlin/java/functions/get.md index 777bf83a831..c22ccca5c62 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md index bee24c939fe..9a1f1ef35db 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md index d8632aacb16..f2faa02138b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..156e81feb24 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-specifications.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-specifications.md new file mode 100644 index 00000000000..47d941c557e --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-specifications.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.listSpecifications(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md index df66fd7d898..1e1e0e7c8bb 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list.md b/docs/examples/1.5.x/server-kotlin/java/functions/list.md index 2276e55ebf9..1c501fd1450 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment-build.md b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment-build.md new file mode 100644 index 00000000000..62b684fd8bf --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment-build.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.updateDeploymentBuild( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md index b0a9c157eb4..8d285019080 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md index 20610d94f94..4e0576ef103 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update.md b/docs/examples/1.5.x/server-kotlin/java/functions/update.md index dca994349f3..c63dfb47ef2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -21,11 +21,13 @@ functions.update( false, // logging (optional) "<ENTRYPOINT>", // entrypoint (optional) "<COMMANDS>", // commands (optional) + listOf(), // scopes (optional) "<INSTALLATION_ID>", // installationId (optional) "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) "<PROVIDER_BRANCH>", // providerBranch (optional) false, // providerSilentMode (optional) "<PROVIDER_ROOT_DIRECTORY>", // providerRootDirectory (optional) + "", // specification (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md index 3b45db71270..a929468eba7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/graphql/query.md b/docs/examples/1.5.x/server-kotlin/java/graphql/query.md index 508b32647b3..8182ea74009 100644 --- a/docs/examples/1.5.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.5.x/server-kotlin/java/graphql/query.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..6c1eb155ced 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..62880c9e809 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md b/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md index 73120ece03f..2a60a4c5b79 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..703989fa1e3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md b/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md index 7fa35ae1c18..25f53b83374 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Name; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md index ba945190848..116da6f15d3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md index e7289a7bc9c..a80a7452066 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md index 14722d1efc2..ee0d48efe44 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md index c504a84dd3c..7f34b19083a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md index 83a4862a255..23ed2aff0fb 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md index 1984d81f297..2fcfb8b60cd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md index fa7fa7e4515..bcf6da214f4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md index 3962d945a01..7580db6b2c8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md index 01b7e5a5b53..7b927d00b21 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md index 7272a6f9a9a..c1a9fadd197 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..5a6db4a62ea --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-stats-resources.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueStatsResources( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md index 8083af8c66b..74d5e3dbb89 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md index ad4a163258a..360567a5533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md index 06dba931953..180c0cc87a2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md index 90b7eb35ad4..8072577f3ef 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..99c7513fda3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md b/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md index c011ba5dcc7..9bd63ca5c92 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-time.md b/docs/examples/1.5.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..89ec655ea3b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-time.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get.md b/docs/examples/1.5.x/server-kotlin/java/health/get.md index 59badb05432..e81254e8781 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/get.md b/docs/examples/1.5.x/server-kotlin/java/locale/get.md index de09960c97f..8063ce161a2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md index 55e7503bab9..4bc244a0c91 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md index 793c8630588..03b912200fb 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md index 8d45317e25c..9a6ee54a716 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md index bad8ff27d2f..cfab3be5db4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md index 96aac66ab65..079a8397095 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md index 55365ef682b..bab723f5be4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md index fbf5565a1c4..b0435b7835e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md index 61fca2e267e..d0926c16521 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md index 2941fc6cb3b..5dde983120a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md index 4bf3a7cc66f..753a89b695a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md index 18df4badac4..18c1e63bc10 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md index 8a0211c0d3a..1078514b6ba 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md index 946729be4c1..4b2a7bdd3cd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md index 9d7ffcb12ab..6cc120c37c5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md index 904b43675d3..56c7a607951 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md @@ -4,15 +4,15 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); messaging.createPush( "<MESSAGE_ID>", // messageId - "<TITLE>", // title - "<BODY>", // body + "<TITLE>", // title (optional) + "<BODY>", // body (optional) listOf(), // topics (optional) listOf(), // users (optional) listOf(), // targets (optional) @@ -23,9 +23,12 @@ messaging.createPush( "<SOUND>", // sound (optional) "<COLOR>", // color (optional) "<TAG>", // tag (optional) - "<BADGE>", // badge (optional) + 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md index cc6b7cdfe0d..9bc1d2ed541 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md index d443f8d17d8..73ffb67574f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md index 9da521eea82..20e12749b2b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md index 2bde3b6fe6f..60e1749f321 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md index 05a9ab197be..3f69f610360 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md index 1aa89e1d8f7..77ef2d59ff1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md index 738f1fd5fda..f66081490b5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md index f78362dda03..cda11d5bada 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md index fa314c47292..8fa74d8ede2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md index 896e4a30b8a..a122837691d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md index e7ee86bc2a6..808ca0c1022 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md index f9806504283..e1337dc02fa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md index ba02c12b04f..c80fc72eb08 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md index 17aefe1fe77..9c51144bfc2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md index 1565f8bf92a..f90336a2ce3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md index 9129a20e3c9..5e940cff106 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md index 704a2b2b142..74ece13b1b1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md index 53638ef02e7..2e6beaac533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md index 3e8ad4cd9c5..adf64bbec58 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md index 224c2ef93b2..70bb49ae859 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md index 7b31e16cdf1..847ce73f5c7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md index 1cda4d1ea9c..be1aba0eebc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md index a52493393ce..feda90082ac 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md index 3cab92359eb..30250e46880 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md index 1250442af19..d00d4925a0f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md index 32a621cf663..f1eeac02df0 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md index 4e00e16c5c4..c7edc92992c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md index 91b843eea4f..278d0d49089 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md index f38ccd52d03..60137835aa4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md index 14873beec24..b9ac1a93f29 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md index 04748490526..a5d98201f15 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md index 27a90c1ff17..2ee8cb3f1e4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md index 631bdf4b27f..956900d7b8f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md index 881dc3eebec..8512de159c7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md index 700995e90be..74de7d25e29 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md index 468f95891a0..bb8c3c8c2ee 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); @@ -26,6 +26,9 @@ messaging.updatePush( 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md index 7ff3526b66b..f4a65d0b98c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md index 32b9d285d4b..3df74573f4f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md index 099a617998a..79c89c0fc75 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md index 913bd599962..bfca7d32df6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md index 4bc5017c7d3..e3083816c92 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md index 31ab356e61c..6ffb534a3cd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md index c4013dd6709..d80b5ae5c74 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md index 0c6d41f8ba9..1013fbac572 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md index 7f8980d0244..65fb0fcb7e7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md index 7bbb06e50fe..6548d1758bf 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md index 735aef71592..ccb9961b019 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md index 275724fcdb9..92907fc4d93 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md index e6e3d122d3b..8c46ba9303a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md index af498b47d5b..01d423d13a3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md index e2259853f06..63c847f1717 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md index 171cfd62b06..32bff0b051d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md index 17d6e688aa0..650ea4dff50 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md index fc90ab91cfa..5a81ebaca0b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md index edcba745d4e..004dc01f387 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md index 7e1e93469f7..8ab56e32533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md index cf1f9a024a2..6fbd2c3aa41 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md index ade3a575e51..342174ead5d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md index 961228c4d03..3578bcd6256 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md index c16dd8361f5..f7a4ecb66b9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/create.md b/docs/examples/1.5.x/server-kotlin/java/teams/create.md index b709bc7ee1a..e8fb127b3ef 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md index 25e3a399f7b..0fe1e170cf9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/delete.md b/docs/examples/1.5.x/server-kotlin/java/teams/delete.md index 3bdd838cc23..74f5a7c26d5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md index de1c052b6e1..d013d913b2e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md index 86474430a5a..27cd6f9a8b6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/get.md b/docs/examples/1.5.x/server-kotlin/java/teams/get.md index 3fd4ba74758..0416602ae72 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md index 98b1096078c..0260673a093 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/list.md b/docs/examples/1.5.x/server-kotlin/java/teams/list.md index c27e9fed716..a4e85acc5c6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md index 9c86c609da2..8ca3398e6ec 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md index fd2abed1e10..60be82cbf04 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md index 96f50322e5a..8db6f04d91c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md index 790fa3ee26f..91f1492e727 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md index 4e6a2579cbb..01275263dbc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md index 8faeb03496b..c98939bf025 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/java/users/create-j-w-t.md new file mode 100644 index 00000000000..c4538b730d9 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-j-w-t.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createJWT( + "<USER_ID>", // userId + "<SESSION_ID>", // sessionId (optional) + 0, // duration (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md index 134db690e5f..0456a775764 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md index 5e7e665433a..f9dfbe8fafd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md index 48f9070cda9..e97767887c5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md index b10674c74b4..6a3869ce473 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md index eb06445e24d..28d5881f7da 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md index a98d50bd142..43e1ad8db95 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-session.md b/docs/examples/1.5.x/server-kotlin/java/users/create-session.md index 8b20589d200..bc7dfb02992 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-target.md b/docs/examples/1.5.x/server-kotlin/java/users/create-target.md index 5b387723214..6bad1ce682f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-target.md @@ -5,8 +5,8 @@ import io.appwrite.enums.MessagingProviderType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-token.md b/docs/examples/1.5.x/server-kotlin/java/users/create-token.md index 44f0a3c3ee8..9389e0eaef5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-token.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create.md b/docs/examples/1.5.x/server-kotlin/java/users/create.md index 89eb328f557..98891295704 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md index af291b22d52..6e3cb5f2533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md index 54459cdd15a..063a91da894 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md index df3691fad9a..cd5d9ab00da 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md index 3eaaef26389..4ed2713d257 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md index 63981e7b6fb..f0da6e09ce6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md index 6a703faf58c..ddd04602073 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete.md b/docs/examples/1.5.x/server-kotlin/java/users/delete.md index 4dfbe9467be..6a256f87e90 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md index 13ffbb3d590..be33d2095e9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md index a1dc1c077ff..3e36f166039 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get-target.md b/docs/examples/1.5.x/server-kotlin/java/users/get-target.md index c5674c721ec..2ee5b4a965b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get.md b/docs/examples/1.5.x/server-kotlin/java/users/get.md index 55060b59504..8c34ebacaf3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md b/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md index e72fdb2243e..5adb6a50252 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md index 16724f02c21..169b41440df 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md index 6a38abbbba7..f3d2701609a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md index 240f6f9d071..4f3cfd82bec 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md index ee288318561..4d51ece94b6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md b/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md index 2c3e56a91b8..4e62056b48e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md index 680bee0c2bb..a1d3a3a7d96 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md b/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md index 6e925eb8485..ab0457725a4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list.md b/docs/examples/1.5.x/server-kotlin/java/users/list.md index 9d8b0a703a6..a854ba0a791 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md index 7770ee40cca..7423f774848 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-email.md b/docs/examples/1.5.x/server-kotlin/java/users/update-email.md index bc9407b0f38..23e3977db1d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md index 6b3c81be47d..acc3d1b0248 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md index 34bdcc66fdd..eb560e72e09 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md index 7630c81330f..e1fc96f8afd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-name.md b/docs/examples/1.5.x/server-kotlin/java/users/update-name.md index f2b8e98a950..e8bfe567cb6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-name.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-password.md b/docs/examples/1.5.x/server-kotlin/java/users/update-password.md index 4f5c58b88db..bdf31a7771b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-password.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md index 58137b52af2..ce2377be9b5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md index 7b060aa7013..e0a0a4976fa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md index e9f278af1b8..1d1cc7c5ba5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-status.md b/docs/examples/1.5.x/server-kotlin/java/users/update-status.md index ce78408699d..e757ece454f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-status.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-target.md b/docs/examples/1.5.x/server-kotlin/java/users/update-target.md index 8f3ae78a947..23ca8d0187f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md index 0d178a4ca4d..d0bac4f54f9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md index 67686bb0d31..932b8a75073 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md index 416fd7da7f8..0fb3e706e4a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md index e02d47c3be8..cc3b8cb3fac 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md index 90a7c9effdc..b56e48909fb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md index 234e0129eae..a0208cb9117 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md index 4d4775bf8a7..ba66695f15c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md index 48aed258861..0afd790727b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md index 2f041ebf84f..921e791154c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md index 2665e994fa2..270fedaf7a0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md index fbffb4126f5..d1b34b3e52c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md index 5718139a204..62d176d6b81 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md index 925d8616450..b9633e78110 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md index a2e08c63546..038d72e6f43 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md index c1d22f5c8cc..27c6af55fd1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md index 8627df3ddeb..5e6c47cc1bf 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md index cfd0f21ac50..0d42f8a919f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md index e18eaf22e19..19d7c12b5bc 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md index a73686d8f91..3da5010865a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md index 26afb5e7173..51768e3b27c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md index 569502939b5..f6ede24729d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md index 56b69f59bc1..ffa853f3f65 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -5,12 +5,11 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) val response = account.deleteMfaAuthenticator( - type = AuthenticatorType.TOTP, - otp = "<OTP>" + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md index a02389dd632..47b80d77a5b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md index 3698dacd6b4..b2571de0212 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md index 4ff8a23cdbf..5335a0d0042 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md index 8581225ddd6..3705645a028 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md index d64687b3c6b..78478e1eb78 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md index 4c8cb97b936..84f9bc3fe89 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md index 7b281b01081..b1c65eebc21 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md index 5dda161c5f9..f947de3da49 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md index 4550de29329..ba926ae06e0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md index 5703870995f..ee07a486c90 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md index 91a922cde5b..7f23ad30179 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md index e8ff319bbb8..376169965ad 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md index c952b55d155..c10c25e4ba5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md index 6f23864dceb..516f14d5cd5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md index 1a533bfb4d2..99b65ebbc93 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md index a3edc9b40dd..482dfb360db 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md index 2fb5d38ace0..2a9a1a463d0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md index bef9f9a38fb..ebc6d718c9b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md index 711aa36b94f..13f90197f08 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md index 8d62d873ddb..fbb67963d68 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md index b6b13855b92..1f6aa40ddec 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md index eb2c0752f57..87cd3ffeb76 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md index 35adaab9729..1a2600c4f0f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md index fda3f9483bf..32d083b6b9f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md index 3543991fcb5..8626e979841 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md index c75abc0649e..5f83a2bb916 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md index 07adc5311a7..aa94adec109 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md index 19e55fc1a7c..2f8cc25cef3 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md index 02695612f83..33cf99eadd4 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md index b5eb52d4858..0e29e1146d1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md index f60f78ff40c..9929e764404 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md index 22d91ffaa89..8cf4af26fe4 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md index 646445c5a88..73f3fefbdcb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md index bda8ee63d9a..1369000a46e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md index 35378c0579b..95499241a15 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md index 84e5e374a82..cea667bc933 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 733fedef70f..64ac210006e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md index 1ae8865698b..03ca6a4b748 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index 3c39c717a61..d9e0771c9d2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md index 9c7608bcc8a..873e2edd48a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md index 94d928dada7..5e5091be6bd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 43761864488..733fbadf449 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md index 1d6f94c3a69..04e9bfa17ce 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md index f61f8295d8a..6dab46fec9a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md @@ -5,8 +5,8 @@ import io.appwrite.enums.IndexType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md index ae496a8e7ea..6c483bbac61 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md index 5f78d503b67..76dd82dcb9d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 832192ab718..4797b94c910 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ import io.appwrite.enums.RelationshipType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md index 3724e6b1307..06781f236c0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md index e2c52202fb7..33cadc7933d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md index ce481876af6..c17246f776f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md index ad31cd46f54..8fed2d841c2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md index ce4ebe76881..2c85947f379 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md index b399a1dbec1..e920841a93a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md index 791ced39c87..8655b6bc678 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md index 60cc227987d..13c56605807 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md index 1ee14627a7b..6a7ceb22103 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md index 10da0e296d9..79980c5db71 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md index 4d578616735..508e0dae37c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md index ecb05402d08..3935c38ba6f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md index 92923f1b7a5..bb6b17cd193 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md index 7d67ff0425e..b3f26a2e383 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md index df8796e3b1f..9bdfa6e4d0f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md index 53a48bbee45..90cef399a2d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md index 8c653ea5978..6dd29ba2062 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md index 7134f0e8395..f7f332b91fd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index 8ccc39884cc..ebffab74f26 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateBooleanAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = false + default = false, + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md index f7b648f90e9..7ceef8423b0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 3ffb212edd4..676c779bc96 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateDatetimeAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "" + default = "", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md index ef02fdb4cd8..1737be1d3d7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md index 2a7a74ced37..2f1cbd25276 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateEmailAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "email@example.com" + default = "email@example.com", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md index 18ff0a34d70..7c0c92fad6b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -15,5 +15,6 @@ val response = databases.updateEnumAttribute( key = "", elements = listOf(), required = false, - default = "<DEFAULT>" + default = "<DEFAULT>", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md index 315bf5602e7..3d0485f953a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,7 +14,8 @@ val response = databases.updateFloatAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, - default = 0 + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md index 9c61307e7a4..249972d975c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,7 +14,8 @@ val response = databases.updateIntegerAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, - default = 0 + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md index a7959648d8b..bfc0cddce0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateIpAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "" + default = "", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index b58559b2aac..ab121951406 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -13,5 +13,6 @@ val response = databases.updateRelationshipAttribute( databaseId = "<DATABASE_ID>", collectionId = "<COLLECTION_ID>", key = "", - onDelete = "cascade" // optional + onDelete = "cascade", // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md index e6fc440a5a9..32e17beb9c1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,7 @@ val response = databases.updateStringAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "<DEFAULT>" + default = "<DEFAULT>", + size = 1, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md index 84ce862295e..78351133db0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateUrlAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "https://example.com" + default = "https://example.com", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md index e458d69c444..7da795cb725 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md index fe64c02b827..6d20586e940 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md @@ -4,13 +4,13 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) val response = functions.createBuild( functionId = "<FUNCTION_ID>", deploymentId = "<DEPLOYMENT_ID>", - buildId = "<BUILD_ID>" + buildId = "<BUILD_ID>" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md index e961aa3ea73..aba8f0c5f73 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md @@ -5,8 +5,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md index 29f64bcf62a..42267458e0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val functions = Functions(client) @@ -15,5 +15,6 @@ val response = functions.createExecution( async = false, // optional path = "<PATH>", // optional method = "GET", // optional - headers = mapOf( "a" to "b" ) // optional + headers = mapOf( "a" to "b" ), // optional + scheduledAt = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md index e6043609781..e5d33b4f1a5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md index f15566e61d6..d94bdf63787 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Runtime val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) @@ -22,6 +22,7 @@ val response = functions.create( logging = false, // optional entrypoint = "<ENTRYPOINT>", // optional commands = "<COMMANDS>", // optional + scopes = listOf(), // optional installationId = "<INSTALLATION_ID>", // optional providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional providerBranch = "<PROVIDER_BRANCH>", // optional @@ -30,5 +31,6 @@ val response = functions.create( templateRepository = "<TEMPLATE_REPOSITORY>", // optional templateOwner = "<TEMPLATE_OWNER>", // optional templateRootDirectory = "<TEMPLATE_ROOT_DIRECTORY>", // optional - templateBranch = "<TEMPLATE_BRANCH>" // optional + templateVersion = "<TEMPLATE_VERSION>", // optional + specification = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md index 43a8b60d154..9e4e4762f1f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-execution.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-execution.md new file mode 100644 index 00000000000..eb1f59eda7c --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-execution.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.deleteExecution( + functionId = "<FUNCTION_ID>", + executionId = "<EXECUTION_ID>" +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md index db1290a4555..912e7699b6c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md index 4acba272264..97f0b0082fb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md index 7e126354490..b1954498fc7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment-download.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment-download.md new file mode 100644 index 00000000000..13dec6ade24 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment-download.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val result = functions.getDeploymentDownload( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md index cb92710acc3..e844328f58c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md index e0c9dc76ffd..5f981bfc4f1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md index c9a0f11a2e4..8d6ee38cf21 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md index bffb1a074ee..f56d8b9eaaa 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md index bb4b0b8f417..cf7deffa736 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md index 04d6216e490..8f4546cb624 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md index 099b87b9369..a464156a1c0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-specifications.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-specifications.md new file mode 100644 index 00000000000..8d86aa6cae5 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-specifications.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.listSpecifications() diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md index c1521632da3..4876517279c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md index c04efeea40e..9a585017da5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment-build.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment-build.md new file mode 100644 index 00000000000..6adb07a7817 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment-build.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.updateDeploymentBuild( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md index 85b0f65cd5b..fb95b08abc2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md index 010de12e8e8..db9438c667a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md index 0dc8ec3797a..d36c7610180 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) @@ -21,9 +21,11 @@ val response = functions.update( logging = false, // optional entrypoint = "<ENTRYPOINT>", // optional commands = "<COMMANDS>", // optional + scopes = listOf(), // optional installationId = "<INSTALLATION_ID>", // optional providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional providerBranch = "<PROVIDER_BRANCH>", // optional providerSilentMode = false, // optional - providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>" // optional + providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>", // optional + specification = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md index 9024c0ecb87..d4d2fd2dc26 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md index c5e616583ae..79457c1e144 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md index b381dc2bcc4..c84072504b9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md index 0359605ad87..20ddb89ad3b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md index 48b1e06d3ef..714a2709a90 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md index 92553e733b9..c707be39110 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md index b8384d31e6e..5c5497a4c06 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Name val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md index 0f91e7758af..8a69bc7be69 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md index 139268975ee..4d0cb3a0e6d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md index af6e44290d8..1b07df680e8 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md index d9b020099fc..fb1dce69f80 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md index c7f7a0a0780..d3f11862424 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md index 37f2c676004..2a045955cba 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md index f0f2bde0c77..6467a390ad6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md index d4dc40aa19e..143dc409aec 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md index ffb71923c47..e85e4258327 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md index 300814c7dd9..f287e78d4a1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ac95abc6368 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueStatsResources( + threshold = 0 // optional +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md index 11c31641053..a97db61f2af 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md index e5a9ade3429..fcfcf108e13 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md index d4d56dd3774..6452f1a76e9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md index f9749e9eb02..5aa235ee315 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md index cc2664b7908..b2c9987353f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md index b4a35abd019..7038ee2b5a1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md index e121cb9d4b6..7c50ae424b2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md index 49e229ef9bd..c53445ff991 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md index 9d4853f6a63..b8dc768a0df 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md index 084581055e9..784e688f4d1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md index b4be20b1626..6cad16e4a92 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md index f09845708dc..cfec468dd5c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md index 9308be7dc19..06585ad248d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md index 4b2f1b1625e..7789bbeff50 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md index 2ab56dbf311..6c7f7097d3b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md index 8401d258c3e..a20096e3352 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md index 56f2b48490d..2342e3c4ebb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md index d2125dc0a5b..8a58fe8672c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md index f5d76790f44..02b0651b681 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md index a066bc6191b..4e40c7ff3a1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md index 343ba99871b..779596cd78f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md index 0d1c55ce9f3..a73a27ff08e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md index e3bf36cc061..31eb606e288 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md index 1e783335768..f92a49d627a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md @@ -4,15 +4,15 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) val response = messaging.createPush( messageId = "<MESSAGE_ID>", - title = "<TITLE>", - body = "<BODY>", + title = "<TITLE>", // optional + body = "<BODY>", // optional topics = listOf(), // optional users = listOf(), // optional targets = listOf(), // optional @@ -23,7 +23,10 @@ val response = messaging.createPush( sound = "<SOUND>", // optional color = "<COLOR>", // optional tag = "<TAG>", // optional - badge = "<BADGE>", // optional + badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md index 9b413e89069..ee552e6059a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md index df4c616392b..56ab28e03db 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md index 701094d428c..34f61c9889b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md index b6f591a522a..6fbcffb09eb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md index f263dcc29fa..17643dc6a54 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md index 57b3e68e594..805cd583279 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md index 88084239b3d..1d44fcab2a7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md index d6abf3245d1..d88b9bb9d0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md index 110abf47736..6a6b9bd4b27 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md index 24920ead981..3df99e97dac 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md index bccd07769ec..59e5d149fe3 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md index c437e34b887..3ecd64deab2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md index 51012d89640..4a7c18faf99 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md index 83b460de9cc..4859c0a621c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md index f7f400c41f8..0b925ca8a0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md index 8fbbdc02f63..01db389b24c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md index 48fdc64ea24..53e5cf32d56 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md index 23bae3ee48a..036f17f757d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md index 21e5ae741de..09d36884f3b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md index d3062ea7ffc..30489041338 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md index ca4ab22ca91..e9e509e4c9b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md index 51d7723d4d0..e0a52cb402d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md index 2779e86147a..66439e2a4c6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md index b331ccb444c..5472d5f46ff 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md index d257171059d..a95e8543289 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md index 415d6119146..a99e8226d18 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md index a9d5d5ab0b8..7b7d2f03840 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md index ed19b2a9902..4550f1e6589 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md index f14c1718489..2bd5c5e79c6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md index 52e03d816ff..83a60830b14 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md index 9af06277a9b..29baf1896d5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md index d80a715a52b..579e0836253 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md index b64f48ae448..4d8534c2c47 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md index 1ad9e35f1a3..9caff421c84 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md index c5c690bc6d9..1a6a0b49ad9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md index 4469e10612b..0ba72c461ce 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) @@ -25,5 +25,8 @@ val response = messaging.updatePush( tag = "<TAG>", // optional badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md index f13dc221045..9f6a5a96d8e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md index 1c0ef7f25aa..d2584f548d8 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md index cb8a9cea549..353cbd01801 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md index 752cf26eb23..7f008e8dbe6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md index 40e466c5646..465d76b4da4 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md index 601d676dcb7..9a4d93e9c33 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md index d16de03d8e8..14e8ac51029 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md index 9a2002688b7..68e894973dc 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md index bfd27758573..2c7a5e8cf9e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md index 209aef03894..4d432f73108 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md index 08419ef2c0b..0c0119e556a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md index 8789d171388..a2203ff6862 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md index 5209db7e807..22981035d1a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md index c26d90021e4..5b17c5c8b00 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md index c8e007b1a5e..604ec05a26b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md index 0635561cd5c..46b02e77302 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md index 3362bb03bd5..88be42f6f58 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md index 4005a6d0b18..b4ad81fcecd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md index 5fc6d6740fd..a6d2d3d85d7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md index 942490ef410..4b22970641e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md index 50fcda67faa..e7c3d664388 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md index 45bcf390c0c..4040dfb4f9d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md index 05fb981f059..96d4b08f9ac 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md index 59cd67ed447..250502ecc96 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md index 9b1ceaa50d5..b66029f08ea 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md index 7f703a64421..0dff54515ff 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md index 678182b3ff0..9a75b2ae72b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md index 860ded76632..77c6ae5d1a9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md index 331d3c33176..2700c893ae9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md index dfd0a53b123..a7be374a46e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md index 8f942472c40..916252dd617 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md index 6d404843635..5af95dbfc7f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md index d72eace77fd..75c4a73731b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md index 61b3622f4f4..556e0a3394d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md index cfa502215e3..8e6a2a237c1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md index 60bb17f003b..c9153d359a3 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md index 47e9e3447e0..a01f6d54c3c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 938c90dd1ca..b4758e4aba5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-j-w-t.md new file mode 100644 index 00000000000..137847d13b1 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-j-w-t.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createJWT( + userId = "<USER_ID>", + sessionId = "<SESSION_ID>", // optional + duration = 0 // optional +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md index cadc7e55b66..f9d7cb2f120 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md index cd63135084f..b3a3950f545 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index e473698af91..87d74aac8bb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md index f169d38a08c..0be03bf8a00 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index 738de127e2d..f651d3fc586 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md index 9a547bd2490..2502312f55b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md index 0eed0ceec4b..4b0e5dc277b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md index a683cb0fc90..4a7856bd61c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md @@ -5,8 +5,8 @@ import io.appwrite.enums.MessagingProviderType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md index 0d39bcc8dfe..bd8f76d9be2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md index 8983f6fe475..b5bcee929fc 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md index 002df8eb9f5..5ab0cb2eec1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md index 59e927e3732..2c0bfae3bcf 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md index 56df063f37b..60989d4c6a7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md index c9fffaddce9..0127fa3183f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md index 51b92ea0392..26d7c703d9a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md index 50e641d1c62..6be6652c32b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md index 508e72e5964..e250c44b7a7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md index e2e75541b39..5860b4cca68 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md index b89f0fdc5c6..76545377081 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md index cd89cb7b68c..be8bbe81cab 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md index 9f296b5bda2..829843065ba 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md index 0d723c02620..40acf170747 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md index 4e13335f7de..05156dbe935 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md index 3c5ece22e4c..8868d0d30bd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md index 498644cf73a..5a3d2ead352 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md index 162a66b578e..25d9a4a1127 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md index 7d96f2521f9..bc1c6a17623 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md index a2133550c2a..c14ebd7b829 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md index d2eb67f8452..d017592a863 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md index 8744fecd67f..e86ac0de468 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md index ea2e7c538a8..3f5f2937e5c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md index 27f1437be41..b7a06443380 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md index 04141830762..ecc29480a8d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md index 723599f426d..b8fa2c503a5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md index 50e9255e3f8..a169f3df781 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md index 96db1f99388..32d164df29a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md index 00fd47fb36a..152226767c8 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md index 9b311aae608..bc8f4c626fd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md index 144266201c2..f00a15d0151 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md index d2e7041502d..cc8dcf6e742 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md index e568cc9b446..e546ba5705a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md index 9326748c04f..1827c6a95b5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md index 4109ee4fb9e..6f74d501b00 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md index de09b8a176f..90a916143da 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md index 212645934e9..42097bb1a23 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md index 72808985c19..34aabddad7a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md index ee95c2478fa..0f218a2bc02 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md index 6df2696a849..673e1e077a5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md index 1a0be7c30cd..cb6ef36732f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md index 54f32dc79d7..0305e029917 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md index 8ba238064e3..301d83d0405 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md index 4cbd16336da..c653ae55b20 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md index d0c12a9c93d..9140a082cb0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md index 62dc22a879c..7538a9d01ac 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md index 5258ee71440..04d5bc08c2b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md index c1940fdc7c6..15dcf8a15f2 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md index 6595eaf35ff..ed83848e7ea 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md index 8ad93ce3774..8b2751b1a5f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md index 2c3421c812b..14456ef69ff 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create.md b/docs/examples/1.5.x/server-nodejs/examples/account/create.md index c32343efd80..860e341a470 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md index 40954647bd2..6d5126ed9ad 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md index 3a72939693c..e1534a66bf3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md index 436a5e1a9f2..071133465ea 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md index 7d756dff143..1cf8154acd8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md @@ -2,12 +2,11 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); const result = await account.deleteMfaAuthenticator( - sdk.AuthenticatorType.Totp, // type - '<OTP>' // otp + sdk.AuthenticatorType.Totp // type ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md index bbe3d070625..d29810f2674 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md index 943f4bb6ca8..496bd4a5f69 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md index 9fe1d11cf33..2bada1bafa9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md index 4b21918c8db..9ed003c69ae 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md index acef3abe9f2..aeaaa149336 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get.md b/docs/examples/1.5.x/server-nodejs/examples/account/get.md index a72e90ed435..b1fc61f1ee9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md index 3910c325b41..9191d012ed4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md index 019cacb91d8..642034d796a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md index 04e4797520f..08dcf812f40 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md index c6be1f22cc1..e2c9683ee69 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md index 17793ca2b95..a8b423f95dd 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md index 401ddab8735..7c9b7d49215 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md index 53dcc45ae47..4c0c6c23fb5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md index 318976d0e61..30c36230ac0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md index 4bcda8fcb09..56d2b02f049 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md index dc2e5f13fe5..c8f1773daf3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md index aeb5f2bdc57..bdb1a538afe 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md index bc3af027a84..16a3d3cca16 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md index 93412144a2f..df510029d31 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md index 797eb9afc50..76021bcb89a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md index f38c1f0c647..40fccba90e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md index 0144cbda2c2..93f35a8d3e4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md index f305df70849..11982b7c816 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md index b8a94c89cfa..6f2700358d1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md index c932694eb57..09bfc64d427 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md index 2ae04253055..64ec68ebd9d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md index b5692625c67..cf65e828651 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md index 3c7303ec0f6..cc3678ec213 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md index af0b31bb889..e03566f2766 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md index da49225bc93..ad6d0d4b686 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md index d3aa637c9e3..5ffcc344b1b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md index aac0795498b..09804035435 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md index f2b3ea9ad4f..53b912f5a87 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md index ee3b07dc206..5a72fe3bcc3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md index 9225048a4cd..b9d41fc27a1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md index ff3dc25757a..0a2723561c3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md index 382322d7c47..7a04ed02fce 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md index 2f37e3e6862..7119a4e500b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md index 01119abdba9..ba40de8b43e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md index a99748edbab..3e1c76945ba 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md index cbb8fe2bb6a..6f2da81f39b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md index 468c91597f6..9439f8f5df8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md index a85114fb986..7ed62239229 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md index b29265cfc9a..73cdf3912e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md index ad0532b5199..479b9d87549 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md index 870d7241667..c88087f9441 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md index 1cbf17b729c..7be4bae6a23 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md index 3abde18839a..03905f4e86f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md index 9223af1aaeb..741249bb00d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create.md index 36f01c7c647..792bbf1c901 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md index b67c0ab4c36..b8b2d47a65c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md index 1dd41af615c..bb72b9eb84b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md index ddc6625f5b4..05183b5e042 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md index 2e98d498d41..0f50d7d2f6f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md index ff14436ea6c..79ca89ddba1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md index ab530a84595..86dccff42bc 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md index b2622ccbce9..f107c149c66 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md index b4fe065924e..edd2cb210f4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md index b14322f21ea..3c1039cd1ed 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get.md index 223f09caa34..ca5dd328e1e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md index 02e65dd8e84..fb0264f8a11 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md index 6f44cce88c1..e5f725d1f80 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md index 066e2733c33..346fba0abdb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md index 08fa9fe1eda..7acfc918ef1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list.md index 23c429934ce..f887719cbd3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md index 1298c51e38f..e6329b66749 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md index 9af17fe330d..b9bbeb8c45e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md index 2395bfd3ada..ef69c7e4b5b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md index b80b1031d6d..2e087ca7d06 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md index c06a21363be..1fe9e572d42 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md index b04826495e5..ec9e3bd2cb0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -13,5 +13,6 @@ const result = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md index 953492309b9..b064bf7c9f8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md index fcdc509cb45..f686612fa2c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md index 91d928abfdb..019b4f2dbf4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md index 72b6a70958c..2668380b504 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -11,5 +11,6 @@ const result = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - sdk.RelationMutate.Cascade // onDelete (optional) + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md index 5d9bb738ddd..6aecbb591e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,7 @@ const result = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md index f7acda30bfe..36d10953996 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update.md index d57e811bd1c..4b24cdddf90 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md index 94661244052..c026a960c63 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md @@ -2,13 +2,13 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); const result = await functions.createBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>', // deploymentId - '<BUILD_ID>' // buildId + '<BUILD_ID>' // buildId (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md index 89ae42dad3e..1928e4c5a93 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md @@ -3,8 +3,8 @@ const fs = require('fs'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md index 72b6d669431..4eec409ef09 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new sdk.Functions(client); @@ -13,5 +13,6 @@ const result = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) sdk.ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md index 6290edc4f59..60a93666b89 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create.md index 8f8aea8c416..cb4464825c4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); @@ -19,6 +19,7 @@ const result = await functions.create( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) @@ -27,5 +28,6 @@ const result = await functions.create( '<TEMPLATE_REPOSITORY>', // templateRepository (optional) '<TEMPLATE_OWNER>', // templateOwner (optional) '<TEMPLATE_ROOT_DIRECTORY>', // templateRootDirectory (optional) - '<TEMPLATE_BRANCH>' // templateBranch (optional) + '<TEMPLATE_VERSION>', // templateVersion (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md index f84b635cf74..a9038bc6eac 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-execution.md new file mode 100644 index 00000000000..28b5e415b97 --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md index 87b69e46bf2..f3cf0186d00 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md index c793aa887f8..43acc4b130b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md index 496f3496270..16a77908e35 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..a15215dd3a0 --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment-download.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.getDeploymentDownload( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md index c801f570f88..1c10a92d4ad 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md index b1168edf99c..7be4378c4e0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md index 9a8932b8369..64150e0f552 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get.md index a6e561b233a..26807e7908c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md index ff524ba6495..67c3c3c5ad7 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md index a837455e577..26aa02e16e8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md index f128b1c5193..729cce7c2b3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-specifications.md new file mode 100644 index 00000000000..4942bc39187 --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-specifications.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.listSpecifications(); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md index feeaa118a38..f213d0ceef1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list.md index f6751ca26f4..ba7365f936a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..b492af8254a --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment-build.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.updateDeploymentBuild( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md index 00eafd350a9..82543900df7 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md index 068abee2f9c..657b0bd10ec 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update.md index dc1da25b675..b82dc35f368 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); @@ -19,9 +19,11 @@ const result = await functions.update( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) false, // providerSilentMode (optional) - '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md index ee32b9eee7e..64b2393426e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new sdk.Graphql(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md index 887b5bdcb25..24a6e56e67b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new sdk.Graphql(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md index 1555b6d20cd..fc98ff937c8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md index c418a4995ed..9289cad7e44 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md index 9f25b69a977..637f30bd211 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md index 36519bda47d..6cca907ba35 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md index 0cff48836cf..2ce2dfb6eb1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md index a17f5c62919..36dc5ba39e9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md index 93b27631e0f..ef09f92d929 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md index efb52c64c8b..1095c398201 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md index c3ae629bb08..fcd113aaa3d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md index 4a7f96acf03..6a6f5175d7e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md index 94599395629..05cd6e63dc9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md index 2ee3693206a..e0a75b8de01 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md index 6c099d31c07..253e9ba004d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md index 9494c636ddd..3db1f6f5aee 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md index 6e94b98b774..a2034495376 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e469391403d --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md index e7651bebf36..584518a18a0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md index 6902e1df98c..919d0973e25 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md index 4e53e286477..54b6ba4dd2a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md index 46fd991021a..b6806d5da61 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md index 29daa871206..d04610df9b6 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md index 7b7ad5cb33b..cd6d494d846 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md index 5768c15847d..71caa3ff8a5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get.md b/docs/examples/1.5.x/server-nodejs/examples/health/get.md index 75e5726c396..d92cb944aca 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/get.md b/docs/examples/1.5.x/server-nodejs/examples/locale/get.md index 27e8f0665ca..eb7353d3a8f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/get.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md index 9bcbd72ea79..c95a8522389 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md index 3ba7f795f7f..ffce38e71eb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md index 309cca604bd..3bd63b33a6f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md index dca14893d86..be39d0f87cf 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md index 808d3ea022e..5496a1f747d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md index 2e1216bb66e..ff67f9f78e5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md index b01c5f06ad9..d6753d33544 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md index 6666c40cab6..dd7555f3bc9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md index 11622dff768..fedbc556e32 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md index fbec7a369ed..35ac684b93e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md index d53252e494d..8285cea937a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md index a296b77aace..80ffa5839a1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md index 2ce3bb1e9d5..2b5f657182e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md index 5e6a44a1c8b..c8dcb38592c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md index af57507d6c4..bb985387484 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md @@ -2,15 +2,15 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md index 23f2779ec5d..b1e04ab0a33 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md index a81fc24279c..06bf4fa7e67 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md index 125c8e3f984..65d4f4026af 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md index 786aac4fad6..75dce904f27 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md index d03d2e6534e..9c69f276711 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md index 75b9321a5c7..e5d2a9774c0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md index 5642b48838a..544be15a2c6 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md index d3f301dc016..ef41b803af8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md index 1bbd1b5dd81..22fe4121ceb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md index dbaa0aaa271..908f09ed1d7 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md index 68b8dba88a9..78270b7f841 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md index 39678390b29..fd664515fe4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md index 22ed0af8f7e..aec3a7ed5df 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md index fa389953f2b..7b4a360e8c4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md index 22a3d35adf0..d4f8bfcc6d1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md index 4f0b92c8590..7b466226854 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md index 17d1e580ea3..796bcbc768c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md index 96ca08ad2bb..3930e54bcbe 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md index 8075b0c891b..68fda14e940 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md index e83f316d15b..01b941b652b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md index d09b3e58670..4c0ee7a3072 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md index 8e267daf6f8..625fedb2b93 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md index b9273f1ecaf..4d3a63b93e8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md index 17f8fefdc8c..61077f299d5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md index 05e27aaffab..85b91ca5fae 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md index 0e509ab5f67..cafdf9bab1a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md index 9f63540824c..fe0a09487eb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md index ae16c26a971..5d0419a7a56 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md index 1ec27d08453..894383dcf13 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md index 8498b4f9749..23d806e0138 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md index 92117111b21..a6798eeb6c5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md index 0de756c6d50..fd15afd0744 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md index fc084ff7901..3d343993aae 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md index 850fcf6acad..5bcc4d1ae47 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md index 7f84b5d2f1d..02f091f3d75 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md index c2de910489a..700c3a99de5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); @@ -23,5 +23,8 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md index 44251f74e23..dbb8ff9fc69 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md index 969bab0a1e5..f64134fa5bf 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md index b9c94398e38..22a5fe59643 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md index 172dcb6bf4d..03c266be58b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md index 3f8f20c1224..35b744347bb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md index 2f331688c41..dd668f82c5c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md index 788c0ddeb49..d90c95d845b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md index eeb34f6d584..08690a195e1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md index ec187612074..c6d2b8c0777 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md index 4b5dc9ac055..ba9f1029509 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md index c961c7915cc..91a5126e901 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md index 7440143e496..067307cc5d8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md @@ -3,7 +3,7 @@ const fs = require('fs'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md index f3db8caa061..606ffba7197 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md index c7dbe9ee620..c5b9df92960 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md index f9d0385381b..711753d4095 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md index e94ba951622..cbd4c1615c3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md index 7ce73718b39..be7b974be83 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md index 1ddfa1cd2a5..f5722d06cd5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md index 54d41b1ba4b..61b14e6bbac 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md index beaea21ed21..ce012c450e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md index 001c18630fb..a9dbaa8f80b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md index 483b4cc42d1..31e131675fa 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md index d508bbbf7ad..c60b2e4a8bf 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md index 642fb0ab482..46066241578 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/create.md b/docs/examples/1.5.x/server-nodejs/examples/teams/create.md index dc30f1009c1..cecf4f60241 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/create.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md index 08dcf39a71f..933cd7ccf8c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md index 6956f5f5453..50963b3e1df 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md index 1fbd9933180..b638adeb125 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md index aea783094c8..68f19a41173 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/get.md b/docs/examples/1.5.x/server-nodejs/examples/teams/get.md index 2fbfb3ef087..38ee6e4c41b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/get.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md index 22ce29961d3..c66ec7d601a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/list.md b/docs/examples/1.5.x/server-nodejs/examples/teams/list.md index 51f200f26c8..d50527bf127 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/list.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md index c97f0fd9640..80660e94f9b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md index bb8edccad34..068cc55bca2 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md index ed349bb4b5b..217412020fe 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md index 3f396b6c149..9d6a6f5f87d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md index 942f3d09049..e96a797d052 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md index 2ab4974a51f..be14d217a03 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..e615b1ee5b0 --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md index e862f56d3e0..77a7d70885d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md index ad7d0d49df5..42945293c12 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md index 20f96764081..a5784d7ded5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md index 3e2707f7d62..a72e373040b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md index b012154acc2..b27fe318aaa 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md index 0920b591091..60b61be49f6 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md index 0a79f5c09a4..2672905ef78 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md index 79e889c261c..099b00379bc 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md index 971ad967ae1..a399313104f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create.md b/docs/examples/1.5.x/server-nodejs/examples/users/create.md index 95e6c4c5bc2..e8fb4cd9270 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md index 384a20b63d3..4ce6ab6f4db 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md index 611039b6d5c..46f5203da1f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md index 5be1ed403f0..1f00e963ea1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md index ec24ea9867f..168f4948bce 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md index 4ad7e1689c1..4c320fc4a7c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md index d857d7f3ab7..6505a8bb49c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete.md index e30be84ddac..4d6c9963e75 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md index ef67a0aad26..3e97065fa1d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md index 04ed0049293..fda205b04d0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md index ef44e9b2942..1d93a1b1623 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get.md b/docs/examples/1.5.x/server-nodejs/examples/users/get.md index 3d3eb15976d..9d361573253 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md index 87b1523b70f..70ad6bf14cc 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md index 1ead975092d..0ba1345397e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md index ad90cfed509..5636e021b93 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md index 51631be604b..bc4ce5e8b75 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md index 601410b2860..6396a694e50 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md index 4efaad18daa..95deee8d800 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md index b07fb87e4f0..de4aa3d424e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md index 547f496e3e1..2d2a6d26c4e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list.md b/docs/examples/1.5.x/server-nodejs/examples/users/list.md index a1ba8bda8ad..664d32c625e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md index f8c9988728f..560ca3e870b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md index ec27032ed8e..eef17615ee2 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md index 9bfb286c979..ec27094275a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md index bc64df375a9..56ef9b20222 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md index 2726e5825cd..7c7944429a0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md index 388c82d331f..5478a78bb06 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md index 40fa2fb6bc5..856e3a8576a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md index fdfa81645a1..654e7833d00 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md index c1d3276a8a7..8cc4af0513e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md index 4114565364c..f80dae11786 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md index 0b56965b1e5..04a18a26365 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md index c7d995d8766..3322867dba9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md index 09f1fd995c0..78cf5f81b73 100644 --- a/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md index 950bb4a5e42..4cf953855c7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-challenge.md b/docs/examples/1.5.x/server-php/examples/account/create-challenge.md index b81a7b47780..336beb4f0f8 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md index 3fd96f3d583..b0e4d75c900 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-email-token.md b/docs/examples/1.5.x/server-php/examples/account/create-email-token.md index 1477366e0e5..afa9bc90940 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-email-token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md index d59316f4ea0..2658a66f2e6 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md index e744157d870..1ac0087c57e 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md index 1b3d176ec6b..7833852043b 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md @@ -6,7 +6,7 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md index 5cef5108896..a58d674d301 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md @@ -6,7 +6,7 @@ use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md index 8adf24711dc..d82a97ab0a7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md index 105fbd2bce8..ee60581366a 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\OAuthProvider; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md index dc97ef69923..21b9ef1313d 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md @@ -6,7 +6,7 @@ use Appwrite\Enums\OAuthProvider; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md index 43ff008941e..72462ff1752 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md index c4b52f3a35c..cb81da53af3 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-recovery.md b/docs/examples/1.5.x/server-php/examples/account/create-recovery.md index b35c58f90eb..a924379cd49 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-recovery.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-session.md b/docs/examples/1.5.x/server-php/examples/account/create-session.md index 71fa75ceabc..aa089ae586a 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-verification.md b/docs/examples/1.5.x/server-php/examples/account/create-verification.md index b1ca321cf28..99929f1a2a7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create.md b/docs/examples/1.5.x/server-php/examples/account/create.md index c07c2d777c9..2b25cde4575 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create.md +++ b/docs/examples/1.5.x/server-php/examples/account/create.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md index 3c1b48f555a..67447335413 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md index 3582a6b9548..5b721788995 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-identity.md b/docs/examples/1.5.x/server-php/examples/account/delete-identity.md index 06a6a389b52..31e5f429468 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-identity.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md index 78a304f7b2f..5367409d4a6 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md @@ -6,12 +6,11 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); $result = $account->deleteMfaAuthenticator( - type: AuthenticatorType::TOTP(), - otp: '<OTP>' + type: AuthenticatorType::TOTP() ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-session.md b/docs/examples/1.5.x/server-php/examples/account/delete-session.md index 9b06705854a..d44aca87fa7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md index 7f927fa1f87..bf9e5c1fdcf 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md index 795559b1db8..43c3f06b375 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get-prefs.md b/docs/examples/1.5.x/server-php/examples/account/get-prefs.md index 57990c174d5..808699ab445 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/account/get-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get-session.md b/docs/examples/1.5.x/server-php/examples/account/get-session.md index 52360026618..dfd1c23339e 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/get-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get.md b/docs/examples/1.5.x/server-php/examples/account/get.md index 4b6d8e2b50a..427632d2d0a 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get.md +++ b/docs/examples/1.5.x/server-php/examples/account/get.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-factors.md b/docs/examples/1.5.x/server-php/examples/account/list-factors.md index 09a29d4e66b..04fcca08aaa 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/list-identities.md b/docs/examples/1.5.x/server-php/examples/account/list-identities.md index da36bbdefe9..d9289212770 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-identities.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-logs.md b/docs/examples/1.5.x/server-php/examples/account/list-logs.md index a83c39a691f..72199a2d957 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-logs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md index 448f18d296c..d670b97c8ab 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-sessions.md b/docs/examples/1.5.x/server-php/examples/account/list-sessions.md index bae339f965f..bbc1b788abd 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-sessions.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-challenge.md b/docs/examples/1.5.x/server-php/examples/account/update-challenge.md index b0e85bd70b3..de3c0ed533d 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-challenge.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/update-email.md b/docs/examples/1.5.x/server-php/examples/account/update-email.md index efe3d996bc2..c5fd462047b 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-email.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md index 5247ec43b73..9489b96a150 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md index 1fa3422e354..e80adf9a865 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md index e97fff565bb..d3c36a3a9ff 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md @@ -6,7 +6,7 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md index d0f278c1601..dcc5dcdf514 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md index 7b6809f0487..cf6204a3003 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-name.md b/docs/examples/1.5.x/server-php/examples/account/update-name.md index ea6353f5926..a55a0767916 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-name.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-password.md b/docs/examples/1.5.x/server-php/examples/account/update-password.md index dc873db4338..9ef275701c6 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-password.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md index 9681b354749..973d29d04c2 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md index 9c3d3b76fac..a1164474c08 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-phone.md b/docs/examples/1.5.x/server-php/examples/account/update-phone.md index cbaf93a73ba..be489f7d640 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-phone.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-prefs.md b/docs/examples/1.5.x/server-php/examples/account/update-prefs.md index f0574710ec5..0d47ee89573 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-recovery.md b/docs/examples/1.5.x/server-php/examples/account/update-recovery.md index 5b7f88bb7e4..523a61779e8 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-recovery.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-session.md b/docs/examples/1.5.x/server-php/examples/account/update-session.md index d0220daed39..3eebb12c3c9 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-status.md b/docs/examples/1.5.x/server-php/examples/account/update-status.md index e5d51ec9d79..d343c95f2a0 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-status.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-verification.md b/docs/examples/1.5.x/server-php/examples/account/update-verification.md index b7cd6f95281..a03e87fd96e 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md index 8131bf3f840..49b48af592f 100644 --- a/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md index 02bc411a104..d7e7e76e857 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Enums\Browser; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md index be934277094..55e2516f31d 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Enums\CreditCard; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md index ff48929407d..5f5c5d7d5bf 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md index b2cd79abc9f..2e5e4b648c8 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Enums\Flag; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-image.md b/docs/examples/1.5.x/server-php/examples/avatars/get-image.md index f069e7f659d..0ab77fea0d7 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-image.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md index 448e1a6dceb..2bd0bbeb398 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md index 8d19ddd752d..05f8128c911 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md index 9344cff885a..823dd033452 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-collection.md b/docs/examples/1.5.x/server-php/examples/databases/create-collection.md index f5c5cb39f92..ae886b9f7d8 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md index 3169914f206..fb3ce709cea 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-document.md b/docs/examples/1.5.x/server-php/examples/databases/create-document.md index 83ffc07566c..f68ea8104dc 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md index c88a039521b..b2f7770f4e0 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md index e12bb369593..de2553ce82f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md index c685c6a654f..ad534aa4bef 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-index.md b/docs/examples/1.5.x/server-php/examples/databases/create-index.md index b6582349fbb..7f95d3f8185 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-index.md @@ -6,8 +6,8 @@ use Appwrite\Enums\IndexType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md index ef63e05fc55..fb481188e76 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md index a3d9de9aac8..d40e23729e8 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md index 1d262cf8ed0..4b353f1897f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md @@ -6,8 +6,8 @@ use Appwrite\Enums\RelationshipType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md index 2a883973944..a04dfba7e01 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md index 299ff706449..bfa8af0058c 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create.md b/docs/examples/1.5.x/server-php/examples/databases/create.md index 10f46ff3ca2..3b9881a60ac 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md index 097e7f0aab1..2db4c762113 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md index 5c3606bf281..4af5130647f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-document.md b/docs/examples/1.5.x/server-php/examples/databases/delete-document.md index 892dc03ca06..05a3abbc68b 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-index.md b/docs/examples/1.5.x/server-php/examples/databases/delete-index.md index f0ba6e76cc9..67cda1205f7 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-index.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete.md b/docs/examples/1.5.x/server-php/examples/databases/delete.md index 999fe3a2e34..2480a7c825b 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md index 87f684e7091..a9dad4bc407 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-collection.md b/docs/examples/1.5.x/server-php/examples/databases/get-collection.md index cf9fa777b10..deeddec4ad7 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-document.md b/docs/examples/1.5.x/server-php/examples/databases/get-document.md index 25bc79a79bc..851e2d57479 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-index.md b/docs/examples/1.5.x/server-php/examples/databases/get-index.md index be8fab39daa..a6e60f599dd 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-index.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get.md b/docs/examples/1.5.x/server-php/examples/databases/get.md index d30acdc658c..7234b2369f4 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md index 2e087d026c6..fb53eae371e 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-collections.md b/docs/examples/1.5.x/server-php/examples/databases/list-collections.md index 0f43e4d05f3..941e4a6e577 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-collections.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-documents.md b/docs/examples/1.5.x/server-php/examples/databases/list-documents.md index bead79b364a..6ccddf60932 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-documents.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md index 2ba17a45982..b3935fc10ad 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list.md b/docs/examples/1.5.x/server-php/examples/databases/list.md index d2bfe71d48d..d5d078f8ece 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md index a070a833271..133fbb8b47f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateBooleanAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: false + default: false, + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-collection.md b/docs/examples/1.5.x/server-php/examples/databases/update-collection.md index c9232170c4e..790bb2b9c80 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md index e4e89ad9fc0..4773e54537d 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateDatetimeAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-document.md b/docs/examples/1.5.x/server-php/examples/databases/update-document.md index 837653ff9ac..a1b70187111 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md index 518a255b37b..9c1bdb48bdf 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateEmailAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com' + default: 'email@example.com', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md index 55368c61c18..88229bc999d 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -16,5 +16,6 @@ $result = $databases->updateEnumAttribute( key: '', elements: [], required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md index a7ec2387185..39ad3b1ce27 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,7 +15,8 @@ $result = $databases->updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md index 4567a3cd33f..af4957aa05c 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,7 +15,8 @@ $result = $databases->updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md index 8e7c87b9a82..e88e75c2b61 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateIpAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md index 756de782634..0afaea27b55 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -14,5 +14,6 @@ $result = $databases->updateRelationshipAttribute( databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', key: '', - onDelete: RelationMutate::CASCADE() // optional + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md index 819aee45e6e..721ba324de2 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,7 @@ $result = $databases->updateStringAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + size: 1, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md index d7f9c8981b3..1825e558455 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateUrlAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com' + default: 'https://example.com', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update.md b/docs/examples/1.5.x/server-php/examples/databases/update.md index 484875a7a6b..d9bf5e97382 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-build.md b/docs/examples/1.5.x/server-php/examples/functions/create-build.md index 6d60cb83242..429653c3c57 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-build.md @@ -5,13 +5,13 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); $result = $functions->createBuild( functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - buildId: '<BUILD_ID>' + buildId: '<BUILD_ID>' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md index 370ca1d048f..90f4c7ed18e 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md @@ -6,8 +6,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-execution.md b/docs/examples/1.5.x/server-php/examples/functions/create-execution.md index 59493d4adfb..4c62b9afc0a 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-execution.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $functions = new Functions($client); @@ -16,5 +16,6 @@ $result = $functions->createExecution( async: false, // optional path: '<PATH>', // optional method: ExecutionMethod::GET(), // optional - headers: [] // optional + headers: [], // optional + scheduledAt: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-variable.md b/docs/examples/1.5.x/server-php/examples/functions/create-variable.md index f1d35c30921..fc1ee4afeb1 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/create.md b/docs/examples/1.5.x/server-php/examples/functions/create.md index 0c282bae100..6b16c59cbdd 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create.md @@ -6,8 +6,8 @@ use Appwrite\Enums\; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); @@ -23,6 +23,7 @@ $result = $functions->create( logging: false, // optional entrypoint: '<ENTRYPOINT>', // optional commands: '<COMMANDS>', // optional + scopes: [], // optional installationId: '<INSTALLATION_ID>', // optional providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional providerBranch: '<PROVIDER_BRANCH>', // optional @@ -31,5 +32,6 @@ $result = $functions->create( templateRepository: '<TEMPLATE_REPOSITORY>', // optional templateOwner: '<TEMPLATE_OWNER>', // optional templateRootDirectory: '<TEMPLATE_ROOT_DIRECTORY>', // optional - templateBranch: '<TEMPLATE_BRANCH>' // optional + templateVersion: '<TEMPLATE_VERSION>', // optional + specification: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md index 6a609cd0372..23439f21076 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-php/examples/functions/delete-execution.md new file mode 100644 index 00000000000..4fbef181757 --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/functions/delete-execution.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->deleteExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md index d25df57af61..344506b9e26 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete.md b/docs/examples/1.5.x/server-php/examples/functions/delete.md index 08b5cc403b3..6596754991c 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-php/examples/functions/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md index 9f3b3da51eb..17da83111d4 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-php/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..4103ec81e9e --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/functions/get-deployment-download.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->getDeploymentDownload( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md index 12e37f32eb5..73d70816cff 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-execution.md b/docs/examples/1.5.x/server-php/examples/functions/get-execution.md index 47270d66fc3..9bb8d6af7a9 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-execution.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-variable.md b/docs/examples/1.5.x/server-php/examples/functions/get-variable.md index 3635372af52..cdb5ce9c45e 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/get.md b/docs/examples/1.5.x/server-php/examples/functions/get.md index 00993f7da22..d249ce7266e 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md index 7f6480859cb..9046c1880a3 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-executions.md b/docs/examples/1.5.x/server-php/examples/functions/list-executions.md index b446868c2c4..05e60a0cb9b 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-executions.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md index 75be157f697..1d2297846a2 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-php/examples/functions/list-specifications.md new file mode 100644 index 00000000000..e68a4b0a8bb --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/functions/list-specifications.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->listSpecifications(); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-variables.md b/docs/examples/1.5.x/server-php/examples/functions/list-variables.md index 681102b418b..b9687a4ef80 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-variables.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list.md b/docs/examples/1.5.x/server-php/examples/functions/list.md index b59494bed72..22aa3cf9064 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-php/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..98f2a3aaceb --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/functions/update-deployment-build.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->updateDeploymentBuild( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md index 4405767fe96..9c6ad6dc8f2 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/update-variable.md b/docs/examples/1.5.x/server-php/examples/functions/update-variable.md index cdce6184508..b1b50081617 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/update-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/update.md b/docs/examples/1.5.x/server-php/examples/functions/update.md index e55108ffddc..8f84ca85ebe 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/update.md +++ b/docs/examples/1.5.x/server-php/examples/functions/update.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); @@ -22,9 +22,11 @@ $result = $functions->update( logging: false, // optional entrypoint: '<ENTRYPOINT>', // optional commands: '<COMMANDS>', // optional + scopes: [], // optional installationId: '<INSTALLATION_ID>', // optional providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional providerBranch: '<PROVIDER_BRANCH>', // optional providerSilentMode: false, // optional - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>' // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/graphql/mutation.md b/docs/examples/1.5.x/server-php/examples/graphql/mutation.md index 1be480261bb..1a0da4a405c 100644 --- a/docs/examples/1.5.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-php/examples/graphql/mutation.md @@ -5,8 +5,8 @@ use Appwrite\Services\Graphql; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $graphql = new Graphql($client); diff --git a/docs/examples/1.5.x/server-php/examples/graphql/query.md b/docs/examples/1.5.x/server-php/examples/graphql/query.md index 5467fe11db8..eea9e8fc60b 100644 --- a/docs/examples/1.5.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-php/examples/graphql/query.md @@ -5,8 +5,8 @@ use Appwrite\Services\Graphql; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $graphql = new Graphql($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md index 7f4fcb8ac31..1f0dd2feeb7 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-cache.md b/docs/examples/1.5.x/server-php/examples/health/get-cache.md index 4fe6e69b573..4755d69f1da 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-cache.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-certificate.md b/docs/examples/1.5.x/server-php/examples/health/get-certificate.md index 1f4d55ee999..1f0cda448db 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-certificate.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-d-b.md b/docs/examples/1.5.x/server-php/examples/health/get-d-b.md index ca1349b1707..fec1daa8ee7 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-d-b.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md index 94a8d746718..8e331bcbfe7 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md @@ -6,8 +6,8 @@ use Appwrite\Enums\; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md index 63cd7647bc5..fb266b132d0 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md index 56d342ba5d3..7886dfb21e0 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md index 10c1308e59e..b00611e3540 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md index c51e123bcdc..81e8442f0de 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md index 70dcaca3984..fe51b072c81 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md index 46cde881617..e6ee6880769 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md index c982068db42..4c9b0cd81ce 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md index ad415fc88bc..02d4ed2663f 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md index a722d2fca93..ec69788353d 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md index 2e2826dc6df..f52f78a0a8f 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..fd9d421773b --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-stats-resources.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueStatsResources( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md index 050cbeb8575..bd7d1c5d0b3 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md index d9a3fb9121c..018e8acf0a5 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md index e1d6e6fdc73..7e7af127c12 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue.md b/docs/examples/1.5.x/server-php/examples/health/get-queue.md index a8b1393e0bc..3a6033414ab 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md index 43bef96231d..0c26902ee7d 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-storage.md b/docs/examples/1.5.x/server-php/examples/health/get-storage.md index d5d817a12e0..abfc5bbd1bc 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-storage.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-time.md b/docs/examples/1.5.x/server-php/examples/health/get-time.md index d31e757f3ff..4577be3294d 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-time.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get.md b/docs/examples/1.5.x/server-php/examples/health/get.md index 6e8216c1a81..514d0837568 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get.md +++ b/docs/examples/1.5.x/server-php/examples/health/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/get.md b/docs/examples/1.5.x/server-php/examples/locale/get.md index beecee98db0..82247d4a689 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/get.md +++ b/docs/examples/1.5.x/server-php/examples/locale/get.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-codes.md b/docs/examples/1.5.x/server-php/examples/locale/list-codes.md index 699326fc65d..a88c2b64766 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-continents.md b/docs/examples/1.5.x/server-php/examples/locale/list-continents.md index 038f099445c..e861eced56a 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-continents.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md index 1b895e5e97c..2b8bf7ee020 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md index 503ff39c0b3..fba9ff8ec25 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-countries.md b/docs/examples/1.5.x/server-php/examples/locale/list-countries.md index 3e092d77132..60801b4dc5b 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-countries.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md index 81157c9efeb..5fb1667e591 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-languages.md b/docs/examples/1.5.x/server-php/examples/locale/list-languages.md index 31de74086b6..aec67ca74a4 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-languages.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md index 686c61cd77d..0b2d4669ba0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md index 48140782a98..bdc5d7fcc7a 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-email.md b/docs/examples/1.5.x/server-php/examples/messaging/create-email.md index 8327f74e1b9..fe51bf16273 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-email.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md index 7f083cdbd56..beb512b239c 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md index 4bb7123a50d..7252fde72e4 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md index 8ffa70c51c5..72f3360f26b 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md index 5efd866c1eb..bb7a79aea14 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-push.md b/docs/examples/1.5.x/server-php/examples/messaging/create-push.md index 7b7eb8e7121..9aaf6ad4adf 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-push.md @@ -5,15 +5,15 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); $result = $messaging->createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // optional + body: '<BODY>', // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -24,7 +24,10 @@ $result = $messaging->createPush( sound: '<SOUND>', // optional color: '<COLOR>', // optional tag: '<TAG>', // optional - badge: '<BADGE>', // optional + badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md index 5ee3ae3c7d1..fd6f57fdc1f 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md index 8c84350d296..f3aa85c439e 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md index fbaa819ea2f..53381f67c38 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md index ae288081765..8c0cb79dbfe 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md index 4c6d384633d..fd771fa2acb 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md index 36a2a760822..c0324ab382e 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md index d84c93f795c..89e17a1bca8 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md index c1d0337db68..0e0c8681ea0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md index bf214946c8e..79e3d2635d4 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md index 915cc940a0f..f370df244e6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md index bd1e665651b..4663b05c3ec 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md index b52e5f07edc..a3d8d474fc6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md index 1736d00f676..a5f7eb79eb0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md index 25ed35e77b9..7333a8de8d6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete.md b/docs/examples/1.5.x/server-php/examples/messaging/delete.md index 5c05eedd02b..b9b33808663 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-message.md b/docs/examples/1.5.x/server-php/examples/messaging/get-message.md index 47b6afd7380..c6ff233e6e0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-message.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md index 1576107a973..1d29307aec4 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md index 3fa4c0ae736..503e7010cb0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md index f732fcbb531..3277168bec9 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md index 58c026e7b0c..283b2a7794c 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md index 681863babb9..a4190e644b0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md index 3809e67a024..bf80f20477b 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md index 99c8cc1dc0c..1dc0e3cb985 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md index 45837902e82..c0c88d69354 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md index 36054d2028f..7597ad89ce6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md index b12aa4455d4..1825a088389 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md index 49bcc048aa9..1ab8c363d62 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md index 565504ab2b4..cfcba97a212 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md index 1a114d7c307..5e39b6da063 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md index 5de36f2425d..d7177551d50 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-email.md b/docs/examples/1.5.x/server-php/examples/messaging/update-email.md index 2acafafe463..d3b65692c1b 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-email.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md index 314d4393b0a..48ec3542c91 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md index 2cadd87da6c..9a80b44ff2d 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md index 7f36655f22d..7891cb5bb03 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md index 9ca978293cd..98f4f13a59f 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-push.md b/docs/examples/1.5.x/server-php/examples/messaging/update-push.md index 204c63d5da4..7546fc8668a 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-push.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); @@ -26,5 +26,8 @@ $result = $messaging->updatePush( tag: '<TAG>', // optional badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md index 825f9ab60fa..1f4712234dd 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md index 531e4e104ec..5123c030319 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md index 61253a467e5..2820e2e20ec 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md index 9f4b24165df..a342b7a0672 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md index e4b0ad83c81..66dde3ea01f 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md index b77a45cbb25..3c1b760dd1d 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md index e3e3f2b62c7..3328ac714de 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md index 50671b1582c..5669e5f7541 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md index 60eef45d9d6..07b7a2eafe1 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md index 4a3ee5afa23..ba7f5305e52 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md index 0582e188fda..0c8ef0fefe9 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/create-file.md b/docs/examples/1.5.x/server-php/examples/storage/create-file.md index e73af547169..a9485465632 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/create-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md index 6d5278dfccf..784331887e5 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/delete-file.md b/docs/examples/1.5.x/server-php/examples/storage/delete-file.md index eff096dc445..4274c25a45a 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/delete-file.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md index a7a8c1d2afc..85a5b75f621 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md index 1d4969509cc..72be0f68413 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md index 519ee53ea41..aef4f4a63f9 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md index 9e37230789a..782e49bd214 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file.md b/docs/examples/1.5.x/server-php/examples/storage/get-file.md index 894c8bbf955..80196a5199e 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md index 06f4e2a9cb5..a53eb913c9b 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/list-files.md b/docs/examples/1.5.x/server-php/examples/storage/list-files.md index 824ae303a51..767fe86c300 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-php/examples/storage/list-files.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md index 451ff80587e..e4a0f5df351 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/update-file.md b/docs/examples/1.5.x/server-php/examples/storage/update-file.md index 531a843ec41..506593f427e 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/update-file.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/create-membership.md b/docs/examples/1.5.x/server-php/examples/teams/create-membership.md index ef9bf44f865..51b1795a011 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/create-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/create.md b/docs/examples/1.5.x/server-php/examples/teams/create.md index de01cbc4738..3cc6b19be9e 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/create.md +++ b/docs/examples/1.5.x/server-php/examples/teams/create.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md index b68b692a81e..04f4056fcd0 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/delete.md b/docs/examples/1.5.x/server-php/examples/teams/delete.md index 45f2100cf4f..734464538f5 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-php/examples/teams/delete.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/get-membership.md b/docs/examples/1.5.x/server-php/examples/teams/get-membership.md index f075372fb83..5f4bd63a642 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/get-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md index 738a6c7d18e..27f6e06973a 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/get.md b/docs/examples/1.5.x/server-php/examples/teams/get.md index f68c41582a3..f1ce1348d84 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/get.md +++ b/docs/examples/1.5.x/server-php/examples/teams/get.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md index 27d5d0075e6..9d0c988ce62 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/list.md b/docs/examples/1.5.x/server-php/examples/teams/list.md index 90cdcfd656a..7ab8f81b275 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/list.md +++ b/docs/examples/1.5.x/server-php/examples/teams/list.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md index 4a802a5ec24..6179020df24 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-membership.md b/docs/examples/1.5.x/server-php/examples/teams/update-membership.md index 308f7f1b9e0..3b6cafa5f57 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-name.md b/docs/examples/1.5.x/server-php/examples/teams/update-name.md index 088d32ef253..62768a9fb83 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-name.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md index c2a9aad1ff7..ec52ac07dfc 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md index db01dda58b4..a482b5dd578 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md index 0a061f9a500..af71dcdc73b 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-php/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..994cdc3bb39 --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/users/create-j-w-t.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createJWT( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', // optional + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md index 400b6bdbedc..13bb884aa74 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md index e8b3b60f1ae..faec2341069 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md index e0d734281b1..da0889df702 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md index 9cb35ee9bc7..ecb9af7f318 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md index 325745d3e3d..d1c99065e1e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md index 0828acc6584..3c833b098eb 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-session.md b/docs/examples/1.5.x/server-php/examples/users/create-session.md index c4f905256c1..498e161c67e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-session.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-target.md b/docs/examples/1.5.x/server-php/examples/users/create-target.md index 2820472dd81..999cae1394c 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-target.md @@ -6,8 +6,8 @@ use Appwrite\Enums\MessagingProviderType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-token.md b/docs/examples/1.5.x/server-php/examples/users/create-token.md index 83f05e15d30..9d8e1635a7a 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-token.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create.md b/docs/examples/1.5.x/server-php/examples/users/create.md index 7cf4b6fb7f9..16549ae0927 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create.md +++ b/docs/examples/1.5.x/server-php/examples/users/create.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md index 78f8f7718b2..2cf23df55c7 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Users; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-identity.md b/docs/examples/1.5.x/server-php/examples/users/delete-identity.md index 81751a165c9..9ca15569ced 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-identity.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md index aa7405ebe02..94a9e04b593 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md @@ -6,8 +6,8 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-session.md b/docs/examples/1.5.x/server-php/examples/users/delete-session.md index 3ef58aa4d03..e711a923196 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-session.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md index e89b65f9289..3b46021a815 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-target.md b/docs/examples/1.5.x/server-php/examples/users/delete-target.md index 444c4969423..6b9975d748f 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-target.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete.md b/docs/examples/1.5.x/server-php/examples/users/delete.md index b715e8466cb..f1dbbf3d93f 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md index a852fa558df..b0e3a759bd2 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get-prefs.md b/docs/examples/1.5.x/server-php/examples/users/get-prefs.md index 79f778a83ce..59589f74fff 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/users/get-prefs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get-target.md b/docs/examples/1.5.x/server-php/examples/users/get-target.md index 489e1e2777a..ba146a30042 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/get-target.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get.md b/docs/examples/1.5.x/server-php/examples/users/get.md index 5428d73d9a9..4ff399b6226 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get.md +++ b/docs/examples/1.5.x/server-php/examples/users/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-factors.md b/docs/examples/1.5.x/server-php/examples/users/list-factors.md index 0c6f2b9bb13..f82be6a8dba 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/users/list-identities.md b/docs/examples/1.5.x/server-php/examples/users/list-identities.md index 0fde8a3db48..53ba78d8b23 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-identities.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-logs.md b/docs/examples/1.5.x/server-php/examples/users/list-logs.md index 863bab5bec4..434dbafc111 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-memberships.md b/docs/examples/1.5.x/server-php/examples/users/list-memberships.md index 616f014eae6..addc6b75d0c 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-memberships.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md index 305896622c8..0d137aaf5e5 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-providers.md b/docs/examples/1.5.x/server-php/examples/users/list-providers.md index b31b9f37ecf..1a61af46399 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-providers.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/users/list-sessions.md b/docs/examples/1.5.x/server-php/examples/users/list-sessions.md index 3b0c4905d44..5dcac1f5a4e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-sessions.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-targets.md b/docs/examples/1.5.x/server-php/examples/users/list-targets.md index c441a1c070e..a91ac5e8cbf 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-targets.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list.md b/docs/examples/1.5.x/server-php/examples/users/list.md index 63616e5246a..9b8d1d5f2c8 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list.md +++ b/docs/examples/1.5.x/server-php/examples/users/list.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md index 74ef3401b26..e74e88735ea 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-email.md b/docs/examples/1.5.x/server-php/examples/users/update-email.md index fb8e231f72a..fc40fac0278 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-email.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-labels.md b/docs/examples/1.5.x/server-php/examples/users/update-labels.md index 87e1b66a6fb..45fe23b7c9e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-labels.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md index aec96fae3d1..369c248f11e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-mfa.md b/docs/examples/1.5.x/server-php/examples/users/update-mfa.md index 83a3e3709a2..5df7aa265db 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-mfa.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-name.md b/docs/examples/1.5.x/server-php/examples/users/update-name.md index 33ca1751757..7050d19bcfd 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-name.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-password.md b/docs/examples/1.5.x/server-php/examples/users/update-password.md index a6226eb0583..8dcb57b6a4a 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-password.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md index 8d26d649a52..12e44dade1e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-phone.md b/docs/examples/1.5.x/server-php/examples/users/update-phone.md index eb5f55e52fd..95c31156ee9 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-phone.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-prefs.md b/docs/examples/1.5.x/server-php/examples/users/update-prefs.md index b96ff17ca8a..2ffd93875bb 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-prefs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-status.md b/docs/examples/1.5.x/server-php/examples/users/update-status.md index ef748019819..28a05320cee 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-status.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-target.md b/docs/examples/1.5.x/server-php/examples/users/update-target.md index 4d40c8345c2..a1b654d9018 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-target.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md index 3c52b8933a4..72d5688e26e 100644 --- a/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md index afaa76b4db8..ce5a92ad187 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-challenge.md b/docs/examples/1.5.x/server-python/examples/account/create-challenge.md index 6952faefc6e..531af7cf2d9 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-challenge.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticationFactor client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md index 667d85a1868..5e869fd40c0 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-email-token.md b/docs/examples/1.5.x/server-python/examples/account/create-email-token.md index a283f4212eb..5cf2bfb085b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-email-token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md index bc9b6842d54..c737f1b8e9b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md index 1f6593b3f04..00778172bbe 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md index 1c59624f165..a6f09eb4f01 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md index 5448d961a64..deb4c9c6007 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticationFactor client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md index c675936404b..a149cb95b7b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md index 341087fa3e3..991f946ce38 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import OAuthProvider client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md index 96c0f88904c..fa11d31c31b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import OAuthProvider client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md index b7597dfe9b1..d242d71bc1d 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md index ca46b01b828..bb2058eb2a4 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-recovery.md b/docs/examples/1.5.x/server-python/examples/account/create-recovery.md index c16be97bf2b..3d215a400e3 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-recovery.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-session.md b/docs/examples/1.5.x/server-python/examples/account/create-session.md index 118a1ab780f..d00e8cb8998 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-verification.md b/docs/examples/1.5.x/server-python/examples/account/create-verification.md index 6138686978c..329d19e6fdb 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create.md b/docs/examples/1.5.x/server-python/examples/account/create.md index d1656976dcc..39b33c62ee1 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create.md +++ b/docs/examples/1.5.x/server-python/examples/account/create.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md index 60141a5634e..38ddec75bee 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticationFactor client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md index 6539a4faebc..857df4149a7 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-identity.md b/docs/examples/1.5.x/server-python/examples/account/delete-identity.md index 1462fbc7cae..3556122de86 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-identity.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md index 5deb210d54a..939ea718c74 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md @@ -1,14 +1,14 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) result = account.delete_mfa_authenticator( - type = AuthenticatorType.TOTP, - otp = '<OTP>' + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-session.md b/docs/examples/1.5.x/server-python/examples/account/delete-session.md index 030d69817ad..9ddb4431d34 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md index 182c375d5f9..751ab9bb2d6 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md index 123fe4b67f7..f70b9682744 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get-prefs.md b/docs/examples/1.5.x/server-python/examples/account/get-prefs.md index 102f4dca318..52df6450dc9 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/account/get-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get-session.md b/docs/examples/1.5.x/server-python/examples/account/get-session.md index b9483ac2f4c..f38466fb34b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/get-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get.md b/docs/examples/1.5.x/server-python/examples/account/get.md index cc66fe6024e..b414047e2da 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get.md +++ b/docs/examples/1.5.x/server-python/examples/account/get.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-factors.md b/docs/examples/1.5.x/server-python/examples/account/list-factors.md index 5b0c2596bb1..419707efb4c 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-factors.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/list-identities.md b/docs/examples/1.5.x/server-python/examples/account/list-identities.md index 3e0d4e024fb..4bf9beb1b24 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-identities.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-logs.md b/docs/examples/1.5.x/server-python/examples/account/list-logs.md index 0c0b28aaf0c..5d8c27aded9 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-logs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md index 007c23758ba..ba3796bf657 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-sessions.md b/docs/examples/1.5.x/server-python/examples/account/list-sessions.md index 23398dcbb61..74733138cdd 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-sessions.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-challenge.md b/docs/examples/1.5.x/server-python/examples/account/update-challenge.md index b9aa1863cc5..5ecdf42679e 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-challenge.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/update-email.md b/docs/examples/1.5.x/server-python/examples/account/update-email.md index 353edb0d34a..004d071da1b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-email.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md index b59ede8c1a8..2f9321c4856 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md index 631fac0a052..ca8e8e51a32 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md index dc9a21f1bb5..a5a951906ce 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md index 7074e6d4702..d28a2518d7b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md index 281d8920ea5..38cb41ca8d1 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-name.md b/docs/examples/1.5.x/server-python/examples/account/update-name.md index 8e16f498910..9b4bf8291d5 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-name.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-password.md b/docs/examples/1.5.x/server-python/examples/account/update-password.md index 7d651c22c1a..ecb4228df02 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-password.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md index ff0c10dfda4..d29ab28e390 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md index adb5b355b2a..e64d79f6bda 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-phone.md b/docs/examples/1.5.x/server-python/examples/account/update-phone.md index c05bb167935..65a6a387b33 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-phone.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-prefs.md b/docs/examples/1.5.x/server-python/examples/account/update-prefs.md index 2c58cca2c43..c3683007b7b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-recovery.md b/docs/examples/1.5.x/server-python/examples/account/update-recovery.md index 4dca7116187..2493dc5e538 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-recovery.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-session.md b/docs/examples/1.5.x/server-python/examples/account/update-session.md index 006c508198e..ee3a2f7543c 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-status.md b/docs/examples/1.5.x/server-python/examples/account/update-status.md index 5c17fa19a33..c8318a43ce2 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-status.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-verification.md b/docs/examples/1.5.x/server-python/examples/account/update-verification.md index 84c8c4bc2bf..63a7f26322c 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md index e0a26a37098..9a4e584a472 100644 --- a/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md index 1de5eab6c29..7ed831835fb 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Browser client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md index 9437ff8ade7..aa66b86b2df 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import CreditCard client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md index 28676965668..2c6a67e2f27 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md index 37ac482e96f..435c8550f70 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Flag client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-image.md b/docs/examples/1.5.x/server-python/examples/avatars/get-image.md index 00afe0c87d1..ee9e0cb15eb 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-image.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md index 0a20c14b143..edcbbb33ecb 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md index bee29f7b26b..7f6da32ddfd 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md index bf09562b4c9..2b4209db9de 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-collection.md b/docs/examples/1.5.x/server-python/examples/databases/create-collection.md index dfe3611ee85..99c44a2f9f4 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md index 0b8a555c680..db81c021e27 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-document.md b/docs/examples/1.5.x/server-python/examples/databases/create-document.md index a4578117c47..22f2c07396e 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md index 840e6b53df8..2e28e0bfff8 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md index 0e891d51cda..b1efdc7dc3f 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md index 34fda4ff35d..b36863b8ee1 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-index.md b/docs/examples/1.5.x/server-python/examples/databases/create-index.md index 72fe6229d2d..9885c06e959 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-index.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import IndexType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md index 057cfb7d3e6..8cb140a7b96 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md index 54e887cbbdd..d4b4ab65283 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md index 0d1dbe03164..4172c272493 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import RelationshipType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md index c15512acc01..e69687124dc 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md index f77a630b738..4ad03c4010c 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create.md b/docs/examples/1.5.x/server-python/examples/databases/create.md index 329e6538b1a..d5cbb99eed9 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md index 87fcf5722c4..b317ba9dd45 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md index 296c69d23b4..ab274c6bdf0 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-document.md b/docs/examples/1.5.x/server-python/examples/databases/delete-document.md index 3191f10dd6e..69151aad9e2 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-index.md b/docs/examples/1.5.x/server-python/examples/databases/delete-index.md index bd4fcf5e6b7..2ed0165b36d 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-index.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete.md b/docs/examples/1.5.x/server-python/examples/databases/delete.md index 302a6524df2..e7e988a9a55 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md index 8316fe79042..a7175526597 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-collection.md b/docs/examples/1.5.x/server-python/examples/databases/get-collection.md index 7b0c7e4a333..f63298ebedf 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-document.md b/docs/examples/1.5.x/server-python/examples/databases/get-document.md index 978c5a5f6a2..acdc25de7e4 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-index.md b/docs/examples/1.5.x/server-python/examples/databases/get-index.md index e53878ced5a..ca5a9958ad9 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-index.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get.md b/docs/examples/1.5.x/server-python/examples/databases/get.md index b12f7d8ff0e..deadf6ab416 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md index 46283940bc5..245ec60c199 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-collections.md b/docs/examples/1.5.x/server-python/examples/databases/list-collections.md index 0ceed95f257..ca182672500 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-collections.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-documents.md b/docs/examples/1.5.x/server-python/examples/databases/list-documents.md index 08f3c8912f5..41f0380e153 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-documents.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md index 05a9e15397f..bf18bd1c950 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list.md b/docs/examples/1.5.x/server-python/examples/databases/list.md index 8ba8b28448e..11669b34530 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md index 8cf9bc87d4b..c9300ea57d1 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_boolean_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = False + default = False, + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-collection.md b/docs/examples/1.5.x/server-python/examples/databases/update-collection.md index 9f0615fb918..d9297285eea 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md index 5541dd47064..96c7fb54397 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_datetime_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '' + default = '', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-document.md b/docs/examples/1.5.x/server-python/examples/databases/update-document.md index 37c1b433dd9..7b9cce95139 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md index cedde9da127..5b042d4b72a 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_email_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = 'email@example.com' + default = 'email@example.com', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md index 76ede757306..caa1b4ecdb6 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -13,5 +14,6 @@ result = databases.update_enum_attribute( key = '', elements = [], required = False, - default = '<DEFAULT>' + default = '<DEFAULT>', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md index 1556e03b62f..d16b9bbbebe 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,7 +13,8 @@ result = databases.update_float_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, - default = None + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md index 37a87ed7d70..ab0ccd67247 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,7 +13,8 @@ result = databases.update_integer_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, - default = None + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md index d6df600399b..a2b8bad2013 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_ip_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '' + default = '', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md index 8c9fb456f07..0aacc139a00 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -11,5 +12,6 @@ result = databases.update_relationship_attribute( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', key = '', - on_delete = RelationMutate.CASCADE # optional + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md index d765acf4839..c85eb25f59f 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,7 @@ result = databases.update_string_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '<DEFAULT>' + default = '<DEFAULT>', + size = 1, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md index 3a6347c3018..53da6ae45f9 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_url_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = 'https://example.com' + default = 'https://example.com', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update.md b/docs/examples/1.5.x/server-python/examples/databases/update.md index ab6227f67ec..da59776b3e0 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-build.md b/docs/examples/1.5.x/server-python/examples/functions/create-build.md index f3422f33f7f..ce2ffb72f56 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-build.md @@ -1,14 +1,15 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) result = functions.create_build( function_id = '<FUNCTION_ID>', deployment_id = '<DEPLOYMENT_ID>', - build_id = '<BUILD_ID>' + build_id = '<BUILD_ID>' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md index 68ae7a96013..c86fdf679dd 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.input_file import InputFile client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-execution.md b/docs/examples/1.5.x/server-python/examples/functions/create-execution.md index 46c64b2ee69..cb3fddd02b3 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-execution.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with functions = Functions(client) @@ -13,5 +14,6 @@ result = functions.create_execution( async = False, # optional path = '<PATH>', # optional method = ExecutionMethod.GET, # optional - headers = {} # optional + headers = {}, # optional + scheduled_at = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-variable.md b/docs/examples/1.5.x/server-python/examples/functions/create-variable.md index 6b4e95525db..101ecdf3151 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create.md b/docs/examples/1.5.x/server-python/examples/functions/create.md index 76320c2731e..f10a953ca81 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.enums import client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) @@ -20,6 +21,7 @@ result = functions.create( logging = False, # optional entrypoint = '<ENTRYPOINT>', # optional commands = '<COMMANDS>', # optional + scopes = [], # optional installation_id = '<INSTALLATION_ID>', # optional provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional provider_branch = '<PROVIDER_BRANCH>', # optional @@ -28,5 +30,6 @@ result = functions.create( template_repository = '<TEMPLATE_REPOSITORY>', # optional template_owner = '<TEMPLATE_OWNER>', # optional template_root_directory = '<TEMPLATE_ROOT_DIRECTORY>', # optional - template_branch = '<TEMPLATE_BRANCH>' # optional + template_version = '<TEMPLATE_VERSION>', # optional + specification = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md index def007ba73b..f98bd60a9b6 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-python/examples/functions/delete-execution.md new file mode 100644 index 00000000000..b723fd6c47c --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.delete_execution( + function_id = '<FUNCTION_ID>', + execution_id = '<EXECUTION_ID>' +) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md index 96f1304c945..e17afed3633 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete.md b/docs/examples/1.5.x/server-python/examples/functions/delete.md index 7e20857472f..a34d476744d 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md index 91c1fac67f0..38ccb1a335c 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-python/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..90f029aff51 --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/functions/get-deployment-download.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.get_deployment_download( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md index e2b8e3f6cd9..0617b0429cd 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-execution.md b/docs/examples/1.5.x/server-python/examples/functions/get-execution.md index 04be41b899e..0a9a3474092 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-execution.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-variable.md b/docs/examples/1.5.x/server-python/examples/functions/get-variable.md index 21157003c66..174c8b27bf3 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get.md b/docs/examples/1.5.x/server-python/examples/functions/get.md index f6304868875..a463fa6b286 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md index c681463841c..4d8feea9273 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-executions.md b/docs/examples/1.5.x/server-python/examples/functions/list-executions.md index 50dc7cb7484..293bab047ac 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-executions.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md index ae64245d5bc..b6247330d01 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-python/examples/functions/list-specifications.md new file mode 100644 index 00000000000..5e1ec7fd61d --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.list_specifications() diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-variables.md b/docs/examples/1.5.x/server-python/examples/functions/list-variables.md index cfd0b644e8e..ee1a516c5e5 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-variables.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list.md b/docs/examples/1.5.x/server-python/examples/functions/list.md index bc4fc218d08..0b5f18d70ab 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-python/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..c69cd7c181f --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/functions/update-deployment-build.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.update_deployment_build( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md index 59e183e2512..0f4c96e85c5 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update-variable.md b/docs/examples/1.5.x/server-python/examples/functions/update-variable.md index 3fb73e0b2ea..bcab3685a20 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/update-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update.md b/docs/examples/1.5.x/server-python/examples/functions/update.md index edc1b0c3ffe..a7282412cc5 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/update.md +++ b/docs/examples/1.5.x/server-python/examples/functions/update.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) @@ -19,9 +20,11 @@ result = functions.update( logging = False, # optional entrypoint = '<ENTRYPOINT>', # optional commands = '<COMMANDS>', # optional + scopes = [], # optional installation_id = '<INSTALLATION_ID>', # optional provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional provider_branch = '<PROVIDER_BRANCH>', # optional provider_silent_mode = False, # optional - provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>' # optional + provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>', # optional + specification = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/graphql/mutation.md b/docs/examples/1.5.x/server-python/examples/graphql/mutation.md index 3d9ad021395..e05f6027196 100644 --- a/docs/examples/1.5.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-python/examples/graphql/mutation.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-python/examples/graphql/query.md b/docs/examples/1.5.x/server-python/examples/graphql/query.md index deb07a882d6..c8f3c78a1ac 100644 --- a/docs/examples/1.5.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-python/examples/graphql/query.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md index 5ba219917f4..7bc0475abf6 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-cache.md b/docs/examples/1.5.x/server-python/examples/health/get-cache.md index 02b85b3286c..7e69825ecf1 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-cache.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-certificate.md b/docs/examples/1.5.x/server-python/examples/health/get-certificate.md index 83018cf1b10..f6a713e2f3a 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-certificate.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-d-b.md b/docs/examples/1.5.x/server-python/examples/health/get-d-b.md index 5446df5b9d7..a23a073ac70 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-d-b.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md index ad9f88c25f6..d0fe64f7f31 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.health import Health from appwrite.enums import client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md index 84ffd974a28..109b2889f69 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md index b513c2c364a..b1d4d62116a 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md index bbeece17029..99f52b8eda3 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md index 936266c6095..7d5e5a0c58d 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md index b39b445cd13..d677af582e1 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md index a989a6a3970..3ffc4b8f525 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md index 47a56f7ef06..0cb6417f4f2 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md index 39fc879aedd..97a501cc1ce 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md index 3862c9ee2ef..ea93eab6dc3 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md index 85a5e56544d..09e35dfa9d9 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..3b09342c4bc --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_stats_resources( + threshold = None # optional +) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md index 2b8e302fd5c..d12e9abe8a0 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md index 42d7281ff92..dbee75fce05 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md index 435ba95b3be..1072a20defd 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue.md b/docs/examples/1.5.x/server-python/examples/health/get-queue.md index 81ea4ba6bd5..2b1a03b8a6d 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md index c2624558db6..d3b94b21772 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-storage.md b/docs/examples/1.5.x/server-python/examples/health/get-storage.md index ebe83edc287..65af2f959d8 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-storage.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-time.md b/docs/examples/1.5.x/server-python/examples/health/get-time.md index 02405dbd732..d63beb988ba 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-time.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get.md b/docs/examples/1.5.x/server-python/examples/health/get.md index 22034e760af..f5c494e12d4 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get.md +++ b/docs/examples/1.5.x/server-python/examples/health/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/get.md b/docs/examples/1.5.x/server-python/examples/locale/get.md index 8915eb10b30..a44f4974acd 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/get.md +++ b/docs/examples/1.5.x/server-python/examples/locale/get.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-codes.md b/docs/examples/1.5.x/server-python/examples/locale/list-codes.md index 9d2c93905fa..12cd12ee70f 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-continents.md b/docs/examples/1.5.x/server-python/examples/locale/list-continents.md index fadd5f36fcb..ea4ac5312da 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-continents.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md index 2f3bd507044..7fb6aaa59ef 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md index 134ddaab172..aafdb3d547c 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-countries.md b/docs/examples/1.5.x/server-python/examples/locale/list-countries.md index f344cc1098d..a2f1ec458dd 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-countries.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md index 19d831f7c2a..39267c663cc 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-languages.md b/docs/examples/1.5.x/server-python/examples/locale/list-languages.md index 6de06d36d88..6dec1b9072b 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-languages.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md index ad05664cd16..5a08fdeede1 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md index 287472fa3e4..700e909c44c 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-email.md b/docs/examples/1.5.x/server-python/examples/messaging/create-email.md index acca4d5ade3..92353e22c2e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-email.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md index b6b2a7b3eda..7619f4d2f2b 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md index 43c882befa2..d13ba0213d6 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md index 38eb415db77..83899716d70 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md index d11812c8cb5..117c46edcac 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-push.md b/docs/examples/1.5.x/server-python/examples/messaging/create-push.md index 7da7ac75a35..d4051859df9 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-push.md @@ -1,16 +1,17 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) result = messaging.create_push( message_id = '<MESSAGE_ID>', - title = '<TITLE>', - body = '<BODY>', + title = '<TITLE>', # optional + body = '<BODY>', # optional topics = [], # optional users = [], # optional targets = [], # optional @@ -21,7 +22,10 @@ result = messaging.create_push( sound = '<SOUND>', # optional color = '<COLOR>', # optional tag = '<TAG>', # optional - badge = '<BADGE>', # optional + badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md index d2eb41a92d7..12d0961e930 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md index f7af468d9a6..c2832168074 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md index e22dad8efe9..5d20cde78d9 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md index 38c36657fbb..c7e66d8c751 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md index b3b299b8ab5..85c58236c05 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md index d6ffd09c5e4..cb8f4f748d1 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md index b1fbab3192b..b602213b784 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md index bd251d9ccfb..03287e8faca 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md index e8532b27c43..4dd16da3f0f 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md index 3535fd003b5..524348f0858 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md index 60780969cae..68416bd8c38 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md index 58e1684976e..2a1840d64d4 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md index 4988d0696b4..94085ef86b3 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md index 769df6ee38d..1c2f5635dae 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete.md b/docs/examples/1.5.x/server-python/examples/messaging/delete.md index a25e80b7bdb..aee928a7921 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-message.md b/docs/examples/1.5.x/server-python/examples/messaging/get-message.md index db6506eee96..9e32d806238 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-message.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md index 3e71e95154f..6bc85f2710b 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md index e8bb0300e46..43185d7eb3e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md index a5e9e7b8164..dea6cbfb6b2 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md index 1cfbb2ea2a6..1c2ab0b035f 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md index 429273305ac..8457f99ad50 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md index be2f73557d6..c8544fac1e6 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md index 477c3b2dc74..258e7cd6e1e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md index 744b53ff256..d2049bd560f 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md index ec8ef1d4081..ba9e09d8b94 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md index 7ccc6f95ec3..b941ccbd315 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md index 4813049dfff..57ba7f8d31e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md index 6bae44592f3..cb21567d422 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md index 02b9dd8d008..73f3d167755 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md index 4e3f998d8e7..3f0205d4cec 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-email.md b/docs/examples/1.5.x/server-python/examples/messaging/update-email.md index a2d2589424f..b8f9d719c10 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-email.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md index e767772f2c8..1905e17ce66 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md index d2179b6e438..862e579f531 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md index d04c61756e2..aa1d4e922c8 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md index d13a3871ff3..2d4efdbd781 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-push.md b/docs/examples/1.5.x/server-python/examples/messaging/update-push.md index ff136b940d3..12663533c38 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-push.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) @@ -23,5 +24,8 @@ result = messaging.update_push( tag = '<TAG>', # optional badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md index bb8039a4e88..0b0ac5909dd 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md index 7faad9eb08d..9475fb8a8de 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md index 4d10aad1f2a..e528bd543de 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md index 4b9319ba6c6..7cb008736ff 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md index f3a9b963600..2d798d4e0ee 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md index 9c3c5bb62af..91de1f155ce 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md index 4da5e71fd5a..c3031047c9e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md index 73c2c88886c..160ac26b6ba 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md index 8461df020b3..865fcb5c1d0 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md index 32708b01b50..8e01128bf28 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md index bbeebf13287..7e321f12a32 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/create-file.md b/docs/examples/1.5.x/server-python/examples/storage/create-file.md index b8cae35c357..fa0b117b01d 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/create-file.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage from appwrite.input_file import InputFile client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md index cd008a7bcc0..8cddfb9202d 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/delete-file.md b/docs/examples/1.5.x/server-python/examples/storage/delete-file.md index 69fe398bbfa..08bba5ca4b3 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/delete-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md index 8740eb5fa18..79f903f2445 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md index 30fff99e220..1a82b26c703 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md index 08dcb47c2dc..40f32f1f10b 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md index 6cf8565aacd..3947c76761f 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file.md b/docs/examples/1.5.x/server-python/examples/storage/get-file.md index f54c7a5c02c..0c2d5e3b2cf 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md index 909d6f7db18..88540cd5ceb 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/list-files.md b/docs/examples/1.5.x/server-python/examples/storage/list-files.md index 73f4a285b8c..e26ac2e5f37 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-python/examples/storage/list-files.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md index 4722284f96b..61388b0923e 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/update-file.md b/docs/examples/1.5.x/server-python/examples/storage/update-file.md index 0a0b78cc258..336e8a08464 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/update-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/create-membership.md b/docs/examples/1.5.x/server-python/examples/teams/create-membership.md index 5be1405b643..1af9f252ab0 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/create-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/create.md b/docs/examples/1.5.x/server-python/examples/teams/create.md index c305b46b755..7085d396427 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/create.md +++ b/docs/examples/1.5.x/server-python/examples/teams/create.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md index b9f34aa2bdd..adf065cd3c1 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/delete.md b/docs/examples/1.5.x/server-python/examples/teams/delete.md index 18623d180b0..762f532dbf6 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-python/examples/teams/delete.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/get-membership.md b/docs/examples/1.5.x/server-python/examples/teams/get-membership.md index 06d270a9c90..17bacff1d34 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/get-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md index 046d6385085..035777d5cd9 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/get.md b/docs/examples/1.5.x/server-python/examples/teams/get.md index ee5fdf6a59e..985924e10bd 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/get.md +++ b/docs/examples/1.5.x/server-python/examples/teams/get.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md index 997a106dd90..885a4c28221 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/list.md b/docs/examples/1.5.x/server-python/examples/teams/list.md index f066e018941..c92d4c9c13f 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/list.md +++ b/docs/examples/1.5.x/server-python/examples/teams/list.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md index 5ab354e93e8..ae6e524da5a 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-membership.md b/docs/examples/1.5.x/server-python/examples/teams/update-membership.md index a681533a6b5..c50f345b881 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-name.md b/docs/examples/1.5.x/server-python/examples/teams/update-name.md index 24305701c8f..d25c8db1f27 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-name.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md index 27de6470b5f..9eca847a02a 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md index 2317c811004..3d654965732 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md index 7ea2345d804..76532a98f01 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-python/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..2e1fdf632f9 --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_jwt( + user_id = '<USER_ID>', + session_id = '<SESSION_ID>', # optional + duration = 0 # optional +) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md index 10b33e56996..da9d471fe2d 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md index 35706cc3d9b..a4477b04066 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md index 5f923302eee..363be4f92f4 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md index c4c9a92a231..bb78ff7b5c2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md index 321642fc4de..1cfbcfc4b4e 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md index e7da3a54a0a..2d1e72bf77b 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-session.md b/docs/examples/1.5.x/server-python/examples/users/create-session.md index 2440e5040a2..bebd46b022d 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-session.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-target.md b/docs/examples/1.5.x/server-python/examples/users/create-target.md index 123a092318f..c11c7ca2331 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-target.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import MessagingProviderType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-token.md b/docs/examples/1.5.x/server-python/examples/users/create-token.md index 27e4f5153ae..00a0e786100 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-token.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create.md b/docs/examples/1.5.x/server-python/examples/users/create.md index 716c4acc569..c8dac9feae2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create.md +++ b/docs/examples/1.5.x/server-python/examples/users/create.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md index b5c5203ee4d..09504848519 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-identity.md b/docs/examples/1.5.x/server-python/examples/users/delete-identity.md index 8e9918f8b34..85c5b6dee33 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-identity.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md index d4181078c44..b22d3918798 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-session.md b/docs/examples/1.5.x/server-python/examples/users/delete-session.md index b3bdcb24d71..dda5713a9e2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-session.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md index 08640f5a231..268c311dd91 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-target.md b/docs/examples/1.5.x/server-python/examples/users/delete-target.md index 5309b17c905..38cc5a9a238 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-target.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete.md b/docs/examples/1.5.x/server-python/examples/users/delete.md index bb73199ad3f..090c20f5a98 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md index 529346a497f..ec9986ce604 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get-prefs.md b/docs/examples/1.5.x/server-python/examples/users/get-prefs.md index 34614de240d..eb14d3acb95 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/users/get-prefs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get-target.md b/docs/examples/1.5.x/server-python/examples/users/get-target.md index d07591f165a..f549f084505 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/get-target.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get.md b/docs/examples/1.5.x/server-python/examples/users/get.md index efa59416e70..6e018c2b005 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get.md +++ b/docs/examples/1.5.x/server-python/examples/users/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-factors.md b/docs/examples/1.5.x/server-python/examples/users/list-factors.md index f30144f38cb..d45661d8ec6 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-factors.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/users/list-identities.md b/docs/examples/1.5.x/server-python/examples/users/list-identities.md index e19a3dd3b42..b10c320cddc 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-identities.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-logs.md b/docs/examples/1.5.x/server-python/examples/users/list-logs.md index 54e688616c8..10d8ae0d039 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-memberships.md b/docs/examples/1.5.x/server-python/examples/users/list-memberships.md index d0de2fbc0d9..fbb3b4c05e6 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-memberships.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md index 8092b0fd391..1f40b1f538a 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-providers.md b/docs/examples/1.5.x/server-python/examples/users/list-providers.md index cf95496c3d4..c13ec88462b 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-providers.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-sessions.md b/docs/examples/1.5.x/server-python/examples/users/list-sessions.md index f4a59463f6d..a9eead0d780 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-sessions.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-targets.md b/docs/examples/1.5.x/server-python/examples/users/list-targets.md index 3b1e28b39fb..47666467ff5 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-targets.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list.md b/docs/examples/1.5.x/server-python/examples/users/list.md index 9dbe774640d..4b09ca5f85d 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list.md +++ b/docs/examples/1.5.x/server-python/examples/users/list.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md index 7c541c9eea1..4623bc34b1b 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-email.md b/docs/examples/1.5.x/server-python/examples/users/update-email.md index e1c95ee2899..083715bbfac 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-email.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-labels.md b/docs/examples/1.5.x/server-python/examples/users/update-labels.md index 2a54e768de3..24c5b270341 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-labels.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md index 5ff7bfe0142..d0e4da4e4a1 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-mfa.md b/docs/examples/1.5.x/server-python/examples/users/update-mfa.md index 305566ac68e..efd6730a269 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-mfa.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-name.md b/docs/examples/1.5.x/server-python/examples/users/update-name.md index 17ebfb62cd3..6014ef51a57 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-name.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-password.md b/docs/examples/1.5.x/server-python/examples/users/update-password.md index 1ee3edb18f7..90ac15f5650 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-password.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md index 70ce29fa4c4..a62e6a8ceb2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-phone.md b/docs/examples/1.5.x/server-python/examples/users/update-phone.md index 10c5e61e544..f5227300035 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-phone.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-prefs.md b/docs/examples/1.5.x/server-python/examples/users/update-prefs.md index df773464e47..64d9df39f8a 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-prefs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-status.md b/docs/examples/1.5.x/server-python/examples/users/update-status.md index 6b8e8b8ddae..8943ef59f5e 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-status.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-target.md b/docs/examples/1.5.x/server-python/examples/users/update-target.md index c7ec1a657ef..89513850b09 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-target.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md index 6e885831642..c6ea0979117 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md index f18903c8b81..3e4485908b2 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md b/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md index f1c96ce045e..a296b5597ee 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md index a7a3f688665..9d225fcfc2a 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ -POST /v1/account/jwt HTTP/1.1 -Host: cloud.appwrite.io +POST /v1/account/jwts HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md index cc88e87f9bd..12581613dce 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md index 9273151f902..fef6b8476c9 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md index d70105084dd..2019a1e52c5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "factor": "email" diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md index f00650d13d3..81e5621ecea 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md index b7c4d078268..f353a881b7b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,6 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md index d7cdcd50891..45d501a7702 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md index a8bd3ad8bd7..bc2bedb3ec0 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md @@ -1,8 +1,8 @@ POST /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md b/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md index ee811be613d..0c4c0046c29 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md @@ -1,10 +1,10 @@ POST /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-session.md b/docs/examples/1.5.x/server-rest/examples/account/create-session.md index 725adf4977c..62c8afeb3d4 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/token HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-verification.md b/docs/examples/1.5.x/server-rest/examples/account/create-verification.md index e440939e8fe..d89b0ccd040 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-verification.md @@ -1,10 +1,10 @@ POST /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "url": "https://example.com" diff --git a/docs/examples/1.5.x/server-rest/examples/account/create.md b/docs/examples/1.5.x/server-rest/examples/account/create.md index c1a959b43f6..f484be7bbdf 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create.md @@ -1,8 +1,8 @@ POST /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md b/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md index b43c8deafda..dbbceb4036b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md @@ -1,8 +1,8 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md index 3d178f6b594..77d8d215ada 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md @@ -1,11 +1,8 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> -{ - "otp": "<OTP>" -} diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-session.md b/docs/examples/1.5.x/server-rest/examples/account/delete-session.md index ba75cdd52de..7f839667cb5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-session.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md index b6b3ac55271..6f741155cb5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md index 095029fc039..7750e99c9df 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md index b240b0c36f8..5d12b5fc062 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get-session.md b/docs/examples/1.5.x/server-rest/examples/account/get-session.md index 525008c4061..72494570178 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get-session.md @@ -1,8 +1,8 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get.md b/docs/examples/1.5.x/server-rest/examples/account/get.md index 3318040ddaa..0ff1878deea 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get.md @@ -1,8 +1,8 @@ GET /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-identities.md b/docs/examples/1.5.x/server-rest/examples/account/list-identities.md index 52399703502..41aa1dd70cf 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-identities.md @@ -1,8 +1,8 @@ GET /v1/account/identities HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-logs.md b/docs/examples/1.5.x/server-rest/examples/account/list-logs.md index 9c4a838d5a4..55b5782ae5c 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-logs.md @@ -1,8 +1,8 @@ GET /v1/account/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md index 0fcbebf6620..3e8479aef87 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md index fbf968ef86e..89f747387fc 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md @@ -1,8 +1,8 @@ GET /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-email.md b/docs/examples/1.5.x/server-rest/examples/account/update-email.md index e5a131b0606..be4709dbc71 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-email.md @@ -1,10 +1,10 @@ PATCH /v1/account/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md index 49311807e75..c7ef57666ef 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md @@ -1,10 +1,10 @@ PATCH /v1/account/mfa HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "mfa": false diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md index 5789bc204e8..5ca270cc73a 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md index a55ba579bc7..68eabe28116 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "otp": "<OTP>" diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md index 5e50a0e88d3..520b5875625 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "challengeId": "<CHALLENGE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md index 4ba1cb68569..398d84e4ded 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md @@ -1,8 +1,8 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-name.md b/docs/examples/1.5.x/server-rest/examples/account/update-name.md index 40b50e2f0d2..bf7823fab9b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-name.md @@ -1,10 +1,10 @@ PATCH /v1/account/name HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-password.md b/docs/examples/1.5.x/server-rest/examples/account/update-password.md index e254c25cd36..eeaf183a149 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-password.md @@ -1,10 +1,10 @@ PATCH /v1/account/password HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "password": , diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md index a9e1a939504..7b62067b9e5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md index 3ab8ee88715..8050b8ab69b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-phone.md b/docs/examples/1.5.x/server-rest/examples/account/update-phone.md index b67ed03bea3..0123b564a79 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-phone.md @@ -1,10 +1,10 @@ PATCH /v1/account/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "phone": "+12065550100", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md index 6f7c7308b8d..39a2466ed4a 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md @@ -1,10 +1,10 @@ PATCH /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "prefs": {} diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md index c0c0bf6c8e0..cf388ea9afe 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md @@ -1,10 +1,10 @@ PUT /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-session.md b/docs/examples/1.5.x/server-rest/examples/account/update-session.md index ef778661349..ca04f76e6c0 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-session.md @@ -1,8 +1,8 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-status.md b/docs/examples/1.5.x/server-rest/examples/account/update-status.md index 809357b70b3..1f47e378b23 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-status.md @@ -1,8 +1,8 @@ PATCH /v1/account/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-verification.md b/docs/examples/1.5.x/server-rest/examples/account/update-verification.md index e798222b4aa..2558e5b4ffe 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md index 4f9c11890a6..8dfcd6601c0 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md @@ -1,9 +1,9 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md index 0aafd32b77f..672e535947e 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md @@ -1,9 +1,9 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md index b4c7c52332a..c696a124663 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md @@ -1,9 +1,9 @@ GET /v1/avatars/favicon HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md index 87b99f4b19c..b991cde06c0 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md @@ -1,9 +1,9 @@ GET /v1/avatars/flags/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md index dbb2b011813..16ae4afb8f9 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md @@ -1,9 +1,9 @@ GET /v1/avatars/image HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md index 18d76624d69..fa6d69cf98d 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md @@ -1,9 +1,9 @@ GET /v1/avatars/initials HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md index 2c00b19a0ca..e11b23eea91 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md @@ -1,9 +1,9 @@ GET /v1/avatars/qr HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md index 76d18604f4c..329c4736bc0 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md index 1b56150e2f7..67ad310c857 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "collectionId": "<COLLECTION_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md index d9a991c9022..e05713d86c1 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-document.md b/docs/examples/1.5.x/server-rest/examples/databases/create-document.md index f4207eddd34..3dfc27f2a3a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-document.md @@ -1,11 +1,11 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "documentId": "<DOCUMENT_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md index ce6bb59dd14..adf2433f379 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md index 2b38d865733..4a16c0439e7 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md index ccd6e5fbe16..69927412b2c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/float HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-index.md b/docs/examples/1.5.x/server-rest/examples/databases/create-index.md index 9719ebf8fbd..2cc17ae7cb3 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-index.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md index d2bfbf19674..7ed36b82533 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md index 0f1fae446e7..1ad575ee24b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md index aaf56bac05e..c3510215486 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "relatedCollectionId": "<RELATED_COLLECTION_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md index 7e6e73d1c12..49095885a86 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/string HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md index e960ccada5f..050212e3abc 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create.md b/docs/examples/1.5.x/server-rest/examples/databases/create.md index 7e00ee2d0bc..5b57073a5c5 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create.md @@ -1,9 +1,9 @@ POST /v1/databases HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "databaseId": "<DATABASE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md index 11aeaef043f..9cfed13ae1b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md index 22f3e14e770..a09a008843d 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md index a0311bde528..033b7dcc4ab 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md @@ -1,9 +1,9 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md index 5b09484459a..6c6db3385f1 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete.md b/docs/examples/1.5.x/server-rest/examples/databases/delete.md index 51b6d3c8ce1..32ee4890c6a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md index 1af8f3e32d4..9327bc1fe3c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md index 04e1ef3b6c0..bb170d1de2c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-document.md b/docs/examples/1.5.x/server-rest/examples/databases/get-document.md index 9612b66affa..8321397b82b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-document.md @@ -1,9 +1,9 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-index.md b/docs/examples/1.5.x/server-rest/examples/databases/get-index.md index 97822cb3041..f8be405d6e1 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-index.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get.md b/docs/examples/1.5.x/server-rest/examples/databases/get.md index f1404f98dfe..3a6ef2d740e 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md index 69747154a28..a9427ad3391 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md index 0153088d35c..4f7cbcb1a6b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md index 44c6ddad4c4..047e6dfd21a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md @@ -1,9 +1,9 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md index 6128a67de9b..e5f503d043b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list.md b/docs/examples/1.5.x/server-rest/examples/databases/list.md index 087c332105d..63cb6fcf86c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list.md @@ -1,7 +1,7 @@ GET /v1/databases HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md index b30dffb1ba0..cb8b8cc456b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": false + "default": false, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md index 0c75605d828..8d2d5468e44 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md @@ -1,9 +1,9 @@ PUT /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md index 9fbf82ec755..1a99d4d4dcc 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": + "default": , + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-document.md b/docs/examples/1.5.x/server-rest/examples/databases/update-document.md index 47b3c11827a..74108cefadb 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-document.md @@ -1,11 +1,11 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "data": {}, diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md index 8e2e745a2d2..0d411b1146a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/email/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "email@example.com" + "default": "email@example.com", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md index 82f14405f59..e2fb151bfc3 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md @@ -1,12 +1,13 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "elements": [], "required": false, - "default": "<DEFAULT>" + "default": "<DEFAULT>", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md index 0845a06c19e..76241850b6b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md @@ -1,13 +1,14 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/float/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, "min": 0, "max": 0, - "default": 0 + "default": 0, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md index 953449ca30d..19707ef4fd9 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md @@ -1,13 +1,14 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, "min": 0, "max": 0, - "default": 0 + "default": 0, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md index abcbec9b384..9abf54069c9 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": + "default": , + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md index 214a8db45c6..dd12556c928 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md @@ -1,10 +1,11 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { - "onDelete": "cascade" + "onDelete": "cascade", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md index 3df5ae95653..e64833d2a6b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md @@ -1,11 +1,13 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/string/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "<DEFAULT>" + "default": "<DEFAULT>", + "size": 1, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md index 5e4544511aa..562ea1624f6 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/url/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "https://example.com" + "default": "https://example.com", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update.md b/docs/examples/1.5.x/server-rest/examples/databases/update.md index ba142d80a33..9eaca1a9481 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update.md @@ -1,9 +1,9 @@ PUT /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-build.md b/docs/examples/1.5.x/server-rest/examples/functions/create-build.md index e0cee7e41a9..ca474f32d8d 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-build.md @@ -1,7 +1,10 @@ -POST /v1/functions/{functionId}/deployments/{deploymentId}/builds/{buildId} HTTP/1.1 -Host: cloud.appwrite.io +POST /v1/functions/{functionId}/deployments/{deploymentId}/build HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +{ + "buildId": "<BUILD_ID>" +} diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md index dc553a3967c..82900f78449 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md @@ -1,9 +1,9 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md b/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md index 775d4c1fc22..708ee0d7481 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md @@ -1,16 +1,17 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "body": "<BODY>", "async": false, "path": "<PATH>", "method": "GET", - "headers": {} + "headers": {}, + "scheduledAt": } diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md index 4e9a88290f0..8a0606fca11 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md @@ -1,9 +1,9 @@ POST /v1/functions/{functionId}/variables HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": "<KEY>", diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create.md b/docs/examples/1.5.x/server-rest/examples/functions/create.md index b19f7807098..057907719a9 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create.md @@ -1,9 +1,9 @@ POST /v1/functions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "functionId": "<FUNCTION_ID>", @@ -17,6 +17,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "logging": false, "entrypoint": "<ENTRYPOINT>", "commands": "<COMMANDS>", + "scopes": [], "installationId": "<INSTALLATION_ID>", "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", "providerBranch": "<PROVIDER_BRANCH>", @@ -25,5 +26,6 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "templateRepository": "<TEMPLATE_REPOSITORY>", "templateOwner": "<TEMPLATE_OWNER>", "templateRootDirectory": "<TEMPLATE_ROOT_DIRECTORY>", - "templateBranch": "<TEMPLATE_BRANCH>" + "templateVersion": "<TEMPLATE_VERSION>", + "specification": } diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md index a3d61934208..be871448048 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-rest/examples/functions/delete-execution.md new file mode 100644 index 00000000000..78b94d2fbcb --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete-execution.md @@ -0,0 +1,7 @@ +DELETE /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md index a56fb68f1fe..55280b57eef 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete.md b/docs/examples/1.5.x/server-rest/examples/functions/delete.md index cfd32f14b31..ea574b2d4ce 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..37321ee2ad0 --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment-download.md @@ -0,0 +1,8 @@ +GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md index 4677fc1dd46..1f5108659c8 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md index 69f8e766fae..8013646ef28 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md @@ -1,9 +1,9 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md index 344af84b7ee..a31cd5b9eaf 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get.md b/docs/examples/1.5.x/server-rest/examples/functions/get.md index 729f22b4dd2..89cd27e80b6 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md index 8284adca50a..ab7bd74e190 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/deployments HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md index 58daa1edaef..3f6c95faf3d 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md @@ -1,9 +1,9 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md index 2b6e4ed3e84..f583a77aaa8 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ GET /v1/functions/runtimes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-rest/examples/functions/list-specifications.md new file mode 100644 index 00000000000..b71075fcaee --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-specifications.md @@ -0,0 +1,7 @@ +GET /v1/functions/specifications HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md index 38003de08c4..094eed9938b 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/variables HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list.md b/docs/examples/1.5.x/server-rest/examples/functions/list.md index 4f1c89e8179..73817aafb21 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list.md @@ -1,7 +1,7 @@ GET /v1/functions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..4621fdc97a4 --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment-build.md @@ -0,0 +1,7 @@ +PATCH /v1/functions/{functionId}/deployments/{deploymentId}/build HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md index 1f7bdb38ff4..30c68f7b86d 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md index a90e728471a..64975d69531 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md @@ -1,9 +1,9 @@ PUT /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": "<KEY>", diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update.md b/docs/examples/1.5.x/server-rest/examples/functions/update.md index 8bf01a4c545..873a98faecc 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/update.md @@ -1,9 +1,9 @@ PUT /v1/functions/{functionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", @@ -16,9 +16,11 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "logging": false, "entrypoint": "<ENTRYPOINT>", "commands": "<COMMANDS>", + "scopes": [], "installationId": "<INSTALLATION_ID>", "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", "providerBranch": "<PROVIDER_BRANCH>", "providerSilentMode": false, - "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>" + "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", + "specification": } diff --git a/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md b/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md index 096eef10111..4004e7c3ffc 100644 --- a/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md @@ -1,12 +1,12 @@ POST /v1/graphql/mutation HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "query": {} diff --git a/docs/examples/1.5.x/server-rest/examples/graphql/query.md b/docs/examples/1.5.x/server-rest/examples/graphql/query.md index 707adc117ea..bcf4e56c849 100644 --- a/docs/examples/1.5.x/server-rest/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-rest/examples/graphql/query.md @@ -1,12 +1,12 @@ POST /v1/graphql HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "query": {} diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md index b18b71819c2..0e9957b1f2f 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ GET /v1/health/anti-virus HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-cache.md b/docs/examples/1.5.x/server-rest/examples/health/get-cache.md index 80efc5e289f..475daca98d5 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-cache.md @@ -1,7 +1,7 @@ GET /v1/health/cache HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md index 86cc98cd262..34614428dd8 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md @@ -1,7 +1,7 @@ GET /v1/health/certificate HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md index 173c8c6e7ed..6ac45185261 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md @@ -1,7 +1,7 @@ GET /v1/health/db HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md index 8b0a02c5526..0cf2048ec8e 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md index 58916feeee3..ea06b06e27e 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ GET /v1/health/pubsub HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md index 538b0b9c338..ba0ba562416 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ GET /v1/health/queue/builds HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md index 059775c0fea..9a7e4172300 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ GET /v1/health/queue/certificates HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md index cecfcdb335a..f805b8c2316 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ GET /v1/health/queue/databases HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md index 38f01dbaf1b..6f0cfef1290 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ GET /v1/health/queue/deletes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md index d697c0815ba..1c0778aef3c 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ GET /v1/health/queue/functions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md index a6fa176d6b3..e8355ae4811 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ GET /v1/health/queue/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md index 0cf720c5548..667dc1dd26f 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ GET /v1/health/queue/mails HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md index 584a57062d5..4c2e744123c 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ GET /v1/health/queue/messaging HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md index 974c0ff4f16..ffbc4de372f 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ GET /v1/health/queue/migrations HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..b9b3da19857 --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-stats-resources.md @@ -0,0 +1,7 @@ +GET /v1/health/queue/stats-resources HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md index a14be91a496..ef71659392a 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ -GET /v1/health/queue/usage HTTP/1.1 -Host: cloud.appwrite.io +GET /v1/health/queue/stats-usage HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md index 26e86bd3a5c..cc69225d987 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ GET /v1/health/queue/webhooks HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md index 082ecea1dbe..47762ff360b 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ GET /v1/health/storage/local HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-storage.md b/docs/examples/1.5.x/server-rest/examples/health/get-storage.md index b7d80d1ac4e..60c5b1f52a4 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-storage.md @@ -1,7 +1,7 @@ GET /v1/health/storage HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-time.md b/docs/examples/1.5.x/server-rest/examples/health/get-time.md index 7aa66a63e1e..6865f00a70a 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-time.md @@ -1,7 +1,7 @@ GET /v1/health/time HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get.md b/docs/examples/1.5.x/server-rest/examples/health/get.md index 5a572c60d13..65dde394f6a 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get.md @@ -1,7 +1,7 @@ GET /v1/health HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/get.md b/docs/examples/1.5.x/server-rest/examples/locale/get.md index b1362c3dd70..6f5d23b2b74 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/get.md @@ -1,9 +1,9 @@ GET /v1/locale HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md index 7954d3f8b27..536c2f9375d 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md @@ -1,9 +1,9 @@ GET /v1/locale/codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md index 613ca7aff2b..a4c02757ef9 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md @@ -1,9 +1,9 @@ GET /v1/locale/continents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md index 9f92b563a63..f581f5251a7 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,9 +1,9 @@ GET /v1/locale/countries/eu HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md index 6ab1c478d63..9802b4e8b5e 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md @@ -1,9 +1,9 @@ GET /v1/locale/countries/phones HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md index c553e9b49cf..9a23a0849c7 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md @@ -1,9 +1,9 @@ GET /v1/locale/countries HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md index f8cfc778bfe..da625de369f 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md @@ -1,9 +1,9 @@ GET /v1/locale/currencies HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md index fd02f64b0a8..3e258e13311 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md @@ -1,9 +1,9 @@ GET /v1/locale/languages HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md index 710d7c2ad17..ca189a55eb3 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/apns HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md index 7a988c1c003..3d187c1bde5 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md @@ -1,9 +1,9 @@ POST /v1/messaging/messages/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "messageId": "<MESSAGE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md index ba6aa9888f3..70c8b84d76a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/fcm HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md index 57bd4a365f4..1ccd17c44b2 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/mailgun HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md index 05052e4b1ef..59f3a30d5eb 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/msg91 HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md index 1f20509d25d..30efda67020 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md @@ -1,9 +1,9 @@ POST /v1/messaging/messages/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "messageId": "<MESSAGE_ID>", @@ -19,7 +19,10 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "sound": "<SOUND>", "color": "<COLOR>", "tag": "<TAG>", - "badge": "<BADGE>", + "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md index 148d0537cfc..bb82e428821 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/sendgrid HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md index 10280fc9430..14d6a6e386a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md @@ -1,9 +1,9 @@ POST /v1/messaging/messages/sms HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "messageId": "<MESSAGE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md index a6a5ca213e0..fbb23f9b6a1 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/smtp HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md index 6141a408e81..cb952c36aee 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md @@ -1,11 +1,11 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Key: <YOUR_API_KEY> { "subscriberId": "<SUBSCRIBER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md index 07cc8435575..d9fcf64fc95 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/telesign HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md index 8f4ae3486e5..bb94b511f62 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/textmagic HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md index dc44f11668d..45c9d24a1fb 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md @@ -1,9 +1,9 @@ POST /v1/messaging/topics HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topicId": "<TOPIC_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md index 64906f002e6..a4e7f8c1f0b 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/twilio HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md index 1a85b726acf..1b866521e1b 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/vonage HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md index 9bd35794ad9..64233828961 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/providers/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md index 0420315e1d0..d826c6ceb26 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md @@ -1,9 +1,9 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md index 86bd0797fad..43753ee3de8 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete.md index 50d0cea0af6..c86e7df658d 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/messages/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md index 1d1ff563faf..a028ed942b0 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md index 97347364f55..c721575af6e 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md index 7ab1e6611ad..bb0ce225f1f 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md index d4e3bf34802..0efe9444213 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md index c7aba35f038..15729cf60ad 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md index daf72c3c535..e497923c873 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md index 16b81708e76..38f9cd36e06 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md index 556facdae23..b1fc0e9bfcc 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ GET /v1/messaging/providers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md index 952c4618025..008132bec6e 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md index 38ec946a425..8e8f80fa86f 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md index fd4dda146cb..00fefdcfcc2 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md index b4a266c6274..5dce5314916 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md index 71225acd6b0..cf5bc4e5099 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md index d230f150bda..34c569193ad 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md index 61ef1ed7984..d1973371257 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/messages/email/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topics": [], diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md index 14e5cc9cca7..eff2cd3d047 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md index a25d1c18850..2a4b07d8b17 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/mailgun/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md index a2458c06345..426a625847b 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/msg91/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md index b99b7e0c484..e4a46603d1c 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/messages/push/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topics": [], @@ -20,5 +20,8 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "tag": "<TAG>", "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md index 08249e5674b..e3082f97507 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/sendgrid/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md index 3af498bed8d..ad63dd6d162 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topics": [], diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md index 6d78182b66c..981ee039a5a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md index ec8e52d3bca..7b79305285a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/telesign/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md index 2e7ca828f22..270da23b47d 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/textmagic/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md index 14066013202..a05bec9618c 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/topics/{topicId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md index cc96053b88e..65c7ca6181e 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/twilio/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md index a8155ec61ac..c99fa7f4fb5 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/vonage/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md index 194c28f8bae..e73ec00482d 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md @@ -1,9 +1,9 @@ POST /v1/storage/buckets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "bucketId": "<BUCKET_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/storage/create-file.md b/docs/examples/1.5.x/server-rest/examples/storage/create-file.md index e2dd42aec81..1b18a8022cb 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/create-file.md @@ -1,11 +1,11 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md index ce3a81b5570..0f7f6ed134c 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md b/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md index 3824dad3ca8..2bc22c81c35 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md @@ -1,9 +1,9 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md index d67eb5c375c..f8b1248ac4a 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md index b2546ebfb61..8e72699a88a 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md index 722d8ea1b46..312c2c87ab5 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md index e436e471129..3112ccbbf5e 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file.md index 797ee58cb53..74695ded85c 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md index 1fe1fe6e7b4..f801c6a42b6 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ GET /v1/storage/buckets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/list-files.md b/docs/examples/1.5.x/server-rest/examples/storage/list-files.md index d37bee88ce2..c64556fb578 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/list-files.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md index 02e4f6b52ab..aa966fe57ce 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md @@ -1,9 +1,9 @@ PUT /v1/storage/buckets/{bucketId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/storage/update-file.md b/docs/examples/1.5.x/server-rest/examples/storage/update-file.md index af2c0ca6738..1d3183936e3 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/update-file.md @@ -1,11 +1,11 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md index 8fb7f2c3590..92ba6cb9aea 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md @@ -1,11 +1,11 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/create.md b/docs/examples/1.5.x/server-rest/examples/teams/create.md index 667031e2a67..ff86b5365bc 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/create.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/create.md @@ -1,11 +1,11 @@ POST /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "teamId": "<TEAM_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md index db22608716e..4dce5657bc7 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md @@ -1,9 +1,9 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/delete.md b/docs/examples/1.5.x/server-rest/examples/teams/delete.md index e8e7bb4e028..c071c2a9ee9 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/delete.md @@ -1,9 +1,9 @@ DELETE /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md index ed5d6cbf693..2cd4b719a05 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md @@ -1,9 +1,9 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md index dfac0657344..0486648b296 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/get.md b/docs/examples/1.5.x/server-rest/examples/teams/get.md index 1205d42fb57..90da5602f96 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/get.md @@ -1,9 +1,9 @@ GET /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md index 91b3db092c8..647ab68c067 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md @@ -1,9 +1,9 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/list.md b/docs/examples/1.5.x/server-rest/examples/teams/list.md index 650719cd6ac..67b43b562c9 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/list.md @@ -1,9 +1,9 @@ GET /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md index dbcfd29391d..5fa7888d063 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md @@ -1,10 +1,10 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md index 0e5c94eb1a3..f41efcfaa9d 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md @@ -1,11 +1,11 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "roles": [] diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-name.md b/docs/examples/1.5.x/server-rest/examples/teams/update-name.md index 682ca49812c..fb17efab356 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-name.md @@ -1,11 +1,11 @@ PUT /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md index 1cf422595b1..b6b2cc6b977 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md @@ -1,10 +1,10 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "prefs": {} diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md index d3c8ba51304..8de112573c1 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md @@ -1,9 +1,9 @@ POST /v1/users/argon2 HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md index 4824ca9835a..b85346b0610 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md @@ -1,9 +1,9 @@ POST /v1/users/bcrypt HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-rest/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..7b35707322e --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/users/create-j-w-t.md @@ -0,0 +1,11 @@ +POST /v1/users/{userId}/jwts HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "sessionId": "<SESSION_ID>", + "duration": 0 +} diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md index ac7a693149c..338df5c4cf0 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md @@ -1,9 +1,9 @@ POST /v1/users/md5 HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md index 86d51a1d225..26e6a144b79 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md index 426101ca4ed..811c8f08227 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md @@ -1,9 +1,9 @@ POST /v1/users/phpass HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md index 07597619d59..e523526c88e 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md @@ -1,9 +1,9 @@ POST /v1/users/sha HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md index 57051fef0b5..0ebd35752ea 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md @@ -1,9 +1,9 @@ POST /v1/users/scrypt-modified HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md index fdd4ce04051..ab26763949f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md @@ -1,9 +1,9 @@ POST /v1/users/scrypt HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-session.md b/docs/examples/1.5.x/server-rest/examples/users/create-session.md index cf6c9ab28b3..02c337f360f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-session.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-target.md b/docs/examples/1.5.x/server-rest/examples/users/create-target.md index ba9b99aae97..80266b1284e 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-target.md @@ -1,9 +1,9 @@ POST /v1/users/{userId}/targets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "targetId": "<TARGET_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-token.md b/docs/examples/1.5.x/server-rest/examples/users/create-token.md index 856e089bf6c..934ec0255e3 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-token.md @@ -1,9 +1,9 @@ POST /v1/users/{userId}/tokens HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "length": 4, diff --git a/docs/examples/1.5.x/server-rest/examples/users/create.md b/docs/examples/1.5.x/server-rest/examples/users/create.md index 885ab9fa28b..036f57c7a7b 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create.md @@ -1,9 +1,9 @@ POST /v1/users HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md b/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md index ab49f1958d3..32ac042d05f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/users/identities/{identityId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md index c4e389ff6c0..135301b1902 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-session.md b/docs/examples/1.5.x/server-rest/examples/users/delete-session.md index 2a88fadf70a..e718e6abf28 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md index 96d4ee638b1..740a8117ad2 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-target.md b/docs/examples/1.5.x/server-rest/examples/users/delete-target.md index 18189d75a13..b38f49e5094 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-target.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/targets/{targetId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete.md b/docs/examples/1.5.x/server-rest/examples/users/delete.md index 5f2aef9c5d0..46f2edaa4cc 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md index 0ce4059e85e..3cf339ca55f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md index faab4904e7a..afb2ec1d725 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get-target.md b/docs/examples/1.5.x/server-rest/examples/users/get-target.md index 76f69bceb32..3014c22539f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get-target.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get.md b/docs/examples/1.5.x/server-rest/examples/users/get.md index bad5c3218f3..a1b448aa69b 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get.md @@ -1,7 +1,7 @@ GET /v1/users/{userId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-identities.md b/docs/examples/1.5.x/server-rest/examples/users/list-identities.md index 3e784b07b4b..5e02343e5c3 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-identities.md @@ -1,7 +1,7 @@ GET /v1/users/identities HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-logs.md b/docs/examples/1.5.x/server-rest/examples/users/list-logs.md index 1a53a5c3eb7..cfa6b75ce40 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-logs.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md index 8ef09ab56bd..0f1825b5b09 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md index 42d5b8f8021..5ef70d1d102 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md index 2572954b828..37d23974ce4 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-targets.md b/docs/examples/1.5.x/server-rest/examples/users/list-targets.md index 3d3f56b4a1e..01c6572c261 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-targets.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/targets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list.md b/docs/examples/1.5.x/server-rest/examples/users/list.md index b41435a1edd..44fd36a284f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list.md @@ -1,7 +1,7 @@ GET /v1/users HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md index fd83b4243ef..c0e3f6fdfea 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "emailVerification": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-email.md b/docs/examples/1.5.x/server-rest/examples/users/update-email.md index 6738d08be0b..95751defb58 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-email.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "email": "email@example.com" diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-labels.md b/docs/examples/1.5.x/server-rest/examples/users/update-labels.md index 4192fce2616..2076b3bb228 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-labels.md @@ -1,9 +1,9 @@ PUT /v1/users/{userId}/labels HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "labels": [] diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md index 2fb9eaa618f..31ccea9f74c 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md b/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md index f89945d3fc1..98b2708cd46 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/mfa HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "mfa": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-name.md b/docs/examples/1.5.x/server-rest/examples/users/update-name.md index 2d3b0ffc1e5..a3cdb1c034d 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-name.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/name HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-password.md b/docs/examples/1.5.x/server-rest/examples/users/update-password.md index b8090b22738..1b984747fad 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-password.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/password HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "password": diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md index b2d19ba4014..fe49c6231cd 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "phoneVerification": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-phone.md b/docs/examples/1.5.x/server-rest/examples/users/update-phone.md index b7fa7d50783..2e5337ce2bc 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-phone.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "number": "+12065550100" diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md b/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md index f79fdf283e4..c048503369d 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "prefs": {} diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-status.md b/docs/examples/1.5.x/server-rest/examples/users/update-status.md index 106f3fc30ad..f029b62ae3b 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-status.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "status": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-target.md b/docs/examples/1.5.x/server-rest/examples/users/update-target.md index 4b51889127d..96d70d4b80a 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-target.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/targets/{targetId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "identifier": "<IDENTIFIER>", diff --git a/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md index f47f31f41a7..247d82198e9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md index ccdddd5c6c3..a54d5f00575 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md index 968527e9f89..c8042dfc0eb 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md index e95a51430bd..08d34230a0e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md index bf2e1f2f137..1e85706cf2e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md index fb9d1f9b018..8ad2db14ca6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md index d1aa8ac5e5f..253b26309ef 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md index 8df238ae9f4..38ad5492d95 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md index c6dc502af7e..b5fa72f78b0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md index 95a18b0aa51..9c64fdf47aa 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md index d3b04366d95..562453b174b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md index d79e48ac1bd..be8169e58d5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md index f6c9ac9e2f2..70e8be2ca97 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md index f95fa3bb869..0f5685bf20f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md index 51863f669cf..15f0f93a987 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-session.md index 1684a09ac30..27c265549ee 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md index a4cb5f25212..216d88c02c4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create.md b/docs/examples/1.5.x/server-ruby/examples/account/create.md index a722eac1f2e..e27f488f6b5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md index f5553056081..ace1ed64a98 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md index a6b50dff651..91cc135807b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md index 37ce0d40b0f..a38eccd0805 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md index 8bebf5a717d..9b4f352badc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md @@ -5,12 +5,11 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) result = account.delete_mfa_authenticator( - type: AuthenticatorType::TOTP, - otp: '<OTP>' + type: AuthenticatorType::TOTP ) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md index 0c63c2c36b8..4781eecdc6a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md index 8d79d217cb3..776938e2dc8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md index ffd1e6608ed..207e5219d69 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md index 951aed5e293..0a1ca1c1c90 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get-session.md b/docs/examples/1.5.x/server-ruby/examples/account/get-session.md index 61ff279944a..32a162e60d5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get.md b/docs/examples/1.5.x/server-ruby/examples/account/get.md index 153cf2eeb6d..5174ab71777 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md b/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md index 3f5fe6305ed..f5cc05831a3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md index 1fb8b3d4739..91b513b9c0a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md index 11210754e3e..b11dc1a4aba 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md index bc10699b56a..48050f2235a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md index 62cc4485060..65d50483bb1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md index 7b38086a348..f830299fe21 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-email.md b/docs/examples/1.5.x/server-ruby/examples/account/update-email.md index b5044244765..69e49847cb2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-email.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md index 496a5bdd960..bf5d7458757 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md index b7939c814d3..7e72263f97c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md index a5485169a84..ba6389d0436 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md index 92e84b3b4ea..ab0d4d31ef6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md index 3016f27c19e..5724025f636 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-name.md b/docs/examples/1.5.x/server-ruby/examples/account/update-name.md index 851010ee9dc..e071dd96fdd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-name.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-password.md b/docs/examples/1.5.x/server-ruby/examples/account/update-password.md index f826da68a5c..8dd0da6bdd5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-password.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md index 4cb0bd27e0e..90776cededa 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md index 6faf3df062c..b41bb42fad7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md index 9851e8916d6..b562355f0e2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md index 15345e655dc..5dc92d1242b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md index 3ff5f606d1a..06372cb86a5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-session.md b/docs/examples/1.5.x/server-ruby/examples/account/update-session.md index bbf039a4356..b1181e0c87a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-status.md b/docs/examples/1.5.x/server-ruby/examples/account/update-status.md index 5a12f33bf0d..f69f527dfa3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-status.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md index 19503990e7c..5a0cff80a2d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md index d04b9fcee07..3ec98a89492 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md index 518770d47eb..f48a05a06e5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md index f8b05fc9ed6..99b3c626461 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md index 1c30235f423..470512868b3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md index 34199ee9997..cd162a5f9e2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md index 348eea01f41..bc38de19c9f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md index 96eb588da2e..9d79e8eac73 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md index 9d9bd6df473..f5228664fa5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md index 600718ce3f7..35449c28f8d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md index 8387e134c7c..8d564a38e6e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md index 48477340b34..594f36eda9c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md index e9be93057a5..30ef93f61af 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md index abb77fc8da8..d7456a1d5aa 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md index 741678c748f..86212795f2c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md index 1497999eae1..3b61bf56e6b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md index cbf13bf9b82..865ce932cc5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md index 140f367ecbe..88832bdf74f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md index eb591b4d7cf..88167e1f539 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md index a868dc0a1fb..d80f19c8f80 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md index 6c8dfa32539..05f96cfb804 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md index e551d75c26a..9f216d91254 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create.md b/docs/examples/1.5.x/server-ruby/examples/databases/create.md index 020dba8c5e8..3846e50a84d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md index d79757dc619..a352a73a19d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md index d6ff193a0a1..1c0b961d2dd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md index 971d532eda5..5195ea4efe7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md index 5e8e666e12c..e91770c3388 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete.md index e142eff4a01..dbd5b559d78 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md index e6162e58619..94ed06a5080 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md index 04f62a9e10c..ff66336b85f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md index 406a8c20b71..bd0e4ec030b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md index d2aebfc858c..3042e1496f6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get.md b/docs/examples/1.5.x/server-ruby/examples/databases/get.md index 0c1d3f3edee..cd8b777cce8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md index 7c39cde7138..2a500a69e23 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md index 8d39c92be2f..bac8095c1c2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md index 4dc7cb0d41c..891e5345c8e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md index 8d82d784e12..7f86bb77b1b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list.md b/docs/examples/1.5.x/server-ruby/examples/databases/list.md index b96d2d677df..14c6fd16440 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md index c91eab7016f..854848617bc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_boolean_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: false + default: false, + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md index 9b3280ffde4..9a1c73cb102 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md index 56827225b7d..a7c8b32e9f0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_datetime_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md index 3dcc969d918..dce09af140a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md index d30a592fe36..9845f4bf4da 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_email_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com' + default: 'email@example.com', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md index 870458b71cc..6bc28c3759d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -15,5 +15,6 @@ result = databases.update_enum_attribute( key: '', elements: [], required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md index 5a1ded1ae23..241a6395a4d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,7 +14,8 @@ result = databases.update_float_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md index 44e25405780..15e3960a964 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,7 +14,8 @@ result = databases.update_integer_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md index ddf841617b5..b53719edd86 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_ip_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md index a13af6a0447..2b9d72a93a4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -13,5 +13,6 @@ result = databases.update_relationship_attribute( database_id: '<DATABASE_ID>', collection_id: '<COLLECTION_ID>', key: '', - on_delete: RelationMutate::CASCADE # optional + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md index d7fb983368b..5e4ac573dcc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,7 @@ result = databases.update_string_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + size: 1, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md index 28cdbe2c9cf..4367107e950 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_url_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com' + default: 'https://example.com', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update.md b/docs/examples/1.5.x/server-ruby/examples/databases/update.md index a024d211542..eb5e42c3996 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md index 313a49db75b..031bf03d6be 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md @@ -4,13 +4,13 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) result = functions.create_build( function_id: '<FUNCTION_ID>', deployment_id: '<DEPLOYMENT_ID>', - build_id: '<BUILD_ID>' + build_id: '<BUILD_ID>' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md index 14654948206..8c0b3a58d81 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md index 920b26c86df..bda612c813f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with functions = Functions.new(client) @@ -15,5 +15,6 @@ result = functions.create_execution( async: false, # optional path: '<PATH>', # optional method: ExecutionMethod::GET, # optional - headers: {} # optional + headers: {}, # optional + scheduled_at: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md index 1d3b141f17f..10fa86e4ccf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create.md b/docs/examples/1.5.x/server-ruby/examples/functions/create.md index 51c4ac5cd38..9c0bf2911b0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) @@ -22,6 +22,7 @@ result = functions.create( logging: false, # optional entrypoint: '<ENTRYPOINT>', # optional commands: '<COMMANDS>', # optional + scopes: [], # optional installation_id: '<INSTALLATION_ID>', # optional provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional provider_branch: '<PROVIDER_BRANCH>', # optional @@ -30,5 +31,6 @@ result = functions.create( template_repository: '<TEMPLATE_REPOSITORY>', # optional template_owner: '<TEMPLATE_OWNER>', # optional template_root_directory: '<TEMPLATE_ROOT_DIRECTORY>', # optional - template_branch: '<TEMPLATE_BRANCH>' # optional + template_version: '<TEMPLATE_VERSION>', # optional + specification: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md index 4d6d58cd6b1..642bf23b903 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete-execution.md new file mode 100644 index 00000000000..bb91baa338a --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete-execution.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.delete_execution( + function_id: '<FUNCTION_ID>', + execution_id: '<EXECUTION_ID>' +) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md index b1b7abc4e8a..c36a58359ee 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete.md index 82737b01b85..787692accc5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md index 98f2cdd7b23..f31c13ec9db 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..01db87c7541 --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment-download.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.get_deployment_download( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md index 51beea92a9e..b6baee49104 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md index 6ddf923d24f..6b19e4e65b6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md index f84a46e42b0..30d6a0009df 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get.md b/docs/examples/1.5.x/server-ruby/examples/functions/get.md index 7248bac3e7d..c2d63deb77a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md index 72532e34ade..7db9d45c01d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md index 7f1c147840f..159c78dbde0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md index 431ba11d1e5..938fcf75526 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-specifications.md new file mode 100644 index 00000000000..2ccd05e3fd2 --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-specifications.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.list_specifications() diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md index a2293535007..6159bf102bc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list.md b/docs/examples/1.5.x/server-ruby/examples/functions/list.md index 06336138c73..a49034d0514 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..5164aebd6ef --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment-build.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.update_deployment_build( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md index ef403735176..862e86d2a66 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md index 77db1b940a4..6ac47f80dc7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update.md b/docs/examples/1.5.x/server-ruby/examples/functions/update.md index d258dc30d76..8f5cafdb551 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) @@ -21,9 +21,11 @@ result = functions.update( logging: false, # optional entrypoint: '<ENTRYPOINT>', # optional commands: '<COMMANDS>', # optional + scopes: [], # optional installation_id: '<INSTALLATION_ID>', # optional provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional provider_branch: '<PROVIDER_BRANCH>', # optional provider_silent_mode: false, # optional - provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>' # optional + provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional + specification: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md index 0a744c9ca54..7daf975ea66 100644 --- a/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/graphql/query.md b/docs/examples/1.5.x/server-ruby/examples/graphql/query.md index 1606e365f36..0825bdea46a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-ruby/examples/graphql/query.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md index e8f84fb705e..51125076569 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md index 5a6c7c26613..5493b757be1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md b/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md index 68fe88c88e7..dcfcb6afb7e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md index 716bca7e5fc..a707a14ada3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md index 78b7e88b476..da41856b403 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md index 35029bc8107..4d86e06ea23 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md index 609c0088271..bb002f8b393 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md index 8cc69a14ccd..59572f94f3b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md index e6c6e9dc504..e09233bc343 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md index f2f273833e8..184c13421c8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md index 1da04f82c96..b44b7b8983c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md index 87dc2e03068..dd3f8759c36 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md index 2eb19cef2ec..ce7c40587b1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md index 27d2aca3e7a..842da5bdd0c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md index 4125bb99ee9..3349291ff83 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..9796195c407 --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_stats_resources( + threshold: null # optional +) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md index 2363018227d..6cc915cbe79 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md index 414bd102687..b1d17042e76 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md index 207039b13c4..982e244bbbd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md index ef9e7837336..1eb1399b669 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md index 6a4a5f9b639..8a04f77b9bf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md b/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md index c5305dd35d8..6a5dfa97e4c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-time.md b/docs/examples/1.5.x/server-ruby/examples/health/get-time.md index 0eedfd4cd41..9e95c2332e1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-time.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get.md b/docs/examples/1.5.x/server-ruby/examples/health/get.md index 9ab56f1c5eb..5c82e66ce21 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/get.md b/docs/examples/1.5.x/server-ruby/examples/locale/get.md index 3bba39add96..d3a982d0431 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/get.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md index 30ddf1fbab3..74a41b95245 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md index cedb5057730..312936104ca 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md index 17101e78cbe..9b19151d110 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md index b03b1a93b67..c011734ae1c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md index 5de35adbe3d..4884f6a6810 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md index 4323fe7337c..3dcfb703dba 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md index 025dffa9520..3d9a2dbc9c2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md index 3d9425415d3..770125e936a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md index 3f9e84a780e..88988f6e438 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md index 1f46f01e5a8..c64cf5f2842 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md index 9552da9aa50..2e727936b72 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md index 3aa3e4eae52..1c23df81f7f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md index 5f9608c4350..3c8a574d6e4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md index 951b3bffcca..7037f00d0e3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md index 26c29c59def..61663f4dc0f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md @@ -4,15 +4,15 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) result = messaging.create_push( message_id: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', # optional + body: '<BODY>', # optional topics: [], # optional users: [], # optional targets: [], # optional @@ -23,7 +23,10 @@ result = messaging.create_push( sound: '<SOUND>', # optional color: '<COLOR>', # optional tag: '<TAG>', # optional - badge: '<BADGE>', # optional + badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md index 012095ab845..d73887837cc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md index 601663bc8c5..8b3d556596c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md index 11831f145f2..e9c31548d46 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md index bc25191c913..58a96aa4772 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md index 02ae76d5759..cbdaaaf8b53 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md index 1fc7a5ababb..973349084f9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md index 727369329f4..40c60a793c4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md index 6f8025bd1c7..804f0b2c86a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md index 0a290f9d856..f1f29c99624 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md index 44c51c48707..1350b8535a0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md index 2efe730a092..c1c83a4b0b9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md index 47521cd37a1..86c9ae1473c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md index 834a6b335c2..5606269d53e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md index 14772d37749..d8506621945 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md index 3aafc876d14..1155406f819 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md index 72e3614ef86..8b7ffad012b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md index 1d25b0199aa..3da5beb468e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md index 45b12de176d..278aba08d2d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md index 62a6e30fe87..ec58550f235 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md index 581f0f2ab38..7db1381d84b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md index 8ef429805ed..07fc3fcc9bd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md index 03df3ad2cd0..fda60b669ac 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md index 1afab7d1656..43f4a213f5b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md index e131f59c7da..5be2900cb65 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md index e033939311a..6583f9300e2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md index d763add9081..7354fc54b66 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md index 903006a76d4..fb1f0e21b3a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md index b5351bd52cb..c00b8f1731f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md index 3c59e90b48b..cf9a52d51bf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md index db12c14d59e..e1748e6d88f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md index a692c554027..baae0f9462c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md index e398b701c2b..2a296658253 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md index 6660826b70b..463e028d5ae 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md index f5aee1ddc10..38f741749bc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md index a8adc2d8acc..b58c04f4946 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md index 55e0f2d18de..6bf9fcaa79f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) @@ -25,5 +25,8 @@ result = messaging.update_push( tag: '<TAG>', # optional badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md index cf0114115e3..6e3f2611b99 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md index 51b2a7a0ef3..508be6e93eb 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md index cb3f5979372..afa2c172f72 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md index fc520cd97f8..31adae7aa2f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md index 14b5d984757..00c6d57c0ec 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md index 6dcd3fb9276..1d530f07b65 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md index a3c3d5cb70b..e4e7a42d705 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md index 6eb8dc8449f..c944fb4ab6c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md index 5f1cdb8cf86..8203054f59d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md index 83a788c62ba..01d7fe12de7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md index 385641f285a..a6bb22cc5af 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md index 13fe6554600..c6f3e266a99 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md index a91f4587530..37d504cdc3f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md index 5b369f18d93..74bd8df8a85 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md index 7e8049c7634..158fc300b0f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md index 8f1c4d26857..86efd7c609e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md index bb47d0a37b6..2babfbd856d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md index a4386594701..b6b0c560bb9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md index cb1705a3e43..76bcca44832 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md index 56cee3ac7f1..73cf40ed4fd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md index e8776f168ae..0ce09d8c150 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md index 87491d06287..3db084deff5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md index 6d3a93c40aa..ed50e9c9081 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md index cce792959dd..1990223142f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/create.md b/docs/examples/1.5.x/server-ruby/examples/teams/create.md index b6fca1c3d96..e462cf42778 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/create.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md index d02bacd767e..4dc3397592d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/delete.md b/docs/examples/1.5.x/server-ruby/examples/teams/delete.md index 6c8931bd3bc..f4879ba422b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/delete.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md index 54098318c2e..ed60299e2c2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md index 87bb54cfee8..1708412d562 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/get.md b/docs/examples/1.5.x/server-ruby/examples/teams/get.md index c57565daff5..5d5a274b558 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/get.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md index 28e51ebcbc4..ac22269e3c0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/list.md b/docs/examples/1.5.x/server-ruby/examples/teams/list.md index ca84b8f1183..50b49f8b45f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/list.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md index daeee571bc2..bb22ef03e70 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md index 65a206b38ba..7f92ff053cf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md index 324d6cb121d..267e5f29636 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md index 08df9cce4a4..337db7f22f1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md index 073b8405a61..8b633daaa8c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md index 800f1932bff..d76f653d276 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-ruby/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..a30a2b6bf04 --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-j-w-t.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_jwt( + user_id: '<USER_ID>', + session_id: '<SESSION_ID>', # optional + duration: 0 # optional +) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md index 75304c11fe8..80ca9f59cba 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md index 3766310c8d6..64fc8d5c58c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md index 29925904a21..2fa6081cea9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md index d7361f74508..39c17743fd5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md index ff0b9fdaca3..2a0ac89ebed 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md index c8ef8ee24ef..38c250e5520 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-session.md b/docs/examples/1.5.x/server-ruby/examples/users/create-session.md index ccf143da6c5..ece2f429af7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-session.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-target.md b/docs/examples/1.5.x/server-ruby/examples/users/create-target.md index d9b6f4d2a27..5e5d9433310 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-target.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-token.md b/docs/examples/1.5.x/server-ruby/examples/users/create-token.md index 8e5fc767583..318294b9899 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-token.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create.md b/docs/examples/1.5.x/server-ruby/examples/users/create.md index 310706e9d4c..aa742f60ffb 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md index 24b17dbfe4a..988edcea1dd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md index bce226b8448..3c2e7a55b91 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md index 737d52b569c..9bed8637c2a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md index 0652d8e7065..4ac5f2795c9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md index 88c63f76156..b83a4224f2c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md index 3c275d6144c..0e016cf70cf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete.md b/docs/examples/1.5.x/server-ruby/examples/users/delete.md index 3494a66f115..0aea69334ef 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md index a06060c732e..f12a2879ee2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md index b1705aeaf4e..afcb56f42db 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get-target.md b/docs/examples/1.5.x/server-ruby/examples/users/get-target.md index 641cb0f5601..b2e268e8163 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get-target.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get.md b/docs/examples/1.5.x/server-ruby/examples/users/get.md index 056f772302c..86ec849c7c8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md b/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md index a9c71759ff2..e0b5618dc5f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md index 539f108e860..2d4aa2f7eec 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md index 7138c779fa0..a13cec1b536 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md index 6e102d26671..8706af14051 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md index 44ea4775f37..ab98651311e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md b/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md index 905a1b18338..f05ec6db107 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md index 3169afa7a31..17faa167019 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md b/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md index 0f071251a4d..9b849e4fcc2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list.md b/docs/examples/1.5.x/server-ruby/examples/users/list.md index a67741daa79..40d1e839445 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md index 61b85984e00..439fa330d40 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-email.md b/docs/examples/1.5.x/server-ruby/examples/users/update-email.md index 4be0112e198..d93141f3c97 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-email.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md index 063e0c35700..2789e8fea99 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md index 8dde2d09002..1fc497c22ec 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md index 5d076d0252d..9bafee47efc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-name.md b/docs/examples/1.5.x/server-ruby/examples/users/update-name.md index 08eec197143..7645c165971 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-name.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-password.md b/docs/examples/1.5.x/server-ruby/examples/users/update-password.md index 24f26d8fdf5..40e03eea9c5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-password.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md index a2c46b0b08b..88082ee0342 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md index 6a2083bc585..b08daa83860 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md index b7c843ad56f..9871ff5b625 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-status.md b/docs/examples/1.5.x/server-ruby/examples/users/update-status.md index 9a024033eeb..a5d9544cbfc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-status.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-target.md b/docs/examples/1.5.x/server-ruby/examples/users/update-target.md index 70d74f624f7..6acc913642b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-target.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md index 07607a31688..ce7e7650c04 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md index 9904f6f222e..f676bac4da4 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md index 9d3b54a152d..4ebb3cbbfa6 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md index 8740f0caa91..15051827b86 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md b/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md index 40535d583ab..b9d39ff27f9 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md index c18c3c940ab..c1c0f22dffc 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md index 1fd73607328..83eb681673b 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md index ff53e0b20ac..70294e99a22 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md index 4045203b299..6d262d9c74a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md index 77bb2efd8f4..8480f417792 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md index e7d6a539e39..77826ccac7a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md index 677450ecdbe..7bbfe98f48c 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md index a0c3a8cd876..acb7a696bcb 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md index 1391fe56794..8bab0b760f3 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md index 1069fd4a844..f110d5b84d2 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-session.md b/docs/examples/1.5.x/server-swift/examples/account/create-session.md index 4ed985dda3a..3ea51195697 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-verification.md b/docs/examples/1.5.x/server-swift/examples/account/create-verification.md index 259bb51a993..305adcab30b 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create.md b/docs/examples/1.5.x/server-swift/examples/account/create.md index e7caef4dc0e..cad7e44c449 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md index 56386ccb9ca..5c0523f0f04 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md index 125244e8ecf..b8d01666c76 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md index 59001b43fad..e0322503f80 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md index eeee94cd213..9aa02ff4caa 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md @@ -3,13 +3,12 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) let result = try await account.deleteMfaAuthenticator( - type: .totp, - otp: "<OTP>" + type: .totp ) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-session.md b/docs/examples/1.5.x/server-swift/examples/account/delete-session.md index c0682f47b9c..9c685bc5514 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md index bfd1689ea21..59710f1a771 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md index d24b4f9c2fe..34743be6d30 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md index 6351eb2c1df..08d9ab5b4ac 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get-session.md b/docs/examples/1.5.x/server-swift/examples/account/get-session.md index 49f0f57a076..37747add26f 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get.md b/docs/examples/1.5.x/server-swift/examples/account/get.md index 701135bd8a0..91ed56ab7c2 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-factors.md b/docs/examples/1.5.x/server-swift/examples/account/list-factors.md index e2fc910ec27..13d0ef8810e 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-identities.md b/docs/examples/1.5.x/server-swift/examples/account/list-identities.md index 973719579fd..96c6fd9dc27 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-identities.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-logs.md b/docs/examples/1.5.x/server-swift/examples/account/list-logs.md index 28b72f7fc7f..1a93da0d0eb 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md index 0fcf12eaddf..72c2f5affef 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md index 6d8b6742067..67bb1070918 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md index a671374dc3a..b4f3a35e1a5 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-email.md b/docs/examples/1.5.x/server-swift/examples/account/update-email.md index 21e907a4af3..d8126b5cf86 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md index 35f69fbae45..4a471a4a358 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md index 6950792fb51..8e0a26a6ef7 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md index cde9bf2c5b2..30e2705318b 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md index 13bd81ea7de..fee76bf0dd8 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md @@ -2,12 +2,12 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md index b194a21460c..2be8f6fbf6a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-name.md b/docs/examples/1.5.x/server-swift/examples/account/update-name.md index 89b64ee2354..419b30a0098 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-password.md b/docs/examples/1.5.x/server-swift/examples/account/update-password.md index aca15882aea..8358ede14f6 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md index 71d404eee4a..50a88cbe519 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md index c4aee72c8bb..13b0baca639 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-phone.md b/docs/examples/1.5.x/server-swift/examples/account/update-phone.md index 0c1517bc367..496ddd9d0ee 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md index b39d94392aa..846764b4e5f 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md index e6df18509db..82e86839d82 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-session.md b/docs/examples/1.5.x/server-swift/examples/account/update-session.md index 3e7a0be2cc1..866ea03047a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-status.md b/docs/examples/1.5.x/server-swift/examples/account/update-status.md index 979cf37f3ed..d63ceed7243 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-verification.md b/docs/examples/1.5.x/server-swift/examples/account/update-verification.md index 2d79cfc7d92..5bae6777440 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md index 2c113111808..bc5398088e8 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md index dbe9f60a5dc..e2a79f953f5 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md index 9475b42d63e..741d3410604 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md index bb5ed293f09..0ee7ba17669 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md index ecde3c8ae9a..2bdd9577ee0 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md index 37fa82b5404..fecadf7cf7e 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md index d324dcb882d..d5e09050f26 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md index 3c418c2ff5b..56f4b9c7d79 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md index c7ffdd0eb09..0776be6ead8 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md index 241b381008e..79c2d59861e 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md index 022be46b326..b4f51d8f0c9 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-document.md b/docs/examples/1.5.x/server-swift/examples/databases/create-document.md index aac1abd0b7d..5f480a5ee45 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md index e64ce2fc9c8..7c44f4d62ef 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md index ca055202077..b1d680824c1 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md index 9353b2f9a25..780e53b7752 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-index.md b/docs/examples/1.5.x/server-swift/examples/databases/create-index.md index 03d0b965f7c..bd1d26dc323 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-index.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md index b43fd66afcf..03fea65bc65 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md index 8c3af36cc61..4e601a37c8e 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md index faee863d677..c85b4779984 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md index e3b4763e1a0..6a7ae27c6eb 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md index ebd7ef43a5e..6d59fed9584 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create.md b/docs/examples/1.5.x/server-swift/examples/databases/create.md index b6eb502b92c..82689d1b52d 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md index 7f0690d3622..7fb7c3a02e2 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md index 2f22e551c36..781e97c27d0 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md index e0728330fb2..f934d5b29c2 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md index df7015f5ca7..f819d921b69 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete.md b/docs/examples/1.5.x/server-swift/examples/databases/delete.md index d6ef6c4918c..8cb3f882128 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md index 4910e2b6d49..f22fd9280af 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md index 6fed2393b70..81b0bf21bac 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-document.md b/docs/examples/1.5.x/server-swift/examples/databases/get-document.md index 27338b8afab..206fddd3e6b 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-index.md b/docs/examples/1.5.x/server-swift/examples/databases/get-index.md index 572b04d7b99..b2c1b30902e 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get.md b/docs/examples/1.5.x/server-swift/examples/databases/get.md index f6ba9543f77..37c15982cbb 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md index 2e5a5afa3b5..356b13be0fd 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md index bfa60eb66fb..03db34f8d56 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md index 45683f831e9..11dc91d2ae5 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md index 643f51097bf..2f37a0b30d8 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list.md b/docs/examples/1.5.x/server-swift/examples/databases/list.md index e65284b9827..e27367659a0 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md index 98293937a7d..e40da1a1e16 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeBoolean = try await databases.updateBooleanAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md index 4338b1abb54..741d3c60160 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md index 41324dddb81..a7728d24c54 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeDatetime = try await databases.updateDatetimeAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-document.md b/docs/examples/1.5.x/server-swift/examples/databases/update-document.md index 52e6a52caf0..67cfb960ea7 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md index c5e1f16b279..137ca78afe7 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeEmail = try await databases.updateEmailAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md index 4f6823878bd..bf7df6f7143 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -13,6 +13,7 @@ let attributeEnum = try await databases.updateEnumAttribute( key: "", elements: [], required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md index c95c12f804f..7e246a76355 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,8 +12,9 @@ let attributeFloat = try await databases.updateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md index 5e26e2ad7e8..d502b8cef1d 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,8 +12,9 @@ let attributeInteger = try await databases.updateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md index 99bbbb6cd7a..2b4109665a1 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeIp = try await databases.updateIpAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md index fa5bd54fbce..8faa5ae17ff 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeRelationship = try await databases.updateRelationshipAttribute( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: .cascade // optional + onDelete: .cascade, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md index fe381e051dd..d3129dcce2a 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,8 @@ let attributeString = try await databases.updateStringAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md index e3f7bb24479..b442a6add44 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeUrl = try await databases.updateUrlAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update.md b/docs/examples/1.5.x/server-swift/examples/databases/update.md index 9d60ad44e98..a03a74b4ff5 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-build.md b/docs/examples/1.5.x/server-swift/examples/functions/create-build.md index d2ce165e869..f67ac99bc17 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-build.md @@ -2,14 +2,14 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) let result = try await functions.createBuild( functionId: "<FUNCTION_ID>", deploymentId: "<DEPLOYMENT_ID>", - buildId: "<BUILD_ID>" + buildId: "<BUILD_ID>" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md index 7eeee10ec80..bcd10ae042a 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md index cf6acb5fca7..560f1a977f4 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) @@ -14,6 +14,7 @@ let execution = try await functions.createExecution( async: false, // optional path: "<PATH>", // optional method: .gET, // optional - headers: [:] // optional + headers: [:], // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md index e1e78f75c9c..3af32209755 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create.md b/docs/examples/1.5.x/server-swift/examples/functions/create.md index ab776cb327c..fb614b5a4ec 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) @@ -20,6 +20,7 @@ let function = try await functions.create( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: [], // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional @@ -28,6 +29,7 @@ let function = try await functions.create( templateRepository: "<TEMPLATE_REPOSITORY>", // optional templateOwner: "<TEMPLATE_OWNER>", // optional templateRootDirectory: "<TEMPLATE_ROOT_DIRECTORY>", // optional - templateBranch: "<TEMPLATE_BRANCH>" // optional + templateVersion: "<TEMPLATE_VERSION>", // optional + specification: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md index ad5fd237934..cf9315e9af1 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-swift/examples/functions/delete-execution.md new file mode 100644 index 00000000000..f6e13cd4bb4 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let result = try await functions.deleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +) + diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md index 08ae7e9499e..7d09f110488 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete.md b/docs/examples/1.5.x/server-swift/examples/functions/delete.md index ff9a12f6be3..ff1d0490909 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md index e01e8feb28b..189d829fb0f 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..6d08d9bb7f0 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment-download.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let bytes = try await functions.getDeploymentDownload( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md index 7246236c3ee..438b667e105 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md index 6b16cc45cc7..0aa9d66af62 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md index 17b7060486f..0832b41e887 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get.md b/docs/examples/1.5.x/server-swift/examples/functions/get.md index 5063dfc1733..aa434c03e34 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md index 21b737d60f5..5f005f02fae 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md index c25b06e5bca..2c28d542745 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..bad50b172c6 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-swift/examples/functions/list-specifications.md new file mode 100644 index 00000000000..0c9da2df0b2 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let specificationList = try await functions.listSpecifications() + diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md index cbddf45a3a4..67030b93d1d 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list.md b/docs/examples/1.5.x/server-swift/examples/functions/list.md index 475cab3ff66..f6ed013a564 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..9003a02df3f --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment-build.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let build = try await functions.updateDeploymentBuild( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md index 49730d22014..9ae6ec4f51e 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md index 5e468259c8c..67169852a7c 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update.md b/docs/examples/1.5.x/server-swift/examples/functions/update.md index 51b7aa7fd06..dcc4ed637e8 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) @@ -20,10 +20,12 @@ let function = try await functions.update( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: [], // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional providerSilentMode: false, // optional - providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>" // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md index db869d48c93..6d4f7475370 100644 --- a/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-swift/examples/graphql/query.md b/docs/examples/1.5.x/server-swift/examples/graphql/query.md index 5e97508be50..4a10f57cbcb 100644 --- a/docs/examples/1.5.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-swift/examples/graphql/query.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..d45b7190eb7 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-cache.md b/docs/examples/1.5.x/server-swift/examples/health/get-cache.md index a682d63a6f6..4d493c40ad7 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-cache.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md b/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md index 6014dd55385..1d2d453d73e 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md index 81645497b5c..c7b5127d59f 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md index b76dc69ac6c..5120c072a6c 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md index 5bf027108a5..561fc6b7a97 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md index af09ed2bcb9..81b4fb2523a 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md index 48d39f2a41f..cecb88ae675 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md index 016146d796a..b3fefc8b050 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md index 33ea2381098..0d90387c6df 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md index a66e8ace0dd..961cc6221d7 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md index 6bdf95f73d2..34d26efd758 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md index 6424b4d7251..f48a96d7c8a 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md index 31db7ac5f54..7a171bd7339 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md index 503d0bf5715..f36eb129a60 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..3c349662cb7 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueStatsResources( + threshold: 0 // optional +) + diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md index 3537c4ccf20..3830e94bd0b 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md index 586e635e974..b3bc88ed881 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md index dcfd11e8e4f..25ed30f4426 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue.md index 6f8131d7e83..88e3b8a82b1 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md index ee807980bba..4e8518362c1 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-storage.md b/docs/examples/1.5.x/server-swift/examples/health/get-storage.md index eccd97db13c..fbe116fccef 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-storage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-time.md b/docs/examples/1.5.x/server-swift/examples/health/get-time.md index f6d66d950a9..02cca3f21bc 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-time.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get.md b/docs/examples/1.5.x/server-swift/examples/health/get.md index 828f3453e0c..140b304461e 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/get.md b/docs/examples/1.5.x/server-swift/examples/locale/get.md index cabd64c3a7c..94121fd0b28 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md index d8704287fa9..1f41799b204 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md index fd700f34354..f46f3c034bd 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md index 8cf5ca1f8fc..ee57e01a8e1 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md index aa0ca92ff0f..9263de68e5b 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md index b82c61c2037..d793492f719 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md index 43a48a1b240..eb0ddf7f5e1 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md index 0aedcd735bd..19a70b23a4e 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md index d56050fedfc..0e6f8e32749 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md index f16352c968f..9bbb4da7a1d 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md index d1a5f86fc96..655daeaad4c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md index 41a3d44b823..375720320b2 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md index 6a39c33d875..b127946cf84 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md index 752ec02efb4..63fd5a127fb 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md index 35647c63084..57cd54be154 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md index c62f36d8433..42f48ddd2e9 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md @@ -1,16 +1,17 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) let message = try await messaging.createPush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -21,8 +22,11 @@ let message = try await messaging.createPush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md index 7c764462cba..8efc17ac938 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md index 16647161abf..fba631f080c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md index 3f435bc8294..e8b70b629f8 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md index ae465198f0b..22ca198e461 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md index ba097b110a4..5eff6413e1e 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md index 68afa345a07..087ec0e31e1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md index e960d5a2b83..b9beb151f6f 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md index 361934887b8..f1802d9f296 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md index c6227a4787b..14f222907b4 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md index 131b54c5f01..f0f0d6e0875 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md index 609001481e7..4e683dfc9d1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md index ffc9b6927af..3652609bec1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md index 24e86a12957..b083fc4e1ac 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md index 771d98415a0..1de412682d3 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete.md index 148c945bd8e..2e407808af3 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md index 358dadeeb4d..5db5f7d5084 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md index 419f2a5c69c..b5a81562883 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md index fbc702d2e15..ac4d2898716 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md index 06723c55c20..3d883714588 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md index 4512e065190..c58ef450d25 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md index c47f9be12f8..bfa9222239c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md index 8fcb13f3bc3..55f0d1f2541 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md index dc395dc8c9f..fbb5803538e 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md index 0debb66a921..a83cb6053db 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md index 9d2be0336c0..ded4fdf9757 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md index facdb44eba8..00219f15f6f 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md index 396ca6cec5f..68f121c9efe 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md index 5ee09819b88..617b13c70d6 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md index 09574c870c0..05f474809a7 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md index 071d2ee7cee..012e91e7bf2 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md index 358bf5dea61..e9251641806 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md index 69cbf382f5a..6c240f8c6b8 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md index 428eaca6972..60a0ce46e2f 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md index 63d27b8e847..bc385267ecd 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md index 5d8cebb325b..3818b7a9c1c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md index 5344fb369b2..02893a180ae 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md @@ -1,9 +1,10 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) @@ -23,6 +24,9 @@ let message = try await messaging.updatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md index cdf0f9329d4..e3475259cc6 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md index 408bc0d3afb..f6dcc74c716 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md index 0ec24c4a9af..af950c7db05 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md index cf588c954f3..8f4476783ec 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md index 3c71a8309e5..95db5056cfc 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md index 51dc3ba1093..0d3279c98b1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md index 530da15950e..738d27d7c11 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md index 5d645df59b9..ad5edd1f904 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md index d505416f43e..6320665e616 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md index 6a0e4ae9a22..ffdbe95d3de 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md index 57c8beefc54..4ebbdf84153 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/create-file.md b/docs/examples/1.5.x/server-swift/examples/storage/create-file.md index cdf2215fc08..0716cf7d237 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md index 4bef1753322..56c7d3ed6d9 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md index 151bd96db1d..35dca5e706d 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md index 9e92b87dd76..e33af5cc3b3 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md index 90379b0c51e..40607d08ddd 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md index 4377ce92ec0..e3372093d8a 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md index ff035c5c06f..0c88e15b729 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file.md index 4ab1605215b..a0c997c40b1 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md index a538679339d..2329b15ad6e 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/list-files.md b/docs/examples/1.5.x/server-swift/examples/storage/list-files.md index 18bbc357ca3..546bd1c1ef3 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md index 472a243d9ac..4122d1f062e 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/update-file.md b/docs/examples/1.5.x/server-swift/examples/storage/update-file.md index 708138a58f3..ca3fc2c293b 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md index 215fcf25c43..5c86f2db335 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/create.md b/docs/examples/1.5.x/server-swift/examples/teams/create.md index 5b46ca3f9a0..2533c279027 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md index df1607bf097..e260b01ff84 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/delete.md b/docs/examples/1.5.x/server-swift/examples/teams/delete.md index 9393066a929..b9fbcbe4466 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md index 5a640c33b9e..cce480cc70e 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md index 966c06b94da..9ec230df38c 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/get.md b/docs/examples/1.5.x/server-swift/examples/teams/get.md index 0b0f921bef2..8dce2c137ba 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md index 1edb4d7052a..08b3235e518 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/list.md b/docs/examples/1.5.x/server-swift/examples/teams/list.md index 5c69c524d80..8b6d0a16744 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md index 1630b8c615a..1ae6d6e9936 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md index 5948c43c6f6..92b747458ae 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-name.md b/docs/examples/1.5.x/server-swift/examples/teams/update-name.md index 3425f5d5bda..bc9731bd567 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md index fce81c6e04d..b86e93793e7 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md index f122745de67..6f584e47245 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md index 24f5343607b..cd0960f354f 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-swift/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..77ef4da98f5 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let jwt = try await users.createJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", // optional + duration: 0 // optional +) + diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md index 48eadabd158..a305f6a744a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md index fd3b6fe96d0..cb25d43cb1c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md index 491c29f8ae8..5a95af73e41 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md index b841a0f41bf..70d6f284db6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md index 8b1472427d5..62709130e3b 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md index 579336e9678..41a086560da 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-session.md b/docs/examples/1.5.x/server-swift/examples/users/create-session.md index 3e506dcc670..764d4d87d69 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-target.md b/docs/examples/1.5.x/server-swift/examples/users/create-target.md index e52aa113840..f6bc443ea4e 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-target.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-token.md b/docs/examples/1.5.x/server-swift/examples/users/create-token.md index 94d3499b021..0d8c363537a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-token.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create.md b/docs/examples/1.5.x/server-swift/examples/users/create.md index 1393f6a6466..8c07a780b61 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md index 2b311241b8f..86d44fbcdf3 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md index 9fa0d4c7c87..c5bf2b35266 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md index f55282af77f..5f1d6a0eebe 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md @@ -3,12 +3,12 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) -let user = try await users.deleteMfaAuthenticator( +let result = try await users.deleteMfaAuthenticator( userId: "<USER_ID>", type: .totp ) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-session.md b/docs/examples/1.5.x/server-swift/examples/users/delete-session.md index 6308430e743..3f191a2502a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md index 0aaea4f1c06..6c4e8bfc082 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-target.md b/docs/examples/1.5.x/server-swift/examples/users/delete-target.md index 2f9f843d856..274bb60a8d3 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete.md b/docs/examples/1.5.x/server-swift/examples/users/delete.md index 5d26ebc5705..2b28a98532c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md index 93300d1217c..dc7f4711349 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md index fa718a69001..aec033a96d7 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get-target.md b/docs/examples/1.5.x/server-swift/examples/users/get-target.md index 0f4e373d096..d6753814c87 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get.md b/docs/examples/1.5.x/server-swift/examples/users/get.md index 730a7e463bf..095c84c8dc6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-factors.md b/docs/examples/1.5.x/server-swift/examples/users/list-factors.md index c5a9971a2ab..8374c374625 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-identities.md b/docs/examples/1.5.x/server-swift/examples/users/list-identities.md index 7a18c6aada6..b31890275ee 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-identities.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-logs.md b/docs/examples/1.5.x/server-swift/examples/users/list-logs.md index e6fb9437c62..5e80043d793 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md index 9d8607317e8..5ca0152cd79 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md index 698df04978f..4cf7d7ce6e6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-providers.md b/docs/examples/1.5.x/server-swift/examples/users/list-providers.md index 23b476a9275..55ad345652a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-providers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md index 8a76f754751..035716ed168 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-targets.md b/docs/examples/1.5.x/server-swift/examples/users/list-targets.md index 6ff1aa4ea64..3ab651c6e70 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list.md b/docs/examples/1.5.x/server-swift/examples/users/list.md index de98510ac9c..aaa619e202c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md index 86ed9effe26..cd4b51b00af 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-email.md b/docs/examples/1.5.x/server-swift/examples/users/update-email.md index 5ac30bbf1e4..3a80ae5c5d3 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-labels.md b/docs/examples/1.5.x/server-swift/examples/users/update-labels.md index 7180c87710c..5b3000df73a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-labels.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md index d933d2d12c8..528319c7aa7 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md b/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md index 1cd25a6ad2b..3fd25717689 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-name.md b/docs/examples/1.5.x/server-swift/examples/users/update-name.md index 75c801dda6e..bf697be84ee 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-name.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-password.md b/docs/examples/1.5.x/server-swift/examples/users/update-password.md index 9fc74833f36..0f35cefc0a6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-password.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md index 80c2f13e468..7f99390ff5f 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-phone.md b/docs/examples/1.5.x/server-swift/examples/users/update-phone.md index bf175e6ad1c..2097c452ff2 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-phone.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md index 2a675326eac..d4818db4f2c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-status.md b/docs/examples/1.5.x/server-swift/examples/users/update-status.md index 3de9ce63bc0..2408d055665 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-status.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-target.md b/docs/examples/1.5.x/server-swift/examples/users/update-target.md index c08e6cca2ed..bd3cc7c470f 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md index 1639cdc1f02..9d805882b85 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md b/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md index 817bda0123d..428b6fddb62 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-email-token.md b/docs/examples/1.6.x/client-android/java/account/create-email-token.md index a4bc83b6013..869f4a89910 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-email-token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md index 9aeb29c77a1..9e3bd287f38 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md index e57758aca47..6253e00d580 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md index b8b06c34f31..54781f2dc8a 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md index d9d9bb67324..87a56fe350f 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md index 6e23ad2a996..ab507342156 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md index 59f5b418e73..4420859ce39 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md b/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md index 610319682c7..e5590c8ceb6 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-phone-token.md b/docs/examples/1.6.x/client-android/java/account/create-phone-token.md index a1ad85be754..19d90b34756 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md index cca9283392c..8c16b6c2682 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-push-target.md b/docs/examples/1.6.x/client-android/java/account/create-push-target.md index 34e8fcb25d6..d434a5c6f68 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-push-target.md +++ b/docs/examples/1.6.x/client-android/java/account/create-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-recovery.md b/docs/examples/1.6.x/client-android/java/account/create-recovery.md index 4d2af8b160a..5592c6eb66d 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.6.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-session.md b/docs/examples/1.6.x/client-android/java/account/create-session.md index 71d11a541cb..0c59a802b15 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-verification.md b/docs/examples/1.6.x/client-android/java/account/create-verification.md index be4f7c91b9e..e91acc85f99 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create.md b/docs/examples/1.6.x/client-android/java/account/create.md index e7212486bcb..ad04805ce3a 100644 --- a/docs/examples/1.6.x/client-android/java/account/create.md +++ b/docs/examples/1.6.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-identity.md b/docs/examples/1.6.x/client-android/java/account/delete-identity.md index 6a62ea2a00b..d556722769e 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-identity.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md index bb6cb09f0ab..4a9693bf8c7 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-push-target.md b/docs/examples/1.6.x/client-android/java/account/delete-push-target.md index c3208004190..00ab902792f 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-session.md b/docs/examples/1.6.x/client-android/java/account/delete-session.md index 2efc0f64634..99d2f8e888f 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-sessions.md b/docs/examples/1.6.x/client-android/java/account/delete-sessions.md index d4c438070e4..e93f3e33ac8 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md index acf5984f691..8274bb351a7 100644 --- a/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get-prefs.md b/docs/examples/1.6.x/client-android/java/account/get-prefs.md index 0fea3fe40a8..5bb11a4a959 100644 --- a/docs/examples/1.6.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.6.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get-session.md b/docs/examples/1.6.x/client-android/java/account/get-session.md index 3ce4ab5177c..288cd3b3ba3 100644 --- a/docs/examples/1.6.x/client-android/java/account/get-session.md +++ b/docs/examples/1.6.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get.md b/docs/examples/1.6.x/client-android/java/account/get.md index 5c25ed08cd1..6b5eb3b7faf 100644 --- a/docs/examples/1.6.x/client-android/java/account/get.md +++ b/docs/examples/1.6.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-identities.md b/docs/examples/1.6.x/client-android/java/account/list-identities.md index 7f9449dc225..d4a6f9f31da 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-identities.md +++ b/docs/examples/1.6.x/client-android/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-logs.md b/docs/examples/1.6.x/client-android/java/account/list-logs.md index 3aa66e2b8d9..951a479f984 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.6.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md b/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md index a10cb8d5205..9ea83316206 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-sessions.md b/docs/examples/1.6.x/client-android/java/account/list-sessions.md index aa8d37b3736..8946d96e7cc 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.6.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-email.md b/docs/examples/1.6.x/client-android/java/account/update-email.md index 98cf9076c49..ac80e451d01 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-email.md +++ b/docs/examples/1.6.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md b/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md index 620a20c2670..b765cda94ad 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md index 1b79b73b1c7..5893aa6e6b4 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md index 74321be38b7..b8016e75f23 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md index a92f0070928..c6401504d88 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md index 2aa82b1d440..650ae241285 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-name.md b/docs/examples/1.6.x/client-android/java/account/update-name.md index 40a5e2ea554..47582c2b307 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-name.md +++ b/docs/examples/1.6.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-password.md b/docs/examples/1.6.x/client-android/java/account/update-password.md index 355c06de71f..09f572eb318 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-password.md +++ b/docs/examples/1.6.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-phone-session.md b/docs/examples/1.6.x/client-android/java/account/update-phone-session.md index 042238e397a..2e1b880017b 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md index ba7b69cb343..f93ae6906f2 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-phone.md b/docs/examples/1.6.x/client-android/java/account/update-phone.md index b3ce0f6816c..fae9bfaaec9 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.6.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-prefs.md b/docs/examples/1.6.x/client-android/java/account/update-prefs.md index d74606739f9..f1a16c7de01 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.6.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-push-target.md b/docs/examples/1.6.x/client-android/java/account/update-push-target.md index f9491e06b7a..197a9095a76 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-push-target.md +++ b/docs/examples/1.6.x/client-android/java/account/update-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-recovery.md b/docs/examples/1.6.x/client-android/java/account/update-recovery.md index e172f12ccfc..953bde4f26a 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.6.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-session.md b/docs/examples/1.6.x/client-android/java/account/update-session.md index b3e8706d2b3..ed82840836f 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-session.md +++ b/docs/examples/1.6.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-status.md b/docs/examples/1.6.x/client-android/java/account/update-status.md index 22166492842..9a283c092c8 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-status.md +++ b/docs/examples/1.6.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-verification.md b/docs/examples/1.6.x/client-android/java/account/update-verification.md index 25949432439..caa3869e252 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-browser.md b/docs/examples/1.6.x/client-android/java/avatars/get-browser.md index f7e8651dfa1..4c8579649e9 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Browser; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md index 5b1ee0660e1..a8bc30308f7 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.CreditCard; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md index 05bf590d721..70373a607b4 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-flag.md b/docs/examples/1.6.x/client-android/java/avatars/get-flag.md index 6a2185c543f..61ced3b604d 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Flag; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-image.md b/docs/examples/1.6.x/client-android/java/avatars/get-image.md index 78fbf98f90a..71a90dd1c29 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-initials.md b/docs/examples/1.6.x/client-android/java/avatars/get-initials.md index 621798be3a0..ca16ee7e36d 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md index fc8bc4397ef..781acf67417 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/create-document.md b/docs/examples/1.6.x/client-android/java/databases/create-document.md index 6c7e068be88..4804d751e3e 100644 --- a/docs/examples/1.6.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/delete-document.md b/docs/examples/1.6.x/client-android/java/databases/delete-document.md index 0cbd6b50711..5288e53bed7 100644 --- a/docs/examples/1.6.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/get-document.md b/docs/examples/1.6.x/client-android/java/databases/get-document.md index 0918c884505..e7ae2079edc 100644 --- a/docs/examples/1.6.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/list-documents.md b/docs/examples/1.6.x/client-android/java/databases/list-documents.md index 9cc722b0f37..606d67705de 100644 --- a/docs/examples/1.6.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.6.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/update-document.md b/docs/examples/1.6.x/client-android/java/databases/update-document.md index ccfb4982c9c..baa827cdf53 100644 --- a/docs/examples/1.6.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/create-execution.md b/docs/examples/1.6.x/client-android/java/functions/create-execution.md index 845f02ea70b..c138b0ef864 100644 --- a/docs/examples/1.6.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.6.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/get-deployment-download.md b/docs/examples/1.6.x/client-android/java/functions/get-deployment-download.md deleted file mode 100644 index 200cdf2fc5e..00000000000 --- a/docs/examples/1.6.x/client-android/java/functions/get-deployment-download.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.getDeploymentDownload( - "<FUNCTION_ID>", // functionId - "<DEPLOYMENT_ID>", // deploymentId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.6.x/client-android/java/functions/get-execution.md b/docs/examples/1.6.x/client-android/java/functions/get-execution.md index c53ef0e093f..f3195fa126b 100644 --- a/docs/examples/1.6.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.6.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/get-template.md b/docs/examples/1.6.x/client-android/java/functions/get-template.md deleted file mode 100644 index af9efc7b92f..00000000000 --- a/docs/examples/1.6.x/client-android/java/functions/get-template.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.getTemplate( - "<TEMPLATE_ID>", // templateId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.6.x/client-android/java/functions/list-executions.md b/docs/examples/1.6.x/client-android/java/functions/list-executions.md index b796dc96b31..f23e5fb9afd 100644 --- a/docs/examples/1.6.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.6.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/list-templates.md b/docs/examples/1.6.x/client-android/java/functions/list-templates.md deleted file mode 100644 index 6c051f3b048..00000000000 --- a/docs/examples/1.6.x/client-android/java/functions/list-templates.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.listTemplates( - listOf(), // runtimes (optional) - listOf(), // useCases (optional) - 1, // limit (optional) - 0, // offset (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.6.x/client-android/java/graphql/mutation.md b/docs/examples/1.6.x/client-android/java/graphql/mutation.md index b79903b711e..25f095e1b17 100644 --- a/docs/examples/1.6.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.6.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-android/java/graphql/query.md b/docs/examples/1.6.x/client-android/java/graphql/query.md index 82bad13666a..6b2a04d0b6e 100644 --- a/docs/examples/1.6.x/client-android/java/graphql/query.md +++ b/docs/examples/1.6.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/get.md b/docs/examples/1.6.x/client-android/java/locale/get.md index 29b542f41fd..89e1e88b260 100644 --- a/docs/examples/1.6.x/client-android/java/locale/get.md +++ b/docs/examples/1.6.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-codes.md b/docs/examples/1.6.x/client-android/java/locale/list-codes.md index d8c9a0bc6b8..85a96fce77e 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-codes.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-continents.md b/docs/examples/1.6.x/client-android/java/locale/list-continents.md index cf43045f6ab..6f4572d572a 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md index b7b56ab8170..51458a929d8 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md index c3598c07390..93438d2130a 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-countries.md b/docs/examples/1.6.x/client-android/java/locale/list-countries.md index 91ac0520bed..5cd5525e93a 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-currencies.md b/docs/examples/1.6.x/client-android/java/locale/list-currencies.md index 5233004baef..d3ef02c8651 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-languages.md b/docs/examples/1.6.x/client-android/java/locale/list-languages.md index 0f10563846e..0d724943a92 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md b/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md index e8fa79f772b..5616435ab54 100644 --- a/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md index 7e5b3d20175..9adae5e7df5 100644 --- a/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/create-file.md b/docs/examples/1.6.x/client-android/java/storage/create-file.md index bc9ebed4f4f..598e6831501 100644 --- a/docs/examples/1.6.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/delete-file.md b/docs/examples/1.6.x/client-android/java/storage/delete-file.md index eaeb47b669b..5c63ae7cd5a 100644 --- a/docs/examples/1.6.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file-download.md b/docs/examples/1.6.x/client-android/java/storage/get-file-download.md index d0fdc41f76a..ce2b846cc0f 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md index c935e6fe2b5..1f5e36539a2 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file-view.md b/docs/examples/1.6.x/client-android/java/storage/get-file-view.md index bbfd04d51a7..cda3545badc 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file.md b/docs/examples/1.6.x/client-android/java/storage/get-file.md index a63122f57a8..c9cc00d8f7a 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/list-files.md b/docs/examples/1.6.x/client-android/java/storage/list-files.md index dc327fc70a2..a87286c6d6b 100644 --- a/docs/examples/1.6.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.6.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/update-file.md b/docs/examples/1.6.x/client-android/java/storage/update-file.md index ed81821cbea..14fa77939da 100644 --- a/docs/examples/1.6.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/create-membership.md b/docs/examples/1.6.x/client-android/java/teams/create-membership.md index b30f1765c60..bb5293ef639 100644 --- a/docs/examples/1.6.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/create.md b/docs/examples/1.6.x/client-android/java/teams/create.md index a0d4f07bc9b..ae2fdf32c81 100644 --- a/docs/examples/1.6.x/client-android/java/teams/create.md +++ b/docs/examples/1.6.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/delete-membership.md b/docs/examples/1.6.x/client-android/java/teams/delete-membership.md index 7f9189f55bc..c8bb088cc6d 100644 --- a/docs/examples/1.6.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/delete.md b/docs/examples/1.6.x/client-android/java/teams/delete.md index 2f4e861248f..74f6a4f9973 100644 --- a/docs/examples/1.6.x/client-android/java/teams/delete.md +++ b/docs/examples/1.6.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/get-membership.md b/docs/examples/1.6.x/client-android/java/teams/get-membership.md index 529feb22942..e9dc5786d6e 100644 --- a/docs/examples/1.6.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/get-prefs.md b/docs/examples/1.6.x/client-android/java/teams/get-prefs.md index 61da757178e..8ba14355a12 100644 --- a/docs/examples/1.6.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-android/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/get.md b/docs/examples/1.6.x/client-android/java/teams/get.md index 39fe4d4a0ee..f00057a8222 100644 --- a/docs/examples/1.6.x/client-android/java/teams/get.md +++ b/docs/examples/1.6.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/list-memberships.md b/docs/examples/1.6.x/client-android/java/teams/list-memberships.md index 58430f074cb..216ca40e6dd 100644 --- a/docs/examples/1.6.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/list.md b/docs/examples/1.6.x/client-android/java/teams/list.md index 914509f47d1..b69f21ed43b 100644 --- a/docs/examples/1.6.x/client-android/java/teams/list.md +++ b/docs/examples/1.6.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md index 513461331b1..4b31ed55ecd 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-membership.md b/docs/examples/1.6.x/client-android/java/teams/update-membership.md index a60c2a0df3e..481be431071 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-name.md b/docs/examples/1.6.x/client-android/java/teams/update-name.md index 54f218e411e..207bcc81e33 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-prefs.md b/docs/examples/1.6.x/client-android/java/teams/update-prefs.md index eaa161e611b..5a0186ff313 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md index 50a011ae6b1..d2966a18cdf 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md index 8c447591381..a327cf280eb 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md index 219e7930d78..37c9e1b3803 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md index 50014d4cb8e..c87eaf31289 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md index 905e942b5d9..76f4c918847 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md index dacf56a5a24..ffb2f2f9bf3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md index 22c965851de..36b12d3f982 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md index 364bc0eb9d4..974c8f25a02 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md index fc9d8228c9d..61ea634ad71 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md index 11a814b1094..cdd2ef34450 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md index 56b53c26881..4eb1a9ac4ef 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md index 531aead542a..f7594668fa7 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md b/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md index 7dd2101a63c..59b252be157 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md index d03bd323177..7e13138111f 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-session.md index 2b3da6d47bb..ab9e20e7e2e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md index 54174be38b4..669b00ba18e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create.md b/docs/examples/1.6.x/client-android/kotlin/account/create.md index 2ee3ae4a1ef..16f3a60ded6 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md index 1e5d2065364..c8d74636856 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md index 48220b20c57..057e021f6d1 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md index e67b180a4f2..8e0b418c902 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md index 0990989bfd6..6af414be275 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md index 8c464e082bb..f7e6c71c10d 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md index bd12e834a14..6201658fe3b 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md index 9227effba72..85dbb18b43f 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get-session.md b/docs/examples/1.6.x/client-android/kotlin/account/get-session.md index 42e61fd4756..4de64a1487c 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get.md b/docs/examples/1.6.x/client-android/kotlin/account/get.md index 8c90304cbec..3e85e79ad06 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md index 53e388d3d42..5908a44a9c8 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md index 683a94be453..385ccc0116d 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md b/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md index ecfa6c2478a..09119ab65a3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md index 2da413da7b8..573dd865e28 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-email.md b/docs/examples/1.6.x/client-android/kotlin/account/update-email.md index 072d6db9cae..0862f112c0c 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md b/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md index 3cac098946d..f214e78f441 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md index 52d0ad76e1b..2c1a0b0a380 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md index 321f25b2e8b..987825e589b 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md index 021f51523f5..c7f8139f152 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md index d4ea7f5f91e..c0ee3c386f3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-name.md b/docs/examples/1.6.x/client-android/kotlin/account/update-name.md index 374f84f2ec5..2cb5327ebee 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-password.md b/docs/examples/1.6.x/client-android/kotlin/account/update-password.md index edf5117168c..140ca8b219e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md index 93e080dae91..b3911dd5e00 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md index 226b21dcae8..ad0d5d73ebc 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md index 772c099cd5f..84ff5081847 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md index c5c7a3de3ea..fdfed577ac9 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md b/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md index c6e6f21ce31..5c3816860f1 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md index b4481148e97..d505d1afb15 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-session.md b/docs/examples/1.6.x/client-android/kotlin/account/update-session.md index 43d84e13c31..6fc9a9f9d2e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-status.md b/docs/examples/1.6.x/client-android/kotlin/account/update-status.md index 4f44ce1a83c..b86a25ad4dd 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md index 3c9c465afb3..028eb7c4ce7 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md index 34f6f28d2ad..4e2f5e0991a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Browser val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md index 52eea79f6e2..91aae456605 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.CreditCard val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md index 5f83bdd0af0..01df8cb54ba 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md index cfd5d010d17..1d8f5f6305a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Flag val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md index a9a7c2aa5c6..64166c0a6d3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md index bd2ae1b9b9f..883da027443 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md index 9e02a0c6ad7..fa8a38cabb2 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md index 2b77405d626..849a636afb2 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md index e3e6de326fc..052bf97f896 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md index 6ed6c8ba62b..157af2b562f 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md index ff419c44a61..1cc785fab1a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md index 630e2b6c66e..d61fdea5b15 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md index 937bb4fdaa7..cb7c60bac16 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/get-deployment-download.md b/docs/examples/1.6.x/client-android/kotlin/functions/get-deployment-download.md deleted file mode 100644 index 21e99cb731e..00000000000 --- a/docs/examples/1.6.x/client-android/kotlin/functions/get-deployment-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val result = functions.getDeploymentDownload( - functionId = "<FUNCTION_ID>", - deploymentId = "<DEPLOYMENT_ID>", -) \ No newline at end of file diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md index 60b2e0f6306..267be53cbb8 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/get-template.md b/docs/examples/1.6.x/client-android/kotlin/functions/get-template.md deleted file mode 100644 index 4af83bda3e0..00000000000 --- a/docs/examples/1.6.x/client-android/kotlin/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val result = functions.getTemplate( - templateId = "<TEMPLATE_ID>", -) \ No newline at end of file diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md index 90b2bf6ff10..a56993fd4d3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/list-templates.md b/docs/examples/1.6.x/client-android/kotlin/functions/list-templates.md deleted file mode 100644 index a1a59d94380..00000000000 --- a/docs/examples/1.6.x/client-android/kotlin/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val result = functions.listTemplates( - runtimes = listOf(), // (optional) - useCases = listOf(), // (optional) - limit = 1, // (optional) - offset = 0, // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md index e90c9ae301e..a3a762203dc 100644 --- a/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/graphql/query.md b/docs/examples/1.6.x/client-android/kotlin/graphql/query.md index 2ce0cb10838..13f149cbf00 100644 --- a/docs/examples/1.6.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.6.x/client-android/kotlin/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/get.md b/docs/examples/1.6.x/client-android/kotlin/locale/get.md index f2f235a209e..a116aed349d 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md index 895c96df3a8..0b63b06e3eb 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md index e32034496c6..98acdc9b6a4 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md index b9182aa1dec..c01602598b7 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md index 961ebd348f6..d95c1c6ff65 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md index 1ebae69bead..47751611594 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md index 7500aa717f9..6d0a04f808e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md index 2be0ba59d60..de588aa0773 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md b/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md index db233422bd5..b7e244f0416 100644 --- a/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md index ab0d479df32..9e102d6faa0 100644 --- a/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md index d327e724a0c..1c78c51e675 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md index 60df78e7369..ca40f41b719 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md index bb975411ba7..b4d33868d2a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md index 904f3ec103b..31aa6e2ce77 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md index 898c1eec425..7a5b31de5b4 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md index a07095d3754..1e9943059bc 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md index 640b7050d0e..06f6cda4ebd 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md index f7a20f0d128..116d156eade 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md index 63f3c67d8f9..70eb7ddd190 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/create.md b/docs/examples/1.6.x/client-android/kotlin/teams/create.md index f214a3733e7..dfa4df446eb 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md index f3a54b38db2..adf1119761b 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/delete.md b/docs/examples/1.6.x/client-android/kotlin/teams/delete.md index bc8e8d0c97c..e144a78e3d3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md index e5a589e061f..8fb8c54c3b5 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md index af7503a4346..5e892fb49d1 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/get.md b/docs/examples/1.6.x/client-android/kotlin/teams/get.md index 70759bcb882..dbb487d3d67 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md index abb140e2ddb..e305403a523 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/list.md b/docs/examples/1.6.x/client-android/kotlin/teams/list.md index 5d808736caa..984858d26ce 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md index 9ecf4170dea..c3770c7f1e0 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md index 15b2ac08e9b..86216a8692e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md index 0040737a660..abeb6dc7c17 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md index f70a5eb99ca..d0066a94b3a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md index f676bac4da4..22020a16d95 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md index 15051827b86..5f541a8a154 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md b/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md index b9d39ff27f9..cf82afde8ff 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md index c1c0f22dffc..fbcd50401c6 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md index 83eb681673b..27bbe4137ea 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md index 7b103e0b247..56799e327ec 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md index 6d262d9c74a..0b5d385999e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md index 1390b9de69d..c0ccb39e869 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md index 32da4a28419..756112e7011 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md index 7bbfe98f48c..21b54e8c9a0 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md index acb7a696bcb..12b2d4b2231 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md index e0c4a21d963..f0eb94b6fcb 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md b/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md index 75d694bcf6b..ce2d194272a 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md index 65536ee2113..ccfd5ac5194 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-session.md b/docs/examples/1.6.x/client-apple/examples/account/create-session.md index 3ea51195697..2065692a166 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-verification.md b/docs/examples/1.6.x/client-apple/examples/account/create-verification.md index 702c3c52828..d3ca74c7c03 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create.md b/docs/examples/1.6.x/client-apple/examples/account/create.md index cad7e44c449..79b4db64ba6 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md index 37ca520d4cb..04a3ee5f47d 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md index d9fe0ad8ea2..16cbbe3b724 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md index 660a9c0376a..a96a1b1d053 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-session.md b/docs/examples/1.6.x/client-apple/examples/account/delete-session.md index 59f89a9b5e0..ea353e8723e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md index bfce736622b..51a86bdcc31 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md index 79e3a2c8b33..2f5d6233047 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md index 0e7909bd124..65ce5f5908c 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get-session.md b/docs/examples/1.6.x/client-apple/examples/account/get-session.md index 3ed89fcbf23..bd491ff4d73 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get.md b/docs/examples/1.6.x/client-apple/examples/account/get.md index 2a0c2a58130..1b1213e1da2 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-identities.md b/docs/examples/1.6.x/client-apple/examples/account/list-identities.md index 4d8c580a180..1d3a999d4ad 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-logs.md b/docs/examples/1.6.x/client-apple/examples/account/list-logs.md index ecb5617d0b3..2c42307f961 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md index 3af3427b29e..f6d7a6fe75c 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md index 8b9e165c488..99f6930cd24 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-email.md b/docs/examples/1.6.x/client-apple/examples/account/update-email.md index 4dbd3359a74..037133282bd 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md index eefcd79fda2..fe2b04f9a3e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md index 8e0a26a6ef7..507006b2300 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md index 8ef2b241011..6a42fb9b6de 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md index a237537ae31..db9753b777a 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md @@ -1,12 +1,12 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md index fb5ea5a898c..c3b8d412c51 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-name.md b/docs/examples/1.6.x/client-apple/examples/account/update-name.md index 893d96c77e0..7f8abf54fb4 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-password.md b/docs/examples/1.6.x/client-apple/examples/account/update-password.md index 60737dc5d2f..7fa03caebc4 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md index 50a88cbe519..f6776d1de19 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md index 045ba8d9b67..0bf2db1f0ab 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-phone.md b/docs/examples/1.6.x/client-apple/examples/account/update-phone.md index b43b975179a..604fc85377d 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md index ea49c34f049..fea527337b3 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md b/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md index 351801e1be3..549c4d6c16e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md index 1e50a14632d..536da69b8a8 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-session.md b/docs/examples/1.6.x/client-apple/examples/account/update-session.md index 5fe7116cc1e..8999b0a3100 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-status.md b/docs/examples/1.6.x/client-apple/examples/account/update-status.md index a7f99c34027..892858dfbce 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-verification.md b/docs/examples/1.6.x/client-apple/examples/account/update-verification.md index c17a787490c..094e10f33c4 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md index e18a2b2cc9f..8f326a87aa7 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md index 94a7bf69c0e..d294d807d58 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md index 95af5f59820..b7dc6830c3f 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md index b79cf57ae84..710611739c6 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md index f01e21bf8d9..0fe71e17658 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md index 8593288a816..2bbfbe6a47d 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md index 370209a842d..3cc650c1b96 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/create-document.md b/docs/examples/1.6.x/client-apple/examples/databases/create-document.md index 1dff3625769..51adb64bb31 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md index 80ca2eb0a94..301203dc7f4 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/get-document.md b/docs/examples/1.6.x/client-apple/examples/databases/get-document.md index fa7aeb9090d..6e4dc55c6df 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md index 6b2cbbca7a3..0d624f3a92b 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/update-document.md b/docs/examples/1.6.x/client-apple/examples/databases/update-document.md index 22602720293..af224c8e09e 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md index 6d585ea42b1..7470e9ebf6a 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/client-apple/examples/functions/get-deployment-download.md deleted file mode 100644 index 0e6659969cb..00000000000 --- a/docs/examples/1.6.x/client-apple/examples/functions/get-deployment-download.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let bytes = try await functions.getDeploymentDownload( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" -) - diff --git a/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md index dbf12e17cbc..787f297b2c7 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/get-template.md b/docs/examples/1.6.x/client-apple/examples/functions/get-template.md deleted file mode 100644 index bc7a9a3aef3..00000000000 --- a/docs/examples/1.6.x/client-apple/examples/functions/get-template.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let templateFunction = try await functions.getTemplate( - templateId: "<TEMPLATE_ID>" -) - diff --git a/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md index 4eb2694f7c4..0e391818867 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/list-templates.md b/docs/examples/1.6.x/client-apple/examples/functions/list-templates.md deleted file mode 100644 index d0090ab803b..00000000000 --- a/docs/examples/1.6.x/client-apple/examples/functions/list-templates.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let templateFunctionList = try await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -) - diff --git a/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md index 8e54971f840..6cd2e588f9f 100644 --- a/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-apple/examples/graphql/query.md b/docs/examples/1.6.x/client-apple/examples/graphql/query.md index db93660f1d8..47e4c243fa6 100644 --- a/docs/examples/1.6.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/get.md b/docs/examples/1.6.x/client-apple/examples/locale/get.md index ec071cd3a60..9c48317a1d4 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md index adb35393f42..21d693a7b88 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md index 934b2640513..bd44915a34e 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md index 393e523847b..2dc24e5a637 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md index 840e9043f62..f3ab6b1f6de 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md index e6adb9e7d31..dadcd3ee261 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md index b34a9715a76..dc20ead45e4 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md index db41d39e007..92c1d7b1dc7 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md index 0e3793b7bcb..f85d5e6fb1c 100644 --- a/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md index 3a8b7c40cee..f1cdda95c7a 100644 --- a/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/create-file.md b/docs/examples/1.6.x/client-apple/examples/storage/create-file.md index 2e5b945198e..2db9b20e1b1 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md index caeb173fc5f..ca721a4a412 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md index 3d8bf6bfb9e..92ac2a89ff1 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md index 17e42f9065e..d1576356884 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md index e62afb77274..14843a7ae08 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file.md index 367fd39b2ea..2730b4d5283 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/list-files.md b/docs/examples/1.6.x/client-apple/examples/storage/list-files.md index 3996ba718cb..48bd0d065f5 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/update-file.md b/docs/examples/1.6.x/client-apple/examples/storage/update-file.md index 37a3001e950..adef9698451 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md index e911b2aa5a5..3c6d093c645 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/create.md b/docs/examples/1.6.x/client-apple/examples/teams/create.md index b355a633c67..b9f5ea40805 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md index 8252272ec77..7c21410bf39 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/delete.md b/docs/examples/1.6.x/client-apple/examples/teams/delete.md index 1caee83031a..1787b4c7498 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md index 62e3a513ef5..837a92dd042 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md index 04ece549173..b5b17a3bc26 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/get.md b/docs/examples/1.6.x/client-apple/examples/teams/get.md index c5673bdae3b..af358fbb670 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md index e85b11cecbe..5c8669a3d81 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/list.md b/docs/examples/1.6.x/client-apple/examples/teams/list.md index c5e7175d30d..be81e9c5aa2 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md index c50ef0e8610..1f3cb39d92a 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md index c4500a3ff10..eaa61799c28 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-name.md b/docs/examples/1.6.x/client-apple/examples/teams/update-name.md index 64e2cab0370..ce5188b9509 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md index a69d48567dc..e20ec2ea18b 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md index 50887f10dea..cdcd98ddb2d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md index 64c0e93ca24..66bc2ab5f4c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md index 140689a9044..26408945023 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md index 256f28e0f3f..b9cbc8f5a50 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md index cf2d1bd1feb..454a9510229 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md index 2b35cc9ed4f..ca66149654f 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md index ad1b8c201f4..6815e5c52f8 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md index 22b3b44cafd..274dc598a89 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md index d00a1c7144d..ab53f4a777e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md index b1478bf9dff..d6b6c72c7e7 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md index 08dce5f7b27..ff0187f0dc4 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md index 727cfe50121..11e215a060a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md b/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md index de324b842e2..fd1755e3c56 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md index 09d0994dd1d..44985beb802 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-session.md index e35cc1978da..e54e68a317d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md index 85142abee90..8f969972494 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create.md b/docs/examples/1.6.x/client-flutter/examples/account/create.md index 98f6fcbaa2c..ae0d526944b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md index 9846a0c11c2..849fa726a48 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md index 6d2a21ce896..bf4b0c509b0 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md index f6ec230d718..6393d4ed4e0 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md index 07978e2c114..55abb18c850 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md index faafcb97bda..c50b611cacd 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md index 413fb059e6a..f9d50131e5b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md index bc7731daaa0..9332da3a638 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get-session.md b/docs/examples/1.6.x/client-flutter/examples/account/get-session.md index 4958fd1c94d..d68afcecd2a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get.md b/docs/examples/1.6.x/client-flutter/examples/account/get.md index c38dd7f4fdc..a318617f78d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md index 183d525b3bb..9d2ad83c179 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md index ec29b9510d1..6d9b120991c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md index bb320225cd3..9f945400ac1 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md index 3af2299e04d..fd1d0e080c3 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-email.md b/docs/examples/1.6.x/client-flutter/examples/account/update-email.md index b3c7ffe9117..0f3d9982847 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-email.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md index c376c72917d..fc81c565edf 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md index e75aba3ffd7..d0f91eb0a48 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md index d2d974fbfe9..7f026578c52 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md index c8e1af7e909..a938f0af683 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md @@ -1,12 +1,12 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md index fd2aaf721b0..37334ef69a7 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-name.md b/docs/examples/1.6.x/client-flutter/examples/account/update-name.md index 77e774c767b..303a12351f2 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-name.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-password.md b/docs/examples/1.6.x/client-flutter/examples/account/update-password.md index 8d36c1f68da..835d2383cae 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-password.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md index 64d8d84201c..36801792f6c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md index 5c67e1a5c01..f5bbb773d04 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md index 6c9559db147..6390d142457 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md index ca9b709a500..81fa362f898 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md b/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md index a54b1aa30f5..c695ea09840 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md index 648d25b1b67..5ca0239f476 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-session.md b/docs/examples/1.6.x/client-flutter/examples/account/update-session.md index 2cdf32aae04..4c78ebb187b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-status.md b/docs/examples/1.6.x/client-flutter/examples/account/update-status.md index 0b0fb95ea69..289a3f0a96e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-status.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md index 3071a0409ea..15c7ed19288 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md index 21dae2114e0..0ca83b89aaf 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md index a580e3bdaa0..1075e8196aa 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md index f35f5a71a0e..0df5ed0d2a1 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md index 8f358261241..3aae5bfba77 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md index 5d8a9865371..5b9d1b58c16 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md index 26302d02c38..0c5b62a3099 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md index 40f0b5068c2..d9a533c8868 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md index 7853329a05f..27efc34580e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md index 14cec01c0a7..3354917c203 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md index 55206357b22..f85c1f9b5a6 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md index e78a02de6b4..31fec1f5223 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md index 29ee8781ff4..1f444d875a5 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md index 94f0ae55819..d2a3d9e00a9 100644 --- a/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/client-flutter/examples/functions/get-deployment-download.md deleted file mode 100644 index bb0ee903df9..00000000000 --- a/docs/examples/1.6.x/client-flutter/examples/functions/get-deployment-download.md +++ /dev/null @@ -1,29 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -// Downloading file -UInt8List bytes = await functions.getDeploymentDownload( - functionId: '<FUNCTION_ID>', - deploymentId: '<DEPLOYMENT_ID>', -) - -final file = File('path_to_file/filename.ext'); -file.writeAsBytesSync(bytes); - -// Displaying image preview -FutureBuilder( - future: functions.getDeploymentDownload( - functionId:'<FUNCTION_ID>' , - deploymentId:'<DEPLOYMENT_ID>' , -), // Works for both public file and private file, for private files you need to be logged in - builder: (context, snapshot) { - return snapshot.hasData && snapshot.data != null - ? Image.memory(snapshot.data) - : CircularProgressIndicator(); - } -); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md index b4595146242..714933be32d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/get-template.md b/docs/examples/1.6.x/client-flutter/examples/functions/get-template.md deleted file mode 100644 index 560a4d94ed0..00000000000 --- a/docs/examples/1.6.x/client-flutter/examples/functions/get-template.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunction result = await functions.getTemplate( - templateId: '<TEMPLATE_ID>', -); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md index ba4b4e41d7e..accebe9dd83 100644 --- a/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/list-templates.md b/docs/examples/1.6.x/client-flutter/examples/functions/list-templates.md deleted file mode 100644 index d3d8c7aa4c0..00000000000 --- a/docs/examples/1.6.x/client-flutter/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunctionList result = await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0, // optional -); diff --git a/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md index 1ac9ba0a0d6..60f0c297033 100644 --- a/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/graphql/query.md b/docs/examples/1.6.x/client-flutter/examples/graphql/query.md index 2c06a838ab2..d90c3432e9b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-flutter/examples/graphql/query.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/get.md b/docs/examples/1.6.x/client-flutter/examples/locale/get.md index 53cfda5c200..b2846990462 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/get.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md index bfd53f97bca..02274715714 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md index c462c2e46b5..1098bd1d58a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md index 0f5629b54fb..7d6571f4eef 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md index ee8689a986c..395f240fd7c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md index 0c1bae6016e..a322eb20784 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md index a9c53b1264c..8884bf45b2e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md index c5bdd2643b4..0444d94151b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md index 1284151b610..2a278a0481d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md index aa66acbf175..02c1f615358 100644 --- a/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md index 1a0a498b762..661f6b8b1e4 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md index 39135824b73..b2c6a78f752 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md index 3346442532a..9048fe469b3 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md index 2bb09976169..3d81e61c921 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md index c5f8ea1147b..7d43806c2c8 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md index 83a32190a44..f4b541ffd17 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md index d5f8b0b4d7c..7950005b6a2 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md index c88355a52c7..8e598121c12 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md index 04eedde662c..80265214084 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/create.md b/docs/examples/1.6.x/client-flutter/examples/teams/create.md index 1afcbf1ce57..637e216a041 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/create.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md index 83c80a27038..0f1941d88be 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/delete.md b/docs/examples/1.6.x/client-flutter/examples/teams/delete.md index 5a4d0dba424..74c74c9cf13 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/delete.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md index 3ae0844c81a..468e02cf32a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md index 0f93c25a338..a22c78869cc 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/get.md b/docs/examples/1.6.x/client-flutter/examples/teams/get.md index bcf45530eea..5e8c3463eae 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/get.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md index 7fc920a2d09..374dd490694 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/list.md b/docs/examples/1.6.x/client-flutter/examples/teams/list.md index 75b29554c09..3aa972fb5ff 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/list.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md index e08f63bac87..1ce3eacb79f 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md index 33e6568da1e..bc2bbae75c3 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md index 43d1b0c7fca..8f1794587e9 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md index 2a446f08004..7b33c8c3130 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md b/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md index 8a0fad387c9..63802a782e5 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md @@ -12,5 +12,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/create.md b/docs/examples/1.6.x/client-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/create.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md index e2de72b57f8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md @@ -1,5 +0,0 @@ -query { - accountGetMfaRecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md b/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md index 6cb48d2b588..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md @@ -1,5 +0,0 @@ -query { - accountGetPrefs { - data - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get-session.md b/docs/examples/1.6.x/client-graphql/examples/account/get-session.md index 65c824f68bd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get-session.md @@ -1,35 +0,0 @@ -query { - accountGetSession( - sessionId: "<SESSION_ID>" - ) { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get.md b/docs/examples/1.6.x/client-graphql/examples/account/get.md index e4db8f0e414..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get.md @@ -1,34 +0,0 @@ -query { - accountGet { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md b/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md index b7a2a6d39a4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md @@ -1,19 +0,0 @@ -query { - accountListIdentities( - queries: [] - ) { - total - identities { - _id - _createdAt - _updatedAt - userId - provider - providerUid - providerEmail - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md b/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md index 1e17b2f69f9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md @@ -1,30 +0,0 @@ -query { - accountListLogs( - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md index 2a78b901b33..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md @@ -1,8 +0,0 @@ -query { - accountListMfaFactors { - totp - phone - email - recoveryCode - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md b/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md index 6d45f1d4aeb..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md @@ -1,36 +0,0 @@ -query { - accountListSessions { - total - sessions { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-email.md b/docs/examples/1.6.x/client-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-name.md b/docs/examples/1.6.x/client-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-password.md b/docs/examples/1.6.x/client-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md b/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md b/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md index 059702dc974..3c402cdf12a 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md @@ -11,5 +11,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-status.md b/docs/examples/1.6.x/client-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md index 817e1e54c25..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md @@ -1,10 +0,0 @@ -query { - avatarsGetBrowser( - code: "aa", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md index e4b5dc18d9c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md @@ -1,10 +0,0 @@ -query { - avatarsGetCreditCard( - code: "amex", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md index bfea71f4983..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md @@ -1,7 +0,0 @@ -query { - avatarsGetFavicon( - url: "https://example.com" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md index 1502128581d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md @@ -1,10 +0,0 @@ -query { - avatarsGetFlag( - code: "af", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md index 3b9aa104dc5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md @@ -1,9 +0,0 @@ -query { - avatarsGetImage( - url: "https://example.com", - width: 0, - height: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md index 51ae36136be..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md @@ -1,10 +0,0 @@ -query { - avatarsGetInitials( - name: "<NAME>", - width: 0, - height: 0, - background: "" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md index a19f2184124..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md @@ -1,10 +0,0 @@ -query { - avatarsGetQR( - text: "<TEXT>", - size: 1, - margin: 0, - download: false - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md b/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md index 7cff0a18c1f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md @@ -1,16 +0,0 @@ -query { - databasesGetDocument( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - documentId: "<DOCUMENT_ID>", - queries: [] - ) { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md b/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md index 077d7c8f128..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md @@ -1,18 +0,0 @@ -query { - databasesListDocuments( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - documents { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md b/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md index 6ded51a50cc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md @@ -1,30 +0,0 @@ -query { - functionsGetExecution( - functionId: "<FUNCTION_ID>", - executionId: "<EXECUTION_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/get-template.md b/docs/examples/1.6.x/client-graphql/examples/functions/get-template.md deleted file mode 100644 index 44a466de27a..00000000000 --- a/docs/examples/1.6.x/client-graphql/examples/functions/get-template.md +++ /dev/null @@ -1,35 +0,0 @@ -query { - functionsGetTemplate( - templateId: "<TEMPLATE_ID>" - ) { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md b/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md index a0c02fa76f2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md @@ -1,34 +0,0 @@ -query { - functionsListExecutions( - functionId: "<FUNCTION_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - executions { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/list-templates.md b/docs/examples/1.6.x/client-graphql/examples/functions/list-templates.md deleted file mode 100644 index cb289ddabbe..00000000000 --- a/docs/examples/1.6.x/client-graphql/examples/functions/list-templates.md +++ /dev/null @@ -1,41 +0,0 @@ -query { - functionsListTemplates( - runtimes: [], - useCases: [], - limit: 1, - offset: 0 - ) { - total - templates { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/get.md b/docs/examples/1.6.x/client-graphql/examples/locale/get.md index 2b2bbcc1f16..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/get.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/get.md @@ -1,11 +0,0 @@ -query { - localeGet { - ip - countryCode - country - continentCode - continent - eu - currency - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md index 0164cc37823..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md @@ -1,9 +0,0 @@ -query { - localeListCodes { - total - localeCodes { - code - name - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md index 41f672c5658..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md @@ -1,9 +0,0 @@ -query { - localeListContinents { - total - continents { - name - code - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md index 00cd4652f99..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md @@ -1,9 +0,0 @@ -query { - localeListCountriesEU { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md index 33d2296850b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md @@ -1,10 +0,0 @@ -query { - localeListCountriesPhones { - total - phones { - code - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md index 9312bc94b1b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md @@ -1,9 +0,0 @@ -query { - localeListCountries { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md index cde3ab488a7..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md @@ -1,14 +0,0 @@ -query { - localeListCurrencies { - total - currencies { - symbol - name - symbolNative - decimalDigits - rounding - code - namePlural - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md index b0d76c522b2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md @@ -1,10 +0,0 @@ -query { - localeListLanguages { - total - languages { - name - code - nativeName - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md index 8325e8a230e..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md @@ -1,8 +0,0 @@ -query { - storageGetFileDownload( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md index df32e883508..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md @@ -1,19 +0,0 @@ -query { - storageGetFilePreview( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>", - width: 0, - height: 0, - gravity: "center", - quality: 0, - borderWidth: 0, - borderColor: "", - borderRadius: 0, - opacity: 0, - rotation: -360, - background: "", - output: "jpg" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md index 434328a1ec5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md @@ -1,8 +0,0 @@ -query { - storageGetFileView( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md index 60886b0f6f6..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md @@ -1,18 +0,0 @@ -query { - storageGetFile( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md b/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md index 774cc51b972..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md @@ -1,22 +0,0 @@ -query { - storageListFiles( - bucketId: "<BUCKET_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - files { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md b/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md index c33528609ee..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md @@ -1,20 +0,0 @@ -query { - teamsGetMembership( - teamId: "<TEAM_ID>", - membershipId: "<MEMBERSHIP_ID>" - ) { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md index fe498079cf8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md @@ -1,7 +0,0 @@ -query { - teamsGetPrefs( - teamId: "<TEAM_ID>" - ) { - data - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/get.md b/docs/examples/1.6.x/client-graphql/examples/teams/get.md index a3fbb491e0d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/get.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/get.md @@ -1,14 +0,0 @@ -query { - teamsGet( - teamId: "<TEAM_ID>" - ) { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md index bf7f0d1eede..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md @@ -1,24 +0,0 @@ -query { - teamsListMemberships( - teamId: "<TEAM_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - memberships { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/list.md b/docs/examples/1.6.x/client-graphql/examples/teams/list.md index e7005b53265..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/list.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/list.md @@ -1,18 +0,0 @@ -query { - teamsList( - queries: [], - search: "<SEARCH>" - ) { - total - teams { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } - } -} diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md index 333e19942bd..4baad33e9d0 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md index 0718e393765..217d7873aed 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md index 13d08f0b2f2..b9bdf3bbe27 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md index fd060c8c327..217dc787854 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md index b627ca6c5fb..413e347aef7 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md index d34d9957b17..ec243490aa9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md index f5c94903d05..04de25863f5 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md index 66ec3680d05..f256be308b8 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md index 7dff5734650..84bddb4777b 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md index 85ffb2a2bf4..cd4ee86aa1f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md index 33988887a27..d03e5ea4bc4 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md index 39a3313556c..62bcc48113c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md index da020dae34a..83211ab9f38 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md b/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md index c46c9079537..802af82fb78 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-session.md index 3c85dc8a464..bb3040aef6e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md index cce3e1aae09..5fdffcba5cb 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create.md b/docs/examples/1.6.x/client-react-native/examples/account/create.md index 5db3d7d9f15..eb3d04ac54f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md index c25a5a4417a..df492a528db 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md index 5be2b161aaa..093ba4d5a2c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md index 34e89ab4a37..a926ede9c69 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md index 60791284b6d..134a2caa56a 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md index 67652f21e85..830eb273a84 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md index 06f09b8d346..c660a17ab87 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md b/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md index ef4185ca12c..b26a7b09f04 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get-session.md b/docs/examples/1.6.x/client-react-native/examples/account/get-session.md index ca6cfb72aa4..1db05d5c269 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get.md b/docs/examples/1.6.x/client-react-native/examples/account/get.md index cd5d50fe284..21d24016010 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md index 6189f80e0fc..239dbbf21f7 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md index 48fe10be13a..9cf441453ce 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md index ada7d487626..51b76c90e47 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md b/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md index cc081d5e3c9..68232be292a 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-email.md b/docs/examples/1.6.x/client-react-native/examples/account/update-email.md index 5f879989e3f..4bbe0b03e74 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md index 30f5f64199b..ebbfc0c8cd4 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md index a5b92765dc0..c5e6b613957 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md index f3f3276dfd6..07a798e7a6c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md index b26d387ad2f..b93e0bf520e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md index 81d27f7c549..2ed9bb02048 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-name.md b/docs/examples/1.6.x/client-react-native/examples/account/update-name.md index 47e5db988b0..adbbcab5bee 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-password.md b/docs/examples/1.6.x/client-react-native/examples/account/update-password.md index a37ee4c355f..3bde58e68ae 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md index d7098e5155a..c9c82696fce 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md index 582061fac5c..0ef7e53e66d 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md b/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md index cc39c5ef0f2..bf8aae2a3d9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md index 4478e02320d..01d4fd68783 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md b/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md index 6871a1016ca..d88e22e04db 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md b/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md index 73184b84b5b..9a5ef04f3ae 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-session.md b/docs/examples/1.6.x/client-react-native/examples/account/update-session.md index 34bc567fb55..0c8a9e5df38 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-status.md b/docs/examples/1.6.x/client-react-native/examples/account/update-status.md index 0b6ec6f7928..8d3a2b0698f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md index 9d00a4826c6..c956d5fcd6c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md index bbcb0df83a5..6bb005e5795 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md index a97cc6c430d..bdaaf8bfd6f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md index 067aa74000d..ff48c76ffcc 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md index f2268fcc69c..ac7aaf98b37 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md index 3816e7b4643..006155effd0 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md index b8545b37ca6..a87a6434502 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md index 5c80c6ae2ca..177759d9efe 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md index 58053ca0aa5..1b28231ed31 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md index beeb7b2a720..9136107a3cf 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md index df2333b5cc7..9993e2c941c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md index 88d94a90895..b2f377e53cb 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md index 5021c0b0f20..7676ee109b8 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md index 9933beb2774..72c71f77677 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/client-react-native/examples/functions/get-deployment-download.md deleted file mode 100644 index 7eac2b753fa..00000000000 --- a/docs/examples/1.6.x/client-react-native/examples/functions/get-deployment-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Functions } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = functions.getDeploymentDownload( - '<FUNCTION_ID>', // functionId - '<DEPLOYMENT_ID>' // deploymentId -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md b/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md index 79fffec4b42..848747ea2f2 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/get-template.md b/docs/examples/1.6.x/client-react-native/examples/functions/get-template.md deleted file mode 100644 index ea756323dcc..00000000000 --- a/docs/examples/1.6.x/client-react-native/examples/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Functions } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md index 0615ecbf57e..6a1f5821d7a 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/list-templates.md b/docs/examples/1.6.x/client-react-native/examples/functions/list-templates.md deleted file mode 100644 index 3811dd8e40c..00000000000 --- a/docs/examples/1.6.x/client-react-native/examples/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Functions } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md b/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md index 2fae4783f15..3292a5dad26 100644 --- a/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/graphql/query.md b/docs/examples/1.6.x/client-react-native/examples/graphql/query.md index 39d8cb13bb3..a00c517a46e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-react-native/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/get.md b/docs/examples/1.6.x/client-react-native/examples/locale/get.md index 0d48cd85cba..34c1672c532 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/get.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md index f1466beeb54..29cec5a5cfd 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md index a813a69f177..c98ba19af36 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md index 7ba7149edde..7fb71a548d7 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md index 6d3093dce29..612debc5ab3 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md index 9ffb09b829c..8b1f636fa6d 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md index 06326651d2e..4b96a5fdbc5 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md index 1ef69e5921e..54166afb1e9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md index 153cd2e3aa0..c950e90baee 100644 --- a/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md index 6d61172ac40..5004b59cacf 100644 --- a/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md index f6e4f472633..efbfd607c14 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md index 55aed16a468..1a436ac8a86 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md index b4b1374ca1f..c8dcea3d8dd 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md index 10d473ae06e..b41236f6199 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md index 1a54452911d..06443a894aa 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md index bbbb3fe9fde..6d358adabdf 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md index 731a1d1ef4e..19099b12883 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md index ba8cc6068a7..d4ed68a337d 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md index c4fc557461e..680fdb2ad80 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/create.md b/docs/examples/1.6.x/client-react-native/examples/teams/create.md index c252f3df893..51aaee358e4 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/create.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md index 683c92d12bd..37bdc7f87f9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/delete.md b/docs/examples/1.6.x/client-react-native/examples/teams/delete.md index dfd63fc9178..fe67eaffd18 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md index 4e30d1bda6a..2b253c8b512 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md index 40cffb127ed..943ed1a181e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/get.md b/docs/examples/1.6.x/client-react-native/examples/teams/get.md index dc2d6cd4d17..9267b57e2f6 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/get.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md index 7eabeeeeaba..4444bcd6642 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/list.md b/docs/examples/1.6.x/client-react-native/examples/teams/list.md index 64b9324dce8..779538a70ab 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/list.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md index 0e42de97464..c8edbf08c74 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md index e22fc975d94..347cbdd0953 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md index 27447af384e..0ab4aa1c843 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md index 02be2aca760..fda16a05dbe 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md index 7b053404136..64a056e2299 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md @@ -1,6 +1,4 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md index bd1c62ad70c..ab5cf7b65a9 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md index 4ff19b49079..5cbcdd074fa 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md index f6e92458096..b3f7689f9ce 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get-session.md b/docs/examples/1.6.x/client-rest/examples/account/get-session.md index 34d0f05dad4..e0ca8b7524f 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get-session.md @@ -1,8 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get.md b/docs/examples/1.6.x/client-rest/examples/account/get.md index 41ba456acef..af2d7833779 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get.md @@ -1,8 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-identities.md b/docs/examples/1.6.x/client-rest/examples/account/list-identities.md index 28c7ebfb78c..27ffc6e7c3c 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-identities.md @@ -1,8 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-logs.md b/docs/examples/1.6.x/client-rest/examples/account/list-logs.md index bac50d727e8..ace64fb895f 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-logs.md @@ -1,8 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md index 9246740d803..ea2364bebc0 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md index ec11f663800..39fa5035dc9 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md @@ -1,8 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md index 553168ecf1e..67a8b1dfe22 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md @@ -1,8 +1,6 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md index daa84cfe156..77b59dac021 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md @@ -1,8 +1,6 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md index d4f3a2bc3db..df69a54c536 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md @@ -1,8 +1,6 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md index 83f3f4633a6..48157d94c37 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md @@ -1,8 +1,6 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md index 26e32f35f97..438297a4ffe 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md @@ -1,8 +1,6 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md index f84f674e751..6bf5d014cab 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md @@ -1,8 +1,6 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md index 51a76004261..e9718c5bc5a 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md @@ -1,8 +1,6 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/databases/get-document.md b/docs/examples/1.6.x/client-rest/examples/databases/get-document.md index c89360927c4..98b3c08b165 100644 --- a/docs/examples/1.6.x/client-rest/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-rest/examples/databases/get-document.md @@ -1,8 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md index 10a67a0da9b..b8bf795ff44 100644 --- a/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md @@ -1,8 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/client-rest/examples/functions/get-deployment-download.md deleted file mode 100644 index 0f6166b77fa..00000000000 --- a/docs/examples/1.6.x/client-rest/examples/functions/get-deployment-download.md +++ /dev/null @@ -1,8 +0,0 @@ -GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md index db50365ae3d..af3948fe0ea 100644 --- a/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md @@ -1,8 +1,6 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/get-template.md b/docs/examples/1.6.x/client-rest/examples/functions/get-template.md deleted file mode 100644 index d4e1f95cf52..00000000000 --- a/docs/examples/1.6.x/client-rest/examples/functions/get-template.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates/{templateId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md index ad399fffdc8..306c420fab1 100644 --- a/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md @@ -1,8 +1,6 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/list-templates.md b/docs/examples/1.6.x/client-rest/examples/functions/list-templates.md deleted file mode 100644 index b671bedebfc..00000000000 --- a/docs/examples/1.6.x/client-rest/examples/functions/list-templates.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/get.md b/docs/examples/1.6.x/client-rest/examples/locale/get.md index b8a4b1db3da..8449f415f48 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/get.md @@ -1,8 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md index 9dfb36c9f4e..3dc84c74485 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md @@ -1,8 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md index 819f40ca65b..c0071fac08e 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md @@ -1,8 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md index 83408788f14..11c4e5fa5a4 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,8 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md index e841f46ab80..0403bcb3dc1 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md @@ -1,8 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md index cbbef63fa1b..860b9ee7860 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md @@ -1,8 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md index 20cd73e4dd0..7bffe3432d0 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md @@ -1,8 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md index 67c1b4b5e9d..390b7af66f4 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md @@ -1,8 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md index 81316189d7d..a4e9392fbd0 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md index 7658cfe7c33..26dc43cbf9f 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md index 8800bf311b4..a49ef0648a1 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file.md index a2f52e1ec5a..0c987dd2e68 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/list-files.md b/docs/examples/1.6.x/client-rest/examples/storage/list-files.md index badf55c82d5..88922000575 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/list-files.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md index ff5e06e7045..8751ab65b91 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md index 8af5263810d..cc3f6c3394b 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/get.md b/docs/examples/1.6.x/client-rest/examples/teams/get.md index c02aa8432c9..2ff93456859 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/get.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md index 25e602c3fbd..85d0e1cd898 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/list.md b/docs/examples/1.6.x/client-rest/examples/teams/list.md index d1bb709687c..dee3f5b883e 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/list.md @@ -1,8 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md index 9a78549a302..42279c03123 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md index 517a7c75183..3438ffbe540 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-email-token.md b/docs/examples/1.6.x/client-web/examples/account/create-email-token.md index bcc9316b4e4..e7cab7c360a 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md index e01d8de36e5..ff17d606610 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md index 155944702a1..ba87bd9a3fe 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md index 6551d13f219..510481511dd 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md index c620ca20cd9..e9f6f08b480 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md index 5a3f6f2d8c6..2cc744175e4 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md index 0d797a8eac6..caad309ffde 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md index a8d7300675e..5f0aab36d8d 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md index 01a5d68af46..481e57d3539 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md index 5da89e9bc09..00373a3dd4b 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-push-target.md b/docs/examples/1.6.x/client-web/examples/account/create-push-target.md index abbbf420576..c987e3d2a83 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-recovery.md b/docs/examples/1.6.x/client-web/examples/account/create-recovery.md index 4d3ec34786e..f0a400d86dd 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-session.md b/docs/examples/1.6.x/client-web/examples/account/create-session.md index fe43a12c71c..b6d7ef8bbbe 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-verification.md b/docs/examples/1.6.x/client-web/examples/account/create-verification.md index 60bb2d270e5..4a3b3144b68 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create.md b/docs/examples/1.6.x/client-web/examples/account/create.md index eb4634faeb1..bf2dbec02ac 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create.md +++ b/docs/examples/1.6.x/client-web/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-identity.md b/docs/examples/1.6.x/client-web/examples/account/delete-identity.md index 7a6dbae0be5..f34baaaf5ea 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md index 44f00653996..d11351442c5 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md index 7b8f505196a..79bb06ed5d2 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-session.md b/docs/examples/1.6.x/client-web/examples/account/delete-session.md index 15e91fada04..4d27221d851 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md index 71761b2e77c..c0fdf139245 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md index 3a8c308052b..850488b0c88 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get-prefs.md b/docs/examples/1.6.x/client-web/examples/account/get-prefs.md index 749df1642fd..f2838328963 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get-session.md b/docs/examples/1.6.x/client-web/examples/account/get-session.md index 6e491f5f68e..29af11052e2 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get.md b/docs/examples/1.6.x/client-web/examples/account/get.md index 16498a4b395..ea605914cee 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get.md +++ b/docs/examples/1.6.x/client-web/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-identities.md b/docs/examples/1.6.x/client-web/examples/account/list-identities.md index f6febdf192c..54c569b8362 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-logs.md b/docs/examples/1.6.x/client-web/examples/account/list-logs.md index 02f1abb0b78..17c214f9496 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md index 9a9c0d4cd66..c9fa7da1bcb 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-sessions.md b/docs/examples/1.6.x/client-web/examples/account/list-sessions.md index a42018a00f7..453e6065177 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-email.md b/docs/examples/1.6.x/client-web/examples/account/update-email.md index e15f23c1c99..9e02fc94169 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md index 8ac76070867..58b6a061b10 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md index 5f268f89835..47501c528f2 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md index 34419463039..74eedd8dc74 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md index 6c83570d3d7..01a09dd354b 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md index dce2d4e2e0a..24ff10b1e47 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-name.md b/docs/examples/1.6.x/client-web/examples/account/update-name.md index 26258fd0558..d6a6946795d 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-password.md b/docs/examples/1.6.x/client-web/examples/account/update-password.md index 84267c06498..575779e35c6 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md index 5ab19851878..092205ec6a9 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md index 91cb79d0631..1b85178e76a 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-phone.md b/docs/examples/1.6.x/client-web/examples/account/update-phone.md index 03947e31d5e..0c5ff216d80 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-prefs.md b/docs/examples/1.6.x/client-web/examples/account/update-prefs.md index 4f3039f3d8f..b9e88eac28f 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-push-target.md b/docs/examples/1.6.x/client-web/examples/account/update-push-target.md index 4803f6ba1e1..3475a22ba95 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-recovery.md b/docs/examples/1.6.x/client-web/examples/account/update-recovery.md index 716efd2b484..328e50ea4fe 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-session.md b/docs/examples/1.6.x/client-web/examples/account/update-session.md index b4370569b94..4ccc8295d95 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-status.md b/docs/examples/1.6.x/client-web/examples/account/update-status.md index c4b2c0eafb2..932f167033a 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-verification.md b/docs/examples/1.6.x/client-web/examples/account/update-verification.md index f928efdb4ea..6d15aeec2e6 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md index 3ead6d6d2bf..f4c342fb037 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md index 1391a33f19f..9efd0d62f19 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md index 4da10c5f30b..85317f13832 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md index 3bfe49d6491..fc78922e245 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-image.md b/docs/examples/1.6.x/client-web/examples/avatars/get-image.md index ef639f60799..36f88ecb529 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md index 25d23203dd8..321c448807f 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md index 83344a0c84e..cbbabbc2c89 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/create-document.md b/docs/examples/1.6.x/client-web/examples/databases/create-document.md index 45448a893c4..916cc92689d 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/delete-document.md b/docs/examples/1.6.x/client-web/examples/databases/delete-document.md index 623e172a010..c9a1e9f759d 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/get-document.md b/docs/examples/1.6.x/client-web/examples/databases/get-document.md index bdf9089c500..a2836fc6ef6 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/list-documents.md b/docs/examples/1.6.x/client-web/examples/databases/list-documents.md index 1d5e48a8dbf..d00ac563906 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-web/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/update-document.md b/docs/examples/1.6.x/client-web/examples/databases/update-document.md index b7e4d5b276a..c0e06fce406 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/create-execution.md b/docs/examples/1.6.x/client-web/examples/functions/create-execution.md index 401874f3751..8f07523b2b0 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-web/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/client-web/examples/functions/get-deployment-download.md deleted file mode 100644 index 62e3ee65518..00000000000 --- a/docs/examples/1.6.x/client-web/examples/functions/get-deployment-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = functions.getDeploymentDownload( - '<FUNCTION_ID>', // functionId - '<DEPLOYMENT_ID>' // deploymentId -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-web/examples/functions/get-execution.md b/docs/examples/1.6.x/client-web/examples/functions/get-execution.md index 05e2c3c7221..9b88f81f6ce 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-web/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/get-template.md b/docs/examples/1.6.x/client-web/examples/functions/get-template.md deleted file mode 100644 index dd2d20284e4..00000000000 --- a/docs/examples/1.6.x/client-web/examples/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-web/examples/functions/list-executions.md b/docs/examples/1.6.x/client-web/examples/functions/list-executions.md index 93a70d950c5..1373e314cfb 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-web/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/list-templates.md b/docs/examples/1.6.x/client-web/examples/functions/list-templates.md deleted file mode 100644 index 141c56322b7..00000000000 --- a/docs/examples/1.6.x/client-web/examples/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Functions } from "appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-web/examples/graphql/mutation.md b/docs/examples/1.6.x/client-web/examples/graphql/mutation.md index b875f0e93ab..0e7466ac13b 100644 --- a/docs/examples/1.6.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-web/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-web/examples/graphql/query.md b/docs/examples/1.6.x/client-web/examples/graphql/query.md index c0f925a3a00..f9cd9b740f7 100644 --- a/docs/examples/1.6.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-web/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/get.md b/docs/examples/1.6.x/client-web/examples/locale/get.md index f3a46b43fdd..bdd74722f49 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/get.md +++ b/docs/examples/1.6.x/client-web/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-codes.md b/docs/examples/1.6.x/client-web/examples/locale/list-codes.md index 36957e9fec7..547bb056c03 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-continents.md b/docs/examples/1.6.x/client-web/examples/locale/list-continents.md index be3b2fa6473..217ffc116ca 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md index a3af6ae93c9..515a3040ab0 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md index d6845b70db3..72a6a31d08c 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-countries.md b/docs/examples/1.6.x/client-web/examples/locale/list-countries.md index defdfec006a..a127521f36f 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md index 7cbf8b81d90..e6ff0e1fcef 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-languages.md b/docs/examples/1.6.x/client-web/examples/locale/list-languages.md index 4f3f877332d..03b4e7d2c12 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md index 1fa1de5d518..254870985d3 100644 --- a/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md index bbed0715c09..3d5d0a4b426 100644 --- a/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/create-file.md b/docs/examples/1.6.x/client-web/examples/storage/create-file.md index db2200b86a1..20a42206a20 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/delete-file.md b/docs/examples/1.6.x/client-web/examples/storage/delete-file.md index 52cc1d4fa2d..373cdc03fcb 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md index d37541dd063..2cd3cd4feb9 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md index 629417325be..40ffcffa944 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md index 9a58250003e..ced0010f513 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file.md b/docs/examples/1.6.x/client-web/examples/storage/get-file.md index 36c4b45ca60..10bd9fb775b 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/list-files.md b/docs/examples/1.6.x/client-web/examples/storage/list-files.md index 731a76e3125..f2c3ccb2b8f 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-web/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/update-file.md b/docs/examples/1.6.x/client-web/examples/storage/update-file.md index 75aefc1120a..1432b850993 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/create-membership.md b/docs/examples/1.6.x/client-web/examples/teams/create-membership.md index 3f585859a99..8802e25af9c 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/create.md b/docs/examples/1.6.x/client-web/examples/teams/create.md index ffa14148786..b23f2201ac7 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/create.md +++ b/docs/examples/1.6.x/client-web/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md index dc871165ee8..2f360c3547d 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/delete.md b/docs/examples/1.6.x/client-web/examples/teams/delete.md index 99ce85673fa..5fd7f5d8580 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-web/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/get-membership.md b/docs/examples/1.6.x/client-web/examples/teams/get-membership.md index d4abeeff736..cd253fd6ef0 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md index b5b3d1295f7..a7f346f11fe 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/get.md b/docs/examples/1.6.x/client-web/examples/teams/get.md index 8306cc59b6d..539bdcf0514 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/get.md +++ b/docs/examples/1.6.x/client-web/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md index b1c068112b4..e8cc39b5d8c 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/list.md b/docs/examples/1.6.x/client-web/examples/teams/list.md index 0d000e9b35c..4ca13ce8dd9 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/list.md +++ b/docs/examples/1.6.x/client-web/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md index dd32bbb6f1b..89cc13cac28 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-membership.md b/docs/examples/1.6.x/client-web/examples/teams/update-membership.md index ae7fb9a49cb..fd6fffffcb0 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-name.md b/docs/examples/1.6.x/client-web/examples/teams/update-name.md index 553c77de3fb..d91939ff73c 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md index 55b273b9961..d7d4c367593 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md index d48c3470fec..f5adb497ece 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateBooleanAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default false + --default false \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md index 9fc56373ed7..fe4a4626649 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateDatetimeAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md index 9f7bffeb9cf..58510a6f8e5 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateEmailAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default email@example.com + --default email@example.com \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md index bf562a0a824..21d56d3e64a 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md @@ -4,4 +4,5 @@ appwrite databases updateEnumAttribute \ --key '' \ --elements one two three \ --required false \ - --default <DEFAULT> + --default <DEFAULT> \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md index 097dfd310a2..a9bba3eb5e8 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateFloatAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md index 6a6b0747a83..660cd4d1480 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateIntegerAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md index 2439b5a8de1..a400eadc1ea 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateIpAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md index be03a707363..6e2dbd927d5 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md @@ -3,3 +3,4 @@ appwrite databases updateRelationshipAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md index ebf45253fa8..526ece0b72e 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md @@ -3,4 +3,6 @@ appwrite databases updateStringAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default <DEFAULT> + --default <DEFAULT> \ + + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md index aa11a588dbd..e6f401b8ca6 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateUrlAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default https://example.com + --default https://example.com \ + diff --git a/docs/examples/1.6.x/console-cli/examples/functions/download-deployment.md b/docs/examples/1.6.x/console-cli/examples/functions/download-deployment.md deleted file mode 100644 index aa440b5145a..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/functions/download-deployment.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite functions downloadDeployment \ - --functionId <FUNCTION_ID> \ - --deploymentId <DEPLOYMENT_ID> diff --git a/docs/examples/1.6.x/console-cli/examples/functions/get-specifications.md b/docs/examples/1.6.x/console-cli/examples/functions/get-specifications.md deleted file mode 100644 index 4e612280e7d..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/functions/get-specifications.md +++ /dev/null @@ -1 +0,0 @@ -appwrite functions getSpecifications diff --git a/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..9cce9637489 --- /dev/null +++ b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-resources.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsResources \ + diff --git a/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-usage-dump.md b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-usage-dump.md new file mode 100644 index 00000000000..fed2f5fa464 --- /dev/null +++ b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-usage-dump.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsUsageDump \ + diff --git a/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md b/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md index e1873425038..18d8ec5aeca 100644 --- a/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md @@ -1,7 +1,10 @@ appwrite messaging createPush \ --messageId <MESSAGE_ID> \ - --title <TITLE> \ - --body <BODY> \ + + + + + diff --git a/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md b/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md index 70f215c9351..1f4427cee7d 100644 --- a/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md @@ -15,3 +15,6 @@ appwrite messaging updatePush \ + + + diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.6.x/console-cli/examples/migrations/create-firebase-o-auth-migration.md deleted file mode 100644 index 207becba037..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/create-firebase-o-auth-migration.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite migrations createFirebaseOAuthMigration \ - --resources one two three \ - --projectId <PROJECT_ID> diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/delete-firebase-auth.md b/docs/examples/1.6.x/console-cli/examples/migrations/delete-firebase-auth.md deleted file mode 100644 index d58abd98788..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/delete-firebase-auth.md +++ /dev/null @@ -1 +0,0 @@ -appwrite migrations deleteFirebaseAuth diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.6.x/console-cli/examples/migrations/get-firebase-report-o-auth.md deleted file mode 100644 index 0bdbf3e435d..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/get-firebase-report-o-auth.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite migrations getFirebaseReportOAuth \ - --resources one two three \ - --projectId <PROJECT_ID> diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/list-firebase-projects.md b/docs/examples/1.6.x/console-cli/examples/migrations/list-firebase-projects.md deleted file mode 100644 index a0e59713eb9..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/list-firebase-projects.md +++ /dev/null @@ -1 +0,0 @@ -appwrite migrations listFirebaseProjects diff --git a/docs/examples/1.6.x/console-cli/examples/projects/update-memberships-privacy.md b/docs/examples/1.6.x/console-cli/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..6c811ccfceb --- /dev/null +++ b/docs/examples/1.6.x/console-cli/examples/projects/update-memberships-privacy.md @@ -0,0 +1,5 @@ +appwrite projects updateMembershipsPrivacy \ + --projectId <PROJECT_ID> \ + --userName false \ + --userEmail false \ + --mfa false diff --git a/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md index ef433a8fb68..113f882e802 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md b/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md index 0f51387343a..36a503164b7 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-email-token.md b/docs/examples/1.6.x/console-web/examples/account/create-email-token.md index b55f7c46bc1..9517000af3f 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md index 4f47136a6b7..9fc0e6da5eb 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md index 68662b8a294..6b1891855ea 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md index 97bd528cbf4..923eb1ee3c1 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md index ed2cd38628c..fd6af6ec195 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md index 06f25dd8170..d7c122b79cc 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md index e565dd58408..a11bd9880b9 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md index 14c0d00af4a..9eb7cfab67e 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md b/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md index 21fdb81e31a..25216ca73c8 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md index 4d193cbd398..03185e3e915 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-push-target.md b/docs/examples/1.6.x/console-web/examples/account/create-push-target.md index 339b9972c61..ee35566f8a7 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-recovery.md b/docs/examples/1.6.x/console-web/examples/account/create-recovery.md index b28d4f8b015..c2bb4422fa4 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-session.md b/docs/examples/1.6.x/console-web/examples/account/create-session.md index 06e12603e1f..1c8d8a44803 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-verification.md b/docs/examples/1.6.x/console-web/examples/account/create-verification.md index 555030a79ef..f6eacdce1f3 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create.md b/docs/examples/1.6.x/console-web/examples/account/create.md index 120aceb9d9b..d220aed8d0e 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create.md +++ b/docs/examples/1.6.x/console-web/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-identity.md b/docs/examples/1.6.x/console-web/examples/account/delete-identity.md index a541e9bd346..6808b32a1d0 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md index 64f27fdfacc..54610a810c3 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md b/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md index 017ebd438b1..f530b64dadd 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-session.md b/docs/examples/1.6.x/console-web/examples/account/delete-session.md index 1045e98a825..4eba0515e42 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md index ff8c069503c..b9904d612f0 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete.md b/docs/examples/1.6.x/console-web/examples/account/delete.md index 7fa1ef10d1c..2fc730f9f05 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md index 6d47bc3b7cb..bee039c48d0 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get-prefs.md b/docs/examples/1.6.x/console-web/examples/account/get-prefs.md index 1470b683e58..3a013e6615c 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get-session.md b/docs/examples/1.6.x/console-web/examples/account/get-session.md index b7de88646ad..d5da237783a 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get.md b/docs/examples/1.6.x/console-web/examples/account/get.md index 68dbf30b40b..35661e483bf 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get.md +++ b/docs/examples/1.6.x/console-web/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-identities.md b/docs/examples/1.6.x/console-web/examples/account/list-identities.md index f67e5817b31..675e902c9f2 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-logs.md b/docs/examples/1.6.x/console-web/examples/account/list-logs.md index 0532a94e19e..72a0ee12dd8 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md index 3fa9652dbc6..7cbc52ec713 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-sessions.md b/docs/examples/1.6.x/console-web/examples/account/list-sessions.md index 2cc26632635..6a24e372c5a 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-email.md b/docs/examples/1.6.x/console-web/examples/account/update-email.md index d7b6fb7aca9..df1c7f480aa 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md b/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md index 3c9dac03262..b813b60bb4a 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md index 6bafae7723b..e0ecd667408 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md index 430bf63cd97..b9606759143 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md index c170cc272d5..5314959f252 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md index f61a5a1c1ef..654d9fb0fa9 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-name.md b/docs/examples/1.6.x/console-web/examples/account/update-name.md index b2991305c51..cd36ece1132 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-password.md b/docs/examples/1.6.x/console-web/examples/account/update-password.md index 1c6c4ce5d06..863c5f28b3e 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md index a9c75466744..d23c10bbda7 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md index de1f471e888..1a05386a9d4 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-phone.md b/docs/examples/1.6.x/console-web/examples/account/update-phone.md index 8c1880b482f..380279d0570 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-prefs.md b/docs/examples/1.6.x/console-web/examples/account/update-prefs.md index e3581de3414..13d857468df 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-push-target.md b/docs/examples/1.6.x/console-web/examples/account/update-push-target.md index 1cbf9e933ff..566d754db7c 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-recovery.md b/docs/examples/1.6.x/console-web/examples/account/update-recovery.md index 3acc705f001..53d75f95d2d 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-session.md b/docs/examples/1.6.x/console-web/examples/account/update-session.md index 88f51f18f21..207fc026d8c 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-status.md b/docs/examples/1.6.x/console-web/examples/account/update-status.md index 3ed146cff8d..c1377dc4a60 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-verification.md b/docs/examples/1.6.x/console-web/examples/account/update-verification.md index 42d05ff3ef8..4861ca2b814 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/assistant/chat.md b/docs/examples/1.6.x/console-web/examples/assistant/chat.md index 9c44d5709a1..98032043a5b 100644 --- a/docs/examples/1.6.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.6.x/console-web/examples/assistant/chat.md @@ -1,7 +1,7 @@ import { Client, Assistant } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const assistant = new Assistant(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md index 3604984b896..fd6c878ba2d 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md index ec38da8a6b5..96e2d6b5fa4 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md index 87a310aaa34..b23e99a5519 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md index dd9e2f60ae0..172d21d29ed 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-image.md b/docs/examples/1.6.x/console-web/examples/avatars/get-image.md index 8cb6546cf2c..209e1ea8364 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md index 81cfc5ca3e9..6ec70b2143a 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md index d685011dc98..a255cdc531e 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/console/variables.md b/docs/examples/1.6.x/console-web/examples/console/variables.md index 0ee1f574831..1dce6c02602 100644 --- a/docs/examples/1.6.x/console-web/examples/console/variables.md +++ b/docs/examples/1.6.x/console-web/examples/console/variables.md @@ -1,7 +1,7 @@ import { Client, Console } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const console = new Console(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md index ae76596cb2d..5b161c6f518 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-collection.md b/docs/examples/1.6.x/console-web/examples/databases/create-collection.md index 29e9eeed7de..cd28cf86160 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md index 7344660f51a..c431105bdfc 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-document.md b/docs/examples/1.6.x/console-web/examples/databases/create-document.md index 8f1a69afe1c..1b96d078995 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md index 32a51c506d6..f11c1a96496 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md index ab460cde2b0..d180b1b9f2d 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md index 7019deb0aa2..036d3fc201a 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-index.md b/docs/examples/1.6.x/console-web/examples/databases/create-index.md index e8a3470879d..f75857fc985 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-index.md @@ -1,7 +1,7 @@ import { Client, Databases, IndexType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md index a2cdda2b1cc..25f474d0aad 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md index daf7e4fd113..e8abc80f91e 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md index a64548c9632..358a2df5fc6 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationshipType, RelationMutate } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md index 6e9541ed573..ba94b0348b8 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md index dc2dfc3ba0b..da80e392d30 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create.md b/docs/examples/1.6.x/console-web/examples/databases/create.md index a7f560eef77..6d709ddd561 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md index cec93bef6d5..df12b0d2f04 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md index ef2aa905828..f490ae10967 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-document.md b/docs/examples/1.6.x/console-web/examples/databases/delete-document.md index 961bc639343..a56a4f23c51 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-index.md b/docs/examples/1.6.x/console-web/examples/databases/delete-index.md index 152a93e0a1d..cdd96a31f03 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete.md b/docs/examples/1.6.x/console-web/examples/databases/delete.md index b6485ad9d94..3bd69657f93 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md index 20c555cb9ec..9dac2ad1339 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md index 4b14f1fd93b..a2f736377a4 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md @@ -1,7 +1,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-collection.md b/docs/examples/1.6.x/console-web/examples/databases/get-collection.md index 59ab03be1ee..56d29f05cb1 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md index c0f15e4e6a3..13038ab755f 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md @@ -1,7 +1,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-document.md b/docs/examples/1.6.x/console-web/examples/databases/get-document.md index cf16708bfb3..0e90cf785ef 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-index.md b/docs/examples/1.6.x/console-web/examples/databases/get-index.md index 85a1c03b1b1..4c8c3794af9 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-usage.md b/docs/examples/1.6.x/console-web/examples/databases/get-usage.md index 9d926e5ffb3..a0dd3ce9834 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-usage.md @@ -1,7 +1,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get.md b/docs/examples/1.6.x/console-web/examples/databases/get.md index 8b9e02ed19f..5c72c5639c9 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md index 987e1741f0b..0c2cd4092c9 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md index d01a57ea0d8..b2ef92d6772 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-collections.md b/docs/examples/1.6.x/console-web/examples/databases/list-collections.md index 28450a7bfd1..f9a0511e3ea 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md index c1c2b06ede5..ddb789b3f02 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-documents.md b/docs/examples/1.6.x/console-web/examples/databases/list-documents.md index 27d4d77b90e..3a77c05faa6 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md index 829f6d7b023..fbbef1a9d88 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-logs.md b/docs/examples/1.6.x/console-web/examples/databases/list-logs.md index ec42922d4c6..12ccccf87ef 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-logs.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list.md b/docs/examples/1.6.x/console-web/examples/databases/list.md index d41bdabb7bd..58ec7209a3c 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md index d6668bf3a1d..95207fd2abd 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-collection.md b/docs/examples/1.6.x/console-web/examples/databases/update-collection.md index f5e6176811f..ced992baf47 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md index 4dc65e7b3b6..7c413ee5323 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-document.md b/docs/examples/1.6.x/console-web/examples/databases/update-document.md index 635c50722dc..85898ea2a76 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md index 39aa7189ff4..e54dba99bd2 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md index 81a9fa57f00..aa5330af04b 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md index 6c820f45050..344ddb8815b 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,10 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md index 5fdfedeea21..72565bd5f40 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,10 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md index 2a6267d6e61..ff6dded552a 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md index 934590d525d..acce3fd741d 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationMutate } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,7 +10,8 @@ const result = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - RelationMutate.Cascade // onDelete (optional) + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md index 0d9bc97823e..05601bd4a23 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,9 @@ const result = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md index c1836ed6cea..78b4d92a287 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update.md b/docs/examples/1.6.x/console-web/examples/databases/update.md index a8c2b33ae48..a29475b8163 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-build.md b/docs/examples/1.6.x/console-web/examples/functions/create-build.md index 89c7d0817cd..1b029a3b333 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md index 75715323561..62309d5e987 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-execution.md b/docs/examples/1.6.x/console-web/examples/functions/create-execution.md index dfaf2ef2601..813e1fd0a7d 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-variable.md b/docs/examples/1.6.x/console-web/examples/functions/create-variable.md index 60d9a10b294..e8154ef1815 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create.md b/docs/examples/1.6.x/console-web/examples/functions/create.md index 63df3bfa03c..c30dfac9a1f 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md index 28fd5b29e3b..1bc26feab06 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md b/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md index 2a857d6535d..08164346372 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md index 60c4de54cc7..878d15d235e 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete.md b/docs/examples/1.6.x/console-web/examples/functions/delete.md index b6dd5ccf3e7..86d616d267e 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/download-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/download-deployment.md deleted file mode 100644 index 8115c7e1306..00000000000 --- a/docs/examples/1.6.x/console-web/examples/functions/download-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Functions } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = functions.downloadDeployment( - '<FUNCTION_ID>', // functionId - '<DEPLOYMENT_ID>' // deploymentId -); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md index 34f5b4e45f8..2b171dc7853 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md index 242c77cfe04..75cb11f7419 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-execution.md b/docs/examples/1.6.x/console-web/examples/functions/get-execution.md index 6daf1757fdf..58ab917bbd1 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md index cfa6c003b04..dacfd61564a 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md @@ -1,7 +1,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-specifications.md b/docs/examples/1.6.x/console-web/examples/functions/get-specifications.md deleted file mode 100644 index c5cb3fc0430..00000000000 --- a/docs/examples/1.6.x/console-web/examples/functions/get-specifications.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Functions } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.getSpecifications(); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-template.md b/docs/examples/1.6.x/console-web/examples/functions/get-template.md index a230c7aba96..13c95210abe 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-template.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-template.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-usage.md b/docs/examples/1.6.x/console-web/examples/functions/get-usage.md index 7fdf2d2f44d..56e97257017 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-usage.md @@ -1,7 +1,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-variable.md b/docs/examples/1.6.x/console-web/examples/functions/get-variable.md index 14fd5550775..d80b2bccbf2 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get.md b/docs/examples/1.6.x/console-web/examples/functions/get.md index 7eb5d29923b..9b852849eb0 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md index 453e92cfaa3..b9f2ec0eafe 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-executions.md b/docs/examples/1.6.x/console-web/examples/functions/list-executions.md index 1aad664cda6..d1d5857b606 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md index 36010611f00..cdd1e08cad1 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md b/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md index a3c11f1d835..fe671c54bbe 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-templates.md b/docs/examples/1.6.x/console-web/examples/functions/list-templates.md index 3970f8f6699..ab7f84b34d0 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-templates.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-templates.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-variables.md b/docs/examples/1.6.x/console-web/examples/functions/list-variables.md index fc659e3e7d3..5651dbd1c55 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list.md b/docs/examples/1.6.x/console-web/examples/functions/list.md index 26e4864e95a..462214449d2 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md index bd11a2a80e2..7ec812a4baa 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md index 3aad019b137..c8e0bc15a44 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update-variable.md b/docs/examples/1.6.x/console-web/examples/functions/update-variable.md index 5046499cc75..1889b883be9 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update.md b/docs/examples/1.6.x/console-web/examples/functions/update.md index a8d1709aca9..66d3cd8e8fa 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/graphql/mutation.md b/docs/examples/1.6.x/console-web/examples/graphql/mutation.md index 0b9b76a2fd2..5360139b078 100644 --- a/docs/examples/1.6.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/console-web/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/console-web/examples/graphql/query.md b/docs/examples/1.6.x/console-web/examples/graphql/query.md index a708c3904e7..15434872abf 100644 --- a/docs/examples/1.6.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.6.x/console-web/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md index 3c36cd720e9..30e142a63d2 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-cache.md b/docs/examples/1.6.x/console-web/examples/health/get-cache.md index 0bdb8947339..1c0bb182e24 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-cache.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-certificate.md b/docs/examples/1.6.x/console-web/examples/health/get-certificate.md index 4bd5c8a6b47..288c0f8732b 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-d-b.md b/docs/examples/1.6.x/console-web/examples/health/get-d-b.md index d18ed28f649..855e73466c8 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md index e1e57b1654d..d96a5545aa2 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ import { Client, Health, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md index 9b398f5b140..0ccce8e4d89 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md index 0ee109f8dd7..dfbbfd91a61 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md index ce82ab00de9..b0397f4422e 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md index 8a96fcf00ba..1b958a9c75e 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md index 840607e1131..3f34bc22285 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md index 35c612a7af8..2ea37014626 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md index 9f5d51dc298..73bd18589ad 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md index 58d694d7b8b..a6d86c04c78 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md index cfecdf9a634..d25979713da 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md index 5a8b74e79cd..3619c56028c 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..cf1c3ee5dfb --- /dev/null +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md index 4312ace961b..969b6346f70 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md index 703574a3ba6..f79fd3b5ad4 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md index 1c003864a58..72bcc44c9ad 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue.md b/docs/examples/1.6.x/console-web/examples/health/get-queue.md index cef5e8cc41e..9c13097bb03 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md index 82c6b8bebfa..e6bdf62c503 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-storage.md b/docs/examples/1.6.x/console-web/examples/health/get-storage.md index a7a377a4246..1d8941490e3 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-storage.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-storage.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-time.md b/docs/examples/1.6.x/console-web/examples/health/get-time.md index 8e126c0c074..826eaf5a8c8 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-time.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get.md b/docs/examples/1.6.x/console-web/examples/health/get.md index 3f2f0fbd85a..b510d8a891b 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get.md +++ b/docs/examples/1.6.x/console-web/examples/health/get.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/get.md b/docs/examples/1.6.x/console-web/examples/locale/get.md index fc4f1490ac4..4b0331787ee 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/get.md +++ b/docs/examples/1.6.x/console-web/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-codes.md b/docs/examples/1.6.x/console-web/examples/locale/list-codes.md index 547ff184182..d20399af4ab 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-continents.md b/docs/examples/1.6.x/console-web/examples/locale/list-continents.md index 2c09d6a472d..d769e88f1c4 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md index 12769b40f52..ce8746421b0 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md index 6bd09be13e9..457867707ce 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-countries.md b/docs/examples/1.6.x/console-web/examples/locale/list-countries.md index e245f18aa74..298e25ee814 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md index 4fabdd6a710..05ff041cbba 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-languages.md b/docs/examples/1.6.x/console-web/examples/locale/list-languages.md index 3de7d36e2f9..1a2db31b55d 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md index 2c9592eacb7..9b238afc9e0 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-email.md b/docs/examples/1.6.x/console-web/examples/messaging/create-email.md index cf9800827c0..108517c89da 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md index e4db7c5b876..9d67e89fd69 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md index e03a7adc7e9..dc165af859b 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md index 2576d818e86..cab468a0893 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-push.md b/docs/examples/1.6.x/console-web/examples/messaging/create-push.md index fe8eac62ab9..79c3a20e83f 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-push.md @@ -1,15 +1,15 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -20,9 +20,12 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md index 309df22c6c1..b93c84b2581 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md b/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md index 8cdc8ffd428..7146ee4ac95 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md index a1363e6ded8..b4bcf14d0b5 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md index 9e6705488d9..b1f72394132 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md index 03928d1cba6..355bc22f859 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md index f3a4f21a491..d79cffc3161 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md index 46a7a10f382..274714a63b1 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md index 4a1dbef2567..9b8f4407435 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md index 97dfed44f31..6e115e8eb90 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md index 03626ffd6f9..f71eb65f29c 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md index dc10349ebb3..ace96702115 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md index f009f770af2..8f8e5460d3d 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete.md b/docs/examples/1.6.x/console-web/examples/messaging/delete.md index daf58d29002..17324cca7ed 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-message.md b/docs/examples/1.6.x/console-web/examples/messaging/get-message.md index 3e141f41823..3282adbe57d 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md index 834241ffb3e..97ac5fd127a 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md index 22860485dcb..b718558d715 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md index dd30034a249..802ec1fba43 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md index 709a433e737..8679b267ce1 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md b/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md index 42cf8874e5e..a537844f813 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md index 228a83e6ca2..2e4acb38cf7 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md b/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md index e135b4afb70..5c91f01bbc8 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md index 33f4bdf0b1d..f722c9a9edd 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md index 09818406d5e..f120e9d96d2 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md b/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md index 92adc0cf346..89baf87cb00 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md index 2ab33f65333..bc23a09a919 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md b/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md index 8983f834f7d..d23cca3171e 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md index 4face789204..bc69c3ad1eb 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-email.md b/docs/examples/1.6.x/console-web/examples/messaging/update-email.md index 905ba629c4c..ba9bc7eb486 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md index 0c1b2627dc8..d2e73825613 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md index 8dbf6b8bc39..cc48ac52f34 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md index 68db8ffe2d7..c2a6faec24d 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-push.md b/docs/examples/1.6.x/console-web/examples/messaging/update-push.md index 9fbb2303044..e479dcc4259 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-push.md @@ -1,7 +1,7 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -22,7 +22,10 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md index 5cb6907f059..efe8263718f 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md b/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md index c26662680a1..2c535a014e5 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md index aca32d19020..0274337a7bd 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md index fcba0648f50..5d8bc1602d2 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md index c2f1c2506a8..564ad4fc690 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md index d5d953511bc..e0edbae7145 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md index d6a8d07a4b3..544a52e4fd9 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md index 939cd821d6c..e831c03184c 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md index 4e5b463e388..db9a4cd0e00 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md index 9e59eda642b..20ce3a8b3c4 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-o-auth-migration.md deleted file mode 100644 index bf57d427e9c..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-o-auth-migration.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.createFirebaseOAuthMigration( - [], // resources - '<PROJECT_ID>' // projectId -); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md index 281b584d351..23b22ff3718 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md index 290009b498f..18c326ca7e1 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.6.x/console-web/examples/migrations/delete-firebase-auth.md deleted file mode 100644 index 8c7683b46a3..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/delete-firebase-auth.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.deleteFirebaseAuth(); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/delete.md b/docs/examples/1.6.x/console-web/examples/migrations/delete.md index d5f68fffaff..bb013ddf279 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/delete.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/delete.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md index b5de0848bcf..a70b6a45fb6 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report-o-auth.md deleted file mode 100644 index 055ddfba7cc..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report-o-auth.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.getFirebaseReportOAuth( - [], // resources - '<PROJECT_ID>' // projectId -); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md index 112dd629d76..bf1c85eeb63 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md index ec615014f1b..a983088f0d6 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md index 5f6dd316e75..d6ea7a97122 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get.md b/docs/examples/1.6.x/console-web/examples/migrations/get.md index 3397c2faa84..e2c67eb884f 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.6.x/console-web/examples/migrations/list-firebase-projects.md deleted file mode 100644 index 833c05fe24d..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/list-firebase-projects.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.listFirebaseProjects(); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/list.md b/docs/examples/1.6.x/console-web/examples/migrations/list.md index 05207f4a6ad..a978e1843e1 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/list.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/retry.md b/docs/examples/1.6.x/console-web/examples/migrations/retry.md index e70bc0700f2..f489168d7e5 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/retry.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/retry.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/create-variable.md b/docs/examples/1.6.x/console-web/examples/project/create-variable.md index 5d72427d9fa..5b027511e97 100644 --- a/docs/examples/1.6.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/create-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/delete-variable.md b/docs/examples/1.6.x/console-web/examples/project/delete-variable.md index f7a9cf7f3f7..224691691dc 100644 --- a/docs/examples/1.6.x/console-web/examples/project/delete-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/delete-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/get-usage.md b/docs/examples/1.6.x/console-web/examples/project/get-usage.md index 28d2e32a501..300311dd8f9 100644 --- a/docs/examples/1.6.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/project/get-usage.md @@ -1,7 +1,7 @@ import { Client, Project, ProjectUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/get-variable.md b/docs/examples/1.6.x/console-web/examples/project/get-variable.md index 8765ccaf17b..bc30baa3252 100644 --- a/docs/examples/1.6.x/console-web/examples/project/get-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/get-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/list-variables.md b/docs/examples/1.6.x/console-web/examples/project/list-variables.md index fde2ccfaf03..9c17f8514e7 100644 --- a/docs/examples/1.6.x/console-web/examples/project/list-variables.md +++ b/docs/examples/1.6.x/console-web/examples/project/list-variables.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/update-variable.md b/docs/examples/1.6.x/console-web/examples/project/update-variable.md index 7263032bfb4..85dd5787641 100644 --- a/docs/examples/1.6.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/update-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md b/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md index 2674a12ae18..7175e266ae0 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-key.md b/docs/examples/1.6.x/console-web/examples/projects/create-key.md index 80ab9cc4293..25bcc125ed4 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-platform.md b/docs/examples/1.6.x/console-web/examples/projects/create-platform.md index 472517a6257..7e23dd6f9e0 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-platform.md @@ -1,7 +1,7 @@ import { Client, Projects, PlatformType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md b/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md index 205a60846df..ab0e184432b 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md @@ -1,7 +1,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md index 066b1b78aaa..62fdac56cdd 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create.md b/docs/examples/1.6.x/console-web/examples/projects/create.md index 8d1eb12cac7..58efd0b75fe 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create.md @@ -1,7 +1,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md index 582c7562602..10e3d302aef 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md @@ -1,7 +1,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-key.md b/docs/examples/1.6.x/console-web/examples/projects/delete-key.md index 21643859f70..7ea7dc6fdcb 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md index 8a0dd667ac2..5c71747a64d 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md index cee473637e1..eef3cccae9a 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md @@ -1,7 +1,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md index 9b8b0ca0b53..24abaafc66e 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete.md b/docs/examples/1.6.x/console-web/examples/projects/delete.md index 606b4493889..d868616db23 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md index 41da628ce2e..1d27c8c6827 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md @@ -1,7 +1,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-key.md b/docs/examples/1.6.x/console-web/examples/projects/get-key.md index 8965f7250a2..79359e298b5 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-platform.md b/docs/examples/1.6.x/console-web/examples/projects/get-platform.md index aa0b0847263..a17bcb122d9 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-platform.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md index 5c424db1608..0badf1cca4e 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md @@ -1,7 +1,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md index eff61f8e712..6b6530a04ed 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get.md b/docs/examples/1.6.x/console-web/examples/projects/get.md index eb537bfa3f2..dbec5dd5438 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list-keys.md b/docs/examples/1.6.x/console-web/examples/projects/list-keys.md index a381e9f5088..5701133ba4e 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list-keys.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md index d2dbc82a0cd..214092b6b34 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md index c0e90e92023..11639bfccf3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list.md b/docs/examples/1.6.x/console-web/examples/projects/list.md index 01d68f4fb09..0ade65189a3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md b/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md index 5378a3511eb..a51ed2df2b1 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md b/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md index 63328d4486d..9cc7dfe8abe 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md @@ -1,7 +1,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md index 82738f3798a..d0d8c67b288 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md index e76582e0e25..80f73f871f2 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md index bd76c9b4b93..1e878c22467 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md index 02aa65bbb83..26a3adcfdee 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md index 69efff8cbae..c1b0e14e912 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md index fc38aa64879..d4862282a6f 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md @@ -1,7 +1,7 @@ import { Client, Projects, AuthMethod } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md index 178193b4522..44467c4f8a3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md @@ -1,7 +1,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-key.md b/docs/examples/1.6.x/console-web/examples/projects/update-key.md index 287133deee7..492a0ac23d4 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-memberships-privacy.md b/docs/examples/1.6.x/console-web/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..31adcd38552 --- /dev/null +++ b/docs/examples/1.6.x/console-web/examples/projects/update-memberships-privacy.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMembershipsPrivacy( + '<PROJECT_ID>', // projectId + false, // userName + false, // userEmail + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md b/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md index c371e721e9f..245a20c19bc 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md index fc9cd5a31e5..0671ee38bd0 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md @@ -1,7 +1,7 @@ import { Client, Projects, OAuthProvider } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md index be52d712401..fb0fcffc163 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-platform.md b/docs/examples/1.6.x/console-web/examples/projects/update-platform.md index a34d5cccebf..2f9cc0a4fdc 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-platform.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md index 9a64f375a41..672a1491bc7 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md index e1af528617d..5d2189e3396 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md @@ -1,7 +1,7 @@ import { Client, Projects, ApiService } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md b/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md index f718d251216..65aa353b2b3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md index 97e70017754..cc801a67c51 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md @@ -1,7 +1,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md b/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md index d2cba5cff12..605ba0f5e36 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md @@ -1,7 +1,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-team.md b/docs/examples/1.6.x/console-web/examples/projects/update-team.md index 71ef96c9fbb..b7c5d934e23 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-team.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-team.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md index 14a277c0e12..593c6c0fce1 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md index 3b248a8d29f..18d10051e96 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update.md b/docs/examples/1.6.x/console-web/examples/projects/update.md index c5d2961acbe..8b2d2823caa 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md b/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md index e2eecb0f7f9..0fa61ca7570 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md @@ -1,7 +1,7 @@ import { Client, Proxy, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md index 4e8cc42375c..783f06d95cc 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md index 3e4ae78a1cb..e69c8210cee 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md index 01b5cc0527c..8c071682926 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md index 6ae0a0274e2..349535cec8c 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md index eec0272c589..a01bb0945fd 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/create-file.md b/docs/examples/1.6.x/console-web/examples/storage/create-file.md index 21c58dcbb0a..8048772389c 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md index c20989887d3..20084fd7e3b 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/delete-file.md b/docs/examples/1.6.x/console-web/examples/storage/delete-file.md index 3e2010a0279..41afa9e375a 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md index f28d21773a2..1007454c2e0 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md @@ -1,7 +1,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md index b69202ddd28..ec77dd2bf57 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md index 2376adc4708..8cef65e7dfd 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md index ee390c5231c..e844be00c64 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md index 82689b59675..6444fd0ac83 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file.md b/docs/examples/1.6.x/console-web/examples/storage/get-file.md index f4c0aa9c50b..76658edb0ba 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-usage.md b/docs/examples/1.6.x/console-web/examples/storage/get-usage.md index 6090311d54f..b57f8f8b034 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-usage.md @@ -1,7 +1,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md index eb4c561386c..f82c01a8793 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/list-files.md b/docs/examples/1.6.x/console-web/examples/storage/list-files.md index e5039136ff3..9076b8997fd 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.6.x/console-web/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md index 89593957828..d6c125a213d 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/update-file.md b/docs/examples/1.6.x/console-web/examples/storage/update-file.md index 2d3fedbfcbc..79830f77d23 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/create-membership.md b/docs/examples/1.6.x/console-web/examples/teams/create-membership.md index 2ea76b1987d..18f6b0ab4df 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/create.md b/docs/examples/1.6.x/console-web/examples/teams/create.md index 40cd4763c1c..a33e71ad5f5 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/create.md +++ b/docs/examples/1.6.x/console-web/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md index c7a307da48d..a63ed467496 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/delete.md b/docs/examples/1.6.x/console-web/examples/teams/delete.md index fe71deed638..e97cc05cc78 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.6.x/console-web/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/get-membership.md b/docs/examples/1.6.x/console-web/examples/teams/get-membership.md index 99e67ea8ffa..bc31ee1470b 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md index 9b5c724aadd..394848c5c33 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/get.md b/docs/examples/1.6.x/console-web/examples/teams/get.md index d87b58f05c9..8c752a9828e 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/get.md +++ b/docs/examples/1.6.x/console-web/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/list-logs.md b/docs/examples/1.6.x/console-web/examples/teams/list-logs.md index 76ba484ddba..004e627f0df 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/teams/list-logs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md index 9f1a6f91220..22fb731175d 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/list.md b/docs/examples/1.6.x/console-web/examples/teams/list.md index b738fe925bd..c51dfaf3899 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/list.md +++ b/docs/examples/1.6.x/console-web/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md index b7fe25d3eea..c8e608278e9 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-membership.md b/docs/examples/1.6.x/console-web/examples/teams/update-membership.md index 2e6f75941e6..d3e0164a179 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-name.md b/docs/examples/1.6.x/console-web/examples/teams/update-name.md index c8792637f13..43703d0c982 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md index d81c93dccef..e0acff0a30b 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md index b39f688c8e8..c190225d4b6 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md index 874b4e76250..9c51181890b 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md b/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md index aefc6208001..7d50fbce034 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md index da6d1065b4f..610f795ab01 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md index 6689014cfa6..ea52af9cf83 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md index 235df140592..c9437c5c381 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md index a13d0342f09..b70f09c133c 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import { Client, Users, PasswordHash } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md index e6e1c42c021..c0a0435b67d 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md index c8e9340c50f..f1cb93637ae 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-session.md b/docs/examples/1.6.x/console-web/examples/users/create-session.md index 55704e5af1a..5393c4408dc 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-session.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-target.md b/docs/examples/1.6.x/console-web/examples/users/create-target.md index 28daa912020..4c8eac9c45d 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-target.md @@ -1,7 +1,7 @@ import { Client, Users, MessagingProviderType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-token.md b/docs/examples/1.6.x/console-web/examples/users/create-token.md index 6c91898d2f4..58e8c9f035c 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-token.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-token.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create.md b/docs/examples/1.6.x/console-web/examples/users/create.md index 8959c127d43..131ef1290c5 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create.md +++ b/docs/examples/1.6.x/console-web/examples/users/create.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-identity.md b/docs/examples/1.6.x/console-web/examples/users/delete-identity.md index b8ef32e24df..cf7425c8437 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md index 586940ecb0c..023686ae269 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-session.md b/docs/examples/1.6.x/console-web/examples/users/delete-session.md index 3380f90cc47..ca6880431b1 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md index 3b0e153b3f1..1137a8b29b3 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-target.md b/docs/examples/1.6.x/console-web/examples/users/delete-target.md index 1877265f085..386d8a90b56 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete.md b/docs/examples/1.6.x/console-web/examples/users/delete.md index 60a7e16fb43..1d4b1d0e1ca 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md index 7b74479420b..02d17649c80 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-prefs.md b/docs/examples/1.6.x/console-web/examples/users/get-prefs.md index 882cbd6c95f..b24f2bd3aee 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-target.md b/docs/examples/1.6.x/console-web/examples/users/get-target.md index a6b89622461..cfa7d3d5cda 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-usage.md b/docs/examples/1.6.x/console-web/examples/users/get-usage.md index 5b559158b37..bd87faf10f1 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-usage.md @@ -1,7 +1,7 @@ import { Client, Users, UserUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get.md b/docs/examples/1.6.x/console-web/examples/users/get.md index 84f0f33207f..77f5006890a 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get.md +++ b/docs/examples/1.6.x/console-web/examples/users/get.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-identities.md b/docs/examples/1.6.x/console-web/examples/users/list-identities.md index 0836749535e..34b92900a7e 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-identities.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-logs.md b/docs/examples/1.6.x/console-web/examples/users/list-logs.md index 246cf260ce7..85e6cf50719 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-logs.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-memberships.md b/docs/examples/1.6.x/console-web/examples/users/list-memberships.md index 98189427548..cbddc194c59 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md index 13d5571554d..fe1dd23594a 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-sessions.md b/docs/examples/1.6.x/console-web/examples/users/list-sessions.md index b99d79b7453..e3d5d6e51de 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-targets.md b/docs/examples/1.6.x/console-web/examples/users/list-targets.md index 3374bf91c7e..58f4079aee0 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-targets.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-targets.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list.md b/docs/examples/1.6.x/console-web/examples/users/list.md index 0876ef39508..d2189b9c939 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list.md +++ b/docs/examples/1.6.x/console-web/examples/users/list.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md index 869424d51a7..3fedd4b86f5 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-email.md b/docs/examples/1.6.x/console-web/examples/users/update-email.md index 2e47e0106d2..99223767784 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-email.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-labels.md b/docs/examples/1.6.x/console-web/examples/users/update-labels.md index 5c8cddafafb..4fc268fc3c4 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-labels.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-labels.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md index 2705a2acd99..041cd9098be 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-mfa.md b/docs/examples/1.6.x/console-web/examples/users/update-mfa.md index 50a8a1d3661..af710ecd488 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-name.md b/docs/examples/1.6.x/console-web/examples/users/update-name.md index e615c4695e1..b57cb33730d 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-name.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-password.md b/docs/examples/1.6.x/console-web/examples/users/update-password.md index 3e8c33cb5bc..e9c7f9b51d5 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-password.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md index 87cc8ee1685..a29e38591cb 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-phone.md b/docs/examples/1.6.x/console-web/examples/users/update-phone.md index 65448535330..a87780161b0 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-phone.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-prefs.md b/docs/examples/1.6.x/console-web/examples/users/update-prefs.md index d65a5e736ea..7d9993bbb19 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-status.md b/docs/examples/1.6.x/console-web/examples/users/update-status.md index 4e61a50cf59..5e823e7a48a 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-status.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-target.md b/docs/examples/1.6.x/console-web/examples/users/update-target.md index 2872b9a57f3..ed33fe9bb00 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md index 4f269bf1a77..e9fa0fa4504 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md index d48e174eac6..1d08ac5b09f 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md index 0f49408ecb1..3f760c09b66 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md index ec4b6d6729f..4230f2bd9a8 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md b/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md index 8a2fc294cce..8a04ba1ae45 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md index 2161d0c22bd..516265a0c84 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md index 8213b832591..1ba1e646157 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md index e69f9eeb756..533bd8d0fb6 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md index 4d3ab499125..ba6b86a053c 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md index 8ad52a64dc0..31425cb8832 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md index 2363017b6e2..7b1cc083048 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md index bd423de9441..2305367d942 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md b/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md index b57a5f06417..e9696f92bf6 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md index 205e244917f..4288c71ce15 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md index 3c071b825ed..791b9cbd4f7 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md index 38ffb3630c9..87797fa645a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md index 5578e32fcb6..62f3eaf2c26 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md index d89ccd1d287..5ebe0e9e921 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md index a23fa7231b3..4a26a9fd7fa 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md index e59ad503e11..7011b3cf48c 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md index a47ad80f92a..8616834b27d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md index 0479b71c2d7..f56d4227a9f 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-session.md b/docs/examples/1.6.x/server-dart/examples/account/create-session.md index 209f5502d5c..1e56fc71bb9 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-verification.md b/docs/examples/1.6.x/server-dart/examples/account/create-verification.md index 414a193aa32..150833cd6b2 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create.md b/docs/examples/1.6.x/server-dart/examples/account/create.md index 59523e6201d..f0384f46f4f 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md index a0db3ccc705..124e6adad44 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md index 27a5883ca84..efd5263e22d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-session.md b/docs/examples/1.6.x/server-dart/examples/account/delete-session.md index ffbe4160766..d02808bbe9f 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md index ae93cf9b590..9406ca39d0d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md index 2b2018315e2..b073d402386 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md index 355075c85c3..94e10db1b6a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get-session.md b/docs/examples/1.6.x/server-dart/examples/account/get-session.md index c4b4acedb6d..3a81954bd92 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get.md b/docs/examples/1.6.x/server-dart/examples/account/get.md index 64c923ce0da..76a139a46af 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-identities.md b/docs/examples/1.6.x/server-dart/examples/account/list-identities.md index 289963709bf..a0b67851c2e 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-identities.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-logs.md b/docs/examples/1.6.x/server-dart/examples/account/list-logs.md index 78f527ca990..d3c50af1d5a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md index 1140e5c0e05..32b269fbd7e 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md index 0a512d439dd..73cf462af68 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-email.md b/docs/examples/1.6.x/server-dart/examples/account/update-email.md index 91c701f8aff..cf6a56edcc8 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md index f029979ea99..947d862e463 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md index e9f24349c16..475e464ff0a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md index 3f5d6997e7d..5a0f98f578e 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md index fd64c61cf93..749c4cd6a01 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md @@ -1,13 +1,13 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md index 0ee6e92d61e..7e274f0ead7 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-name.md b/docs/examples/1.6.x/server-dart/examples/account/update-name.md index 4eb46121bc0..82cc3358a10 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-name.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-password.md b/docs/examples/1.6.x/server-dart/examples/account/update-password.md index d379268e396..27d360ba519 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-password.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md index 0648c637127..046dd0a7016 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md index bb7443dda2d..f4b0c6fe6a1 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-phone.md b/docs/examples/1.6.x/server-dart/examples/account/update-phone.md index 996e057b629..d861561b60a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-phone.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md index 1c555085b8f..f4533cbea63 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md index 5c4c0735519..162ad58ac90 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-session.md b/docs/examples/1.6.x/server-dart/examples/account/update-session.md index cb1930c1343..a317a0840a1 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-status.md b/docs/examples/1.6.x/server-dart/examples/account/update-status.md index 502522ce9ae..2ee15d603cc 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-status.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-verification.md b/docs/examples/1.6.x/server-dart/examples/account/update-verification.md index 1f0d0c1abb9..61904fd3f0d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md index ba298590a46..902c719af52 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md index e8495823a2b..b242d271230 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md index d6d8c654b91..d4cd8eae837 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md index cda8d0fdb67..5eaed135ae2 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md index da2541f37ef..b6db1858c53 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md index f1261d1c054..7dc0989b4da 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md index 1a9e906ca40..f64fe8a4ffb 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md index 65537bab512..13ca992889d 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md index 8b01aaad435..61401761ecc 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md index 6a53b0457f7..25910114237 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-document.md b/docs/examples/1.6.x/server-dart/examples/databases/create-document.md index 10382e3a786..1d58fc586c6 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/create-documents.md new file mode 100644 index 00000000000..9faa4ebf6f8 --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Databases databases = Databases(client); + +DocumentList result = await databases.createDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [], +); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md index fe77148e999..216d020260a 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md index f0bdb6a67f0..d45ca4476cd 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md index 29568ca011b..75d47f44adc 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-index.md b/docs/examples/1.6.x/server-dart/examples/databases/create-index.md index b7c0c04ba9c..ff847a94935 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-index.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md index 35b60850663..6511696f922 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md index a7c3116b77a..10ddb47bdf3 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md index 37ba8eb775b..dcdf34fcb84 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md index 974c7dadfa7..8785ea76474 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md index 034ee47dd91..9088f8dfeb6 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create.md b/docs/examples/1.6.x/server-dart/examples/databases/create.md index 199b982f311..a2e978bd30f 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md index f0bcf3b0548..f9cbbd42ef9 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md index b97f27407a5..919e17891b6 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md index 89347017518..dd04d899594 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-documents.md new file mode 100644 index 00000000000..66bd5584c7d --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.deleteDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md index 9f0e92f69e0..f16c84b9a7c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete.md b/docs/examples/1.6.x/server-dart/examples/databases/delete.md index 0d4853d652d..5e9042e542d 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md index 33e4a4a6958..8329f8db052 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md index 42dcea3423b..b6784201288 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-document.md b/docs/examples/1.6.x/server-dart/examples/databases/get-document.md index ecda80ef376..45745186e62 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-index.md b/docs/examples/1.6.x/server-dart/examples/databases/get-index.md index 0bbf4f555bf..848257960af 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-index.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get.md b/docs/examples/1.6.x/server-dart/examples/databases/get.md index b2c0a0a2c7c..28d3d2bd14a 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md index 4bacaa976a4..64aaf331b84 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md index e9bc510793b..69c2a0fe61c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md index 244d4a7d186..cdecc59e33d 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md index e9534e78204..38b95d5d5bb 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list.md b/docs/examples/1.6.x/server-dart/examples/databases/list.md index 2678ede98fa..2de4e97cf28 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md index 197116bd514..46e3ef4ce31 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,4 +13,5 @@ AttributeBoolean result = await databases.updateBooleanAttribute( key: '', xrequired: false, xdefault: false, + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md index a8d1593c78c..c3c565b231e 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md index ab787e536d4..ddc8f26a707 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,4 +13,5 @@ AttributeDatetime result = await databases.updateDatetimeAttribute( key: '', xrequired: false, xdefault: '', + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-document.md b/docs/examples/1.6.x/server-dart/examples/databases/update-document.md index c25b23f2b00..47a1867c109 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/update-documents.md new file mode 100644 index 00000000000..70b7cbf86d1 --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.updateDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + data: {}, // (optional) + queries: [], // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md index baa41b3080a..ee0e09719ee 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,4 +13,5 @@ AttributeEmail result = await databases.updateEmailAttribute( key: '', xrequired: false, xdefault: 'email@example.com', + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md index 847f8b38203..61ef4d0835c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -14,4 +14,5 @@ AttributeEnum result = await databases.updateEnumAttribute( elements: [], xrequired: false, xdefault: '<DEFAULT>', + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md index e8656bfb0eb..36f360eebc5 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,7 +12,8 @@ AttributeFloat result = await databases.updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md index 3175ebfb92a..9089cc8bf65 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,7 +12,8 @@ AttributeInteger result = await databases.updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md index 0270349e1f6..e698a59e3a4 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,4 +13,5 @@ AttributeIp result = await databases.updateIpAttribute( key: '', xrequired: false, xdefault: '', + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md index 37106ee53c1..28aac9643f8 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,4 +12,5 @@ AttributeRelationship result = await databases.updateRelationshipAttribute( collectionId: '<COLLECTION_ID>', key: '', onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md index 6e08af2f820..7674f51c5b9 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,4 +13,6 @@ AttributeString result = await databases.updateStringAttribute( key: '', xrequired: false, xdefault: '<DEFAULT>', + size: 1, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md index c14537fb0ed..3aaa01b441c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,4 +13,5 @@ AttributeUrl result = await databases.updateUrlAttribute( key: '', xrequired: false, xdefault: 'https://example.com', + newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update.md b/docs/examples/1.6.x/server-dart/examples/databases/update.md index 0139f280d1b..a46f116389a 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..46611b3b1ec --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.upsertDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [], // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-build.md b/docs/examples/1.6.x/server-dart/examples/functions/create-build.md index 2835f8239f5..eb7ae5d0de2 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-build.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md index d098366ed5e..f459b3dd89b 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md @@ -1,7 +1,8 @@ +import 'dart:io'; import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md index 2bf146e285a..2ae64bce551 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md index 5333f88dfea..b46e5752103 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create.md b/docs/examples/1.6.x/server-dart/examples/functions/create.md index b4283a9953f..93c78a141e7 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md index e793812468b..8e4167f7565 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md index a69267f6c4a..d077bc93287 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md index 1a52f9168ab..d4b28328309 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete.md b/docs/examples/1.6.x/server-dart/examples/functions/delete.md index 9ee35f1a5fc..38d360b7641 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/download-deployment.md deleted file mode 100644 index 981de767561..00000000000 --- a/docs/examples/1.6.x/server-dart/examples/functions/download-deployment.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Functions functions = Functions(client); - -UInt8List result = await functions.downloadDeployment( - functionId: '<FUNCTION_ID>', - deploymentId: '<DEPLOYMENT_ID>', -); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md index ec2dab184c8..c1add89be18 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md @@ -1,9 +1,9 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md index e2438024544..805ca0b6347 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md index 3ba1795f7a7..e0026e0c4b9 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-template.md b/docs/examples/1.6.x/server-dart/examples/functions/get-template.md deleted file mode 100644 index 881dac67827..00000000000 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-template.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunction result = await functions.getTemplate( - templateId: '<TEMPLATE_ID>', -); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md index e9ba95912cb..fe61cee587c 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get.md b/docs/examples/1.6.x/server-dart/examples/functions/get.md index e81ac8d1cc7..c92a4f746c6 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md index c2db9a76990..d07d2b32f31 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md index 573634e7b1d..54f66730042 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md index d2316a9613f..a99f872b7e3 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md index 4a77316978c..bec5d5e6350 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-templates.md b/docs/examples/1.6.x/server-dart/examples/functions/list-templates.md deleted file mode 100644 index 7bef5106ed2..00000000000 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunctionList result = await functions.listTemplates( - runtimes: [], // (optional) - useCases: [], // (optional) - limit: 1, // (optional) - offset: 0, // (optional) -); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md index 6c882090b4d..0fa3b002bfe 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list.md b/docs/examples/1.6.x/server-dart/examples/functions/list.md index 96516e7068a..8eaeec0625a 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md index ecd4d37bac6..5b547595fd0 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md index 61e4d22e953..59db36b64e5 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md index 570d4df3a05..df460fae106 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update.md b/docs/examples/1.6.x/server-dart/examples/functions/update.md index 42aff7b8233..ebe3be8cc63 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md index 1eed406b60b..a88749851cf 100644 --- a/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/graphql/query.md b/docs/examples/1.6.x/server-dart/examples/graphql/query.md index 3e2700cd590..2dca8f2929c 100644 --- a/docs/examples/1.6.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-dart/examples/graphql/query.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md index d492d0e33a7..395d1f84d18 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-cache.md b/docs/examples/1.6.x/server-dart/examples/health/get-cache.md index 9a3ccbd06cc..6312e3cbe6a 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-cache.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md b/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md index 2c1c60b7cb4..eac30a6aef1 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md index 201f787f3f4..25ad9607f58 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md index 324a6420132..6f80718f6b2 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md index dab221fb4fb..d544fbfc40a 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md index 42b3913f1c3..b48623ec181 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md index bdd2913b518..d72ac97b145 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md index 66f5822737a..b9d8e8bc663 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md index 1b3666d6d1d..3074cbb8abd 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md index 836891002c6..727fd239cc5 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md index 074d1a823eb..32d3e3bb7b2 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md index 5960e94456c..93ec9938453 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md index 9b287116bc7..4ffd769d3c0 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md index 80ad6d25773..fab19875e52 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..89a3d031799 --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueStatsResources( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md index 8c01b68c1f3..a5be1c9264c 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md index a8990b1dcb5..473dcd15eed 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md index 10e5787ea79..523c1007f5e 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue.md index c68e15ef76e..3ba7d40c0e6 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md index 34b8f7e3c15..c33cf555f35 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-storage.md b/docs/examples/1.6.x/server-dart/examples/health/get-storage.md index d3745bca3c7..cb6c572154e 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-storage.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-time.md b/docs/examples/1.6.x/server-dart/examples/health/get-time.md index 539e0984654..f4439957d93 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-time.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get.md b/docs/examples/1.6.x/server-dart/examples/health/get.md index 6286018d892..31344908487 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/locale/get.md b/docs/examples/1.6.x/server-dart/examples/locale/get.md index b5b6878b4c5..dec6f068c63 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md index 0b37c79f51d..9f9eac9f29d 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md index 9c8fb6d206d..276738eac7a 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md index e114831ebac..59596c624cf 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md index 6f73ed3704b..2a2d32eacac 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md index 404b9a12a74..6b8343c6b3e 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md index 8e74090bdfa..48247d98fe7 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md index 3a2d54b609d..2376f189177 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md index fc7c30efda3..82c1eb5da64 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md index de06809fb07..78c695c7ed4 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md index 480a6ed578f..25c2cb8cfa1 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md index 6617ff8c1d5..10d803d6244 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md index 785c55ce4a2..b283b753257 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md index c3c7d2ffc5d..58d82c7a0a9 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -9,8 +9,8 @@ Messaging messaging = Messaging(client); Message result = await messaging.createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // (optional) + body: '<BODY>', // (optional) topics: [], // (optional) users: [], // (optional) targets: [], // (optional) @@ -21,7 +21,10 @@ Message result = await messaging.createPush( sound: '<SOUND>', // (optional) color: '<COLOR>', // (optional) tag: '<TAG>', // (optional) - badge: '<BADGE>', // (optional) + badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md index 2f6d51d2fb0..e759a26094a 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md index 8d31dc630d6..04a715870f0 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md index 352369a8bb2..6201987fbb8 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md index 5fdd4c84044..5fd4859fb9d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md index 4fef6312787..5417b951dd3 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md index b7b456de722..4cf6463b6ed 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md index 0e83103213d..67e47412a10 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md index 1d9e4f44b08..8c3370baa7d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md index 2bbad6591a7..d625f382307 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md index 189cdb310a6..361bacc2c3d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md index 7cfbdae02c6..e4a044c2804 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md index a64056fc0f9..59c5592c93c 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete.md index 0cbc89ab229..14b680ae99f 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md index b95babd1f59..ccc98961e78 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md index 1ba21b81fbf..a82ef15775d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md index 9a6711ba8db..03f78b7fa4e 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md index 2418390f2ff..204f8757935 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md index 09c669dd845..1d2b1805b47 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md index e58ab7f7878..2c0a142ee8a 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md index fb8b6296759..9f40a5fa49b 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md index 5ff2ac533f8..df7a8a022c5 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md index 8ccbe9c8c88..3a9593ca893 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md index 81db0613d91..19d907cd9ac 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md index af02c235df9..5a327773c2c 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md index afb80a24ba2..0ab02eaa740 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md index 1516056ce1f..c5fdb4901f1 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md index 72eb8744586..edc0a1f769d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md index a53209abfd8..b725cee5f0b 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md index 4b2bf6bd19c..1e2d8a8ca27 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md index 6acc4950d67..c042a6faaab 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md index 10a8aa1655a..24290e958f4 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md index dcec9b243f1..f7cc117b649 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -24,4 +24,7 @@ Message result = await messaging.updatePush( badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md index ce00ee26e32..53b8c33df41 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md index 795d03e9eb7..f4356deed33 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md index c85e62ee93c..16530c01c88 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md index d313321ad0f..4bf76fbcfe9 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md index dc966eccecf..86bb985778d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md index 8c149c57f1d..5311fd5e9b9 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md index a246dd62b9c..8ace97521bb 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md index d848a648feb..e0d95d1cb40 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md index e9b817f3671..c09a4f2c5d0 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/create-file.md b/docs/examples/1.6.x/server-dart/examples/storage/create-file.md index 0e06f4220c6..e631416ecb6 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/create-file.md @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md index 51fa7aafca2..1eb1b51ca2e 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md index 25f74b68bb6..26dd602c7e1 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md index 20dfac75b6a..3464d2233bf 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md index ddbc538b8bb..09f06c04fce 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md index 0f9cada9b30..7fd69c56924 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md index d9854177e8d..df5d3a20ff5 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file.md index c79b608c431..f765c62356a 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md index 7d9afb7ea14..c20dac19688 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/list-files.md b/docs/examples/1.6.x/server-dart/examples/storage/list-files.md index 02e52ba44a5..28f85b091a0 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/list-files.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md index 23bfdb7395f..b4e45e059c8 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/update-file.md b/docs/examples/1.6.x/server-dart/examples/storage/update-file.md index d03e60406e0..966883a1f9a 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/update-file.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md index 96b037a1c0d..f13a6e69bb5 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/create.md b/docs/examples/1.6.x/server-dart/examples/teams/create.md index f6575bc4408..772f3cfa864 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md index 6f495ef4344..9d99cbbd3db 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/delete.md b/docs/examples/1.6.x/server-dart/examples/teams/delete.md index 021368cb054..1c08ab8ed9f 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md index 1d5c3b35505..0bdc63f8d4f 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md index 1e89d0e2770..e2063933207 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/get.md b/docs/examples/1.6.x/server-dart/examples/teams/get.md index 31d238ab963..bb3bcaf7e21 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md index 1cb91dd477f..3c01dec4c54 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/list.md b/docs/examples/1.6.x/server-dart/examples/teams/list.md index e4c764c517e..093a139f715 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md index 71c343663a9..c947162fa41 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md index 256c0823fe0..87a4325857d 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-name.md b/docs/examples/1.6.x/server-dart/examples/teams/update-name.md index a1727ced110..fe3a9faabfa 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-name.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md index 1b3208b79fc..57518ada43f 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md index 68dd98841ec..38b0255ea4c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md index cb000391c67..aa898ba22f8 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md index 2a9c67bead5..6e8b7a2bac4 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md index 4ade88bc7d9..e08edd617f2 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md index 598cef49014..c2b9562e4ed 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md index 1c95cbe2634..9f23baaef2f 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md index 17122072e4a..628cf3297e8 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md index 063fc97d844..34bfbf66c41 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md index 03717bd7f09..20cf911a09c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-session.md b/docs/examples/1.6.x/server-dart/examples/users/create-session.md index 013707bcc52..4293e7edf6f 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-target.md b/docs/examples/1.6.x/server-dart/examples/users/create-target.md index 88c0c19e420..354a8dbb48d 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-token.md b/docs/examples/1.6.x/server-dart/examples/users/create-token.md index 16040215a3e..ab7acba3dd4 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create.md b/docs/examples/1.6.x/server-dart/examples/users/create.md index a0f0c3fe3de..b4953748e52 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md index 07ba49764e8..7ac2da90005 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md index d48ab6d4f0a..eed7dbd41b1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-session.md b/docs/examples/1.6.x/server-dart/examples/users/delete-session.md index a2c985a7e77..68d243e52f8 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md index e86e0e29aa4..07c3566a7ca 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-target.md b/docs/examples/1.6.x/server-dart/examples/users/delete-target.md index bae674cdcd7..aa27b32d383 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete.md b/docs/examples/1.6.x/server-dart/examples/users/delete.md index dbee4e8cc9b..93819b72d76 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md index 1e8baf2b9fd..cf66c676100 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md index 9fa4c8bd532..146cff68203 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get-target.md b/docs/examples/1.6.x/server-dart/examples/users/get-target.md index 2a62d94e9b1..9ddaafb55fd 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get.md b/docs/examples/1.6.x/server-dart/examples/users/get.md index 04dfcb6a9b1..a171b79582e 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-identities.md b/docs/examples/1.6.x/server-dart/examples/users/list-identities.md index aa20d3f6012..2c14775e9ac 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-identities.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-logs.md b/docs/examples/1.6.x/server-dart/examples/users/list-logs.md index 18b34a10dee..5885dcb8745 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md index 495ab938199..22c64b15ebf 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md index cca4df00d22..7134ee5dab6 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md index 4e1a47bc472..22a37c05a00 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-targets.md b/docs/examples/1.6.x/server-dart/examples/users/list-targets.md index 459d0cd4387..971fbea0e1c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-targets.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list.md b/docs/examples/1.6.x/server-dart/examples/users/list.md index b909d76ef0c..6d34bb470b1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md index e350eb68f31..9930e30be50 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-email.md b/docs/examples/1.6.x/server-dart/examples/users/update-email.md index af995fc520f..129a8e2437c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-labels.md b/docs/examples/1.6.x/server-dart/examples/users/update-labels.md index 5cd609d2d61..d247bf5e748 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-labels.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md index 3fdfc7c55b5..3b7d81f57c1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md b/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md index e1efba91b4d..f26b1055345 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-name.md b/docs/examples/1.6.x/server-dart/examples/users/update-name.md index 2a742bcc510..905cee0e498 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-name.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-password.md b/docs/examples/1.6.x/server-dart/examples/users/update-password.md index 8650291bd13..14e27482ec1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-password.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md index cb8efa4a702..b57aafab1f0 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-phone.md b/docs/examples/1.6.x/server-dart/examples/users/update-phone.md index 5334986f38e..aa891d2351c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-phone.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md index 2a1f0572a8a..87fc2968f58 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-status.md b/docs/examples/1.6.x/server-dart/examples/users/update-status.md index 2948e6e6c32..4d8dca03ada 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-status.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-target.md b/docs/examples/1.6.x/server-dart/examples/users/update-target.md index c3e907175b2..f66f0b7475a 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md index f71baa9d5d9..62ad345304e 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md index ad62b8883e8..d08a92d2c38 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md b/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md index 2e33d2bc335..384a3fbbea3 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md index 15197d099a2..a0a7f722ccf 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md index 57697d4039f..29e552a8194 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md index be345dc1598..52c193a848f 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md index 877c20392c2..296e36dec47 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md index 18ce21a076b..cfd9aa2ba8c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md index 037da38d685..24e43a9d9c9 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md index 800f0210a11..77e4adcb9c1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md index 5a9c87b7f62..8f01304f5bf 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md index e32600111bf..a3d92d866e1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-session.md b/docs/examples/1.6.x/server-deno/examples/account/create-session.md index a34d3e37d97..888493a21ac 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-verification.md b/docs/examples/1.6.x/server-deno/examples/account/create-verification.md index fd11e13b33a..438feee807d 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create.md b/docs/examples/1.6.x/server-deno/examples/account/create.md index 9f1b16b7b9e..c410a0f7c7e 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md index 30b14688918..359c7a3cfa6 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md index 7247155e2bf..f4b164b43d8 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-session.md b/docs/examples/1.6.x/server-deno/examples/account/delete-session.md index 5fd77c155ab..a0b7d196870 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md index 6d676cf8f80..864c50535bd 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md index 5861c1b561b..73fc143978e 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md index 685aa63ca60..4479df71f7b 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get-session.md b/docs/examples/1.6.x/server-deno/examples/account/get-session.md index 91242d45652..c380b72ed5f 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get.md b/docs/examples/1.6.x/server-deno/examples/account/get.md index 59f91ca8468..5abdc95ec7c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-identities.md b/docs/examples/1.6.x/server-deno/examples/account/list-identities.md index 501042160da..1c612f97375 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-logs.md b/docs/examples/1.6.x/server-deno/examples/account/list-logs.md index 230c3f46a62..28ab351f5a2 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md index bf9d6b40e43..35fb7497dee 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md index 927ccfc67c1..e34da16995d 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-email.md b/docs/examples/1.6.x/server-deno/examples/account/update-email.md index 9136450824c..0753cff9fd1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md index db315e54685..24611aa43a6 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md index 99243ec118b..a83c1d91a46 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md index 5c437194feb..6b95818e06c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md index 4e0638ea42d..61a7b44fd0c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md index 3d604f6efde..2030e1c5510 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-name.md b/docs/examples/1.6.x/server-deno/examples/account/update-name.md index 7e0e0122d0b..a02591b3b53 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-password.md b/docs/examples/1.6.x/server-deno/examples/account/update-password.md index 6d546291d87..088bea88acf 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md index 1d9104829eb..4710a451a8a 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md index 9737de02ac2..3b150c8c4a1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-phone.md b/docs/examples/1.6.x/server-deno/examples/account/update-phone.md index 8b1bc7c7f06..9c1923c2174 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md index 58582c6bcab..4b37a64fe79 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md index 1b64a3beaf4..5d0d80f9568 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-session.md b/docs/examples/1.6.x/server-deno/examples/account/update-session.md index 93dd40fcc50..cb36b9491e0 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-status.md b/docs/examples/1.6.x/server-deno/examples/account/update-status.md index 60a3d51f0dc..0c70c88b515 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-verification.md b/docs/examples/1.6.x/server-deno/examples/account/update-verification.md index 208988894f4..96370858cda 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md index c8e72644345..f0a355a460f 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md index 8e1b3dba624..040b06c59e9 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md index 5f50687f915..cca313a9a2b 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md index daa488e443a..937724f118f 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md index fc72b74cf7d..2960daba8d1 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md index d6d8dc8c7ce..10eb2d80b8f 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md index bfa7833b508..d9ccc0dbca5 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md index 232efa137f4..b216c2ead3a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md index 8ae3e6acdbc..c7e8026758e 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md index 10017f2162d..664da19de27 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-document.md b/docs/examples/1.6.x/server-deno/examples/databases/create-document.md index f0f54b79ec5..be8a1bdac95 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/create-documents.md new file mode 100644 index 00000000000..17c00e67859 --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new Databases(client); + +const response = await databases.createDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents +); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md index 979c5137242..6c667ed38af 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md index 163a9e49bd8..6fdd2773c87 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md index 3b0e4193985..c5991d49f63 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-index.md b/docs/examples/1.6.x/server-deno/examples/databases/create-index.md index 8b7d9c676f9..69e694bbbaa 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-index.md @@ -1,7 +1,7 @@ import { Client, Databases, IndexType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md index 1a2e394d512..4a306cd50df 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md index e0acc270163..c043b252071 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md index 83b3e5833b9..d96ee59a4d0 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md index d35b8a791f0..5f8e9555411 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md index 9127e3acd06..4639f75f5ba 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create.md b/docs/examples/1.6.x/server-deno/examples/databases/create.md index a4252aa7c86..86795eb7506 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md index 142ae5af138..f7ad6b105a7 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md index 3d72fa038aa..828d48a7bcc 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md index ade8151b807..47d5df49f15 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-documents.md new file mode 100644 index 00000000000..4768ed426bd --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.deleteDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md index 5bca23adf5e..eee1613a870 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete.md b/docs/examples/1.6.x/server-deno/examples/databases/delete.md index c729b9791ce..39b3f5395e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md index a8300ea2a08..f2b801b5f1c 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md index b5213943e6e..b94f4fd5ffb 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-document.md b/docs/examples/1.6.x/server-deno/examples/databases/get-document.md index 1e5669ac964..5cb02c4de3c 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-index.md b/docs/examples/1.6.x/server-deno/examples/databases/get-index.md index bfd74021fa1..6c3a3dec1ad 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get.md b/docs/examples/1.6.x/server-deno/examples/databases/get.md index 386fbfedc6f..403e467e048 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md index bedab6c9f62..2171ffe4ada 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md index 9b4f76c57af..408ea2d601e 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md index 0aa7b3f0b39..528e9795174 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md index 58222cbb553..88af3b7f28b 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list.md b/docs/examples/1.6.x/server-deno/examples/databases/list.md index 8c8374e7ee2..dcae151617b 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md index 3019e7149e6..fe1b80073a3 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const response = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md index 88a34932678..47f1c027837 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md index 2517bb06ef9..ad18d938658 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const response = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-document.md b/docs/examples/1.6.x/server-deno/examples/databases/update-document.md index fe9947e7454..31cce5ed1c5 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/update-documents.md new file mode 100644 index 00000000000..1eef7794fb6 --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md index 98dba02f7a5..116fadc6c76 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const response = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md index 4b2b5f1e883..663e44b530a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,5 +13,6 @@ const response = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md index 45acc539175..d9eab5aac55 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,7 +12,8 @@ const response = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md index 481b6bb094d..369b49d574b 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,7 +12,8 @@ const response = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md index 8fe55ae7fb0..049a5279937 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const response = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md index 0fe97b9099c..7fae26b535a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -11,5 +11,6 @@ const response = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - RelationMutate.Cascade // onDelete (optional) + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md index 6424c7d3d9e..ec91d3367e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,7 @@ const response = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md index 3c3a128f8d1..32f44b7eaf6 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const response = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update.md b/docs/examples/1.6.x/server-deno/examples/databases/update.md index 2e19221d1a9..b87ad82ec0a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..c0ee477875a --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.upsertDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-build.md b/docs/examples/1.6.x/server-deno/examples/functions/create-build.md index c68fb256e06..16384c19780 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md index 5b976e65396..a134a382fa5 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md index c794d72231d..bec6a17db24 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md index 472a7982071..383512c8a69 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create.md b/docs/examples/1.6.x/server-deno/examples/functions/create.md index 2bb31f7d0c1..b05189943e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md index b640055473a..179bbaf3034 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md index 1785a0ed9ee..4ab7c377852 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md index c4786ffe21d..39a9428ed37 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete.md b/docs/examples/1.6.x/server-deno/examples/functions/delete.md index 7155610689f..94d58c33dd8 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/download-deployment.md deleted file mode 100644 index bb0a4e71b45..00000000000 --- a/docs/examples/1.6.x/server-deno/examples/functions/download-deployment.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const functions = new Functions(client); - -const result = functions.downloadDeployment( - '<FUNCTION_ID>', // functionId - '<DEPLOYMENT_ID>' // deploymentId -); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md index a3e89803ae0..05fdfa608fa 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md @@ -1,9 +1,9 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md index 50e4cc50c06..339b99d4f19 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md index af68d743605..adeff0256aa 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-template.md b/docs/examples/1.6.x/server-deno/examples/functions/get-template.md deleted file mode 100644 index 7a58c95a348..00000000000 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-template.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const response = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId -); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md index 2352321bff4..cbbdd2f8475 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get.md b/docs/examples/1.6.x/server-deno/examples/functions/get.md index f90767de19d..8fec17ed15a 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md index 2f4c345de22..849fe232b89 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md index b8ce31703e6..4efe6c74759 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md index f78dfd03e73..a45afe4aa7b 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md index 5dff4354ee4..3bf0d08e7ca 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-templates.md b/docs/examples/1.6.x/server-deno/examples/functions/list-templates.md deleted file mode 100644 index 06203e404b0..00000000000 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const response = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md index 991292aac1c..173d5aa9ef3 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list.md b/docs/examples/1.6.x/server-deno/examples/functions/list.md index 6d1e09ba525..ecc43d1a7c0 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md index 65ea3a97e6e..16614de37ad 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md index 87af2f34bfd..c29551ea33b 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md index 5213a92ee82..bda189bdd47 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update.md b/docs/examples/1.6.x/server-deno/examples/functions/update.md index ab275257dbe..399af058417 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md index 68c06aa4e41..200120f1e85 100644 --- a/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/graphql/query.md b/docs/examples/1.6.x/server-deno/examples/graphql/query.md index 480c481f9cc..bb0116278cf 100644 --- a/docs/examples/1.6.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-deno/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md index ccf2968dd84..d8dcc1fe3a5 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-cache.md b/docs/examples/1.6.x/server-deno/examples/health/get-cache.md index 2811f017a7c..e138b50b264 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-cache.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md b/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md index 5bde913750c..828e53dd7bb 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md index 598c163b447..bded9eb81be 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md index dd44711e5e1..5e40f762e44 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ import { Client, Health, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md index 9ecda7d32ac..ecc05a3e21b 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md index 3b05fe66c3f..f6b9388bb36 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md index 73139a0806c..e783fa52b3a 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md index 9130cb8c349..e33c7a29293 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md index 967e27d4a75..ea7da5b587e 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md index a621d140a1c..e075a65602f 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md index 7443b04fc49..eb7ffb028a0 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md index f794deb8add..d9f61bc088d 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md index f04652e5978..8bc76398d9f 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md index 5b3ba573511..e6f7bf543c3 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ecc7ebd322e --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md index 5103b031af0..5efbc616246 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md index 54dc92f7fd2..46aa4db5be2 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md index b1c8b54665a..75a1c1f8336 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue.md index 078993c5b81..fe4962d3512 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md index afffff6e1d2..0e64e1a6dd2 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-storage.md b/docs/examples/1.6.x/server-deno/examples/health/get-storage.md index c7fe4358c9b..698e33b9998 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-storage.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-time.md b/docs/examples/1.6.x/server-deno/examples/health/get-time.md index 658ce30624f..1bb1ae0e560 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-time.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get.md b/docs/examples/1.6.x/server-deno/examples/health/get.md index 4483f9595ed..87d7ea53969 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/locale/get.md b/docs/examples/1.6.x/server-deno/examples/locale/get.md index 5d52acb3863..960ee6f4f3f 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md index bed3b4cd814..8f91c212dfd 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md index 61b53851cd2..55b208c7418 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md index 231c2f7f8b0..b4fbfa0e370 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md index 34be4cb8da5..19ac0a06cfe 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md index dfa085b0a19..67ba0fedd7e 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md index 0c809286899..986f09d237a 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md index 8625649350b..91b4a857b92 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md index 8b890925649..e2c33feff8a 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md index 552e9e3ed42..8db2879f9c2 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md index bd9f0756c8f..3f443d6bf5f 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md index 3192bb2567b..32f7c94f211 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md index bd6b0304ad3..57e94188b96 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md index 005cca1b77c..7523c2978f8 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md @@ -1,7 +1,7 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -9,8 +9,8 @@ const messaging = new Messaging(client); const response = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const response = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md index c6d4e2a8ee4..15fe7b8c7b0 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md index c316ea5ac14..264203a8be5 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md index c1fb9ece507..2d6d33c62a9 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md index 26d7a97175e..8be79f3f9ee 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md index 391483a8af0..2bb95c4e2d7 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md index 934372f82f5..46574936646 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md index 75d1103e5ed..c2ca3a4ed21 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md index ee17992c719..aa7bbf6a186 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md index 3e8dd36ec7a..5fe734fb0c9 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md index 8ade1615f3d..7bc99ef3b52 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md index 1df31754608..147456887da 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md index fb50be8d5e7..aa1359cf281 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete.md index edd34565976..0442da1e8b0 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md index 42d46131aa4..9565a611aed 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md index fe444769344..8e5d4264186 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md index abfc167056b..e9377a532fa 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md index 0e104881162..35f1853adaf 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md index b9424fa7cc2..f39a90037a9 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md index 159d61b5853..50b1a10f4b5 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md index af33244a7d5..c4b20a83069 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md index 8aa51c4474f..7c877c25ded 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md index 036b69af0a7..0d14f857771 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md index bc820a4283b..384bb8fe4f3 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md index f2e7d470587..5ce20822362 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md index bb57ea99ea3..d2c771d480e 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md index 4933b229fe4..1d0ec43066a 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md index 1786ad44bae..71bd038edb4 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md index 534bc3f2f30..c8b05582503 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md index f9d1533d5f6..eb71dddd1a5 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md index 7de8939ff5a..f80d6a4b1d4 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md index 5cbb3d9a740..36943f2fa0a 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md index 9c66ab6ab7e..c7f068604b4 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md @@ -1,7 +1,7 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -23,5 +23,8 @@ const response = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md index 66dffb18f9d..0ec96db2f80 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md index a027f1dda9c..9c1dc4a5dc2 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md index 6eb90cebbd1..9d59bb36462 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md index cc8448f5b25..052d394f053 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md index fa12103524f..2163792f83b 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md index 1b60af0f377..5f7f77901b1 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md index e63a54cc116..5abdd65a9cd 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md index c4c68b290c8..c8fa90d9ab1 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md index 095f390e835..e7d3e9006a0 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/create-file.md b/docs/examples/1.6.x/server-deno/examples/storage/create-file.md index 9a420bb65c7..d8912c6c1e3 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md index eafb60eb772..f0d71467d46 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md index 554dbeb4cde..2a1f95ed183 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md index 1e0107edb8f..a695021b72e 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md index b3612f297db..8319e64f094 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md index d1a91c25aac..ed87c3549e1 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md index 14e28a07b7a..b18cffcd016 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file.md index 0ad049a0414..5479dc569d5 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md index 667f65f87d7..9286bd488cc 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/list-files.md b/docs/examples/1.6.x/server-deno/examples/storage/list-files.md index 7d18165f336..316875cf51b 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md index 7af2c1a6a54..1e70f16ef3d 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/update-file.md b/docs/examples/1.6.x/server-deno/examples/storage/update-file.md index 153ce08071e..683b0b73043 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md index 69465f5efa4..d8e855f8520 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/create.md b/docs/examples/1.6.x/server-deno/examples/teams/create.md index abcc0fd6aa9..495f26e006e 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md index a2a4807922a..a5b03875d5a 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/delete.md b/docs/examples/1.6.x/server-deno/examples/teams/delete.md index 05d35f0cbf8..556fbb5ea5c 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md index 9f9722ebde5..75283bffc76 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md index d741911586c..442d8b139a0 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/get.md b/docs/examples/1.6.x/server-deno/examples/teams/get.md index f5d7c12a86d..2e5803ca7b1 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md index 01988a7d17f..0b7e6638e6f 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/list.md b/docs/examples/1.6.x/server-deno/examples/teams/list.md index dd295a013a1..6c08b5c80ac 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md index 349ae6d12d1..48fc9cd8be5 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md index 0f03ecb8dd7..be8651d724a 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-name.md b/docs/examples/1.6.x/server-deno/examples/teams/update-name.md index 4e678ea881f..6e2144b897e 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md index 9d11a5dd38a..dea8a368c4f 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md index 1dec8dc5c1e..7a6e0fb1440 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md index a57d1aeaa88..ddfb7f3b129 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md index bc5205d0066..4c433aebdd7 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md index 095d19f758b..8cc63cedbde 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md index da3741a14ab..98ba71a845a 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md index d3ada293783..750b2990746 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md index 0d63f1b29c2..e243a1d6ee4 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import { Client, Users, PasswordHash } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md index 0ee061e743e..0d6a65b8b49 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md index fcf42316134..87f2dbb09e1 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-session.md b/docs/examples/1.6.x/server-deno/examples/users/create-session.md index 07c1623a614..37d6948942f 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-target.md b/docs/examples/1.6.x/server-deno/examples/users/create-target.md index 82a44f938a9..a36072a5de8 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-target.md @@ -1,7 +1,7 @@ import { Client, Users, MessagingProviderType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-token.md b/docs/examples/1.6.x/server-deno/examples/users/create-token.md index aa15668a799..91885e15f37 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-token.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create.md b/docs/examples/1.6.x/server-deno/examples/users/create.md index cd7c5b19bd4..e0eb5856d13 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md index 3a4280cf165..7aea6546451 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md index 92078bbb15e..2d7595005e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-session.md b/docs/examples/1.6.x/server-deno/examples/users/delete-session.md index 0f9c12b57c1..0ce82fe50f1 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md index 94e2f84133a..f80300b2054 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-target.md b/docs/examples/1.6.x/server-deno/examples/users/delete-target.md index ee6a280ab34..9080a962e60 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete.md b/docs/examples/1.6.x/server-deno/examples/users/delete.md index 3c43d5a72c3..7ac1bf1d3ae 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md index e63ae70917b..f78c0bf1b0c 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md index ef38e96f0e3..ef1be1e18bd 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get-target.md b/docs/examples/1.6.x/server-deno/examples/users/get-target.md index e3d8568cc4b..301ee6e7ed0 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get.md b/docs/examples/1.6.x/server-deno/examples/users/get.md index d5c2155e49f..8e41ed63509 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-identities.md b/docs/examples/1.6.x/server-deno/examples/users/list-identities.md index c12a37eb511..6ac439547b3 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-identities.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-logs.md b/docs/examples/1.6.x/server-deno/examples/users/list-logs.md index 4fc2e6091da..983ffba299d 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-logs.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md index 55ca2593cbe..7a55a2120b3 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md index 7d368b3d374..34b65afac3e 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md index c425ded1e09..314f277d7ac 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-targets.md b/docs/examples/1.6.x/server-deno/examples/users/list-targets.md index e9a26ff6b08..9ed2dda4ce9 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-targets.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list.md b/docs/examples/1.6.x/server-deno/examples/users/list.md index d4d9da33fa8..488fbdc09c5 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md index 76f6e443418..3243f21c6f0 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-email.md b/docs/examples/1.6.x/server-deno/examples/users/update-email.md index 80b727bfa27..f609cab4634 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-email.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-labels.md b/docs/examples/1.6.x/server-deno/examples/users/update-labels.md index c41955caa1a..5a232981790 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-labels.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md index 201ffba616c..a74577e9cc6 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md b/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md index 3f061ef366a..717f8d6ab75 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-name.md b/docs/examples/1.6.x/server-deno/examples/users/update-name.md index df53c0ffb9e..35fc853e3f3 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-name.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-password.md b/docs/examples/1.6.x/server-deno/examples/users/update-password.md index 451604f20b6..8366b5c4c2e 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-password.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md index 4f97a18c48f..088fd1eb574 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-phone.md b/docs/examples/1.6.x/server-deno/examples/users/update-phone.md index d0ae0d7a088..a8e47a62b82 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-phone.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md index 81a329400c2..cb8919a98fb 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-status.md b/docs/examples/1.6.x/server-deno/examples/users/update-status.md index 5b1c9892d76..1c672a4d253 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-status.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-target.md b/docs/examples/1.6.x/server-deno/examples/users/update-target.md index 8a816c8df0e..4524748c551 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md index 4ee42ff9118..fc807aa4e58 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md index 4b2331223fe..abf5a413176 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md index 954848e6378..69862feed0d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md index 200b025191a..423cbed2b3c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md index 1a435de405b..21bcef6bed1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md index 284f44e24ec..bc54970469b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md index 5a9ac58d15c..734133f2bdd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md index 647e11a5272..1922a45c0a7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md index 2936426d336..5b405449b14 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md index 131f7c2e477..0d17f5eceec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md index c422790e11f..185fc46e0d9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md index f50a065cd1b..c2e3571d56c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md index 0c0bfae941c..2da46ce62be 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md index 64f54f7c0ee..92222ea88a8 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create.md b/docs/examples/1.6.x/server-dotnet/examples/account/create.md index 5deeb885141..83c1d542515 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md index c70eed79313..9b084800d4a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md index dd36da1a349..2b27cb6ad8c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md index 3be113d517a..0bca7c172aa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md index 5d7aecc2005..5b0e7b5cba4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md index c798ad3a483..cc39db191da 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md index 0c5ee40a357..b0fce89a3fb 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md index 82bff873880..9aa7abaee02 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get.md b/docs/examples/1.6.x/server-dotnet/examples/account/get.md index c87f4dda16c..eecb890b301 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md index 6d94a157449..661fab9f4ea 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md index f4c20fa38b8..8e5eadf961d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md index f6ef37882a7..291534920f4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md index e6d634b1201..6304383cb39 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md index c7934f8d192..06e2a2a9dfc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md index 7cee1ad712d..b9405e7e2cc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md index 5ecf64f74f4..a8d8312e182 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md index ac8ce0631fa..051653d19a9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md index edf863a36ea..d2735058399 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md @@ -3,13 +3,13 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); - result = await account.UpdateMfaChallenge( +Session result = await account.UpdateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md index 1e031e9c196..7daaf932134 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md index e84fb9a96e2..6088226fc85 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md index e0524a6f732..f24c703a9a8 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md index 5004730502c..2f8b091999a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md index b6b310401bb..a100c0f2e2c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md index dab96b6f6b9..224001dd6e7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md index 82d892d8a36..0b348a9c74c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md index efcea1ee106..188462229b1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md index 9d7eddc6d6b..a98644c032d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md index 9c9fc01c407..d9c5b41d723 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md index d8cc8adedf3..b9dd1ded402 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md index 0fc9ac7316a..888f97e2882 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md index 3dc07cfc434..01ee3e533ef 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md index f7a3d9fed69..345d8567170 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md index 734d7d75176..a4890b962ec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md index 942bffb258d..4a67e585179 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md index 5b47eea4744..55427ff622c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md index b90ed074d11..4591b7d99c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md index 0f113b05825..88076485215 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md index 6b03dacd35e..75a1c5c3119 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md index fac8f1b9836..7be723379e6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md index 438928d2dc4..52254e0c259 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-documents.md new file mode 100644 index 00000000000..8bfc420c4c9 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +DocumentList result = await databases.CreateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: new List<object>() +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md index 640e8ee09aa..df00119ff95 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md index 3b0a78764f8..d85e8a72a95 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md index 620c451d789..bc03fac7aec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md index a7363f4c67e..b132cd2f022 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md index 3676c662f9a..c8e7c13355e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md index faad215f262..f95c257089a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md index eb10afce645..b0f4d1194fa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md index 9d6aa904e55..6cba31ff365 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md index 9dd1913251d..dce1ac496a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create.md index ea33e15992a..9b66c15cefc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md index 9e4658999f3..46eb44b4b8c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md index bd9ced02a51..e05717dc6c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md index 1c03debad5b..221b80e2540 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-documents.md new file mode 100644 index 00000000000..a9bc9c277b6 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.DeleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md index 21457ad19f5..02dcf5c66a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md index ddc1497c608..a877eabc021 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md index 5eaa11ee0a6..d9e02e36b6b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md index 055d5473c6a..79fe685cbc7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md index 51d05832f08..d7e9b68807b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md index 4cf44b66e20..02f7b812c88 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get.md index c9278acd478..174d74c4f08 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md index 516e3a3efa4..d2ac6c3afdc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md index 1665b449d27..5dacb62e976 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md index 7471d96a649..f59e4576bd2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md index f567ce9c8e7..e6adab1f2d2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list.md index 9972bda9347..d2b552b27c2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md index 95910196cae..aa2ed498d23 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,6 @@ AttributeBoolean result = await databases.UpdateBooleanAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md index 2860ba69746..7885ad39696 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md index 4f946340317..e6b60c87530 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,6 @@ AttributeDatetime result = await databases.UpdateDatetimeAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md index ce0aa580340..3121c15e08c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-documents.md new file mode 100644 index 00000000000..63ded21ac99 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-documents.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.UpdateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: [object], // optional + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md index ff6d9f67717..8d36a43780e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,6 @@ AttributeEmail result = await databases.UpdateEmailAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md index 456a65f1c5b..e3ca9fe124f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,5 +15,6 @@ AttributeEnum result = await databases.UpdateEnumAttribute( key: "", elements: new List<string>(), required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md index 5aecfb688cc..46328d26f54 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,7 +14,8 @@ AttributeFloat result = await databases.UpdateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md index 97639d03592..91ff1897c7b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,7 +14,8 @@ AttributeInteger result = await databases.UpdateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md index 6127769c74f..dfcb5d214ac 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,6 @@ AttributeIp result = await databases.UpdateIpAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md index c3439fb500b..5b6dd714672 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,6 @@ AttributeRelationship result = await databases.UpdateRelationshipAttribute( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: RelationMutate.Cascade // optional + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md index b59aba36c33..918fdc0e3ff 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,7 @@ AttributeString result = await databases.UpdateStringAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md index 50a6753d395..8766a3f2f74 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,5 +14,6 @@ AttributeUrl result = await databases.UpdateUrlAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update.md index 1e55d8eccad..d4dd28aa2bf 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..d9db60ce2df --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/upsert-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.UpsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: new List<object>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md index fa53854b3c6..cc8797168ce 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md index 7c3d4d887c6..26c6ff4c42e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md index abe5454c83a..c8fd5595e9f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md index 2775c5b459b..18fd6e98414 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create.md index 0ea11a8b9f4..3263271f17d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md index 387383ed2b6..33c537ad0d2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md index 18bd347b705..5d5ab8dee27 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md index 9be23cdcbed..263c3f6420e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md index 7666b624079..ed780ac15a4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/download-deployment.md deleted file mode 100644 index 83f56a8e144..00000000000 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/download-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Functions functions = new Functions(client); - -byte[] result = await functions.DownloadDeployment( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md index c8c9d58faf2..be145577c24 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md @@ -3,9 +3,9 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md index 0fb27cc6232..5fe31a2f6ec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md index 27b8f4d6207..8581b968af5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-template.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-template.md deleted file mode 100644 index f57d61a0240..00000000000 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -TemplateFunction result = await functions.GetTemplate( - templateId: "<TEMPLATE_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md index 2c897dd6489..57ba9933894 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get.md index e1fdefd7fb1..baba5d0b4a6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md index d78eb6a2490..093befcf612 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md index fe2b1d98acd..5c410e33b74 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md index 68f34291be8..c2386716701 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md index 21f3b1320e0..2d868d1343e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-templates.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-templates.md deleted file mode 100644 index f76bd5fa9cf..00000000000 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -TemplateFunctionList result = await functions.ListTemplates( - runtimes: new List<string>(), // optional - useCases: new List<string>(), // optional - limit: 1, // optional - offset: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md index 77f429ded09..4c85da8995b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list.md index a6c5511f8ad..750642d498b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md index 3d33b61714d..93dcfa1e0b4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md index 348d01eb2bd..71f0a2b8160 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md index fceb7587d75..1cf321352cd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update.md index b94f5f3ebc7..7160795f77b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md index 5fb0f9a1908..b153e34d515 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md index e1f6f859db2..61345d76656 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md index 674e0e70f20..115c0e5c7b6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md index d61e2207945..0c5ec37c2b4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md index de536fd9ddb..457b70128a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md index 8c1bf763ca0..7ae8b148549 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md index 871abf0bc05..4d434798316 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md index 7fe20cdcf85..4ffdd7e5316 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md index 65596b49cfa..5d522f03f24 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md index 06e629d12c4..c7e186e5ee7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md index 80733ec20d2..1db6fb518c2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md index 7e280a1b62b..487cee34112 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md index 8efd075b45e..949e3766a7a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md index 2a6767dd74a..58ad1ac2fe1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md index 2be751cf009..2c1008c7b13 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md index 5681495382b..4116f19b1fc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md index f3677243106..5a0c7a03377 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..4002cca1581 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueStatsResources( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md index 78c3a924b16..51233fb2ec0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md index 14ca7580015..546e9a07de6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md index 6dbbe052350..1fc8d4d63c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md index 55f49c67358..43f472d21a2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md index 80e4f7574a5..3e8539794ab 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md index 4643825b96c..42d4aba45b8 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md index 0b5d9b8a5d2..959060113b0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get.md b/docs/examples/1.6.x/server-dotnet/examples/health/get.md index 16ac413bc41..a926fe71e53 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/get.md b/docs/examples/1.6.x/server-dotnet/examples/locale/get.md index 4ef0232eaa8..48b97018014 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md index eea75da7d51..0df7696da5d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md index 4148a3068da..7cf74caec3b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md index 4c86505bc73..106e140ee43 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md index 0277e032d18..38fbe24ff31 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md index f85c5283542..5e5d9f407fe 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md index 384a5f4e12f..e51a1388139 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md index 50f9dea6a9e..62aa15d1d9a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md index b4b358dad25..9cc37a17e0e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md index 1ce8b2cd407..51c6db4ddb3 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md index 7558191115c..15fdace2d3c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md index 311ad7f948d..1bacbab8d54 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md index 596e63d635c..a0b73727095 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md index f83a0ed8df7..1d2dbec1f21 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md @@ -1,9 +1,10 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -11,8 +12,8 @@ Messaging messaging = new Messaging(client); Message result = await messaging.CreatePush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: new List<string>(), // optional users: new List<string>(), // optional targets: new List<string>(), // optional @@ -23,7 +24,10 @@ Message result = await messaging.CreatePush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md index 64de3805dd7..8464c47ae11 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md index 3ef5cb925e9..06e9e69e656 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md index fdbd4ea5c3f..16b091f98e0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md index f188a4fefa7..8b37d31e68d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md index 8476f08866c..37e1bd1df91 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md index 98fbf86c238..7dc0a6b26fa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md index 4e28defc50f..51eab0fd116 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md index 7902da1a34e..0deba742ff7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md index 4dfe73175f7..8f4855aab42 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md index 767323047e0..a1ca2a14509 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md index 54b41887736..9424535c9f7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md index 22226992c75..0b4819a219e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md index d0b2a243a28..ff041e853ab 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md index 19597387580..0dad3668f81 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md index bc413b1ca11..fac5a07da5c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md index 9a158961b1c..516aa682c86 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md index 43b7bcb55d9..3a662b3111d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md index 2d1a5fe9b78..49d35131271 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md index 5004c7d0c45..4c17128e72c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md index 47b55acc266..928c14845a2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md index 2a1b4426e8b..6cf5757fb68 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md index 5dd1cf01b8a..815f1325d4f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md index ca83034be08..b522be327c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md index 9889e1f7260..a8e8de567e4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md index b986a8babe4..093db0ff2c1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md index 37842ad45ad..cc88afab694 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md index 6750f3b7865..f06e134d025 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md index 6fbb686d83e..90d1555d8f0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md index 9208e930e4b..0006fedf54d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md index 6dd80b63498..512cb0586ba 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md index ca9c7e4e8b9..51355c5836a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md index 0de09d570a0..37da215e826 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md @@ -1,9 +1,10 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -25,5 +26,8 @@ Message result = await messaging.UpdatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md index 94f5d5af2b6..d718a7158b0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md index df2252a98b0..475d29923d3 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md index a8560554209..4e7ab6dfebc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md index b44d068084d..d4f1c5e0150 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md index 6fe2f2d6941..3529f9b99c0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md index b4a3e8ed79d..11943f70e24 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md index 73078bd7a17..66fc7e27a3a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md index 94bc3f400fe..03addd3de67 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md index 0a2953775b1..0cc317d9a61 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md index 1fc110269f9..a4cedb82148 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md index d7cd28a911c..22aa2acf193 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md index 859f81e79d5..a8cc310aa57 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md index ea7c78c001f..a6f74ebdae3 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md index 8bb19126a8d..5f27e48c169 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md index 877e913eee3..a48a84eafca 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md index e0824051029..f8ad1b0bc15 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md index 314998b73ad..e4c05c1e6bb 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md index 8b59250dd96..8e397729e6a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md index cd3b52c45cc..2751da52449 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md index 1bd2f4f0912..2a439ba2af4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md index d256e21b4f8..3f6ea608d71 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md index dd768c2335e..f3f5682cbf6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/create.md b/docs/examples/1.6.x/server-dotnet/examples/teams/create.md index 5b5c8014b4d..07b102d70a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md index 93f60402d79..01a58aaa11d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md index 1c69bf0ea82..ee525f23c99 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md index bb91bc9e892..cb9109df141 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md index 4e6012df169..f95d73af77c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/get.md b/docs/examples/1.6.x/server-dotnet/examples/teams/get.md index c221122e7e1..339b33f657d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md index d44f12b41c3..6072158100d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/list.md b/docs/examples/1.6.x/server-dotnet/examples/teams/list.md index 9c1a0fee657..b1ca72b82ea 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md index 151f17566eb..87609aa32ea 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md index 1d9faebbf91..3583b4d0a96 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md index b3db0576af9..9a3fb1316a6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md index 84b9b11ca83..55ff96e9e8b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md index 7ee4d1d89d6..db6dd6486a1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md index 9ff609d5f40..bf8bf3dedd5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md index 2997767f795..a7c57ad6429 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md index 7294c805eda..7b7d0e7760c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md index bbc41a66a19..9b43dc02afa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md index 3db0dc707d3..9f5521ef2fe 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md index 873e666cdc6..0821bf46e9d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md index 7af9f2ab8bc..3af99e88c21 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md index 14ee42e4891..79085f72065 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md index f624ff8554c..a021c2551fd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md index 80717ae19bf..44ba48ac012 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md index ce96abc50cb..0e9cf43fd75 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create.md b/docs/examples/1.6.x/server-dotnet/examples/users/create.md index 04e25c32730..3cf1d3af290 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md index 9579eba7a2d..d2bac6b7973 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md index c3d081bf56b..bb33dbf9e4b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md index ff46be8ad23..d9d36d20b4d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md index 5b9f5e1aa9a..7011e426bb5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md index 482b229912d..ad900afa5ad 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete.md index 670b98cbd16..00ed23cf5f9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md index a69c58da2a4..213c3473a85 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md index ec25c4160f0..36888651d9d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md index 10a6955e49f..2bbf4d614cd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get.md b/docs/examples/1.6.x/server-dotnet/examples/users/get.md index 7dc7eebdaa8..25971baddc2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md index 36a9b5f7703..996edfba710 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md index 303839792b0..822d16fe64e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md index 5c833de3667..ac899287707 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md index 31e1ee3d555..54f68ae516b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md index a5c07505297..97f92f3b077 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md index ded2ade2b69..aa59ce2983f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list.md b/docs/examples/1.6.x/server-dotnet/examples/users/list.md index 74bce0bb1a7..aae7ae27b32 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md index 025d4f0a213..8add2d4d6ba 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md index 250290539f8..d0d737cb80e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md index 865556db2f0..6637ad0438a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md index cb4f68eb040..35be70777a1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md index bd881528c83..d009df1759d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md index 492a45ed688..ffa90f96570 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md index aa6e621180a..6dc30d5bcf7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md index 13ded37df6b..ba5ca253ee5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md index 50708008ba6..e633740e941 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md index 8015f738482..421a4c2314f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md index f476bc58236..3037d8dd0c0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md index 9fe888c7e3b..9863af19d86 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md index bdf9c1b8e83..a6b5b6a2cf2 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md index b6573084a99..d876edc7ac2 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-email-token.md b/docs/examples/1.6.x/server-go/examples/account/create-email-token.md index b9aae640a0f..aa832e7bf50 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-email-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md index fa4d41b315e..fad35ab5190 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md index cd1d07e5e05..1e2090fd8eb 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md index 150e4d18d62..8d425404b58 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md index 93e122f8b3f..3ac4a3babf4 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md index 005b9603d88..063a804f6e4 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md index 6cc11b004bd..f3b6997fffa 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md index eff0aa2ae0e..c9e80de622b 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md index fff450710d9..c7a6bf4bf54 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/create-recovery.md b/docs/examples/1.6.x/server-go/examples/account/create-recovery.md index 6fc0115b033..9d55755c379 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-recovery.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/create-session.md b/docs/examples/1.6.x/server-go/examples/account/create-session.md index c525401b5ff..f93502a31f1 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-verification.md b/docs/examples/1.6.x/server-go/examples/account/create-verification.md index 9e2cecc6f9c..afb98c7ec0a 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/create.md b/docs/examples/1.6.x/server-go/examples/account/create.md index 9cc27a5f1da..b834d47d0f8 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create.md +++ b/docs/examples/1.6.x/server-go/examples/account/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-identity.md b/docs/examples/1.6.x/server-go/examples/account/delete-identity.md index 939a3efa01c..30d25346021 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-identity.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md index 664628b44ed..7f3edec33dc 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-session.md b/docs/examples/1.6.x/server-go/examples/account/delete-session.md index c153451efec..398604ecdd0 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md index 3c782b93ddf..97eda5899aa 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md index d6abf99553f..0dd93bb765e 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/get-prefs.md b/docs/examples/1.6.x/server-go/examples/account/get-prefs.md index 555e99d04d6..b7985acbd79 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/account/get-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/get-session.md b/docs/examples/1.6.x/server-go/examples/account/get-session.md index b9958823bbd..d6d1ffe05fd 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/get-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/get.md b/docs/examples/1.6.x/server-go/examples/account/get.md index 47e52e895f9..7e08024930a 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get.md +++ b/docs/examples/1.6.x/server-go/examples/account/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/list-identities.md b/docs/examples/1.6.x/server-go/examples/account/list-identities.md index 01b398018f5..7a7f4bc09fc 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-identities.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/list-logs.md b/docs/examples/1.6.x/server-go/examples/account/list-logs.md index 9cbdaa35694..eec9ed33e01 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md index 8e028c96153..4dca59fff61 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/list-sessions.md b/docs/examples/1.6.x/server-go/examples/account/list-sessions.md index 12454750d1c..9f8a5f47998 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-email.md b/docs/examples/1.6.x/server-go/examples/account/update-email.md index 16c31efe88f..11f98265b67 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md index f06eb959c19..d3df3d46389 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md index aaf8d697720..fdc9d45c049 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md index 350dcfaf64f..fb225574d43 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md index 2c367fbc96c..1e95a60d34b 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md index c04f169fa88..08feede2610 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-name.md b/docs/examples/1.6.x/server-go/examples/account/update-name.md index 31baf1f1dae..8424a269460 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-name.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-password.md b/docs/examples/1.6.x/server-go/examples/account/update-password.md index 770d748ccf5..561ff0a6672 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-password.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md index 4fb1e2ac69e..433043e439b 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md index 0e3af857546..46602a8be82 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-phone.md b/docs/examples/1.6.x/server-go/examples/account/update-phone.md index 3c39ab28997..d753cb21d3f 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-phone.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-prefs.md b/docs/examples/1.6.x/server-go/examples/account/update-prefs.md index 822c6fdfbb2..0319de200a6 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-recovery.md b/docs/examples/1.6.x/server-go/examples/account/update-recovery.md index 0450f9a03c8..f40414e5e85 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-recovery.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-session.md b/docs/examples/1.6.x/server-go/examples/account/update-session.md index cc03ef1acdf..8e1725a71c8 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-status.md b/docs/examples/1.6.x/server-go/examples/account/update-status.md index 2e1f4f2e2ba..a9a0e239b05 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-status.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/account/update-verification.md b/docs/examples/1.6.x/server-go/examples/account/update-verification.md index 4e245c6bd63..2fd356dcf82 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md index 41e6d3a64ac..31f16ec7be3 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md index 29fa7c17155..51d3f589dbb 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md index 52d71201335..bdea40db2f1 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md index 2024a671c76..74e11ef43ad 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-image.md b/docs/examples/1.6.x/server-go/examples/avatars/get-image.md index cbcb8c7b805..a751abb9274 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-image.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md index 83c2f212da7..21fa9282aeb 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md index 172e2720168..8eeea5f6bf8 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md index e0a0a4255d8..73e118e3b7b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-collection.md b/docs/examples/1.6.x/server-go/examples/databases/create-collection.md index 8b42c00dc17..815b21d6cb2 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md index f8dc80f7fd1..edf716911dd 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-document.md b/docs/examples/1.6.x/server-go/examples/databases/create-document.md index 19bcdba0a4c..142c55cffcb 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-documents.md b/docs/examples/1.6.x/server-go/examples/databases/create-documents.md new file mode 100644 index 00000000000..0617f126870 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/create-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md index c79d5f28cad..f564b4033a0 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md index ade770e80e2..0827d31e1a7 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md index fc873a21f0a..a262e1d3f39 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-index.md b/docs/examples/1.6.x/server-go/examples/databases/create-index.md index 417a5ffbe9e..3544bd9f581 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-index.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md index 3ab7505e51b..daa54f9ec69 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md index 5f80658c777..4c5c9c37c2e 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md index 2e9431901cf..e10aee8ddde 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md index 07fc841f747..e4bd63ce352 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md index a4525afc012..9d8b2e13f8b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/create.md b/docs/examples/1.6.x/server-go/examples/databases/create.md index 3303b897224..80f9f92c294 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md index 6d4f2c89d7d..746dae5d0b2 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md index 33b6cce1c8a..abf6a7ae200 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-document.md b/docs/examples/1.6.x/server-go/examples/databases/delete-document.md index e1d98e79c22..e8131a73f58 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-go/examples/databases/delete-documents.md new file mode 100644 index 00000000000..6527cee6779 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithDeleteDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-index.md b/docs/examples/1.6.x/server-go/examples/databases/delete-index.md index 540afeac4a2..38e6bc94d0b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-index.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete.md b/docs/examples/1.6.x/server-go/examples/databases/delete.md index 76139289cec..0e7fb0a0582 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md index b819b75820d..64ba82e65c4 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-collection.md b/docs/examples/1.6.x/server-go/examples/databases/get-collection.md index 9b9cd41aa33..ee166a4ff97 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-document.md b/docs/examples/1.6.x/server-go/examples/databases/get-document.md index d1e2d7b3776..657a3dcab36 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-index.md b/docs/examples/1.6.x/server-go/examples/databases/get-index.md index 6c7f35113fa..efc9c1f9504 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-index.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/get.md b/docs/examples/1.6.x/server-go/examples/databases/get.md index 8e1e002258d..b6d337111ba 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md index 8d127abbe61..8095b75d196 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-collections.md b/docs/examples/1.6.x/server-go/examples/databases/list-collections.md index cd76783838c..2303c98bde2 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-collections.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-documents.md b/docs/examples/1.6.x/server-go/examples/databases/list-documents.md index 237b6d17f78..952a1b2b489 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-documents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md index d0792e8dbff..8593dd71b77 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/list.md b/docs/examples/1.6.x/server-go/examples/databases/list.md index 3548af44841..798e33b6ea8 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md index 014034428ce..770617635d4 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,6 +20,7 @@ func main() { "", false, false, + databases.WithUpdateBooleanAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-collection.md b/docs/examples/1.6.x/server-go/examples/databases/update-collection.md index 2e9c9200227..1f80eaa255e 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md index 15707afe40c..252334b20f9 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,6 +20,7 @@ func main() { "", false, "", + databases.WithUpdateDatetimeAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-document.md b/docs/examples/1.6.x/server-go/examples/databases/update-document.md index c9345686078..5ec0e189e9e 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-documents.md b/docs/examples/1.6.x/server-go/examples/databases/update-documents.md new file mode 100644 index 00000000000..e6545906912 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/update-documents.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithUpdateDocumentsData(map[string]interface{}{}), + databases.WithUpdateDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md index 1efba5889b9..c2e0cf9552a 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,6 +20,7 @@ func main() { "", false, "email@example.com", + databases.WithUpdateEmailAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md index fb4a58ed668..fb993f37ccd 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -21,6 +21,7 @@ func main() { []interface{}{}, false, "<DEFAULT>", + databases.WithUpdateEnumAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md index 1f770931300..814da25bdeb 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,8 +20,9 @@ func main() { "", false, 0, - 0, - 0, + databases.WithUpdateFloatAttributeMin(0), + databases.WithUpdateFloatAttributeMax(0), + databases.WithUpdateFloatAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md index b972aaa0dea..961374e3db4 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,8 +20,9 @@ func main() { "", false, 0, - 0, - 0, + databases.WithUpdateIntegerAttributeMin(0), + databases.WithUpdateIntegerAttributeMax(0), + databases.WithUpdateIntegerAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md index ff281489008..4895feb54d6 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,6 +20,7 @@ func main() { "", false, "", + databases.WithUpdateIpAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md index 22d5f16a807..6df9de20157 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -19,6 +19,7 @@ func main() { "<COLLECTION_ID>", "", databases.WithUpdateRelationshipAttributeOnDelete("cascade"), + databases.WithUpdateRelationshipAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md index fd95d68ff25..0469527d04b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,6 +20,8 @@ func main() { "", false, "<DEFAULT>", + databases.WithUpdateStringAttributeSize(1), + databases.WithUpdateStringAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md index eaee9ecd6a1..53e2a482ef6 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -20,6 +20,7 @@ func main() { "", false, "https://example.com", + databases.WithUpdateUrlAttributeNewKey(""), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/databases/update.md b/docs/examples/1.6.x/server-go/examples/databases/update.md index af9e20ba28a..8f5c6896a61 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-go/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..a8399f79c07 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/upsert-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpsertDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithUpsertDocumentsDocuments([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-build.md b/docs/examples/1.6.x/server-go/examples/functions/create-build.md index 33e645bb028..a0dfeb672ff 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-build.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md index c6ec69ca4a3..afcfeb31736 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-execution.md b/docs/examples/1.6.x/server-go/examples/functions/create-execution.md index 4924e2338c7..356e8513761 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-execution.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-variable.md b/docs/examples/1.6.x/server-go/examples/functions/create-variable.md index 9d50f0e0ec5..411c480e8f7 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/create.md b/docs/examples/1.6.x/server-go/examples/functions/create.md index 01cd0f0402c..396a0049e54 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md index 3e189ea1c6e..cf088e82c88 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md index 184f6234c79..e863e3ba573 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md index da9cb443da4..7cb66a04ceb 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete.md b/docs/examples/1.6.x/server-go/examples/functions/delete.md index c19495f32b8..ec006f20794 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/download-deployment.md deleted file mode 100644 index 37d2149541c..00000000000 --- a/docs/examples/1.6.x/server-go/examples/functions/download-deployment.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/functions" -) - -func main() { - client := client.NewClient() - - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - client.SetProject("") // Your project ID - client.SetKey("") // Your secret API key - - service := functions.NewFunctions(client) - response, error := service.DownloadDeployment( - "<FUNCTION_ID>", - "<DEPLOYMENT_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md index 3628a3ea7cd..cf903f04893 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md @@ -9,9 +9,9 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 + client.SetKey("<YOUR_API_KEY>") // Your secret API key service := functions.NewFunctions(client) response, error := service.GetDeploymentDownload( diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md index 879f5b3e461..6b6824500a9 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-execution.md b/docs/examples/1.6.x/server-go/examples/functions/get-execution.md index 7ec459b7e12..627c95b5a7d 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-execution.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-template.md b/docs/examples/1.6.x/server-go/examples/functions/get-template.md deleted file mode 100644 index fe4e1debb9d..00000000000 --- a/docs/examples/1.6.x/server-go/examples/functions/get-template.md +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/functions" -) - -func main() { - client := client.NewClient() - - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - client.SetProject("<YOUR_PROJECT_ID>") // Your project ID - - service := functions.NewFunctions(client) - response, error := service.GetTemplate( - "<TEMPLATE_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-variable.md b/docs/examples/1.6.x/server-go/examples/functions/get-variable.md index f949ba5111c..003baf4011b 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/get.md b/docs/examples/1.6.x/server-go/examples/functions/get.md index 3e31a307884..a18d0526dea 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md index 9549636b8d9..b137c3047c4 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-executions.md b/docs/examples/1.6.x/server-go/examples/functions/list-executions.md index 2a6291c6f34..2f63153b68d 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-executions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md index d5124b2d687..76e4414df28 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md index 5fb03bb8d50..c1abea5d170 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-templates.md b/docs/examples/1.6.x/server-go/examples/functions/list-templates.md deleted file mode 100644 index 19edf6d360e..00000000000 --- a/docs/examples/1.6.x/server-go/examples/functions/list-templates.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/functions" -) - -func main() { - client := client.NewClient() - - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - client.SetProject("<YOUR_PROJECT_ID>") // Your project ID - - service := functions.NewFunctions(client) - response, error := service.ListTemplates( - functions.WithListTemplatesRuntimes([]interface{}{}), - functions.WithListTemplatesUseCases([]interface{}{}), - functions.WithListTemplatesLimit(1), - functions.WithListTemplatesOffset(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-variables.md b/docs/examples/1.6.x/server-go/examples/functions/list-variables.md index 374c64ae546..e27df96670a 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-variables.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/list.md b/docs/examples/1.6.x/server-go/examples/functions/list.md index 124126fc918..36a55d72b28 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md index 92af3ee31fb..2c4266fb064 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md index da08d0d8c69..0b63770a12b 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/update-variable.md b/docs/examples/1.6.x/server-go/examples/functions/update-variable.md index fce59eb7140..4063706ff8e 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/functions/update.md b/docs/examples/1.6.x/server-go/examples/functions/update.md index c29bf748ba2..318ba4dfd0e 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/graphql/mutation.md b/docs/examples/1.6.x/server-go/examples/graphql/mutation.md index e011bc8016f..092e817c939 100644 --- a/docs/examples/1.6.x/server-go/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-go/examples/graphql/mutation.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/graphql/query.md b/docs/examples/1.6.x/server-go/examples/graphql/query.md index 6dec430cd7a..511d6c452ea 100644 --- a/docs/examples/1.6.x/server-go/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-go/examples/graphql/query.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md index 2ed5b0dd5a0..1640c01c0eb 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-cache.md b/docs/examples/1.6.x/server-go/examples/health/get-cache.md index 4e6b8de6ced..976d51fbe74 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-cache.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-certificate.md b/docs/examples/1.6.x/server-go/examples/health/get-certificate.md index d251fff351b..44d1d1bb929 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-certificate.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-d-b.md b/docs/examples/1.6.x/server-go/examples/health/get-d-b.md index a6fbda00520..8f681a04c19 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-d-b.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md index 6e89dd400d5..814b8850e83 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md index 5ab0d90ef63..6a3d67e838a 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md index bd68bdf8b41..ebd1a2f3d84 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md index 1e43f62b980..473d953c157 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md index d0fb2fb1149..83eb8584a54 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md index d4f76f57f22..e491446f94c 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md index 75bc0cb3c14..c7cf45a3557 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md index 686e42c84e6..b369c24277c 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md index 32433a1f79e..cc944d0cadf 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md index 56c50010fcc..65c6c34610f 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md index dba9bd18096..d0c3bd2573b 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..5ed004c7cf7 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-stats-resources.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueStatsResources( + health.WithGetQueueStatsResourcesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md index f7ad9bd80f8..9e5731e6a3c 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md index f4315e37fb3..5202371d1ef 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md index 70f3b9888c5..4782aef9aca 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue.md b/docs/examples/1.6.x/server-go/examples/health/get-queue.md index 9797a93be21..5fbda1d9cef 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md index 1bebff56d45..e58b944497a 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-storage.md b/docs/examples/1.6.x/server-go/examples/health/get-storage.md index 8ac0f7fb361..73ae964d514 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-storage.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get-time.md b/docs/examples/1.6.x/server-go/examples/health/get-time.md index 447954b76b7..43c0ca46a4d 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-time.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/health/get.md b/docs/examples/1.6.x/server-go/examples/health/get.md index 35022c7302d..c9730f70dd4 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get.md +++ b/docs/examples/1.6.x/server-go/examples/health/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/get.md b/docs/examples/1.6.x/server-go/examples/locale/get.md index 233ee953dd0..055889b6ce7 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/get.md +++ b/docs/examples/1.6.x/server-go/examples/locale/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-codes.md b/docs/examples/1.6.x/server-go/examples/locale/list-codes.md index d3d049b1fd6..a69a05d6cd7 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-continents.md b/docs/examples/1.6.x/server-go/examples/locale/list-continents.md index ba80f2549bf..0430fdbe994 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-continents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md index 1fbc22c1e5b..92bd24d1f8f 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md index 72b7d96a19d..1615834103a 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-countries.md b/docs/examples/1.6.x/server-go/examples/locale/list-countries.md index 894ae4c15bb..25bbbd15382 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-countries.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md index 4335a934895..e4bde5d9d98 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-languages.md b/docs/examples/1.6.x/server-go/examples/locale/list-languages.md index 789d5701029..acce3181beb 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-languages.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md index feabfae8461..620219e07db 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-email.md b/docs/examples/1.6.x/server-go/examples/messaging/create-email.md index 87d386452f2..3da6c88cf4d 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md index 54223961974..c70c340eb5f 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md index 2b26246fba1..e265218ef49 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md index e2d74128623..53660cbfa03 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-push.md b/docs/examples/1.6.x/server-go/examples/messaging/create-push.md index 090e0cbca27..214d6ae0ed1 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-push.md @@ -9,15 +9,15 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 := messaging.NewMessaging(client) response, error := service.CreatePush( "<MESSAGE_ID>", - "<TITLE>", - "<BODY>", + messaging.WithCreatePushTitle("<TITLE>"), + messaging.WithCreatePushBody("<BODY>"), messaging.WithCreatePushTopics([]interface{}{}), messaging.WithCreatePushUsers([]interface{}{}), messaging.WithCreatePushTargets([]interface{}{}), @@ -28,9 +28,12 @@ func main() { messaging.WithCreatePushSound("<SOUND>"), messaging.WithCreatePushColor("<COLOR>"), messaging.WithCreatePushTag("<TAG>"), - messaging.WithCreatePushBadge("<BADGE>"), + messaging.WithCreatePushBadge(0), messaging.WithCreatePushDraft(false), messaging.WithCreatePushScheduledAt(""), + messaging.WithCreatePushContentAvailable(false), + messaging.WithCreatePushCritical(false), + messaging.WithCreatePushPriority("normal"), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md index 1f70761a7d3..69375a23ca8 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md index 74583d236d4..95c7738969c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md index 136e274ed74..4c88b4ef7ab 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md index 38f8418accc..c4faa8544a8 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md index 7de661031b8..11dd8c9bc6c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md index c58bbe7569c..a0365492402 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md index d435d5e4a09..0453089fbc6 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md index 73c3656ec68..cd8a993a6cc 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md index 37568abc686..e17e8d885bb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md index 304293d7805..2c5b77d622e 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md index 1e918d95876..fec03f53f74 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md index 36c13a4a552..3a9787b6ce4 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete.md b/docs/examples/1.6.x/server-go/examples/messaging/delete.md index ce4b8a2e73c..4d5accd22fb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-message.md b/docs/examples/1.6.x/server-go/examples/messaging/get-message.md index d0d2d21d277..d6db3188c81 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-message.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md index 9796d60fd36..ff2bab3acfa 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md index c0c39a928c6..47fccf23cd9 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md index 8c8f4613daa..a332f55ba44 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md index 6d82a61ee23..b4a5528b41f 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md index 047ff9bd1fd..f1ca97d3fe5 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md index 89449d193a1..945dbcfd4eb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md index b8ae055baeb..57c09a20611 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md index 679039ec919..cb2f050dd9c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md index 7da3d67bc70..045777d8c45 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md index 448e3f58a41..9cc65e0d1c6 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md index 49316663b3b..2e928dbfc76 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md index 39478d30f30..69574ae02fe 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md index bd331bca3c7..aac3e39c6ec 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-email.md b/docs/examples/1.6.x/server-go/examples/messaging/update-email.md index 86c7ee0601c..f1e9f081d22 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md index c6bd3ba4857..55e4b90363c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md index 00789d2f6db..5bb229f3486 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md index 0bda860823c..d19c5002624 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-push.md b/docs/examples/1.6.x/server-go/examples/messaging/update-push.md index af1b6095cdc..856b95dc1bb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-push.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 @@ -31,6 +31,9 @@ func main() { messaging.WithUpdatePushBadge(0), messaging.WithUpdatePushDraft(false), messaging.WithUpdatePushScheduledAt(""), + messaging.WithUpdatePushContentAvailable(false), + messaging.WithUpdatePushCritical(false), + messaging.WithUpdatePushPriority("normal"), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md index e7205716ccb..5742b448743 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md index 2f74b58422b..09b3456d388 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md index 5c0ecedf944..b99f86e1230 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md index c30c288caa1..5fb99a68ec9 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md index baaed6020d2..24e619cc7f4 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md index 4f5b003e3bc..ab8902b4b2f 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md index 1763a5f02df..316a2516d16 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md index ea1d6fe3936..d17452140a3 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md index 9ab1965854a..39dc1d06d96 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/create-file.md b/docs/examples/1.6.x/server-go/examples/storage/create-file.md index e561e22e3e8..1ca815c92ec 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/create-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md index 227ae84109f..37a3f69b256 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/delete-file.md b/docs/examples/1.6.x/server-go/examples/storage/delete-file.md index d67861b0b20..522aacae728 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/delete-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md index 3aa33b40c06..b76ac37d25b 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md index aa9185cadd9..b8c8202460f 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md index 2210c4559e9..ffa1ad4a4a2 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md index e4a3ece23c2..f8685f42d53 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file.md b/docs/examples/1.6.x/server-go/examples/storage/get-file.md index 4dfc7df8294..824c86f0542 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md index 571d46376e9..00dd8d657b7 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/list-files.md b/docs/examples/1.6.x/server-go/examples/storage/list-files.md index 13f4549a9a0..a84dfac6fdb 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-go/examples/storage/list-files.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md index 6c7f9463c90..58efff687bd 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/storage/update-file.md b/docs/examples/1.6.x/server-go/examples/storage/update-file.md index 820e6d4f230..f1705138e98 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/update-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/create-membership.md b/docs/examples/1.6.x/server-go/examples/teams/create-membership.md index 186520d47a8..90c3d82348e 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/create-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/create.md b/docs/examples/1.6.x/server-go/examples/teams/create.md index b429e396a66..1898936941f 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/create.md +++ b/docs/examples/1.6.x/server-go/examples/teams/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md index 536aa91f93a..78810817a93 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/delete.md b/docs/examples/1.6.x/server-go/examples/teams/delete.md index 8e1c5d48934..fb4771605d3 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-go/examples/teams/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/get-membership.md b/docs/examples/1.6.x/server-go/examples/teams/get-membership.md index 3bc8650dd9b..c61b9c57c33 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/get-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md index bb2ff1c7780..c237cd144ac 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/get.md b/docs/examples/1.6.x/server-go/examples/teams/get.md index 69b00075a90..c29e9fa7864 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/get.md +++ b/docs/examples/1.6.x/server-go/examples/teams/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md index 45a6267e989..1e8fb45ca7e 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/list.md b/docs/examples/1.6.x/server-go/examples/teams/list.md index 96c5f8ab747..c4b109f1f3e 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/list.md +++ b/docs/examples/1.6.x/server-go/examples/teams/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md index accc79ebce0..fbec3b8e845 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-membership.md b/docs/examples/1.6.x/server-go/examples/teams/update-membership.md index 9f18528938d..1b478a19137 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-name.md b/docs/examples/1.6.x/server-go/examples/teams/update-name.md index 05459deb4a3..a7b5da7c201 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-name.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md index 314cf6c6852..6d395add217 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md index 87226b8033b..44eaafbcd4c 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md index 89e979d1b87..d818598c707 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md index 37d1a5d0eba..dc1e51b1956 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md index d2c87b4d147..1dba39c5fd6 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md index 6757a627215..3078f0993ba 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md index f8a9f4007d4..c0380bd9f31 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md index b8e348c8844..93aa77e853c 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md index 935ecc12cc7..cd48f6c83fa 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md index 8320412796c..65d70e986fd 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-session.md b/docs/examples/1.6.x/server-go/examples/users/create-session.md index b246b8feb7a..92304e647db 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-target.md b/docs/examples/1.6.x/server-go/examples/users/create-target.md index d4802c19980..db42e2c3914 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create-token.md b/docs/examples/1.6.x/server-go/examples/users/create-token.md index ea9b5a1e8b3..6181a8d9d40 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/create.md b/docs/examples/1.6.x/server-go/examples/users/create.md index f1b8f25d616..0ab673bc73e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create.md +++ b/docs/examples/1.6.x/server-go/examples/users/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-identity.md b/docs/examples/1.6.x/server-go/examples/users/delete-identity.md index af33140a4fd..1095a1763a3 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-identity.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md index eb8f23b6a30..d61c5db0c83 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-session.md b/docs/examples/1.6.x/server-go/examples/users/delete-session.md index b29c8b0d709..2a0de4c2710 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md index 9fc4e8012a2..ea15501819d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-target.md b/docs/examples/1.6.x/server-go/examples/users/delete-target.md index 73443c5a1d9..d4cd4e51a82 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/delete.md b/docs/examples/1.6.x/server-go/examples/users/delete.md index 4e4e0468919..2c359e3ab0b 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md index 6e70217d0d9..485075546f1 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/get-prefs.md b/docs/examples/1.6.x/server-go/examples/users/get-prefs.md index 8c05fddc5f6..0dba2723887 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/users/get-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/get-target.md b/docs/examples/1.6.x/server-go/examples/users/get-target.md index 761d008b374..b1291d7490e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/get-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/get.md b/docs/examples/1.6.x/server-go/examples/users/get.md index 44852bb9721..c6aae29d5d9 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get.md +++ b/docs/examples/1.6.x/server-go/examples/users/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list-identities.md b/docs/examples/1.6.x/server-go/examples/users/list-identities.md index a4cbbbd1eeb..063b9100fb2 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-identities.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list-logs.md b/docs/examples/1.6.x/server-go/examples/users/list-logs.md index a713ee3ba29..674668b965d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list-memberships.md b/docs/examples/1.6.x/server-go/examples/users/list-memberships.md index 5770fd8c7e3..95cc841f169 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-memberships.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md index d89e0f3f967..1c39b87a66d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list-sessions.md b/docs/examples/1.6.x/server-go/examples/users/list-sessions.md index a58d0532df5..835c23b1bce 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list-targets.md b/docs/examples/1.6.x/server-go/examples/users/list-targets.md index 45f967b4245..84c2c312a9a 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-targets.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/list.md b/docs/examples/1.6.x/server-go/examples/users/list.md index b84ee0e3b73..247ad4c2e72 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list.md +++ b/docs/examples/1.6.x/server-go/examples/users/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md index af4c066543b..70f5a107574 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-email.md b/docs/examples/1.6.x/server-go/examples/users/update-email.md index ea18cc68637..697783b9677 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-labels.md b/docs/examples/1.6.x/server-go/examples/users/update-labels.md index 63bbe1255b5..a65d2ead9d1 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-labels.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md index 408721b2ec7..eb47e2ee09e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-mfa.md b/docs/examples/1.6.x/server-go/examples/users/update-mfa.md index 9da9d05fd07..756863799f8 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-mfa.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-name.md b/docs/examples/1.6.x/server-go/examples/users/update-name.md index 7d5a2553ea9..8ef173c2e3e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-name.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-password.md b/docs/examples/1.6.x/server-go/examples/users/update-password.md index 64f5766c9b7..2f9efac65fb 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-password.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md index 409cdf3c18c..c94fbd861ef 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-phone.md b/docs/examples/1.6.x/server-go/examples/users/update-phone.md index 0440906d1ec..77d20162f92 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-phone.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-prefs.md b/docs/examples/1.6.x/server-go/examples/users/update-prefs.md index 184235d2dd2..f7889a6337d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-status.md b/docs/examples/1.6.x/server-go/examples/users/update-status.md index a081d0bff43..2349e4e0c98 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-status.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-go/examples/users/update-target.md b/docs/examples/1.6.x/server-go/examples/users/update-target.md index a06c395cab1..f8028b44834 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + 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 diff --git a/docs/examples/1.6.x/server-graphql/examples/account/create.md b/docs/examples/1.6.x/server-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/create.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md index e2de72b57f8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md @@ -1,5 +0,0 @@ -query { - accountGetMfaRecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md b/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md index 6cb48d2b588..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md @@ -1,5 +0,0 @@ -query { - accountGetPrefs { - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get-session.md b/docs/examples/1.6.x/server-graphql/examples/account/get-session.md index 65c824f68bd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get-session.md @@ -1,35 +0,0 @@ -query { - accountGetSession( - sessionId: "<SESSION_ID>" - ) { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get.md b/docs/examples/1.6.x/server-graphql/examples/account/get.md index e4db8f0e414..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get.md @@ -1,34 +0,0 @@ -query { - accountGet { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md b/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md index b7a2a6d39a4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md @@ -1,19 +0,0 @@ -query { - accountListIdentities( - queries: [] - ) { - total - identities { - _id - _createdAt - _updatedAt - userId - provider - providerUid - providerEmail - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md b/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md index 1e17b2f69f9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md @@ -1,30 +0,0 @@ -query { - accountListLogs( - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md index 2a78b901b33..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md @@ -1,8 +0,0 @@ -query { - accountListMfaFactors { - totp - phone - email - recoveryCode - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md b/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md index 6d45f1d4aeb..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md @@ -1,36 +0,0 @@ -query { - accountListSessions { - total - sessions { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-email.md b/docs/examples/1.6.x/server-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-name.md b/docs/examples/1.6.x/server-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-password.md b/docs/examples/1.6.x/server-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md b/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-status.md b/docs/examples/1.6.x/server-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md index 817e1e54c25..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md @@ -1,10 +0,0 @@ -query { - avatarsGetBrowser( - code: "aa", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md index e4b5dc18d9c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md @@ -1,10 +0,0 @@ -query { - avatarsGetCreditCard( - code: "amex", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md index bfea71f4983..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md @@ -1,7 +0,0 @@ -query { - avatarsGetFavicon( - url: "https://example.com" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md index 1502128581d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md @@ -1,10 +0,0 @@ -query { - avatarsGetFlag( - code: "af", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md index 3b9aa104dc5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md @@ -1,9 +0,0 @@ -query { - avatarsGetImage( - url: "https://example.com", - width: 0, - height: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md index 51ae36136be..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md @@ -1,10 +0,0 @@ -query { - avatarsGetInitials( - name: "<NAME>", - width: 0, - height: 0, - background: "" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md index a19f2184124..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md @@ -1,10 +0,0 @@ -query { - avatarsGetQR( - text: "<TEXT>", - size: 1, - margin: 0, - download: false - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md index 6e969a587ec..aa0bfa832e4 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md index 05175cc1e78..51eb51f4101 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md index fcd5cb37a20..47601df0d8e 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-documents.md new file mode 100644 index 00000000000..3e3a50f3abf --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesCreateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md index 1f23a23ba7b..e5845ccd47c 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md index 410a7983b45..d13c080e4ac 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md @@ -14,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md index ae6f9f72d61..2a270c3aff8 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md index efc92a798c2..2875a9b4b7d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md @@ -13,5 +13,7 @@ mutation { error attributes orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md index 1dc43f6b0d0..8c79706817a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md index b2fd7215a0a..0f4ad9e1396 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md index ddca20b83aa..f66b87d6afc 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md index 3c290712e9b..62d97d69623 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md index d2a39756c94..89ad873e52b 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/delete-documents.md new file mode 100644 index 00000000000..ad5826f22ad --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/delete-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesDeleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md index 873d03b708c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md @@ -1,9 +0,0 @@ -query { - databasesGetAttribute( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md index f76b71b6bab..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md @@ -1,24 +0,0 @@ -query { - databasesGetCollection( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - documentSecurity - attributes - indexes { - key - type - status - error - attributes - orders - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md index 7cff0a18c1f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md @@ -1,16 +0,0 @@ -query { - databasesGetDocument( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - documentId: "<DOCUMENT_ID>", - queries: [] - ) { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md index de3c44ebe08..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md @@ -1,14 +0,0 @@ -query { - databasesGetIndex( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - key: "" - ) { - key - type - status - error - attributes - orders - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get.md b/docs/examples/1.6.x/server-graphql/examples/databases/get.md index 74c4fe56198..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get.md @@ -1,11 +0,0 @@ -query { - databasesGet( - databaseId: "<DATABASE_ID>" - ) { - _id - name - _createdAt - _updatedAt - enabled - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md index 660c0945a7e..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md @@ -1,10 +0,0 @@ -query { - databasesListAttributes( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - attributes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md index b821b6c4cf2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md @@ -1,28 +0,0 @@ -query { - databasesListCollections( - databaseId: "<DATABASE_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - collections { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - documentSecurity - attributes - indexes { - key - type - status - error - attributes - orders - } - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md index 077d7c8f128..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md @@ -1,18 +0,0 @@ -query { - databasesListDocuments( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - documents { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md index e1c11b6c038..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md @@ -1,17 +0,0 @@ -query { - databasesListIndexes( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - indexes { - key - type - status - error - attributes - orders - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list.md b/docs/examples/1.6.x/server-graphql/examples/databases/list.md index 1adf3d3b484..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list.md @@ -1,15 +0,0 @@ -query { - databasesList( - queries: [], - search: "<SEARCH>" - ) { - total - databases { - _id - name - _createdAt - _updatedAt - enabled - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md index 4c9aa62ef03..d508e62139d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md index fc78bb8efc1..e918c058b88 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md index 3da44838371..a21b910edc9 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-documents.md new file mode 100644 index 00000000000..c05acb16a0e --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-documents.md @@ -0,0 +1,19 @@ +mutation { + databasesUpdateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: "{}", + queries: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md index 36dd14d6463..6c83d80e162 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md index f2954f070f4..378e32f9b87 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md @@ -5,7 +5,8 @@ mutation { key: "", elements: [], required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" ) { key type @@ -13,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md index de987485a77..c70232e7491 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md @@ -4,9 +4,10 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0 + newKey: "" ) { key type @@ -14,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md index 34ceca93afd..b24af5f2605 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md @@ -4,9 +4,10 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0 + newKey: "" ) { key type @@ -14,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md index a3a2aec5853..7a262242005 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md index aa994f14ae2..6694540d93f 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md @@ -3,7 +3,8 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: "cascade" + onDelete: "cascade", + newKey: "" ) { key type @@ -11,6 +12,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md index cc98a1a177d..afafb307f5b 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md @@ -4,7 +4,9 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, + newKey: "" ) { key type @@ -12,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md index e94723efe1b..f9f14a04f61 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..d6e7bba9a3b --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/upsert-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesUpsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-graphql/examples/functions/download-deployment.md deleted file mode 100644 index f791338765d..00000000000 --- a/docs/examples/1.6.x/server-graphql/examples/functions/download-deployment.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - functionsDownloadDeployment( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md index 396047bb94a..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md @@ -1,8 +0,0 @@ -query { - functionsGetDeploymentDownload( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md index 1e1e7208a31..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md @@ -1,30 +0,0 @@ -query { - functionsGetDeployment( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" - ) { - _id - _createdAt - _updatedAt - type - resourceId - resourceType - entrypoint - size - buildId - activate - status - buildLogs - buildTime - providerRepositoryName - providerRepositoryOwner - providerRepositoryUrl - providerBranch - providerCommitHash - providerCommitAuthorUrl - providerCommitAuthor - providerCommitMessage - providerCommitUrl - providerBranchUrl - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md index 6ded51a50cc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md @@ -1,30 +0,0 @@ -query { - functionsGetExecution( - functionId: "<FUNCTION_ID>", - executionId: "<EXECUTION_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-template.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-template.md deleted file mode 100644 index 44a466de27a..00000000000 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-template.md +++ /dev/null @@ -1,35 +0,0 @@ -query { - functionsGetTemplate( - templateId: "<TEMPLATE_ID>" - ) { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md index cd683f0dbd3..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md @@ -1,14 +0,0 @@ -query { - functionsGetVariable( - functionId: "<FUNCTION_ID>", - variableId: "<VARIABLE_ID>" - ) { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get.md b/docs/examples/1.6.x/server-graphql/examples/functions/get.md index 016a942bce2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get.md @@ -1,38 +0,0 @@ -query { - functionsGet( - functionId: "<FUNCTION_ID>" - ) { - _id - _createdAt - _updatedAt - execute - name - enabled - live - logging - runtime - deployment - scopes - vars { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } - events - schedule - timeout - entrypoint - commands - version - installationId - providerRepositoryId - providerBranch - providerRootDirectory - providerSilentMode - specification - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md index b736744384a..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md @@ -1,34 +0,0 @@ -query { - functionsListDeployments( - functionId: "<FUNCTION_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - deployments { - _id - _createdAt - _updatedAt - type - resourceId - resourceType - entrypoint - size - buildId - activate - status - buildLogs - buildTime - providerRepositoryName - providerRepositoryOwner - providerRepositoryUrl - providerBranch - providerCommitHash - providerCommitAuthorUrl - providerCommitAuthor - providerCommitMessage - providerCommitUrl - providerBranchUrl - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md index a0c02fa76f2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md @@ -1,34 +0,0 @@ -query { - functionsListExecutions( - functionId: "<FUNCTION_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - executions { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md index 445ff9dd082..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md @@ -1,15 +0,0 @@ -query { - functionsListRuntimes { - total - runtimes { - _id - key - name - version - base - image - logo - supports - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md index a86b6ea4948..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md @@ -1,11 +0,0 @@ -query { - functionsListSpecifications { - total - specifications { - memory - cpus - enabled - slug - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-templates.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-templates.md deleted file mode 100644 index cb289ddabbe..00000000000 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-templates.md +++ /dev/null @@ -1,41 +0,0 @@ -query { - functionsListTemplates( - runtimes: [], - useCases: [], - limit: 1, - offset: 0 - ) { - total - templates { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md index 583107bd2e0..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md @@ -1,16 +0,0 @@ -query { - functionsListVariables( - functionId: "<FUNCTION_ID>" - ) { - total - variables { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list.md b/docs/examples/1.6.x/server-graphql/examples/functions/list.md index 25341ed0ddd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list.md @@ -1,42 +0,0 @@ -query { - functionsList( - queries: [], - search: "<SEARCH>" - ) { - total - functions { - _id - _createdAt - _updatedAt - execute - name - enabled - live - logging - runtime - deployment - scopes - vars { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } - events - schedule - timeout - entrypoint - commands - version - installationId - providerRepositoryId - providerBranch - providerRootDirectory - providerSilentMode - specification - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md index 3634dc11c1d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md @@ -1,6 +0,0 @@ -query { - healthGetAntivirus { - version - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md b/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md index 3db40762573..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md @@ -1,7 +0,0 @@ -query { - healthGetCache { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md b/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md index 91356f85121..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md @@ -1,12 +0,0 @@ -query { - healthGetCertificate( - domain: "" - ) { - name - subjectSN - issuerOrganisation - validFrom - validTo - signatureTypeSN - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md b/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md index 16e67c674e9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md @@ -1,7 +0,0 @@ -query { - healthGetDB { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md index ca17166a897..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md @@ -1,8 +0,0 @@ -query { - healthGetFailedJobs( - name: "v1-database", - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md index cec6469b31b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md @@ -1,7 +0,0 @@ -query { - healthGetPubSub { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md index 26fb7f89fad..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md @@ -1,7 +0,0 @@ -query { - healthGetQueueBuilds( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md index 8073528cc6c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md @@ -1,7 +0,0 @@ -query { - healthGetQueueCertificates( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md index 3e776239039..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md @@ -1,8 +0,0 @@ -query { - healthGetQueueDatabases( - name: "<NAME>", - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md index 8e7dedcf543..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md @@ -1,7 +0,0 @@ -query { - healthGetQueueDeletes( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md index a827c9a1438..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md @@ -1,7 +0,0 @@ -query { - healthGetQueueFunctions( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md index 96c93304bd1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md @@ -1,7 +0,0 @@ -query { - healthGetQueueLogs( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md index a30747567ba..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md @@ -1,7 +0,0 @@ -query { - healthGetQueueMails( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md index 9209550b119..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md @@ -1,7 +0,0 @@ -query { - healthGetQueueMessaging( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md index 99fd99134d9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md @@ -1,7 +0,0 @@ -query { - healthGetQueueMigrations( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md index 2d9f7cb14b6..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md @@ -1,7 +0,0 @@ -query { - healthGetQueueUsage( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md index 3e95e2fc0dd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md @@ -1,7 +0,0 @@ -query { - healthGetQueueWebhooks( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md index 953af346ae3..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md @@ -1,7 +0,0 @@ -query { - healthGetStorageLocal { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md b/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md index d7161df205a..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md @@ -1,7 +0,0 @@ -query { - healthGetStorage { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-time.md b/docs/examples/1.6.x/server-graphql/examples/health/get-time.md index 0def76b9adc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-time.md @@ -1,7 +0,0 @@ -query { - healthGetTime { - remoteTime - localTime - diff - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get.md b/docs/examples/1.6.x/server-graphql/examples/health/get.md index 8481d3625ae..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get.md @@ -1,7 +0,0 @@ -query { - healthGet { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/get.md b/docs/examples/1.6.x/server-graphql/examples/locale/get.md index 2b2bbcc1f16..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/get.md @@ -1,11 +0,0 @@ -query { - localeGet { - ip - countryCode - country - continentCode - continent - eu - currency - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md index 0164cc37823..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md @@ -1,9 +0,0 @@ -query { - localeListCodes { - total - localeCodes { - code - name - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md index 41f672c5658..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md @@ -1,9 +0,0 @@ -query { - localeListContinents { - total - continents { - name - code - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md index 00cd4652f99..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md @@ -1,9 +0,0 @@ -query { - localeListCountriesEU { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md index 33d2296850b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md @@ -1,10 +0,0 @@ -query { - localeListCountriesPhones { - total - phones { - code - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md index 9312bc94b1b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md @@ -1,9 +0,0 @@ -query { - localeListCountries { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md index cde3ab488a7..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md @@ -1,14 +0,0 @@ -query { - localeListCurrencies { - total - currencies { - symbol - name - symbolNative - decimalDigits - rounding - code - namePlural - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md index b0d76c522b2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md @@ -1,10 +0,0 @@ -query { - localeListLanguages { - total - languages { - name - code - nativeName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md index 3084c97635f..92264d1b675 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md @@ -13,9 +13,12 @@ mutation { sound: "<SOUND>", color: "<COLOR>", tag: "<TAG>", - badge: "<BADGE>", + badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md index a6824cd9116..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md @@ -1,19 +0,0 @@ -query { - messagingGetMessage( - messageId: "<MESSAGE_ID>" - ) { - _id - _createdAt - _updatedAt - providerType - topics - users - targets - scheduledAt - deliveredAt - deliveryErrors - deliveredTotal - data - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md index 03fb039be2c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md @@ -1,15 +0,0 @@ -query { - messagingGetProvider( - providerId: "<PROVIDER_ID>" - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md index 54096dd70a4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md @@ -1,25 +0,0 @@ -query { - messagingGetSubscriber( - topicId: "<TOPIC_ID>", - subscriberId: "<SUBSCRIBER_ID>" - ) { - _id - _createdAt - _updatedAt - targetId - target { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - userId - userName - topicId - providerType - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md index 7f0dd01ee6f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md @@ -1,14 +0,0 @@ -query { - messagingGetTopic( - topicId: "<TOPIC_ID>" - ) { - _id - _createdAt - _updatedAt - name - emailTotal - smsTotal - pushTotal - subscribe - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md index b1e32d8e998..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md @@ -1,31 +0,0 @@ -query { - messagingListMessageLogs( - messageId: "<MESSAGE_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md index 7cdf05c7d83..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md @@ -1,23 +0,0 @@ -query { - messagingListMessages( - queries: [], - search: "<SEARCH>" - ) { - total - messages { - _id - _createdAt - _updatedAt - providerType - topics - users - targets - scheduledAt - deliveredAt - deliveryErrors - deliveredTotal - data - status - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md index 69df6fa06d5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md @@ -1,31 +0,0 @@ -query { - messagingListProviderLogs( - providerId: "<PROVIDER_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md index d7ae7b16bab..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md @@ -1,19 +0,0 @@ -query { - messagingListProviders( - queries: [], - search: "<SEARCH>" - ) { - total - providers { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md index 23e117a07dc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md @@ -1,31 +0,0 @@ -query { - messagingListSubscriberLogs( - subscriberId: "<SUBSCRIBER_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md index 5c48ae34bb8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md @@ -1,29 +0,0 @@ -query { - messagingListSubscribers( - topicId: "<TOPIC_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - subscribers { - _id - _createdAt - _updatedAt - targetId - target { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - userId - userName - topicId - providerType - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md index 8e356dce5fe..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md @@ -1,18 +0,0 @@ -query { - messagingListTargets( - messageId: "<MESSAGE_ID>", - queries: [] - ) { - total - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md index 0b0a5f9a4b1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md @@ -1,31 +0,0 @@ -query { - messagingListTopicLogs( - topicId: "<TOPIC_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md index 4b36c925112..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md @@ -1,18 +0,0 @@ -query { - messagingListTopics( - queries: [], - search: "<SEARCH>" - ) { - total - topics { - _id - _createdAt - _updatedAt - name - emailTotal - smsTotal - pushTotal - subscribe - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md index 9039792573a..8ee2f576107 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md @@ -15,7 +15,10 @@ mutation { tag: "<TAG>", badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md index 4ce0f626abe..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md @@ -1,18 +0,0 @@ -query { - storageGetBucket( - bucketId: "<BUCKET_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md index 8325e8a230e..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md @@ -1,8 +0,0 @@ -query { - storageGetFileDownload( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md index df32e883508..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md @@ -1,19 +0,0 @@ -query { - storageGetFilePreview( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>", - width: 0, - height: 0, - gravity: "center", - quality: 0, - borderWidth: 0, - borderColor: "", - borderRadius: 0, - opacity: 0, - rotation: -360, - background: "", - output: "jpg" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md index 434328a1ec5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md @@ -1,8 +0,0 @@ -query { - storageGetFileView( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md index 60886b0f6f6..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md @@ -1,18 +0,0 @@ -query { - storageGetFile( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md index e4d636ccde4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md @@ -1,22 +0,0 @@ -query { - storageListBuckets( - queries: [], - search: "<SEARCH>" - ) { - total - buckets { - _id - _createdAt - _updatedAt - _permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md b/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md index 774cc51b972..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md @@ -1,22 +0,0 @@ -query { - storageListFiles( - bucketId: "<BUCKET_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - files { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md b/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md index c33528609ee..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md @@ -1,20 +0,0 @@ -query { - teamsGetMembership( - teamId: "<TEAM_ID>", - membershipId: "<MEMBERSHIP_ID>" - ) { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md index fe498079cf8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md @@ -1,7 +0,0 @@ -query { - teamsGetPrefs( - teamId: "<TEAM_ID>" - ) { - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/get.md b/docs/examples/1.6.x/server-graphql/examples/teams/get.md index a3fbb491e0d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/get.md @@ -1,14 +0,0 @@ -query { - teamsGet( - teamId: "<TEAM_ID>" - ) { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md index bf7f0d1eede..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md @@ -1,24 +0,0 @@ -query { - teamsListMemberships( - teamId: "<TEAM_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - memberships { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/list.md b/docs/examples/1.6.x/server-graphql/examples/teams/list.md index e7005b53265..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/list.md @@ -1,18 +0,0 @@ -query { - teamsList( - queries: [], - search: "<SEARCH>" - ) { - total - teams { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md index 464dc754c9a..7f99622e524 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md index 4d4bb091945..26659176ebf 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md index e8e833e6de4..7e642b8233e 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md index 53960e7890a..4c06b007a24 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md index 17e287f8b32..f99da2752da 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md index 6d51fb29ba6..624ffcdd386 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md @@ -36,6 +36,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md index 0d4bac1db8b..68a5f4c75f7 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md @@ -38,6 +38,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-target.md b/docs/examples/1.6.x/server-graphql/examples/users/create-target.md index a3a0696deca..7068c21aba1 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-target.md @@ -15,5 +15,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create.md b/docs/examples/1.6.x/server-graphql/examples/users/create.md index 826a5168efd..465da804322 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md index 227c340c68d..43f73404f0a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md @@ -3,35 +3,6 @@ mutation { userId: "<USER_ID>", type: "totp" ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt } } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md index c4ca9f79b46..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md @@ -1,7 +0,0 @@ -query { - usersGetMfaRecoveryCodes( - userId: "<USER_ID>" - ) { - recoveryCodes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md b/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md index fe08758d995..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md @@ -1,7 +0,0 @@ -query { - usersGetPrefs( - userId: "<USER_ID>" - ) { - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get-target.md b/docs/examples/1.6.x/server-graphql/examples/users/get-target.md index e4ba1a04a1d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get-target.md @@ -1,15 +0,0 @@ -query { - usersGetTarget( - userId: "<USER_ID>", - targetId: "<TARGET_ID>" - ) { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get.md b/docs/examples/1.6.x/server-graphql/examples/users/get.md index f94a5818eda..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get.md @@ -1,36 +0,0 @@ -query { - usersGet( - userId: "<USER_ID>" - ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md b/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md index 38ab302f384..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md @@ -1,20 +0,0 @@ -query { - usersListIdentities( - queries: [], - search: "<SEARCH>" - ) { - total - identities { - _id - _createdAt - _updatedAt - userId - provider - providerUid - providerEmail - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md b/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md index 8594e87b223..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md @@ -1,31 +0,0 @@ -query { - usersListLogs( - userId: "<USER_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md b/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md index cf64f61f106..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md @@ -1,22 +0,0 @@ -query { - usersListMemberships( - userId: "<USER_ID>" - ) { - total - memberships { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md index 12c910835a1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md @@ -1,10 +0,0 @@ -query { - usersListMfaFactors( - userId: "<USER_ID>" - ) { - totp - phone - email - recoveryCode - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md b/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md index 1a09c9ffe08..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md @@ -1,38 +0,0 @@ -query { - usersListSessions( - userId: "<USER_ID>" - ) { - total - sessions { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md b/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md index 05e796f1673..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md @@ -1,18 +0,0 @@ -query { - usersListTargets( - userId: "<USER_ID>", - queries: [] - ) { - total - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list.md b/docs/examples/1.6.x/server-graphql/examples/users/list.md index e2326dd1a2f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list.md @@ -1,40 +0,0 @@ -query { - usersList( - queries: [], - search: "<SEARCH>" - ) { - total - users { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md index 6bb27818545..cda7278ac0b 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-email.md b/docs/examples/1.6.x/server-graphql/examples/users/update-email.md index 046937ac048..408a74972b4 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md b/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md index 93da33d805a..cb3c5b64830 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md b/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md index 9219aa1aea7..ac09ea19a4f 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-name.md b/docs/examples/1.6.x/server-graphql/examples/users/update-name.md index 01a53ce479c..ec7e3dc27cc 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-name.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-password.md b/docs/examples/1.6.x/server-graphql/examples/users/update-password.md index c95637c4ceb..95ef74c83dd 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md index 58343ae365f..c6afa54ba4a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md b/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md index dbcb076c659..d3fc7d5f378 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-status.md b/docs/examples/1.6.x/server-graphql/examples/users/update-status.md index ad05bc75fff..2499c1c2588 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-status.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-target.md b/docs/examples/1.6.x/server-graphql/examples/users/update-target.md index fe3444ede7d..1f7cc1147a5 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-target.md @@ -14,5 +14,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md b/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md index 0ba9c6967c7..d65c20a600e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md b/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md index 75fa73fb002..633931089fe 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md index eff6d4310c5..7a6a0d7fea5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md index 285d1e04bb1..3756edee257 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md index 3f9bda200b9..df021f9568e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md index eb127bd4585..ee37e487947 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md index e5fcbe95769..4a07e26e49f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md index b64fb7dda63..eb76cdca9bd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md index 47873c5af70..5b325f5c61c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md index 1f7c05c3614..14fb8126878 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md index 07937ab2570..9e49c62880a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md index d74106bbb79..f529ea4cb71 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-session.md b/docs/examples/1.6.x/server-kotlin/java/account/create-session.md index 861af3da091..5bcdf990596 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md index 4479cc69156..65c8e8be497 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create.md b/docs/examples/1.6.x/server-kotlin/java/account/create.md index 3bcfe1dff6e..d24bfb85925 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md index 5eec2424d85..0d6f860a636 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md index 7f3b6b9558b..06835f66807 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md index 687df8193bc..fd27d746b1b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md index 0bfa1f23f5c..11076e72d2d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md index f99634d71e4..c818c3ea74b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md index 46d41816c71..6614f92aaa5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get-session.md b/docs/examples/1.6.x/server-kotlin/java/account/get-session.md index 6d07a85b4a6..3f30d902562 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get.md b/docs/examples/1.6.x/server-kotlin/java/account/get.md index 6d0eb40cf2e..70e2dfb97fd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md index 8977a23b20e..ceb4b3099a4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md index e26cab9ad42..de22fcec6ac 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md index 74f3e53444c..d9f90a4127b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md index 6b01d445b24..557832df822 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-email.md b/docs/examples/1.6.x/server-kotlin/java/account/update-email.md index 391e5311ed8..8529ba6a26e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md b/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md index 58ac56bed81..d1b60c54739 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md index 62fe856fe0c..b4735f49eab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md index b492d8c4a32..947c85a2446 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md index 74ca4815d78..b9b0ae9db5b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md index 8f38ad83454..4b3e52700bf 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-name.md b/docs/examples/1.6.x/server-kotlin/java/account/update-name.md index 1ce2abfa122..749fe268afe 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-password.md b/docs/examples/1.6.x/server-kotlin/java/account/update-password.md index 437e825be54..8eaa08b4604 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md index c401de4c65d..cbfdca58ec8 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md index ddf786a2dea..998826544a9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md index 6a47fd10994..d54aa9cfb2a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md index 8c10ede3bd5..0e900d0a664 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md index be4301c516f..8ab16e18cec 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-session.md b/docs/examples/1.6.x/server-kotlin/java/account/update-session.md index 96e35069a91..8233c054f5d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-status.md b/docs/examples/1.6.x/server-kotlin/java/account/update-status.md index 7c42f35ba61..d5f4f794760 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md index ed8a40bc830..dafe6db4573 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md index 4cd18b69586..c87d5e9100c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Browser; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md index eadbf5de9aa..ddb53a67ec2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.CreditCard; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md index 9f519412aa7..f4e89cfadc6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md index 1b7f423ad87..aadf4267c9f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Flag; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md index af5f217e77d..afad760c385 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md index 4b00f730330..171b636f02b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md index 903e2b0d1df..113fd1fceb5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md index d959a65a9c6..7585471443d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md index 9a17b263911..8ec51e698ab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md index b35d4894e42..d95e048b090 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md index e05d1fe5de1..5231be33d66 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-documents.md new file mode 100644 index 00000000000..c788fa7017c --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +databases.createDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // documents + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md index 5a42e97c865..b2ecc99a170 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md index 59cbd46dc4f..44202086b0c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md index cdbdbb24d39..2263cdb5c62 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md index a3f09d43794..f3faec7fdda 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; import io.appwrite.enums.IndexType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md index 37e7f37352b..b084e7c9742 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md index bdb009374c0..ba62dba1d7e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md index f3d0f51f3d6..a67f4526478 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; import io.appwrite.enums.RelationshipType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md index 7d9d8d48f03..3286c7aa01b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md index 57ed89d8146..d445d67e333 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create.md b/docs/examples/1.6.x/server-kotlin/java/databases/create.md index 5b665108877..31cd37e1693 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md index 8f9d2f0e240..236d492adb2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md index 334e7adffb2..5da2a3d684d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md index a42b3f14b01..f6e6209f36b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-documents.md new file mode 100644 index 00000000000..e8394b1ff96 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.deleteDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md index 725045eb151..6f684357793 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete.md index 41fb72bb7f5..b0824913835 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md index 1b29312a678..672f0b062e2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md index 41bbb234b0f..59401be370b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md index 870642bb2c8..2719073a7d3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md index eb33b87f6d6..61cfe84ee46 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get.md b/docs/examples/1.6.x/server-kotlin/java/databases/get.md index b276da4eabd..b0e3742149f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md index 417fe6e5e47..9681831a35a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md index e12e1580d37..32534474e1e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md index 4fab62aeaff..36982c0eb08 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md index c26626531d2..8c912bb36ca 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list.md b/docs/examples/1.6.x/server-kotlin/java/databases/list.md index d014a70c7cc..758b9f75fe1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md index 45f2a0e9a4a..3c958510277 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,7 @@ databases.updateBooleanAttribute( "", // key false, // required false, // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md index 533d7a762b4..6805c1149d7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md index 14cbf5857d2..3f451b83f21 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,7 @@ databases.updateDatetimeAttribute( "", // key false, // required "", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md index 43c9600c58b..f7b05c96018 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-documents.md new file mode 100644 index 00000000000..b4138b41d22 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-documents.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + mapOf( "a" to "b" ), // data (optional) + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md index 6e3cd19c494..1ff12217ba3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,7 @@ databases.updateEmailAttribute( "", // key false, // required "email@example.com", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md index 19d47519f06..89606806d95 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -16,6 +16,7 @@ databases.updateEnumAttribute( listOf(), // elements false, // required "<DEFAULT>", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md index 663fc23098c..0076987f856 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,9 +14,10 @@ databases.updateFloatAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md index ff44d93b6ab..c39af22b362 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,9 +14,10 @@ databases.updateIntegerAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md index 740c8df27fe..44b4da2abc4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,7 @@ databases.updateIpAttribute( "", // key false, // required "", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md index 2beba613621..8af20e91a90 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,6 +14,7 @@ databases.updateRelationshipAttribute( "<COLLECTION_ID>", // collectionId "", // key RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md index 021b8e125c6..1f156f3dbbe 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,8 @@ databases.updateStringAttribute( "", // key false, // required "<DEFAULT>", // default + 1, // size (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md index 92d5c39b6c8..959054ab489 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,7 @@ databases.updateUrlAttribute( "", // key false, // required "https://example.com", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update.md b/docs/examples/1.6.x/server-kotlin/java/databases/update.md index f1e6dd3972d..9928dae6f63 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/upsert-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/upsert-documents.md new file mode 100644 index 00000000000..e2f2a46337c --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/upsert-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.upsertDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // documents (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md index ad55df1fcbf..a3f6cc5423a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md index 920998e6019..6e435f41fa2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md index 62c0634b60f..82d48fa55be 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md index a1d6c7b82f6..df2bb8ed3cc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create.md b/docs/examples/1.6.x/server-kotlin/java/functions/create.md index db0cc56b6bf..7137e40359b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; import io.appwrite.enums.Runtime; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md index f115bcc1916..1a6279ff3f9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md index 68c11bd4366..68f81e8ee48 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md index ca4d4f4440d..c881bdc8001 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete.md index 94c7da516fa..255fc002fa0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/download-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/download-deployment.md deleted file mode 100644 index 77e4809379c..00000000000 --- a/docs/examples/1.6.x/server-kotlin/java/functions/download-deployment.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Functions functions = new Functions(client); - -functions.downloadDeployment( - "<FUNCTION_ID>", // functionId - "<DEPLOYMENT_ID>", // deploymentId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md index 405ca5052a5..e2a07485077 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md @@ -3,9 +3,9 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md index f039beed2d9..b3000272b4d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md index 253ff54bd8c..76e302fa821 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-template.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-template.md deleted file mode 100644 index 1521fa47c1d..00000000000 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-template.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.getTemplate( - "<TEMPLATE_ID>", // templateId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md index 3d01fa49426..d54882b293d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get.md b/docs/examples/1.6.x/server-kotlin/java/functions/get.md index c22ccca5c62..aa55b93e071 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md index 9a1f1ef35db..16a10ca4a2c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md index f2faa02138b..7a2ff91d680 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md index 156e81feb24..304a90d0da3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md index 47d941c557e..e6c9c091d76 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-templates.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-templates.md deleted file mode 100644 index e88e19124f8..00000000000 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-templates.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.listTemplates( - listOf(), // runtimes (optional) - listOf(), // useCases (optional) - 1, // limit (optional) - 0, // offset (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md index 1e1e0e7c8bb..98c9ff45274 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list.md b/docs/examples/1.6.x/server-kotlin/java/functions/list.md index 1c501fd1450..a9a320660d9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md index 62b684fd8bf..5fc416bc40f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md index 8d285019080..b83e001c2b4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md index 4e0576ef103..d2bf6db692d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update.md b/docs/examples/1.6.x/server-kotlin/java/functions/update.md index c63dfb47ef2..5956c57b730 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md index a929468eba7..778892457b0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/graphql/query.md b/docs/examples/1.6.x/server-kotlin/java/graphql/query.md index 8182ea74009..e109d523f85 100644 --- a/docs/examples/1.6.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.6.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md index 6c1eb155ced..ca3abf71005 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md index 62880c9e809..24a584c04b4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md b/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md index 2a60a4c5b79..f4cb5a4e1eb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md index 703989fa1e3..c7a7bef9032 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md b/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md index 25f53b83374..d2b81bd0bfa 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Health; import io.appwrite.enums.Name; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md index 116da6f15d3..70210c42967 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md index a80a7452066..2ca5d7f4e4d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md index ee0d48efe44..519817ae460 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md index 7f34b19083a..2f175668eba 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md index 23ed2aff0fb..e65aa9a528f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md index 2fcfb8b60cd..720f114acb7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md index bcf6da214f4..09b0de4e63f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md index 7580db6b2c8..b1ae357aefc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md index 7b927d00b21..61c0b8cad7e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md index c1a9fadd197..0e7d669e7f1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e2f8062fcc6 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-stats-resources.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueStatsResources( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md index 59bd4069603..88bbbd339ff 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md index 360567a5533..bfda61a544e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md index 180c0cc87a2..d9aed66db64 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md index 55937b7dea9..0f36cf098d4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md index 99c7513fda3..65367cc2524 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md b/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md index 9bd63ca5c92..3a0f0f8ed3d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-time.md b/docs/examples/1.6.x/server-kotlin/java/health/get-time.md index 89ec655ea3b..f0ba668ab8e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get.md b/docs/examples/1.6.x/server-kotlin/java/health/get.md index e81254e8781..87a7c0a32d7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/get.md b/docs/examples/1.6.x/server-kotlin/java/locale/get.md index 8063ce161a2..2d5e0ac06d0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md index 4bc244a0c91..9f07d1dbf19 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md index 03b912200fb..5d9e4b0fdb5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md index 9a6ee54a716..232a0ef8cf7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md index cfab3be5db4..a4739a5b930 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md index 079a8397095..5b8f250f3c7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md index bab723f5be4..adf1d787c11 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md index b0435b7835e..c92ea525f7b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md index 5dde983120a..0f6618079f2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md index 753a89b695a..d6ab5ee1bfd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md index 1078514b6ba..636a1bdd39a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md index 4b2a7bdd3cd..272f9d2356d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md index 6cc120c37c5..21005293eab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md index 934f1faaa80..277ab9655cc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -11,8 +11,8 @@ Messaging messaging = new Messaging(client); messaging.createPush( "<MESSAGE_ID>", // messageId - "<TITLE>", // title - "<BODY>", // body + "<TITLE>", // title (optional) + "<BODY>", // body (optional) listOf(), // topics (optional) listOf(), // users (optional) listOf(), // targets (optional) @@ -23,9 +23,12 @@ messaging.createPush( "<SOUND>", // sound (optional) "<COLOR>", // color (optional) "<TAG>", // tag (optional) - "<BADGE>", // badge (optional) + 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md index 20e12749b2b..84c5bf42f9c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md index 60e1749f321..9e3e3bdf5d1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md index 3f69f610360..ebd153c29c9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md index 77ef2d59ff1..1ccb8fe60c7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md index f66081490b5..6b644994193 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md index cda11d5bada..477d7d8c4b5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md index 8fa74d8ede2..63a24b467d5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md index a122837691d..8d1b4da9703 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md index 808ca0c1022..db1e476db23 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md index e1337dc02fa..b0fa837feb7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md index c80fc72eb08..a3635b9db75 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md index 9c51144bfc2..7b598b25f4b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md index f90336a2ce3..1395a392455 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md index 5e940cff106..3860ff23470 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md index 74ece13b1b1..9717b90b7d0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md index 2e6beaac533..641a494b5c7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md index adf64bbec58..c9f2eff74b6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md index 70bb49ae859..0f94e46cd11 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md index 847ce73f5c7..006ba7c27f0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md index be1aba0eebc..5f77f2d03d5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md index feda90082ac..b069dda04c3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md index 30250e46880..b10e446a667 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md index d00d4925a0f..52ca5b0d010 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md index f1eeac02df0..5b9f40e8739 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md index c7edc92992c..b2e9444419f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md index 278d0d49089..e6408a60e1e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md index b9ac1a93f29..737a142495a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md index a5d98201f15..56e9767861b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md index 956900d7b8f..68c56ef18ef 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md index 8512de159c7..5547ae85758 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md index 74de7d25e29..d8e485629bc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md index ef04203c37b..b7038de6a40 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -26,6 +26,9 @@ messaging.updatePush( 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md index 79c89c0fc75..14a4e99f5be 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md index bfca7d32df6..c55cfdfddba 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md index e3083816c92..3f39661024a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md index 6ffb534a3cd..8181bf1c82c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md index d80b5ae5c74..bc156b7a31e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md index 1013fbac572..be9c44dc234 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md index 65fb0fcb7e7..ed58ee9a24d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md index 6548d1758bf..d5bfe3610c9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md index ccb9961b019..a3a33084206 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md index 92907fc4d93..583f8569a53 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md index 8c46ba9303a..eb77754f924 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md index 01d423d13a3..8976fd198f0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md index 63c847f1717..a099f33dd81 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md index 32bff0b051d..d0399f94e28 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md index 650ea4dff50..dd7c09d33b2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md index 5a81ebaca0b..1de4ae0317b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md index 004dc01f387..7a04c80e9ea 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md index 8ab56e32533..9d85957803d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md index 6fbd2c3aa41..f002754813e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md index 342174ead5d..2d80e2648cd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md index 3578bcd6256..7f325f91fb4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md index f7a4ecb66b9..89e9d96ef62 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/create.md b/docs/examples/1.6.x/server-kotlin/java/teams/create.md index e8fb127b3ef..28cc3dada1d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md index 0fe1e170cf9..3b414be028f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/delete.md b/docs/examples/1.6.x/server-kotlin/java/teams/delete.md index 74f5a7c26d5..07f5c12e4cf 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md index d013d913b2e..e7c1571af6f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md index 27cd6f9a8b6..6d308148015 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/get.md b/docs/examples/1.6.x/server-kotlin/java/teams/get.md index 0416602ae72..a479e9aff20 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md index 0260673a093..96944820083 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/list.md b/docs/examples/1.6.x/server-kotlin/java/teams/list.md index a4e85acc5c6..d0855ba8417 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md index 8ca3398e6ec..461cf4cbc37 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md index 60be82cbf04..d4816c57f1f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md index 8db6f04d91c..f2f1b02d93c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md index 91f1492e727..2ef05222df8 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md index 01275263dbc..c78f236cec6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md index c98939bf025..7b85f960548 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md index c4538b730d9..2b4d7e9c50e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md index 0456a775764..666e10792ef 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md index f9dfbe8fafd..62afec2a1fb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md index e97767887c5..048ba39ccab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md index 6a3869ce473..ad729071c2d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md index 28d5881f7da..77a7d5fdb39 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md index 43e1ad8db95..0e81237ecfb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-session.md b/docs/examples/1.6.x/server-kotlin/java/users/create-session.md index bc7dfb02992..8d9ce03d8ea 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-target.md b/docs/examples/1.6.x/server-kotlin/java/users/create-target.md index 6bad1ce682f..6681b170da2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.MessagingProviderType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-token.md b/docs/examples/1.6.x/server-kotlin/java/users/create-token.md index 9389e0eaef5..330b344b15d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create.md b/docs/examples/1.6.x/server-kotlin/java/users/create.md index 98891295704..95a72bf7e0a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md index 063a91da894..40c410db47d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md index cd5d9ab00da..7ed33d6d826 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md index 4ed2713d257..0e0a52baf80 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md index f0da6e09ce6..6a3bbbf46fc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md index ddd04602073..e38ee1d57dd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete.md b/docs/examples/1.6.x/server-kotlin/java/users/delete.md index 6a256f87e90..d207f9af4bb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md index be33d2095e9..940dafee903 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md index 3e36f166039..9ff3e4b3089 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get-target.md b/docs/examples/1.6.x/server-kotlin/java/users/get-target.md index 2ee5b4a965b..05c802835d4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get.md b/docs/examples/1.6.x/server-kotlin/java/users/get.md index 8c34ebacaf3..d8cd707c9c0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md index 169b41440df..e0fc9d122af 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md index f3d2701609a..86c94ee3a4e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md index 4f3cfd82bec..dc03be2ef33 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md index 4d51ece94b6..a377214d19b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md index a1d3a3a7d96..7e13cb31c90 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md b/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md index ab0457725a4..efa754273f4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list.md b/docs/examples/1.6.x/server-kotlin/java/users/list.md index a854ba0a791..d587eaf46b9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md index 7423f774848..a79c87b4d64 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-email.md b/docs/examples/1.6.x/server-kotlin/java/users/update-email.md index 23e3977db1d..24cdb00dff1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md index acc3d1b0248..379200a56b3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md index eb560e72e09..439561012fa 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md index e1fc96f8afd..76a198f513e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-name.md b/docs/examples/1.6.x/server-kotlin/java/users/update-name.md index e8bfe567cb6..b4f889cb6d4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-password.md b/docs/examples/1.6.x/server-kotlin/java/users/update-password.md index bdf31a7771b..94e24da45d6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md index ce2377be9b5..4a1d5a29003 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md index e0a0a4976fa..49477fad434 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md index 1d1cc7c5ba5..c5a9677a20d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-status.md b/docs/examples/1.6.x/server-kotlin/java/users/update-status.md index e757ece454f..6e875b982f8 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-target.md b/docs/examples/1.6.x/server-kotlin/java/users/update-target.md index 23ca8d0187f..67b90bfbacd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md index 932b8a75073..0ddc3835dca 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md index cc3b8cb3fac..9c7af95e131 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md index b56e48909fb..84acd78a9c2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md index a0208cb9117..4c04aa1215f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md index ba66695f15c..c1d8cba2cb2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md index 0afd790727b..803579da035 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md index 921e791154c..a3fbe25d755 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md index 270fedaf7a0..c21a382fcc2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md index 62d176d6b81..1a8c1188b09 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md index b9633e78110..be03e0659f0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md index 038d72e6f43..3ae45b39826 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md index 27c6af55fd1..949219cfcaf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md index 5e6c47cc1bf..5afb219ff0b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md index 0d42f8a919f..f3441c9bdd4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md index 19d7c12b5bc..80640ba8303 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md index f6ede24729d..f9a5ce0a129 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md index ffa853f3f65..2068077f46c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md index 47b80d77a5b..31096ccc653 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md index b2571de0212..dc29fb8aac0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md index 5335a0d0042..027c2112304 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md index 3705645a028..299abbd929b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md index 78478e1eb78..e40297e60ca 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md index 84f9bc3fe89..f65f4fd618f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md index f947de3da49..32eb86cb436 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md index ba926ae06e0..345b2f1f06c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md index ee07a486c90..ce47dcd752b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md index 7f23ad30179..899260cd5b2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md index c10c25e4ba5..6ebe5e7ec9e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md index 516f14d5cd5..e12e8e00e27 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md index 99b65ebbc93..d4fe7f4861c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md index 482dfb360db..521d133f6fd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md index 2a9a1a463d0..6b978b765ec 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md index ebc6d718c9b..31da824bbf4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md index 13f90197f08..ecb7a2bd2f1 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md index fbb67963d68..159aa79aef5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md index 1f6aa40ddec..1bcc4c09556 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md index 87cd3ffeb76..36a2d9c73bb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md index 1a2600c4f0f..1ee4cbd39b8 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md index 32d083b6b9f..dafee7c0e51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md index 8626e979841..e56381365d1 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md index 5f83a2bb916..ab3730af0e0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md index aa94adec109..021f6143c08 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md index 2f8cc25cef3..64020934100 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md index 0e29e1146d1..e9b95c9422e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Browser val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md index 9929e764404..8554dbd00ea 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.CreditCard val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md index 8cf4af26fe4..d1f5d9bfe6b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md index 73f3fefbdcb..011a7296b2e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Flag val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md index 1369000a46e..98b9c07e7fe 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md index 95499241a15..2aa165ccf8a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md index cea667bc933..abcf488cbb0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 64ac210006e..b80bd9497a2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md index 03ca6a4b748..de9679f5597 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d9e0771c9d2..2d730562a95 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md index 873e2edd48a..695fdbdfaac 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-documents.md new file mode 100644 index 00000000000..d9af7b000cb --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val databases = Databases(client) + +val response = databases.createDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documents = listOf() +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md index 5e5091be6bd..2a5a9c2a60d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 733fbadf449..d9decdeba9e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md index 04e9bfa17ce..5ca86a66af3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md index 6dab46fec9a..7ada0f743b5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases import io.appwrite.enums.IndexType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 6c483bbac61..748d01a849d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md index 76dd82dcb9d..bfc610517a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 4797b94c910..1bf610321a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases import io.appwrite.enums.RelationshipType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md index 06781f236c0..333cb76763b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md index 33cadc7933d..06057d46839 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md index c17246f776f..04c64801d2a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md index 8fed2d841c2..9a25155957d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md index 2c85947f379..c46ca086b92 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md index e920841a93a..a9eea6b648a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-documents.md new file mode 100644 index 00000000000..c4caa63aae9 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.deleteDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md index 8655b6bc678..37c75dcfe5b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md index 13c56605807..07225698e22 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md index 6a7ceb22103..a59facd7dbf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md index 79980c5db71..7f6e578db19 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md index 508e0dae37c..d21a19869b2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md index 3935c38ba6f..39ac7af9fbe 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md index bb6b17cd193..6ebb0c109c7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md index b3f26a2e383..5ddb0a6feab 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md index 9bdfa6e4d0f..5340903927d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md index 90cef399a2d..ed9cb3165dd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md index 6dd29ba2062..2ab2e6a1b21 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md index f7f332b91fd..cd61a0e714f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index f476bd18cd7..4c9fd91d83e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,5 +14,6 @@ val response = databases.updateBooleanAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = false + default = false, + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md index 7ceef8423b0..bd42ba07f47 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 88133b8698c..082ae1c05ae 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,5 +14,6 @@ val response = databases.updateDatetimeAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "" + default = "", + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md index 1737be1d3d7..4dd0349823e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-documents.md new file mode 100644 index 00000000000..9d6c2b5ea8f --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-documents.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + data = mapOf( "a" to "b" ), // optional + queries = listOf() // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md index 0599707b723..026bd6447fc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,5 +14,6 @@ val response = databases.updateEmailAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "email@example.com" + default = "email@example.com", + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md index 43a0230c332..e68a29c20a9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -15,5 +15,6 @@ val response = databases.updateEnumAttribute( key = "", elements = listOf(), required = false, - default = "<DEFAULT>" + default = "<DEFAULT>", + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md index 87501b7cc8f..58b110743e2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,7 +14,8 @@ val response = databases.updateFloatAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, - default = 0 + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md index 724c21b0c94..a00dcf95a0f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,7 +14,8 @@ val response = databases.updateIntegerAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, - default = 0 + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md index 68067aede30..505e5ea18d3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,5 +14,6 @@ val response = databases.updateIpAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "" + default = "", + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index 2ef905a5745..001dd1a391f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -13,5 +13,6 @@ val response = databases.updateRelationshipAttribute( databaseId = "<DATABASE_ID>", collectionId = "<COLLECTION_ID>", key = "", - onDelete = "cascade" // optional + onDelete = "cascade", // optional + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md index c89976c074b..364a6b5b7fa 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,5 +14,7 @@ val response = databases.updateStringAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "<DEFAULT>" + default = "<DEFAULT>", + size = 1, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md index 4848a3ec167..a628cc57f89 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,5 +14,6 @@ val response = databases.updateUrlAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "https://example.com" + default = "https://example.com", + newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md index 7da795cb725..05f832738a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/upsert-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/upsert-documents.md new file mode 100644 index 00000000000..7459b384a17 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/upsert-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.upsertDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documents = listOf() // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md index 6d20586e940..f835d93860a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md index aba8f0c5f73..ddc6e8b2073 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md index 42267458e0e..94bfa2310cd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md index e5d33b4f1a5..5dff26f80e6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md index d94bdf63787..72788784182 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions import io.appwrite.enums.Runtime val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md index 9e4e4762f1f..937fc961da4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md index eb1f59eda7c..95994f822ab 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md index 912e7699b6c..e1793675c94 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md index 97f0b0082fb..96517447677 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/download-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/download-deployment.md deleted file mode 100644 index 0ae36b314f7..00000000000 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/download-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val functions = Functions(client) - -val result = functions.downloadDeployment( - functionId = "<FUNCTION_ID>", - deploymentId = "<DEPLOYMENT_ID>" -) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md index 229ccce8f5d..5e9558e9fae 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md @@ -3,9 +3,9 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md index e844328f58c..eba4abb6df4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md index 5f981bfc4f1..480dbb76bad 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-template.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-template.md deleted file mode 100644 index 53d838f7e65..00000000000 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val response = functions.getTemplate( - templateId = "<TEMPLATE_ID>" -) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md index 8d6ee38cf21..95359ef8fc7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md index f56d8b9eaaa..162fa224977 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md index cf7deffa736..9318442afa2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md index 8f4546cb624..9f85f67f33d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md index a464156a1c0..5b3673b84db 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md index 8d86aa6cae5..0b2fb46a4be 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-templates.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-templates.md deleted file mode 100644 index 37dc89ce89f..00000000000 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val response = functions.listTemplates( - runtimes = listOf(), // optional - useCases = listOf(), // optional - limit = 1, // optional - offset = 0 // optional -) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md index 4876517279c..7f576e89573 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md index 9a585017da5..b10fdff53ac 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md index 6adb07a7817..839bbe6ff68 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md index fb95b08abc2..cf020d697cf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md index db9438c667a..ed6e4fffce0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md index d36c7610180..7f0b33ebd7a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md index d4d2fd2dc26..98081ab06b2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md index 79457c1e144..dec8dd350cb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md index c84072504b9..869b4c48044 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md index 20ddb89ad3b..8b72ec414f9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md index 714a2709a90..74bf6187040 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md index c707be39110..a55a1146f4f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md index 5c5497a4c06..027df127cc7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Health import io.appwrite.enums.Name val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md index 8a69bc7be69..53c38202329 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md index 4d0cb3a0e6d..371aad90f8f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md index 1b07df680e8..5c6adeecb53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md index fb1dce69f80..3a3405830d2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md index d3f11862424..5d0b8a33814 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md index 2a045955cba..7a42b61ba51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md index 6467a390ad6..151025bfb64 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md index 143dc409aec..f5a905dd735 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md index e85e4258327..4a837928ebc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md index f287e78d4a1..853d294ed12 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..6a76f528e27 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueStatsResources( + threshold = 0 // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md index a1b1a30b3ce..4a39357b6cd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md index fcfcf108e13..e344b9eddc9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md index 6452f1a76e9..f5ffc58d8d0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md index d24e8c43e38..671a7565027 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md index b2c9987353f..32a21aea0a3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md index 7038ee2b5a1..8af609aad90 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md index 7c50ae424b2..8054ed7c697 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md index c53445ff991..0845320bb5e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md index b8dc768a0df..6840259c27a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md index 784e688f4d1..fd0c4e413e7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md index 6cad16e4a92..699d599f569 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md index cfec468dd5c..13e86f30641 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md index 06585ad248d..b660ccf4332 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md index 7789bbeff50..3457ceb4c52 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md index 6c7f7097d3b..80b2cc7e52a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md index a20096e3352..b36c1389a53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md index 8a58fe8672c..a19cbe2725a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md index 02b0651b681..f0f41e9e531 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md index 779596cd78f..c1a077ca5c3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md index a73a27ff08e..d205171dfe4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md index 31eb606e288..5ea3d223e90 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md index 6a95f63992d..5b07f5355bd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -11,8 +11,8 @@ val messaging = Messaging(client) val response = messaging.createPush( messageId = "<MESSAGE_ID>", - title = "<TITLE>", - body = "<BODY>", + title = "<TITLE>", // optional + body = "<BODY>", // optional topics = listOf(), // optional users = listOf(), // optional targets = listOf(), // optional @@ -23,7 +23,10 @@ val response = messaging.createPush( sound = "<SOUND>", // optional color = "<COLOR>", // optional tag = "<TAG>", // optional - badge = "<BADGE>", // optional + badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md index 34f61c9889b..e96a052d5a7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md index 6fbcffb09eb..49185290c34 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md index 17643dc6a54..ae3b6678e4e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md index 805cd583279..44e3a72a1d5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md index 1d44fcab2a7..cddd6d801a0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md index d88b9bb9d0e..12eb62d957e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md index 6a6b9bd4b27..570be33e41c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md index 3df99e97dac..c05b835d521 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md index 59e5d149fe3..7e049d8313b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md index 3ecd64deab2..4989da8cd30 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md index 4a7c18faf99..0f99f251a31 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md index 4859c0a621c..8a52c9f9a58 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md index 0b925ca8a0e..7e4ec51c93a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md index 01db389b24c..710d356113a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md index 53e5cf32d56..c678d4d984c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md index 036f17f757d..59b335a2e6c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md index 09d36884f3b..c189898e95b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md index 30489041338..e1463f8911e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md index e9e509e4c9b..618f8c493ee 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md index e0a52cb402d..ab0a9f12602 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md index 66439e2a4c6..34c70a9c86a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md index 5472d5f46ff..8a82af8f703 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md index a95e8543289..acf5249900c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md index a99e8226d18..ad500f0e382 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md index 7b7d2f03840..683b4180325 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md index 4550f1e6589..125c6ffb822 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md index 83a60830b14..d0d5a07848a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md index 29baf1896d5..cd74bb4290d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md index 4d8534c2c47..477e7188d89 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md index 9caff421c84..4bec8d2a44d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md index 1a6a0b49ad9..3abaca75bb5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md index d91694e1bcd..710a37e5184 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -25,5 +25,8 @@ val response = messaging.updatePush( tag = "<TAG>", // optional badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md index 353cbd01801..962aa694e61 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md index 7f008e8dbe6..3d08b8a16c3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md index 465d76b4da4..cb745865ec0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md index 9a4d93e9c33..83fb11a8568 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md index 14e8ac51029..1e2ee1e2c8f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md index 68e894973dc..0991fd0ee46 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md index 2c7a5e8cf9e..1c86f9e853e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md index 4d432f73108..bf0ee2b75cd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md index 0c0119e556a..0bca8278728 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md index a2203ff6862..b22b32a6653 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md index 22981035d1a..4a0904ec636 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md index 5b17c5c8b00..cf5e285db35 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md index 604ec05a26b..e2a6a8f527c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md index 46b02e77302..f3422f958df 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md index 88be42f6f58..8c37ce832eb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md index b4ad81fcecd..cf8cde33c4c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md index a6d2d3d85d7..a807177dcec 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md index 4b22970641e..a8a066dc9f8 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md index e7c3d664388..cb9a7767757 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md index 4040dfb4f9d..d475a6e5ed3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md index 96d4b08f9ac..e82ea8125cc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md index 250502ecc96..33eb16568ec 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md index b66029f08ea..6ec7e533d2d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md index 0dff54515ff..48c924f37b4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md index 9a75b2ae72b..4b70ff2f188 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md index 77c6ae5d1a9..a636c217dab 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md index 2700c893ae9..2b73432d6c0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md index a7be374a46e..72b667776f6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md index 916252dd617..287087394e2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md index 5af95dbfc7f..ee3e3e43b4c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md index 75c4a73731b..b7a0d51ec51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md index 556e0a3394d..7a4377fb4de 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md index 8e6a2a237c1..2f13d7c4608 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md index c9153d359a3..62c7f01ca5d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md index a01f6d54c3c..27008a0415e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md index b4758e4aba5..c7231307cfc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md index 137847d13b1..a556a901c53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md index f9d7cb2f120..27b985920c9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md index b3a3950f545..2d1dbf0a1df 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index 87d74aac8bb..5441e49e6c2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 0be03bf8a00..17a157b2cd1 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index f651d3fc586..814883cae56 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md index 2502312f55b..619525a7992 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md index 4b0e5dc277b..a67e6051213 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md index 4a7856bd61c..139c6ff0499 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.MessagingProviderType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md index bd8f76d9be2..43492f47473 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md index b5bcee929fc..27ae85ae6eb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md index 2c0bfae3bcf..37b4ed2e71d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md index 60989d4c6a7..22085b2f725 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md index 0127fa3183f..e9e3c7c55e6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md index 26d7c703d9a..6288e1bc049 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md index 6be6652c32b..f93be0677a2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md index e250c44b7a7..b938ac70d18 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md index 5860b4cca68..e0c45dc2581 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md index 76545377081..927a4a43a19 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md index be8bbe81cab..556349c6844 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md index 829843065ba..70f0ee9d5fa 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md index 05156dbe935..1ac0e5b887f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md index 8868d0d30bd..a263293a7a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md index 5a3d2ead352..528b69c5e8e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md index 25d9a4a1127..4eb6721ce51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md index c14ebd7b829..4ff34dd53ed 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md index d017592a863..0824acfd9e5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md index e86ac0de468..23dd217a6cc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md index 3f5f2937e5c..ebf2232f3e3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md index b7a06443380..a617705dbb2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md index ecc29480a8d..86f536f7281 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md index b8fa2c503a5..74602c0f7e9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md index a169f3df781..0148d582b8f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md index 32d164df29a..fedfce36bdc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md index 152226767c8..4a0ad576e18 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md index bc8f4c626fd..6520ef4c956 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md index f00a15d0151..7261f95db53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md index cc8dcf6e742..451f4ff4c6d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md index e546ba5705a..a69ae30dbcd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md index 1827c6a95b5..a18fc63bcbf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md index 90a916143da..d8590b03cb8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md index 34aabddad7a..6c940f54355 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md index 0f218a2bc02..b6be71d45c9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md index 673e1e077a5..2273646635f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md index cb6ef36732f..6dbdc3d9fb6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md index 0305e029917..e52658b5339 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md index 301d83d0405..79d5e89eeda 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md index c653ae55b20..42b3c8c6f53 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md index 7538a9d01ac..adae095105d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md index 04d5bc08c2b..aca0bd2d8a5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md index 15dcf8a15f2..f7c87f0675b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md index ed83848e7ea..660942affb6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md index 8b2751b1a5f..8c6b910089d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md index 14456ef69ff..1f1db27e8ae 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create.md b/docs/examples/1.6.x/server-nodejs/examples/account/create.md index 860e341a470..85e3d2fccaa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md index 071133465ea..0424ab247e4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md index 1cf8154acd8..5979c3a6d7e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md index d29810f2674..4276ccad245 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md index 496bd4a5f69..884c0e0ebce 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md index 2bada1bafa9..27f902424ed 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md index 9ed003c69ae..d0d7d31aaf5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md index aeaaa149336..63b6f0893a4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get.md b/docs/examples/1.6.x/server-nodejs/examples/account/get.md index b1fc61f1ee9..6ebb605ae8e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md index 642034d796a..c49894c8c0b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md index 08dcf812f40..4260a72e30e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md index e2c9683ee69..a993e31aa81 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md index a8b423f95dd..33fb527415c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md index 4c0c6c23fb5..6111f0e52a6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md index 30c36230ac0..58629cda3bd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md index 56d2b02f049..3e059d88d96 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md index c8f1773daf3..7b24dc87121 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md index bdb1a538afe..4d309991298 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md index 16a3d3cca16..9db82175c96 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md index df510029d31..f47d215288b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md index 76021bcb89a..aa9d67aede3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md index 40fccba90e3..c208714a373 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md index 93f35a8d3e4..116d171c92a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md index 11982b7c816..c6c02fde9ab 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md index 6f2700358d1..ee8b0426938 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md index 09bfc64d427..bd4a87c3a90 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md index 64ec68ebd9d..be80c857504 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md index cf65e828651..1b70af53780 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md index cc3678ec213..0abb562a95c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md index ad6d0d4b686..3bcd70d0f26 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md index 5ffcc344b1b..a60c2da86e6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md index 09804035435..6056354e9e5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md index 53b912f5a87..df0164d2805 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md index 5a72fe3bcc3..7dac2423ba4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md index b9d41fc27a1..2cd45bfac8b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md index 0a2723561c3..cfd649ea33c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md index 7a04ed02fce..b6239698a50 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md index 7119a4e500b..fc5c798385f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md index ba40de8b43e..4c7328ce4bb 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md index 3e1c76945ba..a2e77b9241f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-documents.md new file mode 100644 index 00000000000..cc8fd01a603 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new sdk.Databases(client); + +const result = await databases.createDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md index 6f2da81f39b..47b27508cdd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md index 9439f8f5df8..61c1d77f2c3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md index 7ed62239229..3e605001e6a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md index 73cdf3912e3..bd616222a62 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md index 479b9d87549..ce62624001d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md index c88087f9441..e3bbffe2273 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md index 7be4bae6a23..bb77bc00c39 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md index 03905f4e86f..94793e86db6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md index 741249bb00d..6b6b1daaa08 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create.md index 792bbf1c901..c1fd4eca43f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md index b8b2d47a65c..8291fc095e5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md index bb72b9eb84b..9551c558fbc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md index 05183b5e042..526f00eb3a1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-documents.md new file mode 100644 index 00000000000..01814e50528 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.deleteDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md index 0f50d7d2f6f..90353ea44e2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md index 79ca89ddba1..65179d2b2a1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md index 86dccff42bc..8757265edb4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md index f107c149c66..79c5674985e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md index edd2cb210f4..eee515bf366 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md index 3c1039cd1ed..a4b3a45eb86 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get.md index ca5dd328e1e..a8e80846739 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md index fb0264f8a11..e7b48fb9f06 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md index e5f725d1f80..bc31eadf9b9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md index 346fba0abdb..d2514850d80 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md index 7acfc918ef1..86c6c26ec68 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list.md index f887719cbd3..06fe6a8462c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md index ae4a91cfc22..d0d551c3fdd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const result = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md index b9bbeb8c45e..2618fc735e2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md index 9dfcf7541c5..d2378f93caf 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const result = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md index 2e087ca7d06..96468037e78 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-documents.md new file mode 100644 index 00000000000..62b2271bae0 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md index f42c464cc10..8b7afbebb54 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const result = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md index e8dd97d8c31..f328132519e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,5 +13,6 @@ const result = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md index 67cb29ff92f..abb93c28faf 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,7 +12,8 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md index baf374e2408..e126f31fd86 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,7 +12,8 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md index 64bde38bd22..1c8ac79dd80 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const result = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md index 403f591decf..1a7a26cc92d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -11,5 +11,6 @@ const result = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - sdk.RelationMutate.Cascade // onDelete (optional) + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md index c21784b79cc..0e0656ef10d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,7 @@ const result = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md index 6a8434a046b..4a2aca0fe98 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,5 +12,6 @@ const result = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update.md index 4b24cdddf90..9c69bfd2cee 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..5b4795627d4 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.upsertDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md index c026a960c63..c9434c070c1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md index 1928e4c5a93..5ede9549073 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const fs = require('fs'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md index 4eec409ef09..3c89030ca61 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md index 60a93666b89..7146591b714 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create.md index cb4464825c4..90b4300e0ac 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md index a9038bc6eac..f6768ec7397 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md index 28b5e415b97..c3e77a68600 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md index f3cf0186d00..7840b1d562d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md index 43acc4b130b..a2e0a23a2bf 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/download-deployment.md deleted file mode 100644 index e0962db0ed9..00000000000 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/download-deployment.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const functions = new sdk.Functions(client); - -const result = await functions.downloadDeployment( - '<FUNCTION_ID>', // functionId - '<DEPLOYMENT_ID>' // deploymentId -); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md index 519a89102a2..cde26a43f66 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md @@ -1,9 +1,9 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md index 1c10a92d4ad..6a55534af4a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md index 7be4378c4e0..b9fed557991 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-template.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-template.md deleted file mode 100644 index 36195db7f34..00000000000 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-template.md +++ /dev/null @@ -1,11 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new sdk.Functions(client); - -const result = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId -); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md index 64150e0f552..3b6135f7dcc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get.md index 26807e7908c..b88609252e3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md index 67c3c3c5ad7..731d1c46cfc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md index 26aa02e16e8..81e2379f768 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md index 729cce7c2b3..a0f83b2273a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md index 4942bc39187..f918c44053c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-templates.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-templates.md deleted file mode 100644 index 6f896cac97d..00000000000 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new sdk.Functions(client); - -const result = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md index f213d0ceef1..4220918fa62 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list.md index ba7365f936a..af5082c25e8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md index b492af8254a..7b5594c0daa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md index 82543900df7..e27bad4df52 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md index 657b0bd10ec..e24ff882149 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update.md index b82dc35f368..b6de177cffa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md index 64b2393426e..8031a5285a4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md index 24a6e56e67b..15456754cbb 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md index fc98ff937c8..9efa2d803c0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md index 9289cad7e44..014340123d4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md index 637f30bd211..ec9129344c8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md index 6cca907ba35..0d86d08d1c5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md index 2ce2dfb6eb1..d88b7f2bfd1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md index 36dc5ba39e9..b5b97374d5b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md index ef09f92d929..929f9769fbb 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md index 1095c398201..33e71ecac69 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md index fcd113aaa3d..ca409c1ba52 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md index 6a6f5175d7e..9f2d6f8cf50 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md index 05cd6e63dc9..0392db1079c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md index e0a75b8de01..a71ff133978 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md index 253e9ba004d..8c45c1a1943 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md index 3db1f6f5aee..46160a0e885 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md index a2034495376..5f8d262e301 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..1b16e6d5b8f --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md index 412015c678d..b26b6c330b9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md index 919d0973e25..2a20620cd26 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md index 54b6ba4dd2a..acc2098365d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md index b63d2f1afcd..0cbda6383f5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md index d04610df9b6..0ea8e0e27f4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md index cd6d494d846..d199800559c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md index 71caa3ff8a5..cd4f42e33e4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get.md b/docs/examples/1.6.x/server-nodejs/examples/health/get.md index d92cb944aca..e10c4e28f52 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/get.md b/docs/examples/1.6.x/server-nodejs/examples/locale/get.md index eb7353d3a8f..d57eb8f241a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md index c95a8522389..280d14ae6ed 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md index ffce38e71eb..d04d6d6a476 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md index 3bd63b33a6f..6e41074b613 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md index be39d0f87cf..9621e9cbfca 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md index 5496a1f747d..a81b1581f39 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md index ff67f9f78e5..a585fd33ae6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md index d6753d33544..aea0fadf896 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md index fedbc556e32..a28309023a9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md index 35ac684b93e..b4b1f6622aa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md index 80ffa5839a1..a8af6ba12cc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md index 2b5f657182e..ee49f64f7c7 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md index c8dcb38592c..e7075dc3b8d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md index 54103e11f79..bd89f761fb5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -9,8 +9,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md index 65d4f4026af..8cde02e80c3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md index 75dce904f27..226f47c8d48 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md index 9c69f276711..50a8d202c5e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md index e5d2a9774c0..9874d072b89 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md index 544be15a2c6..b8771721632 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md index ef41b803af8..b40d5ee4e75 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md index 22fe4121ceb..35c93eadca0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md index 908f09ed1d7..4dcb9a841d2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md index 78270b7f841..493cd2b6602 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md index fd664515fe4..23b474f787d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md index aec3a7ed5df..1f5e21af933 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md index 7b4a360e8c4..af39f73491c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md index d4f8bfcc6d1..fd49104a496 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md index 7b466226854..f83ab51c231 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md index 796bcbc768c..2f52698bfc9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md index 3930e54bcbe..5132f1772a5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md index 68fda14e940..98e38383d4e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md index 01b941b652b..56e1288af7b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md index 4c0ee7a3072..db0785ece85 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md index 625fedb2b93..6cb2a01df48 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md index 4d3a63b93e8..aefb41d15ab 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md index 61077f299d5..8d46a085787 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md index 85b91ca5fae..167b48e978e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md index cafdf9bab1a..971285d87cc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md index fe0a09487eb..39e82954d1f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md index 5d0419a7a56..6fd94bba42e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md index 23d806e0138..e782b8c3f7b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md index a6798eeb6c5..2ea2941efd7 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md index 3d343993aae..9184f283d08 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md index 5bcc4d1ae47..a1ac18fd602 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md index 02f091f3d75..c66b91f8c0c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md index ec87ecf7cfc..db52bee3734 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -23,5 +23,8 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md index 22a5fe59643..8420a2fac29 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md index 03c266be58b..98ee6feb236 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md index 35b744347bb..0bbe4cd2cbd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md index dd668f82c5c..2f23a3b11f0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md index d90c95d845b..6fb6c82e8f0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md index 08690a195e1..63309700779 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md index c6d2b8c0777..e4667f56ae2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md index ba9f1029509..b95398b4ea5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md index 91a5126e901..fc318f169d5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md index 067307cc5d8..b84d9ac6535 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const fs = require('fs'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md index 606ffba7197..c2067efda2b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md index c5b9df92960..4d2e7128cd8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md index 711753d4095..c8a0b1c55df 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md index cbd4c1615c3..051f51c842b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md index be7b974be83..45da053c504 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md index f5722d06cd5..fd06b3088ba 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md index 61b14e6bbac..1a6b500013a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md index ce012c450e3..3c4d4b14f74 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md index a9dbaa8f80b..fb595efc05b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md index 31e131675fa..24e4872d8de 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md index c60b2e4a8bf..7eed687cf51 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md index 46066241578..7994423be04 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/create.md b/docs/examples/1.6.x/server-nodejs/examples/teams/create.md index cecf4f60241..94de494bf0a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md index 933cd7ccf8c..5264af7f134 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md index 50963b3e1df..151bfb3f70d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md index b638adeb125..a8e9fc73112 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md index 68f19a41173..18afdaa67ba 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/get.md b/docs/examples/1.6.x/server-nodejs/examples/teams/get.md index 38ee6e4c41b..8afc800aa96 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md index c66ec7d601a..4fead97b8f0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/list.md b/docs/examples/1.6.x/server-nodejs/examples/teams/list.md index d50527bf127..17fe5852244 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md index 80660e94f9b..74fd9580fe3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md index 068cc55bca2..649630ded9b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md index 217412020fe..571f7ce399e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md index 9d6a6f5f87d..b054694df5d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md index e96a797d052..dce3646a48e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md index be14d217a03..d010676d299 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md index e615b1ee5b0..a2c9b590561 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md index 77a7d70885d..954374c37d3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md index 42945293c12..8b2ed93b237 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md index a5784d7ded5..eca31fe659e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md index a72e373040b..e7d8588fca7 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md index b27fe318aaa..831107b5694 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md index 60b61be49f6..2c2da7e0554 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md index 2672905ef78..9d8cc03ba0f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md index 099b00379bc..7b9e6b03472 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md index a399313104f..de7d866e8c3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create.md b/docs/examples/1.6.x/server-nodejs/examples/users/create.md index e8fb4cd9270..025c15ada10 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md index 46f5203da1f..4c92f27d253 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md index 1f00e963ea1..456242e22da 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md index 168f4948bce..3f08370f3b5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md index 4c320fc4a7c..48714a0db1b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md index 6505a8bb49c..ba7e6afd9ce 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete.md index 4d6c9963e75..8fdd9e90b8a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md index 3e97065fa1d..233c3375eca 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md index fda205b04d0..61933872e4b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md index 1d93a1b1623..00dc1f118b1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get.md b/docs/examples/1.6.x/server-nodejs/examples/users/get.md index 9d361573253..640aa6315c5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md index 0ba1345397e..819b1688efe 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md index 5636e021b93..c1155d55e25 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md index bc4ce5e8b75..080688a9f68 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md index 6396a694e50..8bffa288343 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md index de4aa3d424e..51ba0814c49 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md index 2d2a6d26c4e..d991dcca73a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list.md b/docs/examples/1.6.x/server-nodejs/examples/users/list.md index 664d32c625e..2bf765bea29 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md index 560ca3e870b..9dac2d0e548 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md index eef17615ee2..0a8b1aa7af4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md index ec27094275a..db9e8778adc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md index 56ef9b20222..9d470853703 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md index 7c7944429a0..b4acc79938f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md index 5478a78bb06..581e57b7556 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md index 856e3a8576a..f4af49d67e1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md index 654e7833d00..ecbe7591dff 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md index 8cc4af0513e..45e5a6582aa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md index f80dae11786..bb7eff8d6bd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md index 04a18a26365..57f64ce9426 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md index 3322867dba9..c6e4d9a1b00 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md index 4cf953855c7..b3e811e18d9 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md index b0e4d75c900..827b1292c54 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-email-token.md b/docs/examples/1.6.x/server-php/examples/account/create-email-token.md index afa9bc90940..b2c553291b0 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-email-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md index 2658a66f2e6..3dc486502db 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md index 1ac0087c57e..639b1997569 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md index 7833852043b..da3b4634e0c 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md index a58d674d301..faa679fdf1d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md index d82a97ab0a7..223c95be973 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md index 21b9ef1313d..1f91db79fd9 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\OAuthProvider; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md index 72462ff1752..93c185479ed 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md index cb81da53af3..a152667313d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-recovery.md b/docs/examples/1.6.x/server-php/examples/account/create-recovery.md index a924379cd49..c15e41d545c 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-recovery.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-session.md b/docs/examples/1.6.x/server-php/examples/account/create-session.md index aa089ae586a..2ff630a2c27 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-verification.md b/docs/examples/1.6.x/server-php/examples/account/create-verification.md index 99929f1a2a7..4628175fab8 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create.md b/docs/examples/1.6.x/server-php/examples/account/create.md index 2b25cde4575..f92155b6ab5 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create.md +++ b/docs/examples/1.6.x/server-php/examples/account/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-identity.md b/docs/examples/1.6.x/server-php/examples/account/delete-identity.md index 31e5f429468..fd66d3ae24b 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-identity.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md index 5367409d4a6..42806f8358f 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-session.md b/docs/examples/1.6.x/server-php/examples/account/delete-session.md index d44aca87fa7..9233ae14e8a 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md index bf9e5c1fdcf..557fd6d3aae 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md index 43c3f06b375..bafd6d85207 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get-prefs.md b/docs/examples/1.6.x/server-php/examples/account/get-prefs.md index 808699ab445..c7077affe08 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/account/get-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get-session.md b/docs/examples/1.6.x/server-php/examples/account/get-session.md index dfd1c23339e..be2671348ec 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/get-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get.md b/docs/examples/1.6.x/server-php/examples/account/get.md index 427632d2d0a..30cb7b2af58 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get.md +++ b/docs/examples/1.6.x/server-php/examples/account/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-identities.md b/docs/examples/1.6.x/server-php/examples/account/list-identities.md index d9289212770..a7d0a85c660 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-identities.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-logs.md b/docs/examples/1.6.x/server-php/examples/account/list-logs.md index 72199a2d957..cc7a173d2e0 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md index d670b97c8ab..6756573cdb4 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-sessions.md b/docs/examples/1.6.x/server-php/examples/account/list-sessions.md index bbc1b788abd..7f9749f7be6 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-email.md b/docs/examples/1.6.x/server-php/examples/account/update-email.md index c5fd462047b..c7c0d485eae 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md index 9489b96a150..a1978e63ac3 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md index e80adf9a865..fc42cbe6d1d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md index d3c36a3a9ff..6a09d95a101 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md index dcc5dcdf514..03ace31144b 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md index cf6204a3003..c7ec6cb2b27 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-name.md b/docs/examples/1.6.x/server-php/examples/account/update-name.md index a55a0767916..2603b6e68b4 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-name.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-password.md b/docs/examples/1.6.x/server-php/examples/account/update-password.md index 9ef275701c6..c5101381e4e 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-password.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md index 973d29d04c2..12d71c2fcd1 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md index a1164474c08..df59922996d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-phone.md b/docs/examples/1.6.x/server-php/examples/account/update-phone.md index be489f7d640..853cb62fce4 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-phone.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-prefs.md b/docs/examples/1.6.x/server-php/examples/account/update-prefs.md index 0d47ee89573..698da0fd8a5 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-recovery.md b/docs/examples/1.6.x/server-php/examples/account/update-recovery.md index 523a61779e8..63518b00297 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-recovery.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-session.md b/docs/examples/1.6.x/server-php/examples/account/update-session.md index 3eebb12c3c9..11cb4c7d980 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-status.md b/docs/examples/1.6.x/server-php/examples/account/update-status.md index d343c95f2a0..7c8075e5c7e 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-status.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-verification.md b/docs/examples/1.6.x/server-php/examples/account/update-verification.md index a03e87fd96e..60ec0b3196a 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md index d7e7e76e857..c65c31dae31 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; use Appwrite\Enums\Browser; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md index 55e2516f31d..1f19ee2797c 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; use Appwrite\Enums\CreditCard; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md index 5f5c5d7d5bf..1e671864c84 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md index 2e5e4b648c8..8ffb39c30e4 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; use Appwrite\Enums\Flag; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-image.md b/docs/examples/1.6.x/server-php/examples/avatars/get-image.md index 0ab77fea0d7..e1555453ec1 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-image.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md index 2bd0bbeb398..d84e23a157b 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md index 05f8128c911..0d5936af6b7 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md index 823dd033452..805d0221949 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-collection.md b/docs/examples/1.6.x/server-php/examples/databases/create-collection.md index ae886b9f7d8..700d97177ba 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md index fb3ce709cea..dd2fcecc80e 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-document.md b/docs/examples/1.6.x/server-php/examples/databases/create-document.md index f68ea8104dc..bf1ee3f62ae 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-documents.md b/docs/examples/1.6.x/server-php/examples/databases/create-documents.md new file mode 100644 index 00000000000..0ca02bfa03b --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/create-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$databases = new Databases($client); + +$result = $databases->createDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [] +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md index b2f7770f4e0..1274a4b9e1f 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md index de2553ce82f..9abf2dfa1b6 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md index ad534aa4bef..e6eecb52980 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-index.md b/docs/examples/1.6.x/server-php/examples/databases/create-index.md index 7f95d3f8185..1d01f09ccaa 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-index.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; use Appwrite\Enums\IndexType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md index fb481188e76..1dbeefa5476 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md index d40e23729e8..f42717caa46 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md index 4b353f1897f..caccd360318 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; use Appwrite\Enums\RelationshipType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md index a04dfba7e01..5a4f72b6c83 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md index bfa8af0058c..6b9bc800e59 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create.md b/docs/examples/1.6.x/server-php/examples/databases/create.md index 3b9881a60ac..73c618874a2 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md index 2db4c762113..71b71626555 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md index 4af5130647f..4e98dfdb4e0 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-document.md b/docs/examples/1.6.x/server-php/examples/databases/delete-document.md index 05a3abbc68b..def7f24569f 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-php/examples/databases/delete-documents.md new file mode 100644 index 00000000000..3552d85317e --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->deleteDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-index.md b/docs/examples/1.6.x/server-php/examples/databases/delete-index.md index 67cda1205f7..79e476b6d04 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-index.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete.md b/docs/examples/1.6.x/server-php/examples/databases/delete.md index 2480a7c825b..c796b7c4063 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md index a9dad4bc407..ba82db4065d 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-collection.md b/docs/examples/1.6.x/server-php/examples/databases/get-collection.md index deeddec4ad7..ecddab053de 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-document.md b/docs/examples/1.6.x/server-php/examples/databases/get-document.md index 851e2d57479..a3204c50a74 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-index.md b/docs/examples/1.6.x/server-php/examples/databases/get-index.md index a6e60f599dd..e9c63076715 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-index.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get.md b/docs/examples/1.6.x/server-php/examples/databases/get.md index 7234b2369f4..9aa6395587f 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md index fb53eae371e..3105fc419c5 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-collections.md b/docs/examples/1.6.x/server-php/examples/databases/list-collections.md index 941e4a6e577..533b26a0554 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-collections.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-documents.md b/docs/examples/1.6.x/server-php/examples/databases/list-documents.md index 6ccddf60932..07183ac8bf6 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-documents.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md index b3935fc10ad..65b45dae807 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list.md b/docs/examples/1.6.x/server-php/examples/databases/list.md index d5d078f8ece..6bba74da59b 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md index 1b3355a3e2d..2e4bee72fe1 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,5 +15,6 @@ $result = $databases->updateBooleanAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: false + default: false, + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-collection.md b/docs/examples/1.6.x/server-php/examples/databases/update-collection.md index 790bb2b9c80..dd030c07923 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md index 978cde0a050..b1a03ec0280 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,5 +15,6 @@ $result = $databases->updateDatetimeAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-document.md b/docs/examples/1.6.x/server-php/examples/databases/update-document.md index a1b70187111..f1c8a346808 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-documents.md b/docs/examples/1.6.x/server-php/examples/databases/update-documents.md new file mode 100644 index 00000000000..51b4e18bc26 --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/update-documents.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + data: [], // optional + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md index 1623b64ab1f..dc9865f81a0 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,5 +15,6 @@ $result = $databases->updateEmailAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com' + default: 'email@example.com', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md index 8a8d035761d..f7cd0b7b836 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -16,5 +16,6 @@ $result = $databases->updateEnumAttribute( key: '', elements: [], required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md index 105ebc69751..51f6ec92399 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,7 +15,8 @@ $result = $databases->updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md index 65bed51ca05..bdbd96ca120 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,7 +15,8 @@ $result = $databases->updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md index f7ce1a60330..130cd0cc9fd 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,5 +15,6 @@ $result = $databases->updateIpAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md index a0ba877e528..01783cf3bfb 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -14,5 +14,6 @@ $result = $databases->updateRelationshipAttribute( databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', key: '', - onDelete: RelationMutate::CASCADE() // optional + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md index 08c5c5e0b13..e0c8f992eae 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,5 +15,7 @@ $result = $databases->updateStringAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + size: 1, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md index 95951765231..c2004638945 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,5 +15,6 @@ $result = $databases->updateUrlAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com' + default: 'https://example.com', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update.md b/docs/examples/1.6.x/server-php/examples/databases/update.md index d9bf5e97382..9b0b0789caf 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-php/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..7b9459e8f42 --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/upsert-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->upsertDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-build.md b/docs/examples/1.6.x/server-php/examples/functions/create-build.md index 429653c3c57..1b081ea6052 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-build.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md index 90f4c7ed18e..7e48b89ca71 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ use Appwrite\InputFile; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-execution.md b/docs/examples/1.6.x/server-php/examples/functions/create-execution.md index 4c62b9afc0a..9aeb976cf3c 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-execution.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-variable.md b/docs/examples/1.6.x/server-php/examples/functions/create-variable.md index fc1ee4afeb1..ecc1f1df8b7 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/create.md b/docs/examples/1.6.x/server-php/examples/functions/create.md index 6b16c59cbdd..5e2f71e5e3f 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; use Appwrite\Enums\; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md index 23439f21076..20285d76109 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md index 4fbef181757..e55a8b18922 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md index 344506b9e26..e1fb391d79f 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete.md b/docs/examples/1.6.x/server-php/examples/functions/delete.md index 6596754991c..9f87f5c9f01 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/download-deployment.md deleted file mode 100644 index 83c8bb756f3..00000000000 --- a/docs/examples/1.6.x/server-php/examples/functions/download-deployment.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Functions; - -$client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$functions = new Functions($client); - -$result = $functions->downloadDeployment( - functionId: '<FUNCTION_ID>', - deploymentId: '<DEPLOYMENT_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md index c50a1b93226..ec25652b891 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md @@ -4,9 +4,9 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md index 73d70816cff..945933b2ade 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-execution.md b/docs/examples/1.6.x/server-php/examples/functions/get-execution.md index 9bb8d6af7a9..7dfeeed0c0d 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-execution.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-template.md b/docs/examples/1.6.x/server-php/examples/functions/get-template.md deleted file mode 100644 index 421557dcd2f..00000000000 --- a/docs/examples/1.6.x/server-php/examples/functions/get-template.md +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Functions; - -$client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>'); // Your project ID - -$functions = new Functions($client); - -$result = $functions->getTemplate( - templateId: '<TEMPLATE_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-variable.md b/docs/examples/1.6.x/server-php/examples/functions/get-variable.md index cdb5ce9c45e..4c8d3d6b535 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/get.md b/docs/examples/1.6.x/server-php/examples/functions/get.md index d249ce7266e..ca2160f6c9b 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md index 9046c1880a3..7bbaa0ed3eb 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-executions.md b/docs/examples/1.6.x/server-php/examples/functions/list-executions.md index 05e60a0cb9b..2ff953b7290 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-executions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md index 1d2297846a2..6c77c42678c 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md index e68a4b0a8bb..eec5c33c9df 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-templates.md b/docs/examples/1.6.x/server-php/examples/functions/list-templates.md deleted file mode 100644 index a6619033068..00000000000 --- a/docs/examples/1.6.x/server-php/examples/functions/list-templates.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Functions; - -$client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>'); // Your project ID - -$functions = new Functions($client); - -$result = $functions->listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-variables.md b/docs/examples/1.6.x/server-php/examples/functions/list-variables.md index b9687a4ef80..f85e85490c9 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-variables.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list.md b/docs/examples/1.6.x/server-php/examples/functions/list.md index 22aa3cf9064..de914afc58c 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md index 98f2a3aaceb..44722f9eab8 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md index 9c6ad6dc8f2..1dd25e51ca0 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update-variable.md b/docs/examples/1.6.x/server-php/examples/functions/update-variable.md index b1b50081617..10cfb583661 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update.md b/docs/examples/1.6.x/server-php/examples/functions/update.md index 8f84ca85ebe..ea8d863ae52 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/graphql/mutation.md b/docs/examples/1.6.x/server-php/examples/graphql/mutation.md index 1a0da4a405c..c349bc2dbde 100644 --- a/docs/examples/1.6.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-php/examples/graphql/mutation.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Graphql; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/graphql/query.md b/docs/examples/1.6.x/server-php/examples/graphql/query.md index eea9e8fc60b..e6e277c27b3 100644 --- a/docs/examples/1.6.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-php/examples/graphql/query.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Graphql; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md index 1f0dd2feeb7..47210646dfa 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-cache.md b/docs/examples/1.6.x/server-php/examples/health/get-cache.md index 4755d69f1da..2e81dae328b 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-cache.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-certificate.md b/docs/examples/1.6.x/server-php/examples/health/get-certificate.md index 1f0cda448db..408581beac8 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-certificate.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-d-b.md b/docs/examples/1.6.x/server-php/examples/health/get-d-b.md index fec1daa8ee7..cfec70e6044 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-d-b.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md index 8e331bcbfe7..02959db3b5f 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Health; use Appwrite\Enums\; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md index fb266b132d0..1c346caab62 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md index 7886dfb21e0..8c1f77433b0 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md index b00611e3540..92fb79a98ce 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md index 81e8442f0de..745b4694349 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md index fe51b072c81..d3952685c4d 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md index e6ee6880769..1a5bea2b4cf 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md index 4c9b0cd81ce..cf5e3b9d832 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md index 02d4ed2663f..132dfa68aa0 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md index ec69788353d..fd5fdb1ede2 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md index f52f78a0a8f..68110189e54 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..d0bd6c054e8 --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-stats-resources.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueStatsResources( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md index 9b477f27f5b..0827f4cc79a 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md index 018e8acf0a5..627a85c845e 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md index 7e7af127c12..d6ccd7cd83a 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue.md b/docs/examples/1.6.x/server-php/examples/health/get-queue.md index ef34100a036..23eece124ac 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md index 0c26902ee7d..041d24954cb 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-storage.md b/docs/examples/1.6.x/server-php/examples/health/get-storage.md index abfc5bbd1bc..377416ed133 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-storage.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-time.md b/docs/examples/1.6.x/server-php/examples/health/get-time.md index 4577be3294d..aa2699349d6 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-time.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get.md b/docs/examples/1.6.x/server-php/examples/health/get.md index 514d0837568..fec3e3f4852 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get.md +++ b/docs/examples/1.6.x/server-php/examples/health/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/locale/get.md b/docs/examples/1.6.x/server-php/examples/locale/get.md index 82247d4a689..ef4c0432dd2 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/get.md +++ b/docs/examples/1.6.x/server-php/examples/locale/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-codes.md b/docs/examples/1.6.x/server-php/examples/locale/list-codes.md index a88c2b64766..273fad08399 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-continents.md b/docs/examples/1.6.x/server-php/examples/locale/list-continents.md index e861eced56a..e8c7ca46df7 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-continents.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md index 2b8bf7ee020..c5dd1d2ad6f 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md index fba9ff8ec25..7585c1071e7 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-countries.md b/docs/examples/1.6.x/server-php/examples/locale/list-countries.md index 60801b4dc5b..63a2e0b5f7d 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-countries.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md index 5fb1667e591..d385018e7dc 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-languages.md b/docs/examples/1.6.x/server-php/examples/locale/list-languages.md index aec67ca74a4..f0ca4d4f043 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-languages.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md index bdc5d7fcc7a..da13d172313 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-email.md b/docs/examples/1.6.x/server-php/examples/messaging/create-email.md index fe51bf16273..9de24873bfc 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md index 7252fde72e4..baf72a1df40 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md index 72f3360f26b..6c62ee88376 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md index bb7a79aea14..1eb954a2c67 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-push.md b/docs/examples/1.6.x/server-php/examples/messaging/create-push.md index 7838576df01..46aeeb3b8b8 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-push.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ $messaging = new Messaging($client); $result = $messaging->createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // optional + body: '<BODY>', // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -24,7 +24,10 @@ $result = $messaging->createPush( sound: '<SOUND>', // optional color: '<COLOR>', // optional tag: '<TAG>', // optional - badge: '<BADGE>', // optional + badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md index 53381f67c38..892d856305d 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md index 8c0cb79dbfe..1e2d9ac765e 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md index fd771fa2acb..4dcfb3a0880 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md index c0324ab382e..3516fa3d6a3 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md index 89e17a1bca8..9006918029d 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md index 0e0c8681ea0..5215d526423 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md index 79e3d2635d4..e94141cc73e 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md index f370df244e6..c3568286400 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md index 4663b05c3ec..adeacbc45e1 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md index a3d8d474fc6..f37d18b4fdd 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md index a5f7eb79eb0..f7a84259202 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md index 7333a8de8d6..2ec899b1d65 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete.md b/docs/examples/1.6.x/server-php/examples/messaging/delete.md index b9b33808663..5781838bdce 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-message.md b/docs/examples/1.6.x/server-php/examples/messaging/get-message.md index c6ff233e6e0..cf922219c77 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-message.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md index 1d29307aec4..d19f5c65e52 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md index 503e7010cb0..e2a0d7ef35f 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md index 3277168bec9..fc06cbbc95c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md index 283b2a7794c..03231375f80 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md index a4190e644b0..965fe08fc7c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md index bf80f20477b..761bb966d64 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md index 1dc0e3cb985..614e9c58f1c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md index c0c88d69354..c710575a467 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md index 7597ad89ce6..d2625cd5550 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md index 1825a088389..1112d28003d 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md index 1ab8c363d62..3bbb35a006c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md index cfcba97a212..debb363133a 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md index d7177551d50..724453b9b1b 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-email.md b/docs/examples/1.6.x/server-php/examples/messaging/update-email.md index d3b65692c1b..dd0f645af66 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md index 9a80b44ff2d..36672f4b65f 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md index 7891cb5bb03..c99ebc7d73b 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md index 98f4f13a59f..f6f557cce48 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-push.md b/docs/examples/1.6.x/server-php/examples/messaging/update-push.md index 09a4d960421..e1df0b91322 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-push.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -26,5 +26,8 @@ $result = $messaging->updatePush( tag: '<TAG>', // optional badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md index 2820e2e20ec..b8473c16a3f 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md index a342b7a0672..730da4178a3 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md index 66dde3ea01f..a16a630283a 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md index 3c1b760dd1d..29a54bfaed3 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md index 3328ac714de..e6a1ed1a1e1 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md index 5669e5f7541..b1f9a32ec52 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md index 07b7a2eafe1..def821adc4a 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md index ba7f5305e52..0841e284eb7 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md index 0c8ef0fefe9..cd17ffedac0 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/create-file.md b/docs/examples/1.6.x/server-php/examples/storage/create-file.md index a9485465632..2d133059841 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/create-file.md @@ -5,7 +5,7 @@ use Appwrite\InputFile; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md index 784331887e5..50adf35b6b5 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/delete-file.md b/docs/examples/1.6.x/server-php/examples/storage/delete-file.md index 4274c25a45a..d4c45eb66a5 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/delete-file.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md index 85a5b75f621..e62c43d2d36 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md index 72be0f68413..8831f0da9f1 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md index aef4f4a63f9..0c9db136b8f 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md index 782e49bd214..95a32bd3c2f 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file.md b/docs/examples/1.6.x/server-php/examples/storage/get-file.md index 80196a5199e..6964144801a 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md index a53eb913c9b..a4538c6f3ab 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/list-files.md b/docs/examples/1.6.x/server-php/examples/storage/list-files.md index 767fe86c300..ede0e7c9795 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-php/examples/storage/list-files.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md index e4a0f5df351..1517e366219 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/update-file.md b/docs/examples/1.6.x/server-php/examples/storage/update-file.md index 506593f427e..7b467acfe3f 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/update-file.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/create-membership.md b/docs/examples/1.6.x/server-php/examples/teams/create-membership.md index 51b1795a011..285368f9ddc 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/create-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/create.md b/docs/examples/1.6.x/server-php/examples/teams/create.md index 3cc6b19be9e..643fa0eb110 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/create.md +++ b/docs/examples/1.6.x/server-php/examples/teams/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md index 04f4056fcd0..579b790c556 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/delete.md b/docs/examples/1.6.x/server-php/examples/teams/delete.md index 734464538f5..9db4e7e9a7c 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-php/examples/teams/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/get-membership.md b/docs/examples/1.6.x/server-php/examples/teams/get-membership.md index 5f4bd63a642..bd6cbe8b42c 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/get-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md index 27f6e06973a..fbade4fc2fb 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/get.md b/docs/examples/1.6.x/server-php/examples/teams/get.md index f1ce1348d84..0dafa8a5d38 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/get.md +++ b/docs/examples/1.6.x/server-php/examples/teams/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md index 9d0c988ce62..817ea7fefc3 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/list.md b/docs/examples/1.6.x/server-php/examples/teams/list.md index 7ab8f81b275..99d9895fe5f 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/list.md +++ b/docs/examples/1.6.x/server-php/examples/teams/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md index 6179020df24..5dbfd4cb0f8 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-membership.md b/docs/examples/1.6.x/server-php/examples/teams/update-membership.md index 3b6cafa5f57..10f135b01ff 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-name.md b/docs/examples/1.6.x/server-php/examples/teams/update-name.md index 62768a9fb83..bc13d924e41 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-name.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md index ec52ac07dfc..bd8d9de32f4 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md index a482b5dd578..a9166ef3b01 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md index af71dcdc73b..c9fd81e43a3 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md index 994cdc3bb39..1c1c6d40bdb 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md index 13bb884aa74..696cbbeb57d 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md index faec2341069..372fb1bc6a3 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md index da0889df702..d56c4651f6e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md index ecb9af7f318..0b9a27ed8eb 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md index d1c99065e1e..f579efb5f2e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md index 3c833b098eb..b406b9404a8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-session.md b/docs/examples/1.6.x/server-php/examples/users/create-session.md index 498e161c67e..1589315f92e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-target.md b/docs/examples/1.6.x/server-php/examples/users/create-target.md index 999cae1394c..57946a440ff 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-target.md @@ -5,7 +5,7 @@ use Appwrite\Services\Users; use Appwrite\Enums\MessagingProviderType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-token.md b/docs/examples/1.6.x/server-php/examples/users/create-token.md index 9d8e1635a7a..1b92f5171d8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create.md b/docs/examples/1.6.x/server-php/examples/users/create.md index 16549ae0927..595f24fbce3 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create.md +++ b/docs/examples/1.6.x/server-php/examples/users/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-identity.md b/docs/examples/1.6.x/server-php/examples/users/delete-identity.md index 9ca15569ced..26b71eead23 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-identity.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md index 94a9e04b593..8ef12795895 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Users; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-session.md b/docs/examples/1.6.x/server-php/examples/users/delete-session.md index e711a923196..493cf53d2f8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md index 3b46021a815..cd6d11e1d7a 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-target.md b/docs/examples/1.6.x/server-php/examples/users/delete-target.md index 6b9975d748f..0d85d3e4dfa 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-target.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete.md b/docs/examples/1.6.x/server-php/examples/users/delete.md index f1dbbf3d93f..883156ecd69 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md index b0e3a759bd2..db090fb245b 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get-prefs.md b/docs/examples/1.6.x/server-php/examples/users/get-prefs.md index 59589f74fff..5e99e14b523 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/users/get-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get-target.md b/docs/examples/1.6.x/server-php/examples/users/get-target.md index ba146a30042..31baf3c852c 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/get-target.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get.md b/docs/examples/1.6.x/server-php/examples/users/get.md index 4ff399b6226..0ce39ae6e52 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get.md +++ b/docs/examples/1.6.x/server-php/examples/users/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-identities.md b/docs/examples/1.6.x/server-php/examples/users/list-identities.md index 53ba78d8b23..fd15b7b51a4 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-identities.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-logs.md b/docs/examples/1.6.x/server-php/examples/users/list-logs.md index 434dbafc111..7aea2dc59a7 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-memberships.md b/docs/examples/1.6.x/server-php/examples/users/list-memberships.md index addc6b75d0c..13ec2211e63 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-memberships.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md index 0d137aaf5e5..6a0088c9bd7 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-sessions.md b/docs/examples/1.6.x/server-php/examples/users/list-sessions.md index 5dcac1f5a4e..bdbd0e5e51e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-targets.md b/docs/examples/1.6.x/server-php/examples/users/list-targets.md index a91ac5e8cbf..005d51a5318 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-targets.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list.md b/docs/examples/1.6.x/server-php/examples/users/list.md index 9b8d1d5f2c8..04217363f01 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list.md +++ b/docs/examples/1.6.x/server-php/examples/users/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md index e74e88735ea..636f1d2404d 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-email.md b/docs/examples/1.6.x/server-php/examples/users/update-email.md index fc40fac0278..21ec88b3348 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-labels.md b/docs/examples/1.6.x/server-php/examples/users/update-labels.md index 45fe23b7c9e..7d4ae5de503 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-labels.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md index 369c248f11e..75214de880a 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-mfa.md b/docs/examples/1.6.x/server-php/examples/users/update-mfa.md index 5df7aa265db..3eda496f1fd 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-mfa.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-name.md b/docs/examples/1.6.x/server-php/examples/users/update-name.md index 7050d19bcfd..09bb07cdd7b 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-name.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-password.md b/docs/examples/1.6.x/server-php/examples/users/update-password.md index 8dcb57b6a4a..6d58605d5c8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-password.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md index 12e44dade1e..019fb3f1484 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-phone.md b/docs/examples/1.6.x/server-php/examples/users/update-phone.md index 95c31156ee9..13bd41bfa8d 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-phone.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-prefs.md b/docs/examples/1.6.x/server-php/examples/users/update-prefs.md index 2ffd93875bb..94912392711 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-status.md b/docs/examples/1.6.x/server-php/examples/users/update-status.md index 28a05320cee..f29dc95e2fd 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-status.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-target.md b/docs/examples/1.6.x/server-php/examples/users/update-target.md index a1b654d9018..00ad27b9a74 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-target.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md index 36ed47de012..c3b7a87d270 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md index b85cc3d3654..e831821a6cc 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-email-token.md b/docs/examples/1.6.x/server-python/examples/account/create-email-token.md index 4c18324ef3a..7ff4f6b8a9f 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-email-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md index 2121514562f..172f45f9965 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md index c0154182e64..14e76ed4d30 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md index 16a8e2ebae7..70cee1d60c6 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md index 017fdd28cc4..abd746c605e 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticationFactor client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md index 452b47f72fa..69aaa6091fb 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md index 0cc89df2161..2dc171bb314 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import OAuthProvider client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md index 30c80df6be8..06c2b204145 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md index fd0a2620aa1..c130646bee8 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-recovery.md b/docs/examples/1.6.x/server-python/examples/account/create-recovery.md index e9613cd9476..51c17772459 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-recovery.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-session.md b/docs/examples/1.6.x/server-python/examples/account/create-session.md index d129e1000c2..1048dfedb2c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-verification.md b/docs/examples/1.6.x/server-python/examples/account/create-verification.md index 5ff238f674a..d66fc2cd7d9 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create.md b/docs/examples/1.6.x/server-python/examples/account/create.md index 33b6f3fe234..7eda5a37fef 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create.md +++ b/docs/examples/1.6.x/server-python/examples/account/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-identity.md b/docs/examples/1.6.x/server-python/examples/account/delete-identity.md index ef572894434..0c894fa6934 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-identity.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md index 0fbe8c7475b..83709c7aff4 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-session.md b/docs/examples/1.6.x/server-python/examples/account/delete-session.md index fa0049c6e42..5967d7026a5 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md index 6ebe286c894..5061f84c5d1 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md index ec705952b2d..c8fe494d0ff 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get-prefs.md b/docs/examples/1.6.x/server-python/examples/account/get-prefs.md index 67d07417334..d577b4b2745 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/account/get-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get-session.md b/docs/examples/1.6.x/server-python/examples/account/get-session.md index f7ae72d69ef..3e2937b913e 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/get-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get.md b/docs/examples/1.6.x/server-python/examples/account/get.md index 9ded8e96cb3..542622851c9 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get.md +++ b/docs/examples/1.6.x/server-python/examples/account/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-identities.md b/docs/examples/1.6.x/server-python/examples/account/list-identities.md index c51da2cb67a..aeb23be747c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-identities.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-logs.md b/docs/examples/1.6.x/server-python/examples/account/list-logs.md index 750f97716ac..67d193d1868 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md index 2220475b9f3..72a392465a2 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-sessions.md b/docs/examples/1.6.x/server-python/examples/account/list-sessions.md index b3427c09ce7..c553a7bce21 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-email.md b/docs/examples/1.6.x/server-python/examples/account/update-email.md index b0a2a160020..14de4fd41e3 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md index 561e7cc431b..7083d096422 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md index f6b69b03cc0..01460830306 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md index 42b91f1d46e..d53607fe10c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md index 5964df42f81..cfc58c58a2d 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md index 4f0b1362a04..51718eb03af 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-name.md b/docs/examples/1.6.x/server-python/examples/account/update-name.md index d0027a84002..534a94e8bb1 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-name.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-password.md b/docs/examples/1.6.x/server-python/examples/account/update-password.md index 888349e2073..3c072e32d79 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-password.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md index 404d2b458c5..52e77233a6c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md index 41ceb4bc053..bcc57dee719 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-phone.md b/docs/examples/1.6.x/server-python/examples/account/update-phone.md index b7414e613e8..a2cb7d3c831 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-phone.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-prefs.md b/docs/examples/1.6.x/server-python/examples/account/update-prefs.md index f69dc12b33b..e2ac7a28c1c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-recovery.md b/docs/examples/1.6.x/server-python/examples/account/update-recovery.md index a3314134e6a..ed140abc0fb 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-recovery.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-session.md b/docs/examples/1.6.x/server-python/examples/account/update-session.md index 3768326e982..abee773edcb 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-status.md b/docs/examples/1.6.x/server-python/examples/account/update-status.md index 4f9add80f7d..a5272f09ded 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-status.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-verification.md b/docs/examples/1.6.x/server-python/examples/account/update-verification.md index 35faf53cb84..fbc7af5302f 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md index 91dde3bbb88..c7ae77f082e 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Browser client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md index cec2f61a205..160636de7ef 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import CreditCard client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md index 4aa0177a262..f034ea41f33 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md index 6b12dac6be2..844dbb6a250 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Flag client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-image.md b/docs/examples/1.6.x/server-python/examples/avatars/get-image.md index 202955c2fce..9272c4d8fb4 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-image.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md index 233da1b131c..2729ff51332 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md index 12963947d26..3fb76a7f7cc 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md index 183a2b64870..f12f446d30c 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-collection.md b/docs/examples/1.6.x/server-python/examples/databases/create-collection.md index fd9e3a6c0c0..596d4a93833 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md index 7435742e1c9..8fd59e694fa 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-document.md b/docs/examples/1.6.x/server-python/examples/databases/create-document.md index bd3993f162f..1eaf0246f33 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-documents.md b/docs/examples/1.6.x/server-python/examples/databases/create-documents.md new file mode 100644 index 00000000000..1178a0f7357 --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +databases = Databases(client) + +result = databases.create_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + documents = [] +) diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md index f4b427e294c..230567aa469 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md index dce63558dab..de1ceb9f1f8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md index a658bd8f4c2..53305c8d4e8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-index.md b/docs/examples/1.6.x/server-python/examples/databases/create-index.md index 015b762bbcc..fe78b5e1520 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-index.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import IndexType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md index 9f409e484e6..92e8b0f86aa 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md index ab4d357447a..a7f424b22c8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md index 76b5db1c45d..6c8f4dc5bbe 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import RelationshipType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md index d6f7f946278..dc434cccaff 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md index 3b105d80e82..af375733dd3 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create.md b/docs/examples/1.6.x/server-python/examples/databases/create.md index a4ddc92cc6f..0492203e4c1 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md index 7f490b23507..e1c4eecd01e 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md index c3083a51bc6..02f1e1c536b 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-document.md b/docs/examples/1.6.x/server-python/examples/databases/delete-document.md index c3e296aef22..57f8b3bd9d1 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-python/examples/databases/delete-documents.md new file mode 100644 index 00000000000..a315f0c200b --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-index.md b/docs/examples/1.6.x/server-python/examples/databases/delete-index.md index d5a12c140e7..006006421d2 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-index.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete.md b/docs/examples/1.6.x/server-python/examples/databases/delete.md index 41d5f18f8af..be64e8c6282 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md index e505fe9a38c..dcdb0a6ea9b 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-collection.md b/docs/examples/1.6.x/server-python/examples/databases/get-collection.md index 7be57ea193d..0833b4fd7e8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-document.md b/docs/examples/1.6.x/server-python/examples/databases/get-document.md index 83faadec384..aff5008fa0d 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-index.md b/docs/examples/1.6.x/server-python/examples/databases/get-index.md index 6038868b41c..69716830728 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-index.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get.md b/docs/examples/1.6.x/server-python/examples/databases/get.md index 8fe2358be7f..c8191a37778 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md index a29aefa0154..c97a5ced646 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-collections.md b/docs/examples/1.6.x/server-python/examples/databases/list-collections.md index 0e613321c23..17d0a3d8782 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-collections.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-documents.md b/docs/examples/1.6.x/server-python/examples/databases/list-documents.md index dee130e65f9..8b450cd0206 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-documents.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md index 40578a14de1..1457151a4e0 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list.md b/docs/examples/1.6.x/server-python/examples/databases/list.md index aa934b2b126..58336c9f896 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md index 8afccf9cf2a..a0f72a49fb6 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,5 +13,6 @@ result = databases.update_boolean_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = False + default = False, + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-collection.md b/docs/examples/1.6.x/server-python/examples/databases/update-collection.md index 3432b6bf183..2e5be50581e 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md index c85a60edad6..29bc6be4d18 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,5 +13,6 @@ result = databases.update_datetime_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '' + default = '', + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-document.md b/docs/examples/1.6.x/server-python/examples/databases/update-document.md index 07bba7678c3..9ef65279342 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-documents.md b/docs/examples/1.6.x/server-python/examples/databases/update-documents.md new file mode 100644 index 00000000000..5a50d1a9124 --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + data = {}, # optional + queries = [] # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md index cb9bc422b17..c833789a37b 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,5 +13,6 @@ result = databases.update_email_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = 'email@example.com' + default = 'email@example.com', + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md index 5336cbfe02b..6186a72a663 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -13,5 +14,6 @@ result = databases.update_enum_attribute( key = '', elements = [], required = False, - default = '<DEFAULT>' + default = '<DEFAULT>', + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md index 23d1f810cdf..68cb7d79294 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,7 +13,8 @@ result = databases.update_float_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, - default = None + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md index d9206af42ea..05c6bfe9158 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,7 +13,8 @@ result = databases.update_integer_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, - default = None + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md index 7370d09467f..550d3af6417 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,5 +13,6 @@ result = databases.update_ip_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '' + default = '', + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md index 3221865cfcc..3b6c8e93e98 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -11,5 +12,6 @@ result = databases.update_relationship_attribute( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', key = '', - on_delete = RelationMutate.CASCADE # optional + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md index 0741d36bebf..5b66fb015ce 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,5 +13,7 @@ result = databases.update_string_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '<DEFAULT>' + default = '<DEFAULT>', + size = 1, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md index d240be22cd2..4a6202760f2 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,5 +13,6 @@ result = databases.update_url_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = 'https://example.com' + default = 'https://example.com', + new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update.md b/docs/examples/1.6.x/server-python/examples/databases/update.md index 765f28a3fc7..35d2c0cc408 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-python/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..99720649d6a --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.upsert_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + documents = [] # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-build.md b/docs/examples/1.6.x/server-python/examples/functions/create-build.md index c4eb9d0a20e..3d784b0e7c2 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-build.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md index da9b559b2fc..07740057299 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.input_file import InputFile client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-execution.md b/docs/examples/1.6.x/server-python/examples/functions/create-execution.md index e1decb97558..b41c7e376c3 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-execution.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-variable.md b/docs/examples/1.6.x/server-python/examples/functions/create-variable.md index cd73e30c036..84c286f560f 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/create.md b/docs/examples/1.6.x/server-python/examples/functions/create.md index a65b87dd4c8..68d6e99c6e1 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.enums import client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md index 780ce9d7c88..f874b2d2706 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md index 7c3ea09a0f7..df7ce7cb5b5 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md index 646a0f325bf..a6e3dc853ce 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete.md b/docs/examples/1.6.x/server-python/examples/functions/delete.md index 2950ed02358..ed2fef76c72 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/download-deployment.md deleted file mode 100644 index f9d395451e9..00000000000 --- a/docs/examples/1.6.x/server-python/examples/functions/download-deployment.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client - -client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -functions = Functions(client) - -result = functions.download_deployment( - function_id = '<FUNCTION_ID>', - deployment_id = '<DEPLOYMENT_ID>' -) diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md index 2813ad392b2..8cc16faec13 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md index 8846888f0f4..59a1374e0fc 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-execution.md b/docs/examples/1.6.x/server-python/examples/functions/get-execution.md index f3dfc0f4ee0..a299f35195b 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-execution.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-template.md b/docs/examples/1.6.x/server-python/examples/functions/get-template.md deleted file mode 100644 index bea5b6ab032..00000000000 --- a/docs/examples/1.6.x/server-python/examples/functions/get-template.md +++ /dev/null @@ -1,11 +0,0 @@ -from appwrite.client import Client - -client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID - -functions = Functions(client) - -result = functions.get_template( - template_id = '<TEMPLATE_ID>' -) diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-variable.md b/docs/examples/1.6.x/server-python/examples/functions/get-variable.md index fd903f30456..629948e9091 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/get.md b/docs/examples/1.6.x/server-python/examples/functions/get.md index cb765e42a11..eeab5a556b1 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md index f776345f115..4eb92f60dff 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-executions.md b/docs/examples/1.6.x/server-python/examples/functions/list-executions.md index 0012bafc8fe..e83f7271fab 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-executions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md index edad1a9178c..9c89a36f0c8 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md index a9c7417654e..d7d0036d354 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-templates.md b/docs/examples/1.6.x/server-python/examples/functions/list-templates.md deleted file mode 100644 index b3ee38aef7d..00000000000 --- a/docs/examples/1.6.x/server-python/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client - -client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID - -functions = Functions(client) - -result = functions.list_templates( - runtimes = [], # optional - use_cases = [], # optional - limit = 1, # optional - offset = 0 # optional -) diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-variables.md b/docs/examples/1.6.x/server-python/examples/functions/list-variables.md index 188c17bb6a4..ebc19c5ba44 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-variables.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list.md b/docs/examples/1.6.x/server-python/examples/functions/list.md index 5b315e18cc2..b1d696d25a8 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md index a8d93b8416c..ef2b8a6d047 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md index 9fce3847158..6b96434a461 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update-variable.md b/docs/examples/1.6.x/server-python/examples/functions/update-variable.md index 238fc91effe..e333ec1193a 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update.md b/docs/examples/1.6.x/server-python/examples/functions/update.md index 5f2a70baaac..64ee39b29d6 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/graphql/mutation.md b/docs/examples/1.6.x/server-python/examples/graphql/mutation.md index 0ec3d3eefc8..189892a4adb 100644 --- a/docs/examples/1.6.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-python/examples/graphql/mutation.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/graphql/query.md b/docs/examples/1.6.x/server-python/examples/graphql/query.md index 95709fd694e..585a5029b5a 100644 --- a/docs/examples/1.6.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-python/examples/graphql/query.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md index ff93ceac760..2b621472eeb 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-cache.md b/docs/examples/1.6.x/server-python/examples/health/get-cache.md index fa2a6daa5c2..595c4bf0a5f 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-cache.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-certificate.md b/docs/examples/1.6.x/server-python/examples/health/get-certificate.md index 2a73583361c..5b3e2c0ad31 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-certificate.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-d-b.md b/docs/examples/1.6.x/server-python/examples/health/get-d-b.md index 18e39682461..47c7bd8efb5 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-d-b.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md index ce33c8c9bd6..5362a2d02ad 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.health import Health from appwrite.enums import client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md index db66c7f676b..e5115d06b8d 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md index 9daed589f85..18ed8e30237 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md index a7d35bc9f4d..b0a29e2d5b0 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md index 50f8943fa6f..491d1f7c35c 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md index b6e6a4d4a42..fa860c6111a 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md index 5868b3cd688..d4ca9388d95 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md index 254fe233316..1479f03634c 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md index c6ab409c9b8..6835efeaa46 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md index 10079138663..34cbad2f311 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md index db59028f377..019db4e8119 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..92aebc3c915 --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_stats_resources( + threshold = None # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md index cc31b4f5af9..e5e27a7912a 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md index 67d9e64c142..266ca828b1d 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md index 918846738d9..df5e2d56db0 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue.md b/docs/examples/1.6.x/server-python/examples/health/get-queue.md index 61e5a40caae..3cafb9be95a 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md index 276c3058f94..7d2ea44f454 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-storage.md b/docs/examples/1.6.x/server-python/examples/health/get-storage.md index b2de63b72fb..821d9f39867 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-storage.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-time.md b/docs/examples/1.6.x/server-python/examples/health/get-time.md index 40893057cb3..907e96499b5 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-time.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get.md b/docs/examples/1.6.x/server-python/examples/health/get.md index f41e0e3a9b0..c544fcc9b66 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get.md +++ b/docs/examples/1.6.x/server-python/examples/health/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/locale/get.md b/docs/examples/1.6.x/server-python/examples/locale/get.md index fc048ddcc94..6f2a877b0cf 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/get.md +++ b/docs/examples/1.6.x/server-python/examples/locale/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-codes.md b/docs/examples/1.6.x/server-python/examples/locale/list-codes.md index d516538cb9c..5f3e501fe13 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-continents.md b/docs/examples/1.6.x/server-python/examples/locale/list-continents.md index f6d84955275..0aead81734c 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-continents.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md index 8bdac2e5e36..f88e331f430 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md index 516d822b596..b1fdc1ae517 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-countries.md b/docs/examples/1.6.x/server-python/examples/locale/list-countries.md index 8fcbe1aeb94..0c5b23cdd15 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-countries.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md index 4708498efbe..20009d65690 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-languages.md b/docs/examples/1.6.x/server-python/examples/locale/list-languages.md index 9583cd8b3fe..1962a8399e1 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-languages.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md index 022209d1e67..b57fa00f238 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-email.md b/docs/examples/1.6.x/server-python/examples/messaging/create-email.md index 38005a37364..8b4c9d267ea 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md index 84c38eae98d..9c40eb78289 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md index fa94da96c94..6703f6fdccb 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md index 0cffc4e491f..9315dcdd30d 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-push.md b/docs/examples/1.6.x/server-python/examples/messaging/create-push.md index ffed825a3d0..8671b56a399 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-push.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -9,8 +10,8 @@ messaging = Messaging(client) result = messaging.create_push( message_id = '<MESSAGE_ID>', - title = '<TITLE>', - body = '<BODY>', + title = '<TITLE>', # optional + body = '<BODY>', # optional topics = [], # optional users = [], # optional targets = [], # optional @@ -21,7 +22,10 @@ result = messaging.create_push( sound = '<SOUND>', # optional color = '<COLOR>', # optional tag = '<TAG>', # optional - badge = '<BADGE>', # optional + badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md index 6e9b812736a..46ff54f1665 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md index c3e7fe70bf5..d1c7b495b26 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md index 24108d251fd..99914f07796 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md index 81b0c5f468c..bc0c892b485 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md index b06033c5c57..aff09fe8520 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md index 6dc1030cd37..46ded71cdd2 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md index b0184b53b4b..c1cb465e9b7 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md index c73e9419459..4438563abff 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md index cfee0ad7a45..6ffded5b53a 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md index 4d2bd6d015c..649e504c19a 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md index 5d404d1875e..c012a9ac975 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md index b270b2a7084..76f9093a5f9 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete.md b/docs/examples/1.6.x/server-python/examples/messaging/delete.md index c62c8c0d215..0153ac90cb6 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-message.md b/docs/examples/1.6.x/server-python/examples/messaging/get-message.md index 4b4ef392035..3fadcff7d3a 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-message.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md index fdf94f03048..58e62280531 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md index 7f8284f8748..ca997f21f02 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md index 57c465b8839..c238a98afe2 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md index 752e449806f..f28c3e506ff 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md index 7219f0948e6..211649d5fb9 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md index 148814c46d7..da87e5939b5 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md index 3e896954e43..03e5c4ebbcd 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md index 7efaeadedf2..df8ec72911c 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md index fe2442d8065..f949b408e50 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md index 062257154c2..786ee42b198 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md index de72a76a271..f8a3995295b 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md index 13797089659..1c2cefc9cdd 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md index 2bfd3edfc12..f695b61b8ca 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-email.md b/docs/examples/1.6.x/server-python/examples/messaging/update-email.md index 6cff0ae6d8c..5731d5f29ad 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md index 7ca9f381e63..0119d71b4f8 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md index a89338df92c..039475ffdce 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md index 4c619500508..c5bd0579125 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-push.md b/docs/examples/1.6.x/server-python/examples/messaging/update-push.md index 3c3965c3bd6..e3bb02e71fa 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-push.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -23,5 +24,8 @@ result = messaging.update_push( tag = '<TAG>', # optional badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md index 8b67b7a44f3..fc0a44d6cd8 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md index aadbd9aee83..2eec4e215b9 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md index 74232e983f0..80019aad405 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md index 264928178b4..193a26f8301 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md index bbe4a93a507..159f95490eb 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md index ee4d00411ec..721f1606426 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md index 52eed3bb7ba..b80c55b300b 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md index 7cb1594a81c..b25f416cef5 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md index c6e9e33e027..9672782b5c4 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/create-file.md b/docs/examples/1.6.x/server-python/examples/storage/create-file.md index d275070bacb..6e57284b85d 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/create-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage from appwrite.input_file import InputFile client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md index 77d72eb9158..dd8e8ebc434 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/delete-file.md b/docs/examples/1.6.x/server-python/examples/storage/delete-file.md index 775065dc388..17bc251e50e 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/delete-file.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md index adb78e8b923..e5eeb4c097f 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md index b419ea0164b..d21db6304a6 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md index 2e3b2acdc6a..20939b20b49 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md index 9ce04e2a49c..bf70d136e26 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file.md b/docs/examples/1.6.x/server-python/examples/storage/get-file.md index 9f04ef4740f..461543e3fdf 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md index 84eab54286e..51a1ae68365 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/list-files.md b/docs/examples/1.6.x/server-python/examples/storage/list-files.md index 8a2aa6d9a3d..4034bd477da 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-python/examples/storage/list-files.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md index 4eea2a9ccb9..f2e741a5aa4 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/update-file.md b/docs/examples/1.6.x/server-python/examples/storage/update-file.md index 0137af58496..cf1e5779bbb 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/update-file.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/create-membership.md b/docs/examples/1.6.x/server-python/examples/teams/create-membership.md index 484629550dd..cb3bf731951 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/create-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/create.md b/docs/examples/1.6.x/server-python/examples/teams/create.md index 544ee3a706b..f623151b272 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/create.md +++ b/docs/examples/1.6.x/server-python/examples/teams/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md index 7f0cbd4ed6f..6fb218266f3 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/delete.md b/docs/examples/1.6.x/server-python/examples/teams/delete.md index fc8415238e5..056114bfad5 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-python/examples/teams/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/get-membership.md b/docs/examples/1.6.x/server-python/examples/teams/get-membership.md index 6075cc70d16..3c028a5c7e5 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/get-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md index d740e69e3bf..8d645897c68 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/get.md b/docs/examples/1.6.x/server-python/examples/teams/get.md index 6d44b80ee37..55f172eadda 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/get.md +++ b/docs/examples/1.6.x/server-python/examples/teams/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md index f7a072a6d8b..6e6f15a284a 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/list.md b/docs/examples/1.6.x/server-python/examples/teams/list.md index afb5de1241e..bf91a507448 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/list.md +++ b/docs/examples/1.6.x/server-python/examples/teams/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md index ee6d2110818..9c08421579b 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-membership.md b/docs/examples/1.6.x/server-python/examples/teams/update-membership.md index 672615026ee..db20c5aaaef 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-name.md b/docs/examples/1.6.x/server-python/examples/teams/update-name.md index 693654d3d73..160b4969321 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-name.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md index 46616011d61..e82da1b64f1 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md index 575aa42b30a..5e95cc26ace 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md index f6cd2fe5914..d3d9e21586c 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md index a758d4e0896..bed6c483e03 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md index cabf8759380..b1cbb53f23f 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md index 606878f1e98..64a87c05ff2 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md index 0d8f9907ac4..33f65f44d9e 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md index b0ae799b640..5b4c8f831ac 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md index d7d17c4de0b..9d644ce4caa 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md index 507fb1f8929..f442ab9d3e2 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-session.md b/docs/examples/1.6.x/server-python/examples/users/create-session.md index a2ba12a580a..7e4c49fc950 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-target.md b/docs/examples/1.6.x/server-python/examples/users/create-target.md index 9ad8364ea39..dfa64ac7571 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-target.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import MessagingProviderType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-token.md b/docs/examples/1.6.x/server-python/examples/users/create-token.md index e2ef2f69698..b40658c3129 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create.md b/docs/examples/1.6.x/server-python/examples/users/create.md index c3e7fd55587..4c51a3fffbb 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create.md +++ b/docs/examples/1.6.x/server-python/examples/users/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-identity.md b/docs/examples/1.6.x/server-python/examples/users/delete-identity.md index 4c78038d11d..412fbd393a5 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-identity.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md index c7101d119f0..64724983444 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-session.md b/docs/examples/1.6.x/server-python/examples/users/delete-session.md index c0fabdb19c1..815a96ed377 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md index 328a9eeb2fc..2dde88f4713 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-target.md b/docs/examples/1.6.x/server-python/examples/users/delete-target.md index 5c2d9df8d84..287f5a26cf5 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-target.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete.md b/docs/examples/1.6.x/server-python/examples/users/delete.md index de8b35b5134..7032b0f81e2 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md index b37739ccae3..bca43b08ec4 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get-prefs.md b/docs/examples/1.6.x/server-python/examples/users/get-prefs.md index 23109a9696d..ec9d363f8d1 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/users/get-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get-target.md b/docs/examples/1.6.x/server-python/examples/users/get-target.md index d494460c5e3..3b80b1ff7f8 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/get-target.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get.md b/docs/examples/1.6.x/server-python/examples/users/get.md index d7dda455169..267086a3df1 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get.md +++ b/docs/examples/1.6.x/server-python/examples/users/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-identities.md b/docs/examples/1.6.x/server-python/examples/users/list-identities.md index 7764d742680..0fc7811a3fa 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-identities.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-logs.md b/docs/examples/1.6.x/server-python/examples/users/list-logs.md index d1c6b0abb7f..6cbbe498cb6 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-memberships.md b/docs/examples/1.6.x/server-python/examples/users/list-memberships.md index 27db71f0c72..9e3b0053eaf 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-memberships.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md index 39aed0c173c..a2b59895e8c 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-sessions.md b/docs/examples/1.6.x/server-python/examples/users/list-sessions.md index fd091b96831..77b04c935ea 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-targets.md b/docs/examples/1.6.x/server-python/examples/users/list-targets.md index b5b67b96e37..14107fa296f 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-targets.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list.md b/docs/examples/1.6.x/server-python/examples/users/list.md index b191f8ae739..778f33935d7 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list.md +++ b/docs/examples/1.6.x/server-python/examples/users/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md index 72ddf7a9bdc..2605861416b 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-email.md b/docs/examples/1.6.x/server-python/examples/users/update-email.md index c977d95250d..c4a468e2345 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-labels.md b/docs/examples/1.6.x/server-python/examples/users/update-labels.md index 04c39993051..b9af53a50e3 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-labels.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md index ca3b96aa8bb..c0990e1ef78 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-mfa.md b/docs/examples/1.6.x/server-python/examples/users/update-mfa.md index e145f9b2594..9b357011850 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-mfa.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-name.md b/docs/examples/1.6.x/server-python/examples/users/update-name.md index d546b952977..1e328b4c489 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-name.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-password.md b/docs/examples/1.6.x/server-python/examples/users/update-password.md index 0c7e7bf030f..d104184cadf 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-password.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md index b13c4fba33b..1d2656c3f18 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-phone.md b/docs/examples/1.6.x/server-python/examples/users/update-phone.md index ecb01728e8d..14826bb54cd 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-phone.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-prefs.md b/docs/examples/1.6.x/server-python/examples/users/update-prefs.md index ca6999c950f..76903b76112 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-status.md b/docs/examples/1.6.x/server-python/examples/users/update-status.md index ebec495c33b..49c0516ee47 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-status.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-target.md b/docs/examples/1.6.x/server-python/examples/users/update-target.md index f9bdfb43efc..119c5fab889 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-target.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md index bd1c62ad70c..ab5cf7b65a9 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md index 4ff19b49079..5cbcdd074fa 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md index f6e92458096..b3f7689f9ce 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get-session.md b/docs/examples/1.6.x/server-rest/examples/account/get-session.md index 34d0f05dad4..e0ca8b7524f 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get-session.md @@ -1,8 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get.md b/docs/examples/1.6.x/server-rest/examples/account/get.md index 41ba456acef..af2d7833779 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get.md @@ -1,8 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-identities.md b/docs/examples/1.6.x/server-rest/examples/account/list-identities.md index 28c7ebfb78c..27ffc6e7c3c 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-identities.md @@ -1,8 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-logs.md b/docs/examples/1.6.x/server-rest/examples/account/list-logs.md index bac50d727e8..ace64fb895f 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-logs.md @@ -1,8 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md index 9246740d803..ea2364bebc0 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md index ec11f663800..39fa5035dc9 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md @@ -1,8 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md index 06991b14727..d4520a05dc1 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md @@ -1,9 +1,7 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md index 37a0113b7a2..327b38a206d 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md @@ -1,9 +1,7 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md index ec2471d3357..0114daaf18d 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md @@ -1,9 +1,7 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md index f8d1a4221ed..02c6d5e30f2 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md @@ -1,9 +1,7 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md index d73bf5ea9b8..810f5087dd3 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md @@ -1,9 +1,7 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md index 799f399cd54..1e5fd759baa 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md @@ -1,9 +1,7 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md index cdf8f0d6ce0..e0a87fe825d 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md @@ -1,9 +1,7 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/create-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/create-documents.md new file mode 100644 index 00000000000..892510cf6f4 --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/create-documents.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "documents": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/delete-documents.md new file mode 100644 index 00000000000..daf782fd2cf --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/delete-documents.md @@ -0,0 +1,10 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "queries": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md index 7bee7eada87..adff49f1cad 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md index 6d9d732dbb8..dc7fb0dd3bf 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-document.md b/docs/examples/1.6.x/server-rest/examples/databases/get-document.md index 184a2560cbd..d9456475cf6 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-document.md @@ -1,9 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-index.md b/docs/examples/1.6.x/server-rest/examples/databases/get-index.md index 66803277048..d271f142656 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-index.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get.md b/docs/examples/1.6.x/server-rest/examples/databases/get.md index fc9c7e80ae5..20fb7b42d15 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md index de5dcb91f2d..e3b5206faa2 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md index 6a3f6ef3038..703c1b27e15 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md index 7c9202e71ac..d65976b09af 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md @@ -1,9 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md index 7334ba03228..5fc839d1519 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list.md b/docs/examples/1.6.x/server-rest/examples/databases/list.md index 90e88fd34e6..1381b1a94f0 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list.md @@ -1,7 +1,5 @@ GET /v1/databases HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-boolean-attribute.md index a064a833afd..fabc1a17c2d 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-boolean-attribute.md @@ -7,5 +7,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": false + "default": false, + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-datetime-attribute.md index 1d5930352aa..456d496f674 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-datetime-attribute.md @@ -7,5 +7,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": + "default": , + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/update-documents.md new file mode 100644 index 00000000000..71fdbf9c639 --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-documents.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "data": {}, + "queries": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-email-attribute.md index 3f734772dd7..71b1a3b852b 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-email-attribute.md @@ -7,5 +7,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "email@example.com" + "default": "email@example.com", + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-enum-attribute.md index 01254f0fd55..c686fc58827 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-enum-attribute.md @@ -8,5 +8,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "elements": [], "required": false, - "default": "<DEFAULT>" + "default": "<DEFAULT>", + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-float-attribute.md index 0bb8869decf..029f7dccb42 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-float-attribute.md @@ -9,5 +9,6 @@ X-Appwrite-Key: <YOUR_API_KEY> "required": false, "min": 0, "max": 0, - "default": 0 + "default": 0, + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-integer-attribute.md index b9c6e9b3f69..3a575e0dc5f 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-integer-attribute.md @@ -9,5 +9,6 @@ X-Appwrite-Key: <YOUR_API_KEY> "required": false, "min": 0, "max": 0, - "default": 0 + "default": 0, + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-ip-attribute.md index a4d4f5f89f5..a4b6ae90613 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-ip-attribute.md @@ -7,5 +7,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": + "default": , + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-relationship-attribute.md index 0b75082dd72..8e1901d65ee 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-relationship-attribute.md @@ -6,5 +6,6 @@ X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> { - "onDelete": "cascade" + "onDelete": "cascade", + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md index ece858dd31b..71a5302e1a7 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md @@ -7,5 +7,7 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "<DEFAULT>" + "default": "<DEFAULT>", + "size": 1, + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-url-attribute.md index 9bb3f2bc9fd..93802e2629b 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-url-attribute.md @@ -7,5 +7,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "https://example.com" + "default": "https://example.com", + "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..c374b430439 --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/upsert-documents.md @@ -0,0 +1,10 @@ +PUT /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "documents": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-rest/examples/functions/download-deployment.md deleted file mode 100644 index ccd37283c9a..00000000000 --- a/docs/examples/1.6.x/server-rest/examples/functions/download-deployment.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md index 379d73288f6..099d18e8992 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md @@ -1,9 +1,6 @@ GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md index 130618b10bc..46dad098be7 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md index 6d4de2b447d..e5bd7d878d0 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md @@ -1,9 +1,7 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-template.md b/docs/examples/1.6.x/server-rest/examples/functions/get-template.md deleted file mode 100644 index d4e1f95cf52..00000000000 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-template.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates/{templateId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md index 8260b4e74ee..dcd65e60c74 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get.md b/docs/examples/1.6.x/server-rest/examples/functions/get.md index af1de30e3ee..5a2e4a3b1ee 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md index 531afed1270..eb95020fafc 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md index 36fa78beda9..a693d5fa0c2 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md @@ -1,9 +1,7 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md index b519e728017..1b2e4783931 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md @@ -1,7 +1,5 @@ GET /v1/functions/runtimes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md index 16dc73924a4..7d0e360b22e 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md @@ -1,7 +1,5 @@ GET /v1/functions/specifications HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-templates.md b/docs/examples/1.6.x/server-rest/examples/functions/list-templates.md deleted file mode 100644 index b671bedebfc..00000000000 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-templates.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md index 3fae1b93d94..c9c45f4abe7 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/variables HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list.md b/docs/examples/1.6.x/server-rest/examples/functions/list.md index f2e29bc2510..86e289b430e 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list.md @@ -1,7 +1,5 @@ GET /v1/functions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md index 580aa42206e..1b58ac8a994 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md @@ -1,7 +1,5 @@ GET /v1/health/anti-virus HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-cache.md b/docs/examples/1.6.x/server-rest/examples/health/get-cache.md index 321cbd1c6f1..c0201133e59 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-cache.md @@ -1,7 +1,5 @@ GET /v1/health/cache HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md index 650686521c7..1cb20a8feed 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md @@ -1,7 +1,5 @@ GET /v1/health/certificate HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md index 92f3399d1d2..0f079ec4cb8 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md @@ -1,7 +1,5 @@ GET /v1/health/db HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md index 09bce30cabf..77cf41e6f06 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md @@ -1,7 +1,5 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md index 6c01e4ea4b9..ae99d2a1043 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md @@ -1,7 +1,5 @@ GET /v1/health/pubsub HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md index 6b2dc650b35..622a013dcac 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md @@ -1,7 +1,5 @@ GET /v1/health/queue/builds HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md index f5df6532b3b..dfdffd9f66c 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md @@ -1,7 +1,5 @@ GET /v1/health/queue/certificates HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md index dff44fc0372..9bb9484aed0 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md @@ -1,7 +1,5 @@ GET /v1/health/queue/databases HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md index 3bf2cd34feb..070a27e8029 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md @@ -1,7 +1,5 @@ GET /v1/health/queue/deletes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md index 81eb8cf68ea..e6f17d08391 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md @@ -1,7 +1,5 @@ GET /v1/health/queue/functions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md index 398444a9c10..34a0fa166ce 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md @@ -1,7 +1,5 @@ GET /v1/health/queue/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md index 7fb0a9b595e..06349376599 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md @@ -1,7 +1,5 @@ GET /v1/health/queue/mails HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md index 8af59a9e870..d0f8adbb826 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md @@ -1,7 +1,5 @@ GET /v1/health/queue/messaging HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md index 1ec49bae1f7..ae4d4a0a0b1 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md @@ -1,7 +1,5 @@ GET /v1/health/queue/migrations HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..8230f90035d --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-stats-resources.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/stats-resources HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md index 22bff6dc29f..8f9fceb1371 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md @@ -1,7 +1,5 @@ -GET /v1/health/queue/usage HTTP/1.1 +GET /v1/health/queue/stats-usage HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md index e144bdd982b..98781885246 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,7 +1,5 @@ GET /v1/health/queue/webhooks HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md index 63841a454ed..dcb6cd7c79b 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md @@ -1,7 +1,5 @@ GET /v1/health/storage/local HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-storage.md b/docs/examples/1.6.x/server-rest/examples/health/get-storage.md index b37bce1ac24..1f0d81c78ba 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-storage.md @@ -1,7 +1,5 @@ GET /v1/health/storage HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-time.md b/docs/examples/1.6.x/server-rest/examples/health/get-time.md index e40b12ee56c..6a041633e69 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-time.md @@ -1,7 +1,5 @@ GET /v1/health/time HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get.md b/docs/examples/1.6.x/server-rest/examples/health/get.md index 5176969cca1..7277c65076e 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get.md @@ -1,7 +1,5 @@ GET /v1/health HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/get.md b/docs/examples/1.6.x/server-rest/examples/locale/get.md index 496f2605fc4..81fa1182f15 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/get.md @@ -1,9 +1,7 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md index a66e6cf9222..59ff34bc361 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md @@ -1,9 +1,7 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md index 171fa44458a..3344f0c0477 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md @@ -1,9 +1,7 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md index 37a1808f793..5d983c78308 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,9 +1,7 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md index 1fcf6e96244..68b2e397517 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md @@ -1,9 +1,7 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md index 1177ea41afe..e3c8e94c12c 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md @@ -1,9 +1,7 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md index 26af678b04e..4cba4cf3864 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md @@ -1,9 +1,7 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md index ac2a85591df..f4cc4493325 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md @@ -1,9 +1,7 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md index 1c7550950b1..cf5256d9215 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md @@ -19,7 +19,10 @@ X-Appwrite-Key: <YOUR_API_KEY> "sound": "<SOUND>", "color": "<COLOR>", "tag": "<TAG>", - "badge": "<BADGE>", + "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md index 1458946ccc7..f23222f0071 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md index f605d363d53..21ed22bbef4 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md @@ -1,7 +1,5 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md index e5301debd39..0f7796a1339 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md index 50a545e5d52..f9b2d9fe10a 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md index 9376f807c1f..a5f8565ed2d 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md index 9588c3f9cc8..369f1ed61d0 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md index 9e9ca029176..2461a6b18f4 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md index a540123cc9d..57f40f047f8 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md @@ -1,7 +1,5 @@ GET /v1/messaging/providers HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md index 7bd09d054e7..ffd94007808 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md index 6ce6230ea2f..79f84b11ff6 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md index c97bd2cd171..3bc58ada2d0 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md index 2fbb01e3bdc..c26603b0c0a 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md index 053d290d679..0c633badff1 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md index 7a0338c74b4..2159bc8aa29 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md @@ -20,5 +20,8 @@ X-Appwrite-Key: <YOUR_API_KEY> "tag": "<TAG>", "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md index 8d47b56cd5c..d43931a53b7 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md @@ -1,7 +1,5 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md index 25c7ad23a01..ec58a2a93fc 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md index 922f6eedf39..f4703730ad9 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md index 41154613a40..fee30719b3b 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file.md index 041ba840990..ff477aa2db7 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md index 9ae348b905a..b92d639db65 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md @@ -1,7 +1,5 @@ GET /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/list-files.md b/docs/examples/1.6.x/server-rest/examples/storage/list-files.md index 1b5a80de5d9..f464b524d38 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/list-files.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md index 0b0d71d3386..de5503aa97b 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md @@ -1,9 +1,7 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md index 8af5263810d..cc3f6c3394b 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/get.md b/docs/examples/1.6.x/server-rest/examples/teams/get.md index b926719f555..fe6391f0caf 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/get.md @@ -1,9 +1,7 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md index c5142bc8a4a..d11943f58ff 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md @@ -1,9 +1,7 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/list.md b/docs/examples/1.6.x/server-rest/examples/teams/list.md index 4d322d6d4f7..7ff9f48e124 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/list.md @@ -1,9 +1,7 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md index da744ce23dc..d3820ba2fa9 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md index acf09a82f8a..bcaba932627 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get-target.md b/docs/examples/1.6.x/server-rest/examples/users/get-target.md index 657cef16d4e..c26d3fc61b0 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get-target.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get.md b/docs/examples/1.6.x/server-rest/examples/users/get.md index 4000161e8e1..77f6ca2d77d 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get.md @@ -1,7 +1,5 @@ GET /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-identities.md b/docs/examples/1.6.x/server-rest/examples/users/list-identities.md index 617e7de1226..26b3dfdefae 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-identities.md @@ -1,7 +1,5 @@ GET /v1/users/identities HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-logs.md b/docs/examples/1.6.x/server-rest/examples/users/list-logs.md index 0588e609e18..28b67072799 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-logs.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md index 1937004e586..e5526448d92 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/memberships HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md index 64570341b20..586e0daa754 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md index b6b80f15bb2..49a81c19d5a 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-targets.md b/docs/examples/1.6.x/server-rest/examples/users/list-targets.md index 6c48a184f63..4ffa874b991 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-targets.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list.md b/docs/examples/1.6.x/server-rest/examples/users/list.md index 0a5c3185914..7e66ccc3652 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list.md @@ -1,7 +1,5 @@ GET /v1/users HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md index a54d5f00575..bcb25d66f57 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md index 08d34230a0e..be5fc1c07ab 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md index 1e85706cf2e..d75e310a36c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md index 8ad2db14ca6..8e5b6b78c8d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md index 253b26309ef..9537d1fb3d9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md index 38ad5492d95..a3cc71cd8a3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md index b5fa72f78b0..ba34779ad25 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md index 9c64fdf47aa..db91cf533d1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md index be8169e58d5..52bc5d61942 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md index 70e8be2ca97..81bedd0ce98 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md index 0f5685bf20f..a7dec8f34e6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md index 15f0f93a987..e344bafc759 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-session.md b/docs/examples/1.6.x/server-ruby/examples/account/create-session.md index 27c265549ee..4b8ce216bc9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md index 216d88c02c4..2eba7c776d1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create.md b/docs/examples/1.6.x/server-ruby/examples/account/create.md index e27f488f6b5..84228b83511 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md index a38eccd0805..e8f8e838148 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md index 9b4f352badc..832ff6ae132 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md index 4781eecdc6a..7496cafe3ac 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md index 776938e2dc8..ca5d9224830 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md index 207e5219d69..26ffa9d61d7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md index 0a1ca1c1c90..664454cf2fc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get-session.md b/docs/examples/1.6.x/server-ruby/examples/account/get-session.md index 32a162e60d5..c433b22e461 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get.md b/docs/examples/1.6.x/server-ruby/examples/account/get.md index 5174ab71777..f33050345de 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md index 91b513b9c0a..696e02dd5a2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md index b11dc1a4aba..1f3366a2ede 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md index 48050f2235a..460ac87ac1a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md index 65d50483bb1..b5968c498f2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-email.md b/docs/examples/1.6.x/server-ruby/examples/account/update-email.md index 69e49847cb2..24b43edebd8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md index bf5d7458757..b1b50f32fd3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md index 7e72263f97c..c96820f1830 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md index ba6389d0436..5ff2adcbdcb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md index ab0d4d31ef6..2f4b61d5810 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md index 5724025f636..ad1f2e5f0e0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-name.md b/docs/examples/1.6.x/server-ruby/examples/account/update-name.md index e071dd96fdd..ef8a5cbb4f3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-password.md b/docs/examples/1.6.x/server-ruby/examples/account/update-password.md index 8dd0da6bdd5..4b8705359be 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md index 90776cededa..b81c485c8c0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md index b41bb42fad7..8dcf316e491 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md index b562355f0e2..ea758a8d8da 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md index 5dc92d1242b..ecfe4f49881 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md index 06372cb86a5..42c483771c8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-session.md b/docs/examples/1.6.x/server-ruby/examples/account/update-session.md index b1181e0c87a..34e00eec250 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-status.md b/docs/examples/1.6.x/server-ruby/examples/account/update-status.md index f69f527dfa3..5c543b790c5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md index 5a0cff80a2d..9866ade95c9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md index f48a05a06e5..4afdf779a4d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md index 99b3c626461..a324f6db75e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md index 470512868b3..7c8bd4347f8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md index cd162a5f9e2..f648a285d12 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md index bc38de19c9f..f46fad0c445 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md index 9d79e8eac73..85e5a6a422f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md index f5228664fa5..9c6e34686cd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md index 35449c28f8d..158ea056236 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md index 8d564a38e6e..c22b34813eb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md index 594f36eda9c..af12b7965bc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md index 30ef93f61af..e6831084a1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-documents.md new file mode 100644 index 00000000000..98eadab57d5 --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +databases = Databases.new(client) + +result = databases.create_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + documents: [] +) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md index d7456a1d5aa..7f36f6b0769 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md index 86212795f2c..c8e390a1a92 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md index 3b61bf56e6b..fa77f899026 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md index 865ce932cc5..e75478dea21 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md index 88832bdf74f..a6895021368 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md index 88167e1f539..7abeee94036 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md index d80f19c8f80..b056f3bbb2a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md index 05f96cfb804..d94af0f22f8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md index 9f216d91254..3ffd7321a1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create.md b/docs/examples/1.6.x/server-ruby/examples/databases/create.md index 3846e50a84d..62675e6ba77 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md index a352a73a19d..816b31e43f8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md index 1c0b961d2dd..28dd8d773c4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md index 5195ea4efe7..2102d2695ba 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-documents.md new file mode 100644 index 00000000000..d0f10d0b41b --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md index e91770c3388..b5d9231508c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete.md index dbd5b559d78..802f5d6bd45 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md index 94ed06a5080..1558de656aa 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md index ff66336b85f..89ae0e32ac1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md index bd0e4ec030b..f43a1a29241 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md index 3042e1496f6..cd5fca3d602 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get.md b/docs/examples/1.6.x/server-ruby/examples/databases/get.md index cd8b777cce8..c042cd7c4e3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md index 2a500a69e23..f1ec0dedcdf 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md index bac8095c1c2..26f3d355529 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md index 891e5345c8e..6617198d3fe 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md index 7f86bb77b1b..f98c62a4442 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list.md b/docs/examples/1.6.x/server-ruby/examples/databases/list.md index 14c6fd16440..2e093f73b1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md index b1b94a682b5..72f0eac0886 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,5 +14,6 @@ result = databases.update_boolean_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: false + default: false, + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md index 9a1c73cb102..d42a651cbb8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md index df847311203..b726283323f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,5 +14,6 @@ result = databases.update_datetime_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md index dce09af140a..485eb0485a6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-documents.md new file mode 100644 index 00000000000..2f6907294fc --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-documents.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + data: {}, # optional + queries: [] # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md index d72bc6bc880..3324e398600 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,5 +14,6 @@ result = databases.update_email_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com' + default: 'email@example.com', + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md index 1e2a85d73d0..72a05154670 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -15,5 +15,6 @@ result = databases.update_enum_attribute( key: '', elements: [], required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md index 2c41ca1d228..738e6de36a5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,7 +14,8 @@ result = databases.update_float_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md index 8e2b32a4f4d..dece44544fd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,7 +14,8 @@ result = databases.update_integer_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md index 517a5f4015e..deceb732e49 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,5 +14,6 @@ result = databases.update_ip_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md index b6126b58704..679edb823eb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -13,5 +13,6 @@ result = databases.update_relationship_attribute( database_id: '<DATABASE_ID>', collection_id: '<COLLECTION_ID>', key: '', - on_delete: RelationMutate::CASCADE # optional + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md index 17ab3e9a99e..66f458e8003 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,5 +14,7 @@ result = databases.update_string_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + size: 1, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md index 0e421d28f64..cbf417b6bf9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,5 +14,6 @@ result = databases.update_url_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com' + default: 'https://example.com', + new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update.md b/docs/examples/1.6.x/server-ruby/examples/databases/update.md index eb5e42c3996..e5c02a11f16 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..353e38fe2be --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/upsert-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.upsert_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + documents: [] # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md index 031bf03d6be..ef6151ca446 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md index 8c0b3a58d81..0ff3db31e9c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md index bda612c813f..b64b1d5c575 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md index 10fa86e4ccf..8094b7d0648 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create.md b/docs/examples/1.6.x/server-ruby/examples/functions/create.md index 9c0bf2911b0..100491da133 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md index 642bf23b903..192172cf9cc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md index bb91baa338a..4172aade32d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md index c36a58359ee..ffbe69f106c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete.md index 787692accc5..e5c59e39c09 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/download-deployment.md deleted file mode 100644 index 748d0c9d010..00000000000 --- a/docs/examples/1.6.x/server-ruby/examples/functions/download-deployment.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -functions = Functions.new(client) - -result = functions.download_deployment( - function_id: '<FUNCTION_ID>', - deployment_id: '<DEPLOYMENT_ID>' -) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md index a3c373feb7c..57cacc6dbfc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md @@ -3,9 +3,9 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md index b6baee49104..1651ae12853 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md index 6b19e4e65b6..7ab910e785a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-template.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-template.md deleted file mode 100644 index 5274880f672..00000000000 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - -functions = Functions.new(client) - -result = functions.get_template( - template_id: '<TEMPLATE_ID>' -) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md index 30d6a0009df..5022cf84d6d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get.md b/docs/examples/1.6.x/server-ruby/examples/functions/get.md index c2d63deb77a..5cfd1350284 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md index 7db9d45c01d..3df3dd3ee81 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md index 159c78dbde0..df63053a21c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md index 938fcf75526..1b6d25ee6d7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md index 2ccd05e3fd2..2c9cf7c4709 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-templates.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-templates.md deleted file mode 100644 index 8bee6b01873..00000000000 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - -functions = Functions.new(client) - -result = functions.list_templates( - runtimes: [], # optional - use_cases: [], # optional - limit: 1, # optional - offset: 0 # optional -) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md index 6159bf102bc..dd3fc4f2ae5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list.md b/docs/examples/1.6.x/server-ruby/examples/functions/list.md index a49034d0514..0cab1c34d79 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md index 5164aebd6ef..b8611f26378 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md index 862e86d2a66..c4608853537 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md index 6ac47f80dc7..f0b6002e9b2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update.md b/docs/examples/1.6.x/server-ruby/examples/functions/update.md index 8f5cafdb551..45b6e32ab31 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md index 7daf975ea66..08ca6f30d2d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/graphql/query.md b/docs/examples/1.6.x/server-ruby/examples/graphql/query.md index 0825bdea46a..05e69506a17 100644 --- a/docs/examples/1.6.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md index 51125076569..5f8d06056d5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md index 5493b757be1..01bd46cd0bb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md b/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md index dcfcb6afb7e..64699d42d06 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md index a707a14ada3..d9668339c5d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md index da41856b403..73e1983e3a3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md index 4d86e06ea23..86e9c409ed7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md index bb002f8b393..9f876982ef0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md index 59572f94f3b..d10c2feb398 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md index e09233bc343..37024d8144e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md index 184c13421c8..2508be22ba1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md index b44b7b8983c..e5b56474bc8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md index dd3f8759c36..cb35ac333b7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md index ce7c40587b1..36cfec3d875 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md index 842da5bdd0c..d317f2a74c9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md index 3349291ff83..3c68c865dc2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..7024bac3070 --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_stats_resources( + threshold: null # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md index f8bf30b0146..96088c25c72 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md index b1d17042e76..b687bd87896 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md index 982e244bbbd..28f28ea78aa 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md index 936082a447c..6e39da598e4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md index 8a04f77b9bf..a122de50eee 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md b/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md index 6a5dfa97e4c..ee778643ec0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-time.md b/docs/examples/1.6.x/server-ruby/examples/health/get-time.md index 9e95c2332e1..9d345557a38 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get.md b/docs/examples/1.6.x/server-ruby/examples/health/get.md index 5c82e66ce21..4bbf0c0eb0e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/get.md b/docs/examples/1.6.x/server-ruby/examples/locale/get.md index d3a982d0431..264da0e1879 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md index 74a41b95245..27632669f03 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md index 312936104ca..b78f130201e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md index 9b19151d110..8498f2bdda7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md index c011734ae1c..8fa087e9204 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md index 4884f6a6810..a635a4e0b36 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md index 3dcfb703dba..60e9d94df99 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md index 3d9a2dbc9c2..e5b9df1945e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md index 88988f6e438..a2803408470 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md index c64cf5f2842..573a5b83d49 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md index 1c23df81f7f..a1e8b67b518 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md index 3c8a574d6e4..aa5b7f18999 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md index 7037f00d0e3..35a192f1483 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md index 1c6700db436..5c58fa542b1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -11,8 +11,8 @@ messaging = Messaging.new(client) result = messaging.create_push( message_id: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', # optional + body: '<BODY>', # optional topics: [], # optional users: [], # optional targets: [], # optional @@ -23,7 +23,10 @@ result = messaging.create_push( sound: '<SOUND>', # optional color: '<COLOR>', # optional tag: '<TAG>', # optional - badge: '<BADGE>', # optional + badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md index e9c31548d46..eae3ad3ecec 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md index 58a96aa4772..901ec40c052 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md index cbdaaaf8b53..b062e574b4e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md index 973349084f9..1f6fa437363 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md index 40c60a793c4..b26d9d2784f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md index 804f0b2c86a..4fd1a3683ec 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md index f1f29c99624..da2cf5e57bd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md index 1350b8535a0..a945602646d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md index c1c83a4b0b9..5a5f6eb72b2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md index 86c9ae1473c..3c19e1ba0f9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md index 5606269d53e..a82e5e94c25 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md index d8506621945..cb58ee5c6ce 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md index 1155406f819..e3db26127de 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md index 8b7ffad012b..f5449a0be44 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md index 3da5beb468e..ddb28da4de2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md index 278aba08d2d..3c7d05334ea 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md index ec58550f235..9ff732fc265 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md index 7db1381d84b..f20d6fb491c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md index 07fc3fcc9bd..ffc5dcdbc6f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md index fda60b669ac..af3751a18f6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md index 43f4a213f5b..a857f0562ff 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md index 5be2900cb65..06550e70678 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md index 6583f9300e2..07ebc99babc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md index 7354fc54b66..0407255d860 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md index fb1f0e21b3a..9b53c47f826 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md index c00b8f1731f..5e7b6740cca 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md index e1748e6d88f..b19704aaed9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md index baae0f9462c..aa3593292fb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md index 463e028d5ae..44ea0d28deb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md index 38f741749bc..a2e53190d7d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md index b58c04f4946..0e88382850e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md index 54f6368eeec..42a5104ccbd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -25,5 +25,8 @@ result = messaging.update_push( tag: '<TAG>', # optional badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md index afa2c172f72..99f1a9c7f15 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md index 31adae7aa2f..b31480c1a0f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md index 00c6d57c0ec..bbaebf3c32d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md index 1d530f07b65..4f1bf6ff5ba 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md index e4e7a42d705..c8cd2f0daf5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md index c944fb4ab6c..d20d945385e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md index 8203054f59d..0f6a6761e11 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md index 01d7fe12de7..e75bfbd98ee 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md index a6bb22cc5af..643431ed2c4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md index c6f3e266a99..99e07c33f47 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md index 37d504cdc3f..dda3264e666 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md index 74bd8df8a85..eef058857c1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md index 158fc300b0f..7c8580dcaf0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md index 86efd7c609e..0747fdf04bf 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md index 2babfbd856d..38a68a8c8b4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md index b6b0c560bb9..4c31305ecd7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md index 76bcca44832..b816bdba02e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md index 73cf40ed4fd..dfee831b691 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md index 0ce09d8c150..078ff55e41a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md index 3db084deff5..09b915eb5fb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md index ed50e9c9081..a454499d9d1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md index 1990223142f..6c0faba77d8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/create.md b/docs/examples/1.6.x/server-ruby/examples/teams/create.md index e462cf42778..ba71a1dfc4e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md index 4dc3397592d..5d815a8ca35 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/delete.md b/docs/examples/1.6.x/server-ruby/examples/teams/delete.md index f4879ba422b..c9f7c400e90 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md index ed60299e2c2..41a2c7bfb49 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md index 1708412d562..e6b2cfadceb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/get.md b/docs/examples/1.6.x/server-ruby/examples/teams/get.md index 5d5a274b558..af51193cd37 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md index ac22269e3c0..db48f0cfc6a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/list.md b/docs/examples/1.6.x/server-ruby/examples/teams/list.md index 50b49f8b45f..9e96391975a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md index bb22ef03e70..40d82b86f17 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md index 7f92ff053cf..92b69b17734 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md index 267e5f29636..74f785c4ca8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md index 337db7f22f1..03426aa3b95 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md index 8b633daaa8c..8da9e0b1ffd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md index d76f653d276..7c2b852d691 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md index a30a2b6bf04..57f7f1d32f3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md index 80ca9f59cba..63fb68742ef 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md index 64fc8d5c58c..0cdea46af3d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md index 2fa6081cea9..7cd898a6fc6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md index 39c17743fd5..f3951d9c806 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md index 2a0ac89ebed..d84c2eed488 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md index 38c250e5520..53aa253d2a2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-session.md b/docs/examples/1.6.x/server-ruby/examples/users/create-session.md index ece2f429af7..32d2b5f2ad8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-target.md b/docs/examples/1.6.x/server-ruby/examples/users/create-target.md index 5e5d9433310..3e87868df6f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-target.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-token.md b/docs/examples/1.6.x/server-ruby/examples/users/create-token.md index 318294b9899..85e5f448ca8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create.md b/docs/examples/1.6.x/server-ruby/examples/users/create.md index aa742f60ffb..4f57adeb877 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md index 3c2e7a55b91..d2482dfae1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md index 9bed8637c2a..50fcb0fa0d9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md index 4ac5f2795c9..9b14cc4fa34 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md index b83a4224f2c..23fd5057637 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md index 0e016cf70cf..f1564024dbd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete.md b/docs/examples/1.6.x/server-ruby/examples/users/delete.md index 0aea69334ef..db7f2ee6f8b 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md index f12a2879ee2..f984517d26f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md index afcb56f42db..0118b39897e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get-target.md b/docs/examples/1.6.x/server-ruby/examples/users/get-target.md index b2e268e8163..10ce49b2294 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get-target.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get.md b/docs/examples/1.6.x/server-ruby/examples/users/get.md index 86ec849c7c8..95865b7e6c5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md index 2d4aa2f7eec..78c8cf50981 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md index a13cec1b536..686434869c1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md index 8706af14051..d36c380cec8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md index ab98651311e..ca1e2b2b964 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md index 17faa167019..311420531f3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md b/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md index 9b849e4fcc2..aae99417940 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list.md b/docs/examples/1.6.x/server-ruby/examples/users/list.md index 40d1e839445..b490b650997 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md index 439fa330d40..07f85f0318b 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-email.md b/docs/examples/1.6.x/server-ruby/examples/users/update-email.md index d93141f3c97..b36aac59d14 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md index 2789e8fea99..a62d34b2e25 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md index 1fc497c22ec..aaf5ba16c0a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md index 9bafee47efc..3ebfb961162 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-name.md b/docs/examples/1.6.x/server-ruby/examples/users/update-name.md index 7645c165971..e7ade96e326 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-password.md b/docs/examples/1.6.x/server-ruby/examples/users/update-password.md index 40e03eea9c5..47c1f1ef492 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md index 88082ee0342..6af7fcb638c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md index b08daa83860..bd26547daaf 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md index 9871ff5b625..fbdccd7d236 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-status.md b/docs/examples/1.6.x/server-ruby/examples/users/update-status.md index a5d9544cbfc..d73982c149b 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-target.md b/docs/examples/1.6.x/server-ruby/examples/users/update-target.md index 6acc913642b..dbcd1bd2f40 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-target.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md index f676bac4da4..22020a16d95 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md index 15051827b86..5f541a8a154 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md b/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md index b9d39ff27f9..cf82afde8ff 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md index c1c0f22dffc..fbcd50401c6 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md index 83eb681673b..27bbe4137ea 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md index 70294e99a22..4dd91d84dd4 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md index 6d262d9c74a..0b5d385999e 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md index 8480f417792..a73e4f60244 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md index 7bbfe98f48c..21b54e8c9a0 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md index acb7a696bcb..12b2d4b2231 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md index 8bab0b760f3..cba06376481 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md index f110d5b84d2..d89f679e0c7 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-session.md b/docs/examples/1.6.x/server-swift/examples/account/create-session.md index 3ea51195697..2065692a166 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-verification.md b/docs/examples/1.6.x/server-swift/examples/account/create-verification.md index 305adcab30b..71e9bdd32b2 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create.md b/docs/examples/1.6.x/server-swift/examples/account/create.md index cad7e44c449..79b4db64ba6 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md index e0322503f80..f0f14b37d2d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md index 9aa02ff4caa..e4209a25504 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-session.md b/docs/examples/1.6.x/server-swift/examples/account/delete-session.md index 9c685bc5514..24696201164 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md index 59710f1a771..da8ac6dfe85 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md index 34743be6d30..69455f4acd8 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md index 08d9ab5b4ac..6551df92e63 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get-session.md b/docs/examples/1.6.x/server-swift/examples/account/get-session.md index 37747add26f..63efb3f0980 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get.md b/docs/examples/1.6.x/server-swift/examples/account/get.md index 91ed56ab7c2..833901b5b4d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-identities.md b/docs/examples/1.6.x/server-swift/examples/account/list-identities.md index 96c6fd9dc27..c7ecff9962e 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-logs.md b/docs/examples/1.6.x/server-swift/examples/account/list-logs.md index 1a93da0d0eb..84c33277623 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md index 72c2f5affef..a63d4d0f824 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md index 67bb1070918..49691b3a9e1 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-email.md b/docs/examples/1.6.x/server-swift/examples/account/update-email.md index d8126b5cf86..48cce5055d9 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md index 4a471a4a358..ac486fceb65 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md index 8e0a26a6ef7..507006b2300 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md index 30e2705318b..fedbc954af9 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md index eed3bfade7e..4edb1fbbc37 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md @@ -1,13 +1,13 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md index 2be8f6fbf6a..d0a2b8c6865 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-name.md b/docs/examples/1.6.x/server-swift/examples/account/update-name.md index 419b30a0098..2c676d87145 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-password.md b/docs/examples/1.6.x/server-swift/examples/account/update-password.md index 8358ede14f6..62fe48e6e95 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md index 50a88cbe519..f6776d1de19 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md index 13b0baca639..a983e79c3c1 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-phone.md b/docs/examples/1.6.x/server-swift/examples/account/update-phone.md index 496ddd9d0ee..6dd87a0ce5d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md index 846764b4e5f..53bf623469f 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md index 82e86839d82..d655edfe593 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-session.md b/docs/examples/1.6.x/server-swift/examples/account/update-session.md index 866ea03047a..f2f4f7b737d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-status.md b/docs/examples/1.6.x/server-swift/examples/account/update-status.md index d63ceed7243..88e30cfb095 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-verification.md b/docs/examples/1.6.x/server-swift/examples/account/update-verification.md index 5bae6777440..61bc18cc489 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md index e2a79f953f5..7db84f1ba2a 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md index 741d3410604..aa9bafd2c3e 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md index 0ee7ba17669..73f54fe5d34 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md index 2bdd9577ee0..c276572ce93 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md index fecadf7cf7e..5455ad18f53 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md index d5e09050f26..63dfa5e5ab5 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md index 56f4b9c7d79..ae4cc910ab0 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md index 0776be6ead8..4530c385caf 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md index 79c2d59861e..c3335b48cbc 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md index b4f51d8f0c9..d14d0b5cabf 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-document.md b/docs/examples/1.6.x/server-swift/examples/databases/create-document.md index 5f480a5ee45..daeaf144e11 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/create-documents.md new file mode 100644 index 00000000000..f7c076eaea4 --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let databases = Databases(client) + +let documentList = try await databases.createDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] +) + diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md index 7c44f4d62ef..9bd30b38c96 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md index b1d680824c1..08023f652b9 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md index 780e53b7752..b5126c6a50e 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-index.md b/docs/examples/1.6.x/server-swift/examples/databases/create-index.md index bd1d26dc323..11cbc179827 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-index.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md index 03fea65bc65..20c29cd5696 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md index 4e601a37c8e..09605ba5220 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md index c85b4779984..8e6c3eb84b0 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md index 6a7ae27c6eb..80c321ecdb0 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md index 6d59fed9584..efd2acbc085 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create.md b/docs/examples/1.6.x/server-swift/examples/databases/create.md index 82689d1b52d..b0362bb3e84 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md index 7fb7c3a02e2..99485559811 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md index 781e97c27d0..d61f0e658db 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md index f934d5b29c2..1db59709ab2 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-documents.md new file mode 100644 index 00000000000..d5321f2b26f --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.deleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md index f819d921b69..ecd09f7ce66 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete.md b/docs/examples/1.6.x/server-swift/examples/databases/delete.md index 8cb3f882128..40567e4288d 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md index f22fd9280af..30cd0c88326 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md index 81b0bf21bac..96c1fa0f940 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-document.md b/docs/examples/1.6.x/server-swift/examples/databases/get-document.md index 206fddd3e6b..c92856a731d 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-index.md b/docs/examples/1.6.x/server-swift/examples/databases/get-index.md index b2c1b30902e..cd59074dc83 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get.md b/docs/examples/1.6.x/server-swift/examples/databases/get.md index 37c15982cbb..875929bed08 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md index 356b13be0fd..b375c8771b8 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md index 03db34f8d56..10481d985ca 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md index 11dc91d2ae5..2cac9330b37 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md index 2f37a0b30d8..691f74b0765 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list.md b/docs/examples/1.6.x/server-swift/examples/databases/list.md index e27367659a0..f8a2313acc8 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md index c22cccd4d4e..0d925056c2b 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,7 @@ let attributeBoolean = try await databases.updateBooleanAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md index 741d3c60160..91099901095 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md index fafcf403907..906b374946e 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,7 @@ let attributeDatetime = try await databases.updateDatetimeAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-document.md b/docs/examples/1.6.x/server-swift/examples/databases/update-document.md index 67cfb960ea7..7d452db284d 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/update-documents.md new file mode 100644 index 00000000000..0e934b1424b --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.updateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: [:], // optional + queries: [] // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md index 8a5c3ce2be6..b485712ada5 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,7 @@ let attributeEmail = try await databases.updateEmailAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md index 1c43d84b015..997b940c1b1 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -13,6 +13,7 @@ let attributeEnum = try await databases.updateEnumAttribute( key: "", elements: [], required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md index d869c818bb9..5f3e8da4dab 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,8 +12,9 @@ let attributeFloat = try await databases.updateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md index 08391b65062..edc0a12c8c6 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,8 +12,9 @@ let attributeInteger = try await databases.updateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md index 69eb79961a6..e08835747c0 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,7 @@ let attributeIp = try await databases.updateIpAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md index 31bd76de8b5..0fb06d77960 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,7 @@ let attributeRelationship = try await databases.updateRelationshipAttribute( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: .cascade // optional + onDelete: .cascade, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md index a7fb46f32a9..1eb3315dcab 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,8 @@ let attributeString = try await databases.updateStringAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md index d008c933122..cd18f963686 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,6 +12,7 @@ let attributeUrl = try await databases.updateUrlAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update.md b/docs/examples/1.6.x/server-swift/examples/databases/update.md index a03a74b4ff5..07f506257b1 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..353cc5c5024 --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.upsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-build.md b/docs/examples/1.6.x/server-swift/examples/functions/create-build.md index f67ac99bc17..22d3c4307b7 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md index bcd10ae042a..de3d14d2424 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md index 560f1a977f4..aae7a0f52f5 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md index 3af32209755..83ec4dbdd90 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create.md b/docs/examples/1.6.x/server-swift/examples/functions/create.md index fb614b5a4ec..aa77cc4741f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md index cf9315e9af1..dec7b1db8f5 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md index f6e13cd4bb4..e51b7dcd5c4 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md index 7d09f110488..ea0ebab079a 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete.md b/docs/examples/1.6.x/server-swift/examples/functions/delete.md index ff1d0490909..76bb48cddf4 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/download-deployment.md deleted file mode 100644 index 753d7058e6f..00000000000 --- a/docs/examples/1.6.x/server-swift/examples/functions/download-deployment.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let functions = Functions(client) - -let bytes = try await functions.downloadDeployment( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" -) - diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md index 7db6c4cd187..383a1873805 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md @@ -1,9 +1,9 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md index 438b667e105..56ed2e85128 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md index 0aa9d66af62..6d24ee9390e 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-template.md b/docs/examples/1.6.x/server-swift/examples/functions/get-template.md deleted file mode 100644 index bc7a9a3aef3..00000000000 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-template.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let templateFunction = try await functions.getTemplate( - templateId: "<TEMPLATE_ID>" -) - diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md index 0832b41e887..da20d680076 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get.md b/docs/examples/1.6.x/server-swift/examples/functions/get.md index aa434c03e34..98babdb04d3 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md index 5f005f02fae..599f301ca88 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md index 2c28d542745..512c890fc51 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md index bad50b172c6..c4a3f31174c 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md index 0c9da2df0b2..1f5914ba91f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-templates.md b/docs/examples/1.6.x/server-swift/examples/functions/list-templates.md deleted file mode 100644 index d0090ab803b..00000000000 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-templates.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let templateFunctionList = try await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -) - diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md index 67030b93d1d..0343e547721 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list.md b/docs/examples/1.6.x/server-swift/examples/functions/list.md index f6ed013a564..370b6bddfd2 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md index 9003a02df3f..8f48cac855f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md index 9ae6ec4f51e..313ccc4b5ee 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md index 67169852a7c..86eaf58593d 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update.md b/docs/examples/1.6.x/server-swift/examples/functions/update.md index dcc4ed637e8..ebb2828bc8f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md index 6d4f7475370..ad338588946 100644 --- a/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/graphql/query.md b/docs/examples/1.6.x/server-swift/examples/graphql/query.md index 4a10f57cbcb..f087c888a35 100644 --- a/docs/examples/1.6.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md index d45b7190eb7..5fc335f8fc5 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-cache.md b/docs/examples/1.6.x/server-swift/examples/health/get-cache.md index 4d493c40ad7..a1c514b60e7 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md b/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md index 1d2d453d73e..6adf4d60523 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md index c7b5127d59f..a6aeb12e44c 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md index 5120c072a6c..c508106bfa4 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md index 561fc6b7a97..9a7766c94a5 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md index 81b4fb2523a..8db346ccbee 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md index cecb88ae675..4814f29d870 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md index b3fefc8b050..3acda3ddd74 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md index 0d90387c6df..8be397f53f8 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md index 961cc6221d7..aa420409d2c 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md index 34d26efd758..dc989a510f3 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md index f48a96d7c8a..2106b2f233a 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md index 7a171bd7339..11cb16c5e3c 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md index f36eb129a60..a0a4588b545 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..4eb6ba7de37 --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueStatsResources( + threshold: 0 // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md index df4c043e16e..e4ad03ce0a4 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md index b3bc88ed881..bfaeab0b36d 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md index 25ed30f4426..c315406627d 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue.md index b7da587aed1..9e95237c9f0 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md index 4e8518362c1..9e23c09b6d2 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-storage.md b/docs/examples/1.6.x/server-swift/examples/health/get-storage.md index fbe116fccef..513ebac944a 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-storage.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-time.md b/docs/examples/1.6.x/server-swift/examples/health/get-time.md index 02cca3f21bc..6624b40b227 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get.md b/docs/examples/1.6.x/server-swift/examples/health/get.md index 140b304461e..ef1ffaab6cd 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/locale/get.md b/docs/examples/1.6.x/server-swift/examples/locale/get.md index 94121fd0b28..e22f3157c79 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md index 1f41799b204..b31448a1193 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md index f46f3c034bd..c75abf8a4d7 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md index ee57e01a8e1..e09f3db4f72 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md index 9263de68e5b..de360c44087 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md index d793492f719..b214f9899b2 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md index eb0ddf7f5e1..a47cae696be 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md index 19a70b23a4e..40db7e5fe6e 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md index 9bbb4da7a1d..5e20018fef9 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md index 655daeaad4c..a1b47742289 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md index b127946cf84..0071e477f10 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md index 63fd5a127fb..aca295d1bdf 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md index 57cd54be154..01503c10cb8 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md index dbc7bf0ca6a..498eccb51a4 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md @@ -1,7 +1,8 @@ import Appwrite +import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -9,8 +10,8 @@ let messaging = Messaging(client) let message = try await messaging.createPush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -21,8 +22,11 @@ let message = try await messaging.createPush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md index e8b70b629f8..5275f6cdb7e 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md index 22ca198e461..4f579312a92 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md index 5eff6413e1e..18d25df7383 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md index 087ec0e31e1..cb231624849 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md index b9beb151f6f..a787134992a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md index f1802d9f296..9b12a7d8cbc 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md index 14f222907b4..9429c45554a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md index f0f0d6e0875..7421290e05d 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md index 4e683dfc9d1..b6a30143910 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md index 3652609bec1..94da565e1fe 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md index b083fc4e1ac..b0aa96602f1 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md index 1de412682d3..6676adf94e5 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete.md index 2e407808af3..fca66c7f431 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md index 5db5f7d5084..b1bbf9d5f01 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md index b5a81562883..6ff8545bd0a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md index ac4d2898716..55538e073d7 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md index 3d883714588..0d2035bd9d8 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md index c58ef450d25..b7efe6fa9f8 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md index bfa9222239c..73832f7daed 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md index 55f0d1f2541..0633e15b62b 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md index fbb5803538e..c24af425a6f 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md index a83cb6053db..eab170d7cb6 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md index ded4fdf9757..a29bcefaf1f 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md index 00219f15f6f..974ae4f7b5c 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md index 68f121c9efe..e6f32ad2322 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md index 617b13c70d6..13106e940c9 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md index 012e91e7bf2..03afe5555b6 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md index e9251641806..1404fb8f772 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md index 60a0ce46e2f..c4548f65490 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md index bc385267ecd..8ed28aa40ef 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md index 3818b7a9c1c..e4a441c561a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md index 40ce34bf666..e443161aa97 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md @@ -1,7 +1,8 @@ import Appwrite +import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -23,6 +24,9 @@ let message = try await messaging.updatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md index af950c7db05..d363342af8f 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md index 8f4476783ec..46b225fce05 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md index 95db5056cfc..7ef8f2e7600 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md index 0d3279c98b1..4475128b716 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md index 738d27d7c11..e412faab656 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md index ad5edd1f904..796f581f075 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md index 6320665e616..7b4592b048e 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md index ffdbe95d3de..ba10ce2309b 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md index 4ebbdf84153..a664e14f5f0 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/create-file.md b/docs/examples/1.6.x/server-swift/examples/storage/create-file.md index 0716cf7d237..540c869fabf 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md index 56c7d3ed6d9..2f4916dba23 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md index 35dca5e706d..7ac1b194e6f 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md index e33af5cc3b3..296a27bf850 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md index 40607d08ddd..5893cefad1e 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md index e3372093d8a..874e5675e44 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md index 0c88e15b729..4cf7e7d996a 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file.md index a0c997c40b1..033a643a831 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md index 2329b15ad6e..957d266e9a7 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/list-files.md b/docs/examples/1.6.x/server-swift/examples/storage/list-files.md index 546bd1c1ef3..103d3c328c2 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md index 4122d1f062e..de3b5bf0e5e 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/update-file.md b/docs/examples/1.6.x/server-swift/examples/storage/update-file.md index ca3fc2c293b..d4d7484bd31 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md index 5c86f2db335..9010372175f 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/create.md b/docs/examples/1.6.x/server-swift/examples/teams/create.md index 2533c279027..71f3d708748 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md index e260b01ff84..dbdbc96ff94 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/delete.md b/docs/examples/1.6.x/server-swift/examples/teams/delete.md index b9fbcbe4466..ee9daaa55b3 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md index cce480cc70e..ab7b29eb3a5 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md index 9ec230df38c..ae3e9f2875b 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/get.md b/docs/examples/1.6.x/server-swift/examples/teams/get.md index 8dce2c137ba..cd4b75567a8 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md index 08b3235e518..0670d91ab24 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/list.md b/docs/examples/1.6.x/server-swift/examples/teams/list.md index 8b6d0a16744..b5130cbf898 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md index 1ae6d6e9936..69fca1de74b 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md index 92b747458ae..47f28e74fd8 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-name.md b/docs/examples/1.6.x/server-swift/examples/teams/update-name.md index bc9731bd567..56f5ab60dbf 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md index b86e93793e7..b8bb200b654 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md index 6f584e47245..9b7477001d5 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md index cd0960f354f..ad5a81fe342 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md index 77ef4da98f5..d61adfb9a70 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md index a305f6a744a..ffe7180c5e8 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md index cb25d43cb1c..577a533fcb4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md index 5a95af73e41..e1d8d3f3ef1 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md index 70d6f284db6..ac42f2fe9d5 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md index 62709130e3b..d6c67f6f3df 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md index 41a086560da..16452c46064 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-session.md b/docs/examples/1.6.x/server-swift/examples/users/create-session.md index 764d4d87d69..cf6f67bd911 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-target.md b/docs/examples/1.6.x/server-swift/examples/users/create-target.md index f6bc443ea4e..e736afcf311 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-target.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-token.md b/docs/examples/1.6.x/server-swift/examples/users/create-token.md index 0d8c363537a..ca1767e1786 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create.md b/docs/examples/1.6.x/server-swift/examples/users/create.md index 8c07a780b61..98b886005ba 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md index c5bf2b35266..bb3d812457e 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md index 902d0c904cd..da2b8e091a4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md @@ -2,13 +2,13 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) -let user = try await users.deleteMfaAuthenticator( +let result = try await users.deleteMfaAuthenticator( userId: "<USER_ID>", type: .totp ) diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-session.md b/docs/examples/1.6.x/server-swift/examples/users/delete-session.md index 3f191a2502a..c664e4f2baf 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md index 6c4e8bfc082..92ab9d77487 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-target.md b/docs/examples/1.6.x/server-swift/examples/users/delete-target.md index 274bb60a8d3..1cce56657a9 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete.md b/docs/examples/1.6.x/server-swift/examples/users/delete.md index 2b28a98532c..8dfe648d6e4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md index dc7f4711349..1ae285142f2 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md index aec033a96d7..c4ae61d9dd3 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get-target.md b/docs/examples/1.6.x/server-swift/examples/users/get-target.md index d6753814c87..100c56398d6 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get.md b/docs/examples/1.6.x/server-swift/examples/users/get.md index 095c84c8dc6..563042b8ef1 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-identities.md b/docs/examples/1.6.x/server-swift/examples/users/list-identities.md index b31890275ee..8cbe8a71f48 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-logs.md b/docs/examples/1.6.x/server-swift/examples/users/list-logs.md index 5e80043d793..80d9199c3e3 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md index 5ca0152cd79..6f9999e2d97 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md index 4cf7d7ce6e6..a5b5e38e125 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md index 035716ed168..e0278279a4e 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-targets.md b/docs/examples/1.6.x/server-swift/examples/users/list-targets.md index 3ab651c6e70..b069781f701 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-targets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list.md b/docs/examples/1.6.x/server-swift/examples/users/list.md index aaa619e202c..45ccf239613 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md index cd4b51b00af..e0de947fa26 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-email.md b/docs/examples/1.6.x/server-swift/examples/users/update-email.md index 3a80ae5c5d3..4d3c1c2db21 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-labels.md b/docs/examples/1.6.x/server-swift/examples/users/update-labels.md index 5b3000df73a..8916996b1f5 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-labels.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md index 528319c7aa7..a6169a782c2 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md b/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md index 3fd25717689..ad010f36b88 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-name.md b/docs/examples/1.6.x/server-swift/examples/users/update-name.md index bf697be84ee..3735b706d8b 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-password.md b/docs/examples/1.6.x/server-swift/examples/users/update-password.md index 0f35cefc0a6..3a5b804478e 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md index 7f99390ff5f..fffd768f5d9 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-phone.md b/docs/examples/1.6.x/server-swift/examples/users/update-phone.md index 2097c452ff2..8411ad22a27 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md index d4818db4f2c..c71b712df39 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-status.md b/docs/examples/1.6.x/server-swift/examples/users/update-status.md index 2408d055665..43ecea44f61 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-target.md b/docs/examples/1.6.x/server-swift/examples/users/update-target.md index bd3cc7c470f..579f0d282e4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.7.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.7.x/client-android/java/account/create-anonymous-session.md new file mode 100644 index 00000000000..9d805882b85 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-anonymous-session.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createAnonymousSession(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/create-email-password-session.md b/docs/examples/1.7.x/client-android/java/account/create-email-password-session.md new file mode 100644 index 00000000000..428b6fddb62 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-email-password-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createEmailPasswordSession( + "email@example.com", // email + "password", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-email-token.md b/docs/examples/1.7.x/client-android/java/account/create-email-token.md new file mode 100644 index 00000000000..869f4a89910 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-email-token.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createEmailToken( + "<USER_ID>", // userId + "email@example.com", // email + false, // phrase (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.7.x/client-android/java/account/create-j-w-t.md new file mode 100644 index 00000000000..9e3bd287f38 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-j-w-t.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createJWT(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-android/java/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..6253e00d580 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-magic-u-r-l-token.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createMagicURLToken( + "<USER_ID>", // userId + "email@example.com", // email + "https://example.com", // url (optional) + false, // phrase (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-android/java/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..54781f2dc8a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-mfa-authenticator.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createMfaAuthenticator( + AuthenticatorType.TOTP, // type + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-android/java/account/create-mfa-challenge.md new file mode 100644 index 00000000000..87a56fe350f --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-mfa-challenge.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticationFactor; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createMfaChallenge( + AuthenticationFactor.EMAIL, // factor + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-android/java/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..ab507342156 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-mfa-recovery-codes.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.7.x/client-android/java/account/create-o-auth2session.md new file mode 100644 index 00000000000..4420859ce39 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-o-auth2session.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.OAuthProvider; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createOAuth2Session( + OAuthProvider.AMAZON, // provider + "https://example.com", // success (optional) + "https://example.com", // failure (optional) + listOf(), // scopes (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-o-auth2token.md b/docs/examples/1.7.x/client-android/java/account/create-o-auth2token.md new file mode 100644 index 00000000000..e5590c8ceb6 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-o-auth2token.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.OAuthProvider; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createOAuth2Token( + OAuthProvider.AMAZON, // provider + "https://example.com", // success (optional) + "https://example.com", // failure (optional) + listOf(), // scopes (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-phone-token.md b/docs/examples/1.7.x/client-android/java/account/create-phone-token.md new file mode 100644 index 00000000000..19d90b34756 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-phone-token.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createPhoneToken( + "<USER_ID>", // userId + "+12065550100", // phone + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.7.x/client-android/java/account/create-phone-verification.md new file mode 100644 index 00000000000..8c16b6c2682 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-phone-verification.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createPhoneVerification(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/create-push-target.md b/docs/examples/1.7.x/client-android/java/account/create-push-target.md new file mode 100644 index 00000000000..d434a5c6f68 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-push-target.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createPushTarget( + "<TARGET_ID>", // targetId + "<IDENTIFIER>", // identifier + "<PROVIDER_ID>", // providerId (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-recovery.md b/docs/examples/1.7.x/client-android/java/account/create-recovery.md new file mode 100644 index 00000000000..5592c6eb66d --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-recovery.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createRecovery( + "email@example.com", // email + "https://example.com", // url + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-session.md b/docs/examples/1.7.x/client-android/java/account/create-session.md new file mode 100644 index 00000000000..0c59a802b15 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createSession( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create-verification.md b/docs/examples/1.7.x/client-android/java/account/create-verification.md new file mode 100644 index 00000000000..e91acc85f99 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create-verification.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createVerification( + "https://example.com", // url + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/create.md b/docs/examples/1.7.x/client-android/java/account/create.md new file mode 100644 index 00000000000..ad04805ce3a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/create.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.create( + "<USER_ID>", // userId + "email@example.com", // email + "", // password + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/delete-identity.md b/docs/examples/1.7.x/client-android/java/account/delete-identity.md new file mode 100644 index 00000000000..d556722769e --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/delete-identity.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.deleteIdentity( + "<IDENTITY_ID>", // identityId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-android/java/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..4a9693bf8c7 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/delete-mfa-authenticator.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.deleteMfaAuthenticator( + AuthenticatorType.TOTP, // type + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/delete-push-target.md b/docs/examples/1.7.x/client-android/java/account/delete-push-target.md new file mode 100644 index 00000000000..00ab902792f --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/delete-push-target.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.deletePushTarget( + "<TARGET_ID>", // targetId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/delete-session.md b/docs/examples/1.7.x/client-android/java/account/delete-session.md new file mode 100644 index 00000000000..99d2f8e888f --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/delete-session.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.deleteSession( + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/delete-sessions.md b/docs/examples/1.7.x/client-android/java/account/delete-sessions.md new file mode 100644 index 00000000000..e93f3e33ac8 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/delete-sessions.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.deleteSessions(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-android/java/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..8274bb351a7 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/get-mfa-recovery-codes.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.getMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/get-prefs.md b/docs/examples/1.7.x/client-android/java/account/get-prefs.md new file mode 100644 index 00000000000..5bb11a4a959 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/get-prefs.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.getPrefs(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/get-session.md b/docs/examples/1.7.x/client-android/java/account/get-session.md new file mode 100644 index 00000000000..288cd3b3ba3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/get-session.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.getSession( + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/get.md b/docs/examples/1.7.x/client-android/java/account/get.md new file mode 100644 index 00000000000..6b5eb3b7faf --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/get.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.get(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/list-identities.md b/docs/examples/1.7.x/client-android/java/account/list-identities.md new file mode 100644 index 00000000000..d4a6f9f31da --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/list-identities.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.listIdentities( + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/list-logs.md b/docs/examples/1.7.x/client-android/java/account/list-logs.md new file mode 100644 index 00000000000..951a479f984 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/list-logs.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.listLogs( + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/list-mfa-factors.md b/docs/examples/1.7.x/client-android/java/account/list-mfa-factors.md new file mode 100644 index 00000000000..9ea83316206 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/list-mfa-factors.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.listMfaFactors(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/list-sessions.md b/docs/examples/1.7.x/client-android/java/account/list-sessions.md new file mode 100644 index 00000000000..8946d96e7cc --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/list-sessions.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.listSessions(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/update-email.md b/docs/examples/1.7.x/client-android/java/account/update-email.md new file mode 100644 index 00000000000..ac80e451d01 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-email.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateEmail( + "email@example.com", // email + "password", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-m-f-a.md b/docs/examples/1.7.x/client-android/java/account/update-m-f-a.md new file mode 100644 index 00000000000..b765cda94ad --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-m-f-a.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateMFA( + false, // mfa + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-android/java/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..5893aa6e6b4 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-magic-u-r-l-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateMagicURLSession( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-android/java/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..b8016e75f23 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-mfa-authenticator.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateMfaAuthenticator( + AuthenticatorType.TOTP, // type + "<OTP>", // otp + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-android/java/account/update-mfa-challenge.md new file mode 100644 index 00000000000..c6401504d88 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-mfa-challenge.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateMfaChallenge( + "<CHALLENGE_ID>", // challengeId + "<OTP>", // otp + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-android/java/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..650ae241285 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-mfa-recovery-codes.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/update-name.md b/docs/examples/1.7.x/client-android/java/account/update-name.md new file mode 100644 index 00000000000..47582c2b307 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-name.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateName( + "<NAME>", // name + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-password.md b/docs/examples/1.7.x/client-android/java/account/update-password.md new file mode 100644 index 00000000000..09f572eb318 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-password.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePassword( + "", // password + "password", // oldPassword (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-phone-session.md b/docs/examples/1.7.x/client-android/java/account/update-phone-session.md new file mode 100644 index 00000000000..2e1b880017b --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-phone-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePhoneSession( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.7.x/client-android/java/account/update-phone-verification.md new file mode 100644 index 00000000000..f93ae6906f2 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-phone-verification.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePhoneVerification( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-phone.md b/docs/examples/1.7.x/client-android/java/account/update-phone.md new file mode 100644 index 00000000000..fae9bfaaec9 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-phone.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePhone( + "+12065550100", // phone + "password", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-prefs.md b/docs/examples/1.7.x/client-android/java/account/update-prefs.md new file mode 100644 index 00000000000..f1a16c7de01 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-prefs.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePrefs( + mapOf( "a" to "b" ), // prefs + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-push-target.md b/docs/examples/1.7.x/client-android/java/account/update-push-target.md new file mode 100644 index 00000000000..197a9095a76 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-push-target.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePushTarget( + "<TARGET_ID>", // targetId + "<IDENTIFIER>", // identifier + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-recovery.md b/docs/examples/1.7.x/client-android/java/account/update-recovery.md new file mode 100644 index 00000000000..953bde4f26a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-recovery.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateRecovery( + "<USER_ID>", // userId + "<SECRET>", // secret + "", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-session.md b/docs/examples/1.7.x/client-android/java/account/update-session.md new file mode 100644 index 00000000000..ed82840836f --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-session.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateSession( + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/account/update-status.md b/docs/examples/1.7.x/client-android/java/account/update-status.md new file mode 100644 index 00000000000..9a283c092c8 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-status.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateStatus(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/account/update-verification.md b/docs/examples/1.7.x/client-android/java/account/update-verification.md new file mode 100644 index 00000000000..caa3869e252 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/account/update-verification.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateVerification( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-browser.md b/docs/examples/1.7.x/client-android/java/avatars/get-browser.md new file mode 100644 index 00000000000..1b6632f30a6 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-browser.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; +import io.appwrite.enums.Browser; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getBrowser( + Browser.AVANT_BROWSER, // code + 0, // width (optional) + 0, // height (optional) + -1, // quality (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.7.x/client-android/java/avatars/get-credit-card.md new file mode 100644 index 00000000000..e2ac2c26cd9 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-credit-card.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; +import io.appwrite.enums.CreditCard; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getCreditCard( + CreditCard.AMERICAN_EXPRESS, // code + 0, // width (optional) + 0, // height (optional) + -1, // quality (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.7.x/client-android/java/avatars/get-favicon.md new file mode 100644 index 00000000000..70373a607b4 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-favicon.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getFavicon( + "https://example.com", // url + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-flag.md b/docs/examples/1.7.x/client-android/java/avatars/get-flag.md new file mode 100644 index 00000000000..689e27fe354 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-flag.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; +import io.appwrite.enums.Flag; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getFlag( + Flag.AFGHANISTAN, // code + 0, // width (optional) + 0, // height (optional) + -1, // quality (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-image.md b/docs/examples/1.7.x/client-android/java/avatars/get-image.md new file mode 100644 index 00000000000..71a90dd1c29 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-image.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getImage( + "https://example.com", // url + 0, // width (optional) + 0, // height (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-initials.md b/docs/examples/1.7.x/client-android/java/avatars/get-initials.md new file mode 100644 index 00000000000..ca16ee7e36d --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-initials.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getInitials( + "<NAME>", // name (optional) + 0, // width (optional) + 0, // height (optional) + "", // background (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.7.x/client-android/java/avatars/get-q-r.md new file mode 100644 index 00000000000..781acf67417 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/avatars/get-q-r.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Avatars avatars = new Avatars(client); + +avatars.getQR( + "<TEXT>", // text + 1, // size (optional) + 0, // margin (optional) + false, // download (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/databases/create-document.md b/docs/examples/1.7.x/client-android/java/databases/create-document.md new file mode 100644 index 00000000000..7fb129bb0b2 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/create-document.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Databases databases = new Databases(client); + +databases.createDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/databases/delete-document.md b/docs/examples/1.7.x/client-android/java/databases/delete-document.md new file mode 100644 index 00000000000..5288e53bed7 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/delete-document.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Databases databases = new Databases(client); + +databases.deleteDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/databases/get-document.md b/docs/examples/1.7.x/client-android/java/databases/get-document.md new file mode 100644 index 00000000000..e7ae2079edc --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/get-document.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Databases databases = new Databases(client); + +databases.getDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/databases/list-documents.md b/docs/examples/1.7.x/client-android/java/databases/list-documents.md new file mode 100644 index 00000000000..606d67705de --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/list-documents.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Databases databases = new Databases(client); + +databases.listDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/databases/update-document.md b/docs/examples/1.7.x/client-android/java/databases/update-document.md new file mode 100644 index 00000000000..baa827cdf53 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/databases/update-document.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Databases databases = new Databases(client); + +databases.updateDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/functions/create-execution.md b/docs/examples/1.7.x/client-android/java/functions/create-execution.md new file mode 100644 index 00000000000..c138b0ef864 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/functions/create-execution.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Functions functions = new Functions(client); + +functions.createExecution( + "<FUNCTION_ID>", // functionId + "<BODY>", // body (optional) + false, // async (optional) + "<PATH>", // path (optional) + ExecutionMethod.GET, // method (optional) + mapOf( "a" to "b" ), // headers (optional) + "", // scheduledAt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/functions/get-execution.md b/docs/examples/1.7.x/client-android/java/functions/get-execution.md new file mode 100644 index 00000000000..f3195fa126b --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/functions/get-execution.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Functions functions = new Functions(client); + +functions.getExecution( + "<FUNCTION_ID>", // functionId + "<EXECUTION_ID>", // executionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/functions/list-executions.md b/docs/examples/1.7.x/client-android/java/functions/list-executions.md new file mode 100644 index 00000000000..0270cf0ead6 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/functions/list-executions.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Functions functions = new Functions(client); + +functions.listExecutions( + "<FUNCTION_ID>", // functionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/graphql/mutation.md b/docs/examples/1.7.x/client-android/java/graphql/mutation.md new file mode 100644 index 00000000000..25f095e1b17 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/graphql/mutation.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Graphql; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Graphql graphql = new Graphql(client); + +graphql.mutation( + mapOf( "a" to "b" ), // query + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/graphql/query.md b/docs/examples/1.7.x/client-android/java/graphql/query.md new file mode 100644 index 00000000000..6b2a04d0b6e --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/graphql/query.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Graphql; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Graphql graphql = new Graphql(client); + +graphql.query( + mapOf( "a" to "b" ), // query + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/locale/get.md b/docs/examples/1.7.x/client-android/java/locale/get.md new file mode 100644 index 00000000000..89e1e88b260 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/get.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.get(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-codes.md b/docs/examples/1.7.x/client-android/java/locale/list-codes.md new file mode 100644 index 00000000000..85a96fce77e --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-codes.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-continents.md b/docs/examples/1.7.x/client-android/java/locale/list-continents.md new file mode 100644 index 00000000000..6f4572d572a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-continents.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listContinents(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-android/java/locale/list-countries-e-u.md new file mode 100644 index 00000000000..51458a929d8 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-countries-e-u.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listCountriesEU(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.7.x/client-android/java/locale/list-countries-phones.md new file mode 100644 index 00000000000..93438d2130a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-countries-phones.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listCountriesPhones(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-countries.md b/docs/examples/1.7.x/client-android/java/locale/list-countries.md new file mode 100644 index 00000000000..5cd5525e93a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-countries.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listCountries(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-currencies.md b/docs/examples/1.7.x/client-android/java/locale/list-currencies.md new file mode 100644 index 00000000000..d3ef02c8651 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-currencies.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listCurrencies(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/locale/list-languages.md b/docs/examples/1.7.x/client-android/java/locale/list-languages.md new file mode 100644 index 00000000000..0d724943a92 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/locale/list-languages.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Locale locale = new Locale(client); + +locale.listLanguages(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); +})); diff --git a/docs/examples/1.7.x/client-android/java/messaging/create-subscriber.md b/docs/examples/1.7.x/client-android/java/messaging/create-subscriber.md new file mode 100644 index 00000000000..5616435ab54 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/messaging/create-subscriber.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Messaging messaging = new Messaging(client); + +messaging.createSubscriber( + "<TOPIC_ID>", // topicId + "<SUBSCRIBER_ID>", // subscriberId + "<TARGET_ID>", // targetId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-android/java/messaging/delete-subscriber.md new file mode 100644 index 00000000000..9adae5e7df5 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/messaging/delete-subscriber.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Messaging messaging = new Messaging(client); + +messaging.deleteSubscriber( + "<TOPIC_ID>", // topicId + "<SUBSCRIBER_ID>", // subscriberId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/create-file.md b/docs/examples/1.7.x/client-android/java/storage/create-file.md new file mode 100644 index 00000000000..598e6831501 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/create-file.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.models.InputFile; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.createFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + InputFile.fromPath("file.png"), // file + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/delete-file.md b/docs/examples/1.7.x/client-android/java/storage/delete-file.md new file mode 100644 index 00000000000..5c63ae7cd5a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/delete-file.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.deleteFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/get-file-download.md b/docs/examples/1.7.x/client-android/java/storage/get-file-download.md new file mode 100644 index 00000000000..73a8617fdda --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/get-file-download.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.getFileDownload( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "<TOKEN>", // token (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.7.x/client-android/java/storage/get-file-preview.md new file mode 100644 index 00000000000..67b92ebf855 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/get-file-preview.md @@ -0,0 +1,35 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.getFilePreview( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + 0, // width (optional) + 0, // height (optional) + ImageGravity.CENTER, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + "", // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + "", // background (optional) + ImageFormat.JPG, // output (optional) + "<TOKEN>", // token (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/get-file-view.md b/docs/examples/1.7.x/client-android/java/storage/get-file-view.md new file mode 100644 index 00000000000..b042b1f4512 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/get-file-view.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.getFileView( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "<TOKEN>", // token (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/get-file.md b/docs/examples/1.7.x/client-android/java/storage/get-file.md new file mode 100644 index 00000000000..c9cc00d8f7a --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/get-file.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.getFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/list-files.md b/docs/examples/1.7.x/client-android/java/storage/list-files.md new file mode 100644 index 00000000000..a87286c6d6b --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/list-files.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.listFiles( + "<BUCKET_ID>", // bucketId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/storage/update-file.md b/docs/examples/1.7.x/client-android/java/storage/update-file.md new file mode 100644 index 00000000000..14fa77939da --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/storage/update-file.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Storage storage = new Storage(client); + +storage.updateFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "<NAME>", // name (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/create-membership.md b/docs/examples/1.7.x/client-android/java/teams/create-membership.md new file mode 100644 index 00000000000..bb5293ef639 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/create-membership.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.createMembership( + "<TEAM_ID>", // teamId + listOf(), // roles + "email@example.com", // email (optional) + "<USER_ID>", // userId (optional) + "+12065550100", // phone (optional) + "https://example.com", // url (optional) + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/create.md b/docs/examples/1.7.x/client-android/java/teams/create.md new file mode 100644 index 00000000000..ae2fdf32c81 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/create.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.create( + "<TEAM_ID>", // teamId + "<NAME>", // name + listOf(), // roles (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/delete-membership.md b/docs/examples/1.7.x/client-android/java/teams/delete-membership.md new file mode 100644 index 00000000000..c8bb088cc6d --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/delete-membership.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.deleteMembership( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/delete.md b/docs/examples/1.7.x/client-android/java/teams/delete.md new file mode 100644 index 00000000000..74f6a4f9973 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/delete.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.delete( + "<TEAM_ID>", // teamId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/get-membership.md b/docs/examples/1.7.x/client-android/java/teams/get-membership.md new file mode 100644 index 00000000000..e9dc5786d6e --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/get-membership.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.getMembership( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/get-prefs.md b/docs/examples/1.7.x/client-android/java/teams/get-prefs.md new file mode 100644 index 00000000000..8ba14355a12 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/get-prefs.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.getPrefs( + "<TEAM_ID>", // teamId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/get.md b/docs/examples/1.7.x/client-android/java/teams/get.md new file mode 100644 index 00000000000..f00057a8222 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/get.md @@ -0,0 +1,22 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.get( + "<TEAM_ID>", // teamId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/list-memberships.md b/docs/examples/1.7.x/client-android/java/teams/list-memberships.md new file mode 100644 index 00000000000..216ca40e6dd --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/list-memberships.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.listMemberships( + "<TEAM_ID>", // teamId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/list.md b/docs/examples/1.7.x/client-android/java/teams/list.md new file mode 100644 index 00000000000..b69f21ed43b --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/list.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.list( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.7.x/client-android/java/teams/update-membership-status.md new file mode 100644 index 00000000000..4b31ed55ecd --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/update-membership-status.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.updateMembershipStatus( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/update-membership.md b/docs/examples/1.7.x/client-android/java/teams/update-membership.md new file mode 100644 index 00000000000..481be431071 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/update-membership.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.updateMembership( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + listOf(), // roles + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/update-name.md b/docs/examples/1.7.x/client-android/java/teams/update-name.md new file mode 100644 index 00000000000..207bcc81e33 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/update-name.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.updateName( + "<TEAM_ID>", // teamId + "<NAME>", // name + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/java/teams/update-prefs.md b/docs/examples/1.7.x/client-android/java/teams/update-prefs.md new file mode 100644 index 00000000000..5a0186ff313 --- /dev/null +++ b/docs/examples/1.7.x/client-android/java/teams/update-prefs.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Teams teams = new Teams(client); + +teams.updatePrefs( + "<TEAM_ID>", // teamId + mapOf( "a" to "b" ), // prefs + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + Log.d("Appwrite", result.toString()); + }) +); + diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.7.x/client-android/kotlin/account/create-anonymous-session.md new file mode 100644 index 00000000000..d2966a18cdf --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createAnonymousSession() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-email-password-session.md b/docs/examples/1.7.x/client-android/kotlin/account/create-email-password-session.md new file mode 100644 index 00000000000..a327cf280eb --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-email-password-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createEmailPasswordSession( + email = "email@example.com", + password = "password", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-email-token.md b/docs/examples/1.7.x/client-android/kotlin/account/create-email-token.md new file mode 100644 index 00000000000..37c9e1b3803 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-email-token.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createEmailToken( + userId = "<USER_ID>", + email = "email@example.com", + phrase = false, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.7.x/client-android/kotlin/account/create-j-w-t.md new file mode 100644 index 00000000000..c87eaf31289 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-j-w-t.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createJWT() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-android/kotlin/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..76f4c918847 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createMagicURLToken( + userId = "<USER_ID>", + email = "email@example.com", + url = "https://example.com", // (optional) + phrase = false, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..ffb2f2f9bf3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-authenticator.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticatorType + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createMfaAuthenticator( + type = AuthenticatorType.TOTP, +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-challenge.md new file mode 100644 index 00000000000..36b12d3f982 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-challenge.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticationFactor + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createMfaChallenge( + factor = AuthenticationFactor.EMAIL, +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..974c8f25a02 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createMfaRecoveryCodes() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.7.x/client-android/kotlin/account/create-o-auth2session.md new file mode 100644 index 00000000000..61ea634ad71 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-o-auth2session.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.OAuthProvider + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +account.createOAuth2Session( + provider = OAuthProvider.AMAZON, + success = "https://example.com", // (optional) + failure = "https://example.com", // (optional) + scopes = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-o-auth2token.md b/docs/examples/1.7.x/client-android/kotlin/account/create-o-auth2token.md new file mode 100644 index 00000000000..cdd2ef34450 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-o-auth2token.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.OAuthProvider + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +account.createOAuth2Token( + provider = OAuthProvider.AMAZON, + success = "https://example.com", // (optional) + failure = "https://example.com", // (optional) + scopes = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-phone-token.md b/docs/examples/1.7.x/client-android/kotlin/account/create-phone-token.md new file mode 100644 index 00000000000..4eb1a9ac4ef --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-phone-token.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createPhoneToken( + userId = "<USER_ID>", + phone = "+12065550100", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.7.x/client-android/kotlin/account/create-phone-verification.md new file mode 100644 index 00000000000..f7594668fa7 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-phone-verification.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createPhoneVerification() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-push-target.md b/docs/examples/1.7.x/client-android/kotlin/account/create-push-target.md new file mode 100644 index 00000000000..59b252be157 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-push-target.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createPushTarget( + targetId = "<TARGET_ID>", + identifier = "<IDENTIFIER>", + providerId = "<PROVIDER_ID>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.7.x/client-android/kotlin/account/create-recovery.md new file mode 100644 index 00000000000..7e13138111f --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-recovery.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createRecovery( + email = "email@example.com", + url = "https://example.com", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-session.md b/docs/examples/1.7.x/client-android/kotlin/account/create-session.md new file mode 100644 index 00000000000..ab9e20e7e2e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createSession( + userId = "<USER_ID>", + secret = "<SECRET>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.7.x/client-android/kotlin/account/create-verification.md new file mode 100644 index 00000000000..669b00ba18e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create-verification.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.createVerification( + url = "https://example.com", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/create.md b/docs/examples/1.7.x/client-android/kotlin/account/create.md new file mode 100644 index 00000000000..16f3a60ded6 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/create.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.create( + userId = "<USER_ID>", + email = "email@example.com", + password = "", + name = "<NAME>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.7.x/client-android/kotlin/account/delete-identity.md new file mode 100644 index 00000000000..c8d74636856 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/delete-identity.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.deleteIdentity( + identityId = "<IDENTITY_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-android/kotlin/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..057e021f6d1 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/delete-mfa-authenticator.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticatorType + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.deleteMfaAuthenticator( + type = AuthenticatorType.TOTP, +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/delete-push-target.md b/docs/examples/1.7.x/client-android/kotlin/account/delete-push-target.md new file mode 100644 index 00000000000..8e0b418c902 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/delete-push-target.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.deletePushTarget( + targetId = "<TARGET_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.7.x/client-android/kotlin/account/delete-session.md new file mode 100644 index 00000000000..6af414be275 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/delete-session.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.deleteSession( + sessionId = "<SESSION_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.7.x/client-android/kotlin/account/delete-sessions.md new file mode 100644 index 00000000000..f7e6c71c10d --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/delete-sessions.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.deleteSessions() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-android/kotlin/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..6201658fe3b --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/get-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.getMfaRecoveryCodes() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.7.x/client-android/kotlin/account/get-prefs.md new file mode 100644 index 00000000000..85dbb18b43f --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/get-prefs.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.getPrefs() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/get-session.md b/docs/examples/1.7.x/client-android/kotlin/account/get-session.md new file mode 100644 index 00000000000..4de64a1487c --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/get-session.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.getSession( + sessionId = "<SESSION_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/get.md b/docs/examples/1.7.x/client-android/kotlin/account/get.md new file mode 100644 index 00000000000..3e85e79ad06 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/get.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.get() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.7.x/client-android/kotlin/account/list-identities.md new file mode 100644 index 00000000000..5908a44a9c8 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/list-identities.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.listIdentities( + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.7.x/client-android/kotlin/account/list-logs.md new file mode 100644 index 00000000000..385ccc0116d --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/list-logs.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.listLogs( + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/list-mfa-factors.md b/docs/examples/1.7.x/client-android/kotlin/account/list-mfa-factors.md new file mode 100644 index 00000000000..09119ab65a3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/list-mfa-factors.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.listMfaFactors() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.7.x/client-android/kotlin/account/list-sessions.md new file mode 100644 index 00000000000..573dd865e28 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/list-sessions.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.listSessions() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-email.md b/docs/examples/1.7.x/client-android/kotlin/account/update-email.md new file mode 100644 index 00000000000..0862f112c0c --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-email.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateEmail( + email = "email@example.com", + password = "password", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-m-f-a.md b/docs/examples/1.7.x/client-android/kotlin/account/update-m-f-a.md new file mode 100644 index 00000000000..f214e78f441 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-m-f-a.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateMFA( + mfa = false, +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-android/kotlin/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..2c1a0b0a380 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateMagicURLSession( + userId = "<USER_ID>", + secret = "<SECRET>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..987825e589b --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-authenticator.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticatorType + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateMfaAuthenticator( + type = AuthenticatorType.TOTP, + otp = "<OTP>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-challenge.md new file mode 100644 index 00000000000..c7f8139f152 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-challenge.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateMfaChallenge( + challengeId = "<CHALLENGE_ID>", + otp = "<OTP>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..c0ee3c386f3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateMfaRecoveryCodes() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-name.md b/docs/examples/1.7.x/client-android/kotlin/account/update-name.md new file mode 100644 index 00000000000..2cb5327ebee --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-name.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateName( + name = "<NAME>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-password.md b/docs/examples/1.7.x/client-android/kotlin/account/update-password.md new file mode 100644 index 00000000000..140ca8b219e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-password.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updatePassword( + password = "", + oldPassword = "password", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.7.x/client-android/kotlin/account/update-phone-session.md new file mode 100644 index 00000000000..b3911dd5e00 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-phone-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updatePhoneSession( + userId = "<USER_ID>", + secret = "<SECRET>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.7.x/client-android/kotlin/account/update-phone-verification.md new file mode 100644 index 00000000000..ad0d5d73ebc --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-phone-verification.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updatePhoneVerification( + userId = "<USER_ID>", + secret = "<SECRET>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.7.x/client-android/kotlin/account/update-phone.md new file mode 100644 index 00000000000..84ff5081847 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-phone.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updatePhone( + phone = "+12065550100", + password = "password", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.7.x/client-android/kotlin/account/update-prefs.md new file mode 100644 index 00000000000..fdfed577ac9 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-prefs.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updatePrefs( + prefs = mapOf( "a" to "b" ), +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-push-target.md b/docs/examples/1.7.x/client-android/kotlin/account/update-push-target.md new file mode 100644 index 00000000000..5c3816860f1 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-push-target.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updatePushTarget( + targetId = "<TARGET_ID>", + identifier = "<IDENTIFIER>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.7.x/client-android/kotlin/account/update-recovery.md new file mode 100644 index 00000000000..d505d1afb15 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-recovery.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateRecovery( + userId = "<USER_ID>", + secret = "<SECRET>", + password = "", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-session.md b/docs/examples/1.7.x/client-android/kotlin/account/update-session.md new file mode 100644 index 00000000000..6fc9a9f9d2e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-session.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateSession( + sessionId = "<SESSION_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-status.md b/docs/examples/1.7.x/client-android/kotlin/account/update-status.md new file mode 100644 index 00000000000..b86a25ad4dd --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-status.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateStatus() diff --git a/docs/examples/1.7.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.7.x/client-android/kotlin/account/update-verification.md new file mode 100644 index 00000000000..028eb7c4ce7 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/account/update-verification.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val result = account.updateVerification( + userId = "<USER_ID>", + secret = "<SECRET>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-browser.md new file mode 100644 index 00000000000..d04adfbbdc3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-browser.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars +import io.appwrite.enums.Browser + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getBrowser( + code = Browser.AVANT_BROWSER, + width = 0, // (optional) + height = 0, // (optional) + quality = -1, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-credit-card.md new file mode 100644 index 00000000000..91c88da5dd0 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-credit-card.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars +import io.appwrite.enums.CreditCard + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getCreditCard( + code = CreditCard.AMERICAN_EXPRESS, + width = 0, // (optional) + height = 0, // (optional) + quality = -1, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-favicon.md new file mode 100644 index 00000000000..01df8cb54ba --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-favicon.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getFavicon( + url = "https://example.com", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-flag.md new file mode 100644 index 00000000000..1dbc1cdf4b3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-flag.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars +import io.appwrite.enums.Flag + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getFlag( + code = Flag.AFGHANISTAN, + width = 0, // (optional) + height = 0, // (optional) + quality = -1, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-image.md new file mode 100644 index 00000000000..64166c0a6d3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-image.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getImage( + url = "https://example.com", + width = 0, // (optional) + height = 0, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-initials.md new file mode 100644 index 00000000000..883da027443 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-initials.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getInitials( + name = "<NAME>", // (optional) + width = 0, // (optional) + height = 0, // (optional) + background = "", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.7.x/client-android/kotlin/avatars/get-q-r.md new file mode 100644 index 00000000000..fa8a38cabb2 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/avatars/get-q-r.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val avatars = Avatars(client) + +val result = avatars.getQR( + text = "<TEXT>", + size = 1, // (optional) + margin = 0, // (optional) + download = false, // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.7.x/client-android/kotlin/databases/create-document.md new file mode 100644 index 00000000000..0bafb315e79 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/create-document.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +val databases = Databases(client) + +val result = databases.createDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.7.x/client-android/kotlin/databases/delete-document.md new file mode 100644 index 00000000000..052bf97f896 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/delete-document.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val databases = Databases(client) + +val result = databases.deleteDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.7.x/client-android/kotlin/databases/get-document.md new file mode 100644 index 00000000000..157af2b562f --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/get-document.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val databases = Databases(client) + +val result = databases.getDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.7.x/client-android/kotlin/databases/list-documents.md new file mode 100644 index 00000000000..1cc785fab1a --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/list-documents.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val databases = Databases(client) + +val result = databases.listDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.7.x/client-android/kotlin/databases/update-document.md new file mode 100644 index 00000000000..d61fdea5b15 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/databases/update-document.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val databases = Databases(client) + +val result = databases.updateDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", + data = mapOf( "a" to "b" ), // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.7.x/client-android/kotlin/functions/create-execution.md new file mode 100644 index 00000000000..cb7c60bac16 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/functions/create-execution.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val functions = Functions(client) + +val result = functions.createExecution( + functionId = "<FUNCTION_ID>", + body = "<BODY>", // (optional) + async = false, // (optional) + path = "<PATH>", // (optional) + method = ExecutionMethod.GET, // (optional) + headers = mapOf( "a" to "b" ), // (optional) + scheduledAt = "", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.7.x/client-android/kotlin/functions/get-execution.md new file mode 100644 index 00000000000..267be53cbb8 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/functions/get-execution.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val functions = Functions(client) + +val result = functions.getExecution( + functionId = "<FUNCTION_ID>", + executionId = "<EXECUTION_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.7.x/client-android/kotlin/functions/list-executions.md new file mode 100644 index 00000000000..37ea8b8228b --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/functions/list-executions.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val functions = Functions(client) + +val result = functions.listExecutions( + functionId = "<FUNCTION_ID>", + queries = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.7.x/client-android/kotlin/graphql/mutation.md new file mode 100644 index 00000000000..a3a762203dc --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/graphql/mutation.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Graphql + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val graphql = Graphql(client) + +val result = graphql.mutation( + query = mapOf( "a" to "b" ), +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/graphql/query.md b/docs/examples/1.7.x/client-android/kotlin/graphql/query.md new file mode 100644 index 00000000000..13f149cbf00 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/graphql/query.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Graphql + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val graphql = Graphql(client) + +val result = graphql.query( + query = mapOf( "a" to "b" ), +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/get.md b/docs/examples/1.7.x/client-android/kotlin/locale/get.md new file mode 100644 index 00000000000..a116aed349d --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/get.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.get() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-codes.md new file mode 100644 index 00000000000..0b63b06e3eb --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-codes.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listCodes() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-continents.md new file mode 100644 index 00000000000..98acdc9b6a4 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-continents.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listContinents() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-countries-e-u.md new file mode 100644 index 00000000000..c01602598b7 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-countries-e-u.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listCountriesEU() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-countries-phones.md new file mode 100644 index 00000000000..d95c1c6ff65 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-countries-phones.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listCountriesPhones() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-countries.md new file mode 100644 index 00000000000..47751611594 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-countries.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listCountries() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-currencies.md new file mode 100644 index 00000000000..6d0a04f808e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-currencies.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listCurrencies() diff --git a/docs/examples/1.7.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.7.x/client-android/kotlin/locale/list-languages.md new file mode 100644 index 00000000000..de588aa0773 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/locale/list-languages.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val locale = Locale(client) + +val result = locale.listLanguages() diff --git a/docs/examples/1.7.x/client-android/kotlin/messaging/create-subscriber.md b/docs/examples/1.7.x/client-android/kotlin/messaging/create-subscriber.md new file mode 100644 index 00000000000..b7e244f0416 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/messaging/create-subscriber.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val messaging = Messaging(client) + +val result = messaging.createSubscriber( + topicId = "<TOPIC_ID>", + subscriberId = "<SUBSCRIBER_ID>", + targetId = "<TARGET_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-android/kotlin/messaging/delete-subscriber.md new file mode 100644 index 00000000000..9e102d6faa0 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/messaging/delete-subscriber.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val messaging = Messaging(client) + +val result = messaging.deleteSubscriber( + topicId = "<TOPIC_ID>", + subscriberId = "<SUBSCRIBER_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.7.x/client-android/kotlin/storage/create-file.md new file mode 100644 index 00000000000..1c78c51e675 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/create-file.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.models.InputFile +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.createFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + file = InputFile.fromPath("file.png"), + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.7.x/client-android/kotlin/storage/delete-file.md new file mode 100644 index 00000000000..ca40f41b719 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/delete-file.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.deleteFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.7.x/client-android/kotlin/storage/get-file-download.md new file mode 100644 index 00000000000..89c6e8a992b --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/get-file-download.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.getFileDownload( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + token = "<TOKEN>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.7.x/client-android/kotlin/storage/get-file-preview.md new file mode 100644 index 00000000000..d766dc7174d --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/get-file-preview.md @@ -0,0 +1,26 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.getFilePreview( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + width = 0, // (optional) + height = 0, // (optional) + gravity = ImageGravity.CENTER, // (optional) + quality = -1, // (optional) + borderWidth = 0, // (optional) + borderColor = "", // (optional) + borderRadius = 0, // (optional) + opacity = 0, // (optional) + rotation = -360, // (optional) + background = "", // (optional) + output = ImageFormat.JPG, // (optional) + token = "<TOKEN>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.7.x/client-android/kotlin/storage/get-file-view.md new file mode 100644 index 00000000000..513e1f9a90e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/get-file-view.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.getFileView( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + token = "<TOKEN>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.7.x/client-android/kotlin/storage/get-file.md new file mode 100644 index 00000000000..1e9943059bc --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/get-file.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.getFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.7.x/client-android/kotlin/storage/list-files.md new file mode 100644 index 00000000000..06f6cda4ebd --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/list-files.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.listFiles( + bucketId = "<BUCKET_ID>", + queries = listOf(), // (optional) + search = "<SEARCH>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.7.x/client-android/kotlin/storage/update-file.md new file mode 100644 index 00000000000..116d156eade --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/storage/update-file.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val storage = Storage(client) + +val result = storage.updateFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + name = "<NAME>", // (optional) + permissions = listOf("read("any")"), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.7.x/client-android/kotlin/teams/create-membership.md new file mode 100644 index 00000000000..70eb7ddd190 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/create-membership.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.createMembership( + teamId = "<TEAM_ID>", + roles = listOf(), + email = "email@example.com", // (optional) + userId = "<USER_ID>", // (optional) + phone = "+12065550100", // (optional) + url = "https://example.com", // (optional) + name = "<NAME>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/create.md b/docs/examples/1.7.x/client-android/kotlin/teams/create.md new file mode 100644 index 00000000000..dfa4df446eb --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/create.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.create( + teamId = "<TEAM_ID>", + name = "<NAME>", + roles = listOf(), // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.7.x/client-android/kotlin/teams/delete-membership.md new file mode 100644 index 00000000000..adf1119761b --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/delete-membership.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.deleteMembership( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/delete.md b/docs/examples/1.7.x/client-android/kotlin/teams/delete.md new file mode 100644 index 00000000000..e144a78e3d3 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/delete.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.delete( + teamId = "<TEAM_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.7.x/client-android/kotlin/teams/get-membership.md new file mode 100644 index 00000000000..8fb8c54c3b5 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/get-membership.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.getMembership( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.7.x/client-android/kotlin/teams/get-prefs.md new file mode 100644 index 00000000000..5e892fb49d1 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/get-prefs.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.getPrefs( + teamId = "<TEAM_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/get.md b/docs/examples/1.7.x/client-android/kotlin/teams/get.md new file mode 100644 index 00000000000..dbb487d3d67 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/get.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.get( + teamId = "<TEAM_ID>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.7.x/client-android/kotlin/teams/list-memberships.md new file mode 100644 index 00000000000..e305403a523 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/list-memberships.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.listMemberships( + teamId = "<TEAM_ID>", + queries = listOf(), // (optional) + search = "<SEARCH>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/list.md b/docs/examples/1.7.x/client-android/kotlin/teams/list.md new file mode 100644 index 00000000000..984858d26ce --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/list.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.list( + queries = listOf(), // (optional) + search = "<SEARCH>", // (optional) +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.7.x/client-android/kotlin/teams/update-membership-status.md new file mode 100644 index 00000000000..c3770c7f1e0 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/update-membership-status.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.updateMembershipStatus( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>", + userId = "<USER_ID>", + secret = "<SECRET>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.7.x/client-android/kotlin/teams/update-membership.md new file mode 100644 index 00000000000..86216a8692e --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/update-membership.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.updateMembership( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>", + roles = listOf(), +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.7.x/client-android/kotlin/teams/update-name.md new file mode 100644 index 00000000000..abeb6dc7c17 --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/update-name.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.updateName( + teamId = "<TEAM_ID>", + name = "<NAME>", +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.7.x/client-android/kotlin/teams/update-prefs.md new file mode 100644 index 00000000000..d0066a94b3a --- /dev/null +++ b/docs/examples/1.7.x/client-android/kotlin/teams/update-prefs.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client(context) + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val teams = Teams(client) + +val result = teams.updatePrefs( + teamId = "<TEAM_ID>", + prefs = mapOf( "a" to "b" ), +) \ No newline at end of file diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/client-apple/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..22020a16d95 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-anonymous-session.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.createAnonymousSession() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-email-password-session.md b/docs/examples/1.7.x/client-apple/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..5f541a8a154 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-email-password-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.createEmailPasswordSession( + email: "email@example.com", + password: "password" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-email-token.md b/docs/examples/1.7.x/client-apple/examples/account/create-email-token.md new file mode 100644 index 00000000000..cf82afde8ff --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-email-token.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createEmailToken( + userId: "<USER_ID>", + email: "email@example.com", + phrase: false // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.7.x/client-apple/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..fbcd50401c6 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-j-w-t.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let jwt = try await account.createJWT() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-apple/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..27bbe4137ea --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createMagicURLToken( + userId: "<USER_ID>", + email: "email@example.com", + url: "https://example.com", // optional + phrase: false // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-apple/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..56799e327ec --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-mfa-authenticator.md @@ -0,0 +1,13 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaType = try await account.createMfaAuthenticator( + type: .totp +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-apple/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..0b5d385999e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-mfa-challenge.md @@ -0,0 +1,13 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaChallenge = try await account.createMfaChallenge( + factor: .email +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-apple/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..c0ccb39e869 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaRecoveryCodes = try await account.createMfaRecoveryCodes() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/client-apple/examples/account/create-o-auth2session.md new file mode 100644 index 00000000000..756112e7011 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-o-auth2session.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let success = try await account.createOAuth2Session( + provider: .amazon, + success: "https://example.com", // optional + failure: "https://example.com", // optional + scopes: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/client-apple/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..21b54e8c9a0 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-o-auth2token.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let success = try await account.createOAuth2Token( + provider: .amazon, + success: "https://example.com", // optional + failure: "https://example.com", // optional + scopes: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-phone-token.md b/docs/examples/1.7.x/client-apple/examples/account/create-phone-token.md new file mode 100644 index 00000000000..12b2d4b2231 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-phone-token.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createPhoneToken( + userId: "<USER_ID>", + phone: "+12065550100" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.7.x/client-apple/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..f0eb94b6fcb --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-phone-verification.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createPhoneVerification() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-push-target.md b/docs/examples/1.7.x/client-apple/examples/account/create-push-target.md new file mode 100644 index 00000000000..ce2d194272a --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-push-target.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let target = try await account.createPushTarget( + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>", + providerId: "<PROVIDER_ID>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.7.x/client-apple/examples/account/create-recovery.md new file mode 100644 index 00000000000..ccfd5ac5194 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createRecovery( + email: "email@example.com", + url: "https://example.com" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-session.md b/docs/examples/1.7.x/client-apple/examples/account/create-session.md new file mode 100644 index 00000000000..2065692a166 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.createSession( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create-verification.md b/docs/examples/1.7.x/client-apple/examples/account/create-verification.md new file mode 100644 index 00000000000..d3ca74c7c03 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create-verification.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createVerification( + url: "https://example.com" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/create.md b/docs/examples/1.7.x/client-apple/examples/account/create.md new file mode 100644 index 00000000000..79b4db64ba6 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/create.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.create( + userId: "<USER_ID>", + email: "email@example.com", + password: "", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.7.x/client-apple/examples/account/delete-identity.md new file mode 100644 index 00000000000..04a3ee5f47d --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/delete-identity.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let result = try await account.deleteIdentity( + identityId: "<IDENTITY_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-apple/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..16cbbe3b724 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let result = try await account.deleteMfaAuthenticator( + type: .totp +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/delete-push-target.md b/docs/examples/1.7.x/client-apple/examples/account/delete-push-target.md new file mode 100644 index 00000000000..a96a1b1d053 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/delete-push-target.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let result = try await account.deletePushTarget( + targetId: "<TARGET_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/delete-session.md b/docs/examples/1.7.x/client-apple/examples/account/delete-session.md new file mode 100644 index 00000000000..ea353e8723e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/delete-session.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let result = try await account.deleteSession( + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.7.x/client-apple/examples/account/delete-sessions.md new file mode 100644 index 00000000000..51a86bdcc31 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/delete-sessions.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let result = try await account.deleteSessions() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-apple/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..2f5d6233047 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaRecoveryCodes = try await account.getMfaRecoveryCodes() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.7.x/client-apple/examples/account/get-prefs.md new file mode 100644 index 00000000000..65ce5f5908c --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/get-prefs.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let preferences = try await account.getPrefs() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/get-session.md b/docs/examples/1.7.x/client-apple/examples/account/get-session.md new file mode 100644 index 00000000000..bd491ff4d73 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/get-session.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.getSession( + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/get.md b/docs/examples/1.7.x/client-apple/examples/account/get.md new file mode 100644 index 00000000000..1b1213e1da2 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/get.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.get() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/list-identities.md b/docs/examples/1.7.x/client-apple/examples/account/list-identities.md new file mode 100644 index 00000000000..1d3a999d4ad --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/list-identities.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let identityList = try await account.listIdentities( + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/list-logs.md b/docs/examples/1.7.x/client-apple/examples/account/list-logs.md new file mode 100644 index 00000000000..2c42307f961 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/list-logs.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let logList = try await account.listLogs( + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/client-apple/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..f6d7a6fe75c --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/list-mfa-factors.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaFactors = try await account.listMfaFactors() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.7.x/client-apple/examples/account/list-sessions.md new file mode 100644 index 00000000000..99f6930cd24 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/list-sessions.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let sessionList = try await account.listSessions() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-email.md b/docs/examples/1.7.x/client-apple/examples/account/update-email.md new file mode 100644 index 00000000000..037133282bd --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-email.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updateEmail( + email: "email@example.com", + password: "password" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-m-f-a.md b/docs/examples/1.7.x/client-apple/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..fe2b04f9a3e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-m-f-a.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updateMFA( + mfa: false +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-apple/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..507006b2300 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.updateMagicURLSession( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-apple/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..6a42fb9b6de --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-mfa-authenticator.md @@ -0,0 +1,14 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updateMfaAuthenticator( + type: .totp, + otp: "<OTP>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-apple/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..db9753b777a --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-mfa-challenge.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.updateMfaChallenge( + challengeId: "<CHALLENGE_ID>", + otp: "<OTP>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-apple/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..c3b8d412c51 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaRecoveryCodes = try await account.updateMfaRecoveryCodes() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-name.md b/docs/examples/1.7.x/client-apple/examples/account/update-name.md new file mode 100644 index 00000000000..7f8abf54fb4 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-name.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updateName( + name: "<NAME>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-password.md b/docs/examples/1.7.x/client-apple/examples/account/update-password.md new file mode 100644 index 00000000000..7fa03caebc4 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-password.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updatePassword( + password: "", + oldPassword: "password" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.7.x/client-apple/examples/account/update-phone-session.md new file mode 100644 index 00000000000..f6776d1de19 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-phone-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.updatePhoneSession( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.7.x/client-apple/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..0bf2db1f0ab --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-phone-verification.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.updatePhoneVerification( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-phone.md b/docs/examples/1.7.x/client-apple/examples/account/update-phone.md new file mode 100644 index 00000000000..604fc85377d --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-phone.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updatePhone( + phone: "+12065550100", + password: "password" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.7.x/client-apple/examples/account/update-prefs.md new file mode 100644 index 00000000000..fea527337b3 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-prefs.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updatePrefs( + prefs: [:] +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-push-target.md b/docs/examples/1.7.x/client-apple/examples/account/update-push-target.md new file mode 100644 index 00000000000..549c4d6c16e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-push-target.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let target = try await account.updatePushTarget( + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.7.x/client-apple/examples/account/update-recovery.md new file mode 100644 index 00000000000..536da69b8a8 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.updateRecovery( + userId: "<USER_ID>", + secret: "<SECRET>", + password: "" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-session.md b/docs/examples/1.7.x/client-apple/examples/account/update-session.md new file mode 100644 index 00000000000..8999b0a3100 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-session.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.updateSession( + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-status.md b/docs/examples/1.7.x/client-apple/examples/account/update-status.md new file mode 100644 index 00000000000..892858dfbce --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-status.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.updateStatus() + diff --git a/docs/examples/1.7.x/client-apple/examples/account/update-verification.md b/docs/examples/1.7.x/client-apple/examples/account/update-verification.md new file mode 100644 index 00000000000..094e10f33c4 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/account/update-verification.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.updateVerification( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-browser.md new file mode 100644 index 00000000000..ee0cc99f91b --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-browser.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getBrowser( + code: .avantBrowser, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..779fce3f60e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-credit-card.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getCreditCard( + code: .americanExpress, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..b7dc6830c3f --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-favicon.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getFavicon( + url: "https://example.com" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-flag.md new file mode 100644 index 00000000000..ba1d77be278 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-flag.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getFlag( + code: .afghanistan, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-image.md new file mode 100644 index 00000000000..0fe71e17658 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-image.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getImage( + url: "https://example.com", + width: 0, // optional + height: 0 // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-initials.md new file mode 100644 index 00000000000..2bbfbe6a47d --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-initials.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getInitials( + name: "<NAME>", // optional + width: 0, // optional + height: 0, // optional + background: "" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.7.x/client-apple/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..3cc650c1b96 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/avatars/get-q-r.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let avatars = Avatars(client) + +let bytes = try await avatars.getQR( + text: "<TEXT>", + size: 1, // optional + margin: 0, // optional + download: false // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/databases/create-document.md b/docs/examples/1.7.x/client-apple/examples/databases/create-document.md new file mode 100644 index 00000000000..6c2baee728b --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/create-document.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("") // + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +let databases = Databases(client) + +let document = try await databases.createDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.7.x/client-apple/examples/databases/delete-document.md new file mode 100644 index 00000000000..301203dc7f4 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/delete-document.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let databases = Databases(client) + +let result = try await databases.deleteDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/databases/get-document.md b/docs/examples/1.7.x/client-apple/examples/databases/get-document.md new file mode 100644 index 00000000000..6e4dc55c6df --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/get-document.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let databases = Databases(client) + +let document = try await databases.getDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.7.x/client-apple/examples/databases/list-documents.md new file mode 100644 index 00000000000..0d624f3a92b --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/list-documents.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let databases = Databases(client) + +let documentList = try await databases.listDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/databases/update-document.md b/docs/examples/1.7.x/client-apple/examples/databases/update-document.md new file mode 100644 index 00000000000..af224c8e09e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/databases/update-document.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let databases = Databases(client) + +let document = try await databases.updateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.7.x/client-apple/examples/functions/create-execution.md new file mode 100644 index 00000000000..7470e9ebf6a --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/functions/create-execution.md @@ -0,0 +1,19 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let functions = Functions(client) + +let execution = try await functions.createExecution( + functionId: "<FUNCTION_ID>", + body: "<BODY>", // optional + async: false, // optional + path: "<PATH>", // optional + method: .gET, // optional + headers: [:], // optional + scheduledAt: "" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.7.x/client-apple/examples/functions/get-execution.md new file mode 100644 index 00000000000..787f297b2c7 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/functions/get-execution.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let functions = Functions(client) + +let execution = try await functions.getExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.7.x/client-apple/examples/functions/list-executions.md new file mode 100644 index 00000000000..1636d96c6da --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/functions/list-executions.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let functions = Functions(client) + +let executionList = try await functions.listExecutions( + functionId: "<FUNCTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.7.x/client-apple/examples/graphql/mutation.md new file mode 100644 index 00000000000..6cd2e588f9f --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/graphql/mutation.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let graphql = Graphql(client) + +let any = try await graphql.mutation( + query: [:] +) + diff --git a/docs/examples/1.7.x/client-apple/examples/graphql/query.md b/docs/examples/1.7.x/client-apple/examples/graphql/query.md new file mode 100644 index 00000000000..47e4c243fa6 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/graphql/query.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let graphql = Graphql(client) + +let any = try await graphql.query( + query: [:] +) + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/get.md b/docs/examples/1.7.x/client-apple/examples/locale/get.md new file mode 100644 index 00000000000..9c48317a1d4 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/get.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let locale = try await locale.get() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.7.x/client-apple/examples/locale/list-codes.md new file mode 100644 index 00000000000..21d693a7b88 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-codes.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let localeCodeList = try await locale.listCodes() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.7.x/client-apple/examples/locale/list-continents.md new file mode 100644 index 00000000000..bd44915a34e --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-continents.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let continentList = try await locale.listContinents() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-apple/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..2dc24e5a637 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-countries-e-u.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let countryList = try await locale.listCountriesEU() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/client-apple/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..f3ab6b1f6de --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-countries-phones.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let phoneList = try await locale.listCountriesPhones() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.7.x/client-apple/examples/locale/list-countries.md new file mode 100644 index 00000000000..dadcd3ee261 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-countries.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let countryList = try await locale.listCountries() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.7.x/client-apple/examples/locale/list-currencies.md new file mode 100644 index 00000000000..dc20ead45e4 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-currencies.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let currencyList = try await locale.listCurrencies() + diff --git a/docs/examples/1.7.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.7.x/client-apple/examples/locale/list-languages.md new file mode 100644 index 00000000000..92c1d7b1dc7 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/locale/list-languages.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let locale = Locale(client) + +let languageList = try await locale.listLanguages() + diff --git a/docs/examples/1.7.x/client-apple/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/client-apple/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..f85d5e6fb1c --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/messaging/create-subscriber.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let messaging = Messaging(client) + +let subscriber = try await messaging.createSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>", + targetId: "<TARGET_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-apple/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..f1cdda95c7a --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/messaging/delete-subscriber.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let messaging = Messaging(client) + +let result = try await messaging.deleteSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/create-file.md b/docs/examples/1.7.x/client-apple/examples/storage/create-file.md new file mode 100644 index 00000000000..2db9b20e1b1 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/create-file.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let file = try await storage.createFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + file: InputFile.fromPath("file.png"), + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.7.x/client-apple/examples/storage/delete-file.md new file mode 100644 index 00000000000..ca721a4a412 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/delete-file.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let result = try await storage.deleteFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.7.x/client-apple/examples/storage/get-file-download.md new file mode 100644 index 00000000000..9338958edea --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/get-file-download.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let bytes = try await storage.getFileDownload( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + token: "<TOKEN>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.7.x/client-apple/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..1395d7e7829 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/get-file-preview.md @@ -0,0 +1,26 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let bytes = try await storage.getFilePreview( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + width: 0, // optional + height: 0, // optional + gravity: .center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: "", // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: "", // optional + output: .jpg, // optional + token: "<TOKEN>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.7.x/client-apple/examples/storage/get-file-view.md new file mode 100644 index 00000000000..bc5ad02727b --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/get-file-view.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let bytes = try await storage.getFileView( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + token: "<TOKEN>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/get-file.md b/docs/examples/1.7.x/client-apple/examples/storage/get-file.md new file mode 100644 index 00000000000..2730b4d5283 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/get-file.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let file = try await storage.getFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/list-files.md b/docs/examples/1.7.x/client-apple/examples/storage/list-files.md new file mode 100644 index 00000000000..48bd0d065f5 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/list-files.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let fileList = try await storage.listFiles( + bucketId: "<BUCKET_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/storage/update-file.md b/docs/examples/1.7.x/client-apple/examples/storage/update-file.md new file mode 100644 index 00000000000..adef9698451 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/storage/update-file.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let storage = Storage(client) + +let file = try await storage.updateFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + name: "<NAME>", // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.7.x/client-apple/examples/teams/create-membership.md new file mode 100644 index 00000000000..3c6d093c645 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/create-membership.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let membership = try await teams.createMembership( + teamId: "<TEAM_ID>", + roles: [], + email: "email@example.com", // optional + userId: "<USER_ID>", // optional + phone: "+12065550100", // optional + url: "https://example.com", // optional + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/create.md b/docs/examples/1.7.x/client-apple/examples/teams/create.md new file mode 100644 index 00000000000..b9f5ea40805 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/create.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let team = try await teams.create( + teamId: "<TEAM_ID>", + name: "<NAME>", + roles: [] // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.7.x/client-apple/examples/teams/delete-membership.md new file mode 100644 index 00000000000..7c21410bf39 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/delete-membership.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let result = try await teams.deleteMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/delete.md b/docs/examples/1.7.x/client-apple/examples/teams/delete.md new file mode 100644 index 00000000000..1787b4c7498 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/delete.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let result = try await teams.delete( + teamId: "<TEAM_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.7.x/client-apple/examples/teams/get-membership.md new file mode 100644 index 00000000000..837a92dd042 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/get-membership.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let membership = try await teams.getMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.7.x/client-apple/examples/teams/get-prefs.md new file mode 100644 index 00000000000..b5b17a3bc26 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/get-prefs.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let preferences = try await teams.getPrefs( + teamId: "<TEAM_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/get.md b/docs/examples/1.7.x/client-apple/examples/teams/get.md new file mode 100644 index 00000000000..af358fbb670 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/get.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let team = try await teams.get( + teamId: "<TEAM_ID>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.7.x/client-apple/examples/teams/list-memberships.md new file mode 100644 index 00000000000..5c8669a3d81 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/list-memberships.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let membershipList = try await teams.listMemberships( + teamId: "<TEAM_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/list.md b/docs/examples/1.7.x/client-apple/examples/teams/list.md new file mode 100644 index 00000000000..be81e9c5aa2 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/list.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let teamList = try await teams.list( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.7.x/client-apple/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..1f3cb39d92a --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/update-membership-status.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let membership = try await teams.updateMembershipStatus( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.7.x/client-apple/examples/teams/update-membership.md new file mode 100644 index 00000000000..eaa61799c28 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/update-membership.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let membership = try await teams.updateMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + roles: [] +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/update-name.md b/docs/examples/1.7.x/client-apple/examples/teams/update-name.md new file mode 100644 index 00000000000..ce5188b9509 --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/update-name.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let team = try await teams.updateName( + teamId: "<TEAM_ID>", + name: "<NAME>" +) + diff --git a/docs/examples/1.7.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.7.x/client-apple/examples/teams/update-prefs.md new file mode 100644 index 00000000000..e20ec2ea18b --- /dev/null +++ b/docs/examples/1.7.x/client-apple/examples/teams/update-prefs.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let teams = Teams(client) + +let preferences = try await teams.updatePrefs( + teamId: "<TEAM_ID>", + prefs: [:] +) + diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/client-flutter/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..cdcd98ddb2d --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-anonymous-session.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.createAnonymousSession(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-email-password-session.md b/docs/examples/1.7.x/client-flutter/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..66bc2ab5f4c --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-email-password-session.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.createEmailPasswordSession( + email: 'email@example.com', + password: 'password', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-email-token.md b/docs/examples/1.7.x/client-flutter/examples/account/create-email-token.md new file mode 100644 index 00000000000..26408945023 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-email-token.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createEmailToken( + userId: '<USER_ID>', + email: 'email@example.com', + phrase: false, // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.7.x/client-flutter/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..b9cbc8f5a50 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-j-w-t.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Jwt result = await account.createJWT(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-flutter/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..454a9510229 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createMagicURLToken( + userId: '<USER_ID>', + email: 'email@example.com', + url: 'https://example.com', // optional + phrase: false, // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..ca66149654f --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaType result = await account.createMfaAuthenticator( + type: AuthenticatorType.totp, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..6815e5c52f8 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-challenge.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaChallenge result = await account.createMfaChallenge( + factor: AuthenticationFactor.email, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..274dc598a89 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaRecoveryCodes result = await account.createMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2session.md new file mode 100644 index 00000000000..ab53f4a777e --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2session.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.createOAuth2Session( + provider: OAuthProvider.amazon, + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..d6b6c72c7e7 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-o-auth2token.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.createOAuth2Token( + provider: OAuthProvider.amazon, + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-phone-token.md b/docs/examples/1.7.x/client-flutter/examples/account/create-phone-token.md new file mode 100644 index 00000000000..ff0187f0dc4 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-phone-token.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createPhoneToken( + userId: '<USER_ID>', + phone: '+12065550100', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.7.x/client-flutter/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..11e215a060a --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-phone-verification.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createPhoneVerification(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-push-target.md b/docs/examples/1.7.x/client-flutter/examples/account/create-push-target.md new file mode 100644 index 00000000000..fd1755e3c56 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-push-target.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Target result = await account.createPushTarget( + targetId: '<TARGET_ID>', + identifier: '<IDENTIFIER>', + providerId: '<PROVIDER_ID>', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.7.x/client-flutter/examples/account/create-recovery.md new file mode 100644 index 00000000000..44985beb802 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-recovery.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createRecovery( + email: 'email@example.com', + url: 'https://example.com', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-session.md b/docs/examples/1.7.x/client-flutter/examples/account/create-session.md new file mode 100644 index 00000000000..e54e68a317d --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-session.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.createSession( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.7.x/client-flutter/examples/account/create-verification.md new file mode 100644 index 00000000000..8f969972494 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create-verification.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createVerification( + url: 'https://example.com', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/create.md b/docs/examples/1.7.x/client-flutter/examples/account/create.md new file mode 100644 index 00000000000..ae0d526944b --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/create.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.create( + userId: '<USER_ID>', + email: 'email@example.com', + password: '', + name: '<NAME>', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.7.x/client-flutter/examples/account/delete-identity.md new file mode 100644 index 00000000000..849fa726a48 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/delete-identity.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.deleteIdentity( + identityId: '<IDENTITY_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-flutter/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..bf4b0c509b0 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.deleteMfaAuthenticator( + type: AuthenticatorType.totp, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/delete-push-target.md b/docs/examples/1.7.x/client-flutter/examples/account/delete-push-target.md new file mode 100644 index 00000000000..6393d4ed4e0 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/delete-push-target.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.deletePushTarget( + targetId: '<TARGET_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.7.x/client-flutter/examples/account/delete-session.md new file mode 100644 index 00000000000..55abb18c850 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/delete-session.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.deleteSession( + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.7.x/client-flutter/examples/account/delete-sessions.md new file mode 100644 index 00000000000..c50b611cacd --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/delete-sessions.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.deleteSessions(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-flutter/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..f9d50131e5b --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaRecoveryCodes result = await account.getMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.7.x/client-flutter/examples/account/get-prefs.md new file mode 100644 index 00000000000..9332da3a638 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/get-prefs.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Preferences result = await account.getPrefs(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/get-session.md b/docs/examples/1.7.x/client-flutter/examples/account/get-session.md new file mode 100644 index 00000000000..d68afcecd2a --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/get-session.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.getSession( + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/get.md b/docs/examples/1.7.x/client-flutter/examples/account/get.md new file mode 100644 index 00000000000..a318617f78d --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/get.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.get(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.7.x/client-flutter/examples/account/list-identities.md new file mode 100644 index 00000000000..9d2ad83c179 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/list-identities.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +IdentityList result = await account.listIdentities( + queries: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.7.x/client-flutter/examples/account/list-logs.md new file mode 100644 index 00000000000..6d9b120991c --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/list-logs.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +LogList result = await account.listLogs( + queries: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/client-flutter/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..9f945400ac1 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/list-mfa-factors.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaFactors result = await account.listMfaFactors(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.7.x/client-flutter/examples/account/list-sessions.md new file mode 100644 index 00000000000..fd1d0e080c3 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/list-sessions.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +SessionList result = await account.listSessions(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-email.md b/docs/examples/1.7.x/client-flutter/examples/account/update-email.md new file mode 100644 index 00000000000..0f3d9982847 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-email.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updateEmail( + email: 'email@example.com', + password: 'password', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-m-f-a.md b/docs/examples/1.7.x/client-flutter/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..fc81c565edf --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-m-f-a.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updateMFA( + mfa: false, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-flutter/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..d0f91eb0a48 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.updateMagicURLSession( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..7f026578c52 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updateMfaAuthenticator( + type: AuthenticatorType.totp, + otp: '<OTP>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..a938f0af683 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-challenge.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.updateMfaChallenge( + challengeId: '<CHALLENGE_ID>', + otp: '<OTP>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..37334ef69a7 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaRecoveryCodes result = await account.updateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-name.md b/docs/examples/1.7.x/client-flutter/examples/account/update-name.md new file mode 100644 index 00000000000..303a12351f2 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-name.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updateName( + name: '<NAME>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-password.md b/docs/examples/1.7.x/client-flutter/examples/account/update-password.md new file mode 100644 index 00000000000..835d2383cae --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-password.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updatePassword( + password: '', + oldPassword: 'password', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.7.x/client-flutter/examples/account/update-phone-session.md new file mode 100644 index 00000000000..36801792f6c --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-phone-session.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.updatePhoneSession( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.7.x/client-flutter/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..f5bbb773d04 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-phone-verification.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.updatePhoneVerification( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.7.x/client-flutter/examples/account/update-phone.md new file mode 100644 index 00000000000..6390d142457 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-phone.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updatePhone( + phone: '+12065550100', + password: 'password', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.7.x/client-flutter/examples/account/update-prefs.md new file mode 100644 index 00000000000..81fa362f898 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-prefs.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updatePrefs( + prefs: {}, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-push-target.md b/docs/examples/1.7.x/client-flutter/examples/account/update-push-target.md new file mode 100644 index 00000000000..c695ea09840 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-push-target.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Target result = await account.updatePushTarget( + targetId: '<TARGET_ID>', + identifier: '<IDENTIFIER>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.7.x/client-flutter/examples/account/update-recovery.md new file mode 100644 index 00000000000..5ca0239f476 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-recovery.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.updateRecovery( + userId: '<USER_ID>', + secret: '<SECRET>', + password: '', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-session.md b/docs/examples/1.7.x/client-flutter/examples/account/update-session.md new file mode 100644 index 00000000000..4c78ebb187b --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-session.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.updateSession( + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-status.md b/docs/examples/1.7.x/client-flutter/examples/account/update-status.md new file mode 100644 index 00000000000..289a3f0a96e --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-status.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.updateStatus(); diff --git a/docs/examples/1.7.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.7.x/client-flutter/examples/account/update-verification.md new file mode 100644 index 00000000000..15c7ed19288 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/account/update-verification.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.updateVerification( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-browser.md new file mode 100644 index 00000000000..e97d24ab4f5 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-browser.md @@ -0,0 +1,33 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getBrowser( + code: Browser.avantBrowser, + width: 0, // optional + height: 0, // optional + quality: -1, // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getBrowser( + code: Browser.avantBrowser, + width:0 , // optional + height:0 , // optional + quality:-1 , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..9ec42588b4f --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-credit-card.md @@ -0,0 +1,33 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getCreditCard( + code: CreditCard.americanExpress, + width: 0, // optional + height: 0, // optional + quality: -1, // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getCreditCard( + code: CreditCard.americanExpress, + width:0 , // optional + height:0 , // optional + quality:-1 , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..0df5ed0d2a1 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-favicon.md @@ -0,0 +1,27 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getFavicon( + url: 'https://example.com', +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getFavicon( + url:'https://example.com' , +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-flag.md new file mode 100644 index 00000000000..99d43409a05 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-flag.md @@ -0,0 +1,33 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getFlag( + code: Flag.afghanistan, + width: 0, // optional + height: 0, // optional + quality: -1, // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getFlag( + code: Flag.afghanistan, + width:0 , // optional + height:0 , // optional + quality:-1 , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-image.md new file mode 100644 index 00000000000..5b9d1b58c16 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-image.md @@ -0,0 +1,31 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getImage( + url: 'https://example.com', + width: 0, // optional + height: 0, // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getImage( + url:'https://example.com' , + width:0 , // optional + height:0 , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-initials.md new file mode 100644 index 00000000000..0c5b62a3099 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-initials.md @@ -0,0 +1,33 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getInitials( + name: '<NAME>', // optional + width: 0, // optional + height: 0, // optional + background: '', // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getInitials( + name:'<NAME>' , // optional + width:0 , // optional + height:0 , // optional + background:'' , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.7.x/client-flutter/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..d9a533c8868 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/avatars/get-q-r.md @@ -0,0 +1,33 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Avatars avatars = Avatars(client); + +// Downloading file +UInt8List bytes = await avatars.getQR( + text: '<TEXT>', + size: 1, // optional + margin: 0, // optional + download: false, // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: avatars.getQR( + text:'<TEXT>' , + size:1 , // optional + margin:0 , // optional + download:false , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.7.x/client-flutter/examples/databases/create-document.md new file mode 100644 index 00000000000..4f286fff95a --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/create-document.md @@ -0,0 +1,17 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +Databases databases = Databases(client); + +Document result = await databases.createDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + data: {}, + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.7.x/client-flutter/examples/databases/delete-document.md new file mode 100644 index 00000000000..3354917c203 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/delete-document.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Databases databases = Databases(client); + +await databases.deleteDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.7.x/client-flutter/examples/databases/get-document.md new file mode 100644 index 00000000000..f85c1f9b5a6 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/get-document.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Databases databases = Databases(client); + +Document result = await databases.getDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + queries: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.7.x/client-flutter/examples/databases/list-documents.md new file mode 100644 index 00000000000..31fec1f5223 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/list-documents.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Databases databases = Databases(client); + +DocumentList result = await databases.listDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.7.x/client-flutter/examples/databases/update-document.md new file mode 100644 index 00000000000..1f444d875a5 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/databases/update-document.md @@ -0,0 +1,15 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Databases databases = Databases(client); + +Document result = await databases.updateDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + data: {}, // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.7.x/client-flutter/examples/functions/create-execution.md new file mode 100644 index 00000000000..d2a3d9e00a9 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/functions/create-execution.md @@ -0,0 +1,17 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Functions functions = Functions(client); + +Execution result = await functions.createExecution( + functionId: '<FUNCTION_ID>', + body: '<BODY>', // optional + xasync: false, // optional + path: '<PATH>', // optional + method: ExecutionMethod.gET, // optional + headers: {}, // optional + scheduledAt: '', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.7.x/client-flutter/examples/functions/get-execution.md new file mode 100644 index 00000000000..714933be32d --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/functions/get-execution.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Functions functions = Functions(client); + +Execution result = await functions.getExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.7.x/client-flutter/examples/functions/list-executions.md new file mode 100644 index 00000000000..232f3250d38 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/functions/list-executions.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Functions functions = Functions(client); + +ExecutionList result = await functions.listExecutions( + functionId: '<FUNCTION_ID>', + queries: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.7.x/client-flutter/examples/graphql/mutation.md new file mode 100644 index 00000000000..60f0c297033 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/graphql/mutation.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Graphql graphql = Graphql(client); + +Any result = await graphql.mutation( + query: {}, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/graphql/query.md b/docs/examples/1.7.x/client-flutter/examples/graphql/query.md new file mode 100644 index 00000000000..d90c3432e9b --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/graphql/query.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Graphql graphql = Graphql(client); + +Any result = await graphql.query( + query: {}, +); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/get.md b/docs/examples/1.7.x/client-flutter/examples/locale/get.md new file mode 100644 index 00000000000..b2846990462 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/get.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +Locale result = await locale.get(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-codes.md new file mode 100644 index 00000000000..02274715714 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-codes.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +LocaleCodeList result = await locale.listCodes(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-continents.md new file mode 100644 index 00000000000..1098bd1d58a --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-continents.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +ContinentList result = await locale.listContinents(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..7d6571f4eef --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-countries-e-u.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +CountryList result = await locale.listCountriesEU(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..395f240fd7c --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-countries-phones.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +PhoneList result = await locale.listCountriesPhones(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-countries.md new file mode 100644 index 00000000000..a322eb20784 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-countries.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +CountryList result = await locale.listCountries(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-currencies.md new file mode 100644 index 00000000000..8884bf45b2e --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-currencies.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +CurrencyList result = await locale.listCurrencies(); diff --git a/docs/examples/1.7.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.7.x/client-flutter/examples/locale/list-languages.md new file mode 100644 index 00000000000..0444d94151b --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/locale/list-languages.md @@ -0,0 +1,9 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Locale locale = Locale(client); + +LanguageList result = await locale.listLanguages(); diff --git a/docs/examples/1.7.x/client-flutter/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/client-flutter/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..2a278a0481d --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/messaging/create-subscriber.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Messaging messaging = Messaging(client); + +Subscriber result = await messaging.createSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>', + targetId: '<TARGET_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-flutter/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..02c1f615358 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/messaging/delete-subscriber.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Messaging messaging = Messaging(client); + +await messaging.deleteSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.7.x/client-flutter/examples/storage/create-file.md new file mode 100644 index 00000000000..661f6b8b1e4 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/create-file.md @@ -0,0 +1,15 @@ +import 'dart:io'; +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +File result = await storage.createFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.7.x/client-flutter/examples/storage/delete-file.md new file mode 100644 index 00000000000..b2c6a78f752 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/delete-file.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +await storage.deleteFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.7.x/client-flutter/examples/storage/get-file-download.md new file mode 100644 index 00000000000..5bef06ee7d5 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/get-file-download.md @@ -0,0 +1,31 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +// Downloading file +UInt8List bytes = await storage.getFileDownload( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + token: '<TOKEN>', // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: storage.getFileDownload( + bucketId:'<BUCKET_ID>' , + fileId:'<FILE_ID>' , + token:'<TOKEN>' , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.7.x/client-flutter/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..96338bd25a9 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/get-file-preview.md @@ -0,0 +1,53 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +// Downloading file +UInt8List bytes = await storage.getFilePreview( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + width: 0, // optional + height: 0, // optional + gravity: ImageGravity.center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: ImageFormat.jpg, // optional + token: '<TOKEN>', // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: storage.getFilePreview( + bucketId:'<BUCKET_ID>' , + fileId:'<FILE_ID>' , + width:0 , // optional + height:0 , // optional + gravity: ImageGravity.center, // optional + quality:-1 , // optional + borderWidth:0 , // optional + borderColor:'' , // optional + borderRadius:0 , // optional + opacity:0 , // optional + rotation:-360 , // optional + background:'' , // optional + output: ImageFormat.jpg, // optional + token:'<TOKEN>' , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.7.x/client-flutter/examples/storage/get-file-view.md new file mode 100644 index 00000000000..6587f086bd9 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/get-file-view.md @@ -0,0 +1,31 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +// Downloading file +UInt8List bytes = await storage.getFileView( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + token: '<TOKEN>', // optional +) + +final file = File('path_to_file/filename.ext'); +file.writeAsBytesSync(bytes); + +// Displaying image preview +FutureBuilder( + future: storage.getFileView( + bucketId:'<BUCKET_ID>' , + fileId:'<FILE_ID>' , + token:'<TOKEN>' , // optional +), // Works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory(snapshot.data) + : CircularProgressIndicator(); + } +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.7.x/client-flutter/examples/storage/get-file.md new file mode 100644 index 00000000000..f4b541ffd17 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/get-file.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +File result = await storage.getFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.7.x/client-flutter/examples/storage/list-files.md new file mode 100644 index 00000000000..7950005b6a2 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/list-files.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +FileList result = await storage.listFiles( + bucketId: '<BUCKET_ID>', + queries: [], // optional + search: '<SEARCH>', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.7.x/client-flutter/examples/storage/update-file.md new file mode 100644 index 00000000000..8e598121c12 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/storage/update-file.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Storage storage = Storage(client); + +File result = await storage.updateFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + name: '<NAME>', // optional + permissions: ["read("any")"], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.7.x/client-flutter/examples/teams/create-membership.md new file mode 100644 index 00000000000..80265214084 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/create-membership.md @@ -0,0 +1,17 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Membership result = await teams.createMembership( + teamId: '<TEAM_ID>', + roles: [], + email: 'email@example.com', // optional + userId: '<USER_ID>', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '<NAME>', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/create.md b/docs/examples/1.7.x/client-flutter/examples/teams/create.md new file mode 100644 index 00000000000..637e216a041 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/create.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Team result = await teams.create( + teamId: '<TEAM_ID>', + name: '<NAME>', + roles: [], // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.7.x/client-flutter/examples/teams/delete-membership.md new file mode 100644 index 00000000000..0f1941d88be --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/delete-membership.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +await teams.deleteMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/delete.md b/docs/examples/1.7.x/client-flutter/examples/teams/delete.md new file mode 100644 index 00000000000..74c74c9cf13 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/delete.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +await teams.delete( + teamId: '<TEAM_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.7.x/client-flutter/examples/teams/get-membership.md new file mode 100644 index 00000000000..468e02cf32a --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/get-membership.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Membership result = await teams.getMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.7.x/client-flutter/examples/teams/get-prefs.md new file mode 100644 index 00000000000..a22c78869cc --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/get-prefs.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Preferences result = await teams.getPrefs( + teamId: '<TEAM_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/get.md b/docs/examples/1.7.x/client-flutter/examples/teams/get.md new file mode 100644 index 00000000000..5e8c3463eae --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/get.md @@ -0,0 +1,11 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Team result = await teams.get( + teamId: '<TEAM_ID>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.7.x/client-flutter/examples/teams/list-memberships.md new file mode 100644 index 00000000000..374dd490694 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/list-memberships.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +MembershipList result = await teams.listMemberships( + teamId: '<TEAM_ID>', + queries: [], // optional + search: '<SEARCH>', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/list.md b/docs/examples/1.7.x/client-flutter/examples/teams/list.md new file mode 100644 index 00000000000..3aa972fb5ff --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/list.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +TeamList result = await teams.list( + queries: [], // optional + search: '<SEARCH>', // optional +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.7.x/client-flutter/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..1ce3eacb79f --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/update-membership-status.md @@ -0,0 +1,14 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Membership result = await teams.updateMembershipStatus( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.7.x/client-flutter/examples/teams/update-membership.md new file mode 100644 index 00000000000..bc2bbae75c3 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/update-membership.md @@ -0,0 +1,13 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Membership result = await teams.updateMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', + roles: [], +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.7.x/client-flutter/examples/teams/update-name.md new file mode 100644 index 00000000000..8f1794587e9 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/update-name.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Team result = await teams.updateName( + teamId: '<TEAM_ID>', + name: '<NAME>', +); diff --git a/docs/examples/1.7.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.7.x/client-flutter/examples/teams/update-prefs.md new file mode 100644 index 00000000000..7b33c8c3130 --- /dev/null +++ b/docs/examples/1.7.x/client-flutter/examples/teams/update-prefs.md @@ -0,0 +1,12 @@ +import 'package:appwrite/appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Teams teams = Teams(client); + +Preferences result = await teams.updatePrefs( + teamId: '<TEAM_ID>', + prefs: {}, +); diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/client-graphql/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..92c12acee5c --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-anonymous-session.md @@ -0,0 +1,33 @@ +mutation { + accountCreateAnonymousSession { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-email-password-session.md b/docs/examples/1.7.x/client-graphql/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..931bb4add09 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-email-password-session.md @@ -0,0 +1,36 @@ +mutation { + accountCreateEmailPasswordSession( + email: "email@example.com", + password: "password" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-email-token.md b/docs/examples/1.7.x/client-graphql/examples/account/create-email-token.md new file mode 100644 index 00000000000..de320b45edd --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-email-token.md @@ -0,0 +1,14 @@ +mutation { + accountCreateEmailToken( + userId: "<USER_ID>", + email: "email@example.com", + phrase: false + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-j-w-t.md b/docs/examples/1.7.x/client-graphql/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..a5204f1256d --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-j-w-t.md @@ -0,0 +1,5 @@ +mutation { + accountCreateJWT { + jwt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-graphql/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..4024a5b3a9e --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,15 @@ +mutation { + accountCreateMagicURLToken( + userId: "<USER_ID>", + email: "email@example.com", + url: "https://example.com", + phrase: false + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..6b29292494e --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-authenticator.md @@ -0,0 +1,8 @@ +mutation { + accountCreateMfaAuthenticator( + type: "totp" + ) { + secret + uri + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..eb5cba127d6 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-challenge.md @@ -0,0 +1,10 @@ +mutation { + accountCreateMfaChallenge( + factor: "email" + ) { + _id + _createdAt + userId + expire + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..f39b7d080d1 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,5 @@ +mutation { + accountCreateMfaRecoveryCodes { + recoveryCodes + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-phone-token.md b/docs/examples/1.7.x/client-graphql/examples/account/create-phone-token.md new file mode 100644 index 00000000000..b56c4eb4e44 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-phone-token.md @@ -0,0 +1,13 @@ +mutation { + accountCreatePhoneToken( + userId: "<USER_ID>", + phone: "+12065550100" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-phone-verification.md b/docs/examples/1.7.x/client-graphql/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..a4cad59b1a6 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-phone-verification.md @@ -0,0 +1,10 @@ +mutation { + accountCreatePhoneVerification { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-push-target.md b/docs/examples/1.7.x/client-graphql/examples/account/create-push-target.md new file mode 100644 index 00000000000..63802a782e5 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-push-target.md @@ -0,0 +1,17 @@ +mutation { + accountCreatePushTarget( + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>", + providerId: "<PROVIDER_ID>" + ) { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-recovery.md b/docs/examples/1.7.x/client-graphql/examples/account/create-recovery.md new file mode 100644 index 00000000000..ad31fd82d73 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +mutation { + accountCreateRecovery( + email: "email@example.com", + url: "https://example.com" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-session.md b/docs/examples/1.7.x/client-graphql/examples/account/create-session.md new file mode 100644 index 00000000000..f473d142075 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-session.md @@ -0,0 +1,36 @@ +mutation { + accountCreateSession( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create-verification.md b/docs/examples/1.7.x/client-graphql/examples/account/create-verification.md new file mode 100644 index 00000000000..df50dda5291 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create-verification.md @@ -0,0 +1,12 @@ +mutation { + accountCreateVerification( + url: "https://example.com" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/create.md b/docs/examples/1.7.x/client-graphql/examples/account/create.md new file mode 100644 index 00000000000..0d39394a3d0 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/create.md @@ -0,0 +1,40 @@ +mutation { + accountCreate( + userId: "<USER_ID>", + email: "email@example.com", + password: "", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/delete-identity.md b/docs/examples/1.7.x/client-graphql/examples/account/delete-identity.md new file mode 100644 index 00000000000..f3c2e2e7b9c --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/delete-identity.md @@ -0,0 +1,7 @@ +mutation { + accountDeleteIdentity( + identityId: "<IDENTITY_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-graphql/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..fc5486623a9 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,7 @@ +mutation { + accountDeleteMfaAuthenticator( + type: "totp" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/delete-push-target.md b/docs/examples/1.7.x/client-graphql/examples/account/delete-push-target.md new file mode 100644 index 00000000000..894c0b2e026 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/delete-push-target.md @@ -0,0 +1,7 @@ +mutation { + accountDeletePushTarget( + targetId: "<TARGET_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/delete-session.md b/docs/examples/1.7.x/client-graphql/examples/account/delete-session.md new file mode 100644 index 00000000000..09aff38fdd8 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/delete-session.md @@ -0,0 +1,7 @@ +mutation { + accountDeleteSession( + sessionId: "<SESSION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/delete-sessions.md b/docs/examples/1.7.x/client-graphql/examples/account/delete-sessions.md new file mode 100644 index 00000000000..b0d61daa817 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/delete-sessions.md @@ -0,0 +1,5 @@ +mutation { + accountDeleteSessions { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-graphql/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/get-prefs.md b/docs/examples/1.7.x/client-graphql/examples/account/get-prefs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/get-session.md b/docs/examples/1.7.x/client-graphql/examples/account/get-session.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/get.md b/docs/examples/1.7.x/client-graphql/examples/account/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/list-identities.md b/docs/examples/1.7.x/client-graphql/examples/account/list-identities.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/list-logs.md b/docs/examples/1.7.x/client-graphql/examples/account/list-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/client-graphql/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/list-sessions.md b/docs/examples/1.7.x/client-graphql/examples/account/list-sessions.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-email.md b/docs/examples/1.7.x/client-graphql/examples/account/update-email.md new file mode 100644 index 00000000000..c879e24a43a --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-email.md @@ -0,0 +1,38 @@ +mutation { + accountUpdateEmail( + email: "email@example.com", + password: "password" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-m-f-a.md b/docs/examples/1.7.x/client-graphql/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..787c2e08608 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-m-f-a.md @@ -0,0 +1,37 @@ +mutation { + accountUpdateMFA( + mfa: false + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-graphql/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..075bc91d17a --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,36 @@ +mutation { + accountUpdateMagicURLSession( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..9cfe9150be6 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-authenticator.md @@ -0,0 +1,38 @@ +mutation { + accountUpdateMfaAuthenticator( + type: "totp", + otp: "<OTP>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..0bcec2157fe --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-challenge.md @@ -0,0 +1,36 @@ +mutation { + accountUpdateMfaChallenge( + challengeId: "<CHALLENGE_ID>", + otp: "<OTP>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..e706d2b9d71 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,5 @@ +mutation { + accountUpdateMfaRecoveryCodes { + recoveryCodes + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-name.md b/docs/examples/1.7.x/client-graphql/examples/account/update-name.md new file mode 100644 index 00000000000..8ba2c99d9c2 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-name.md @@ -0,0 +1,37 @@ +mutation { + accountUpdateName( + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-password.md b/docs/examples/1.7.x/client-graphql/examples/account/update-password.md new file mode 100644 index 00000000000..f3619a10d28 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-password.md @@ -0,0 +1,38 @@ +mutation { + accountUpdatePassword( + password: "", + oldPassword: "password" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-phone-session.md b/docs/examples/1.7.x/client-graphql/examples/account/update-phone-session.md new file mode 100644 index 00000000000..199e774ab00 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-phone-session.md @@ -0,0 +1,36 @@ +mutation { + accountUpdatePhoneSession( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-phone-verification.md b/docs/examples/1.7.x/client-graphql/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..dd62298bb9b --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-phone-verification.md @@ -0,0 +1,13 @@ +mutation { + accountUpdatePhoneVerification( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-phone.md b/docs/examples/1.7.x/client-graphql/examples/account/update-phone.md new file mode 100644 index 00000000000..adecb711684 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-phone.md @@ -0,0 +1,38 @@ +mutation { + accountUpdatePhone( + phone: "+12065550100", + password: "password" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.7.x/client-graphql/examples/account/update-prefs.md new file mode 100644 index 00000000000..57280247e40 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-prefs.md @@ -0,0 +1,37 @@ +mutation { + accountUpdatePrefs( + prefs: "{}" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-push-target.md b/docs/examples/1.7.x/client-graphql/examples/account/update-push-target.md new file mode 100644 index 00000000000..3c402cdf12a --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-push-target.md @@ -0,0 +1,16 @@ +mutation { + accountUpdatePushTarget( + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>" + ) { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-recovery.md b/docs/examples/1.7.x/client-graphql/examples/account/update-recovery.md new file mode 100644 index 00000000000..2d15fdcaa1c --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +mutation { + accountUpdateRecovery( + userId: "<USER_ID>", + secret: "<SECRET>", + password: "" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-session.md b/docs/examples/1.7.x/client-graphql/examples/account/update-session.md new file mode 100644 index 00000000000..29a8979872f --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-session.md @@ -0,0 +1,35 @@ +mutation { + accountUpdateSession( + sessionId: "<SESSION_ID>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-status.md b/docs/examples/1.7.x/client-graphql/examples/account/update-status.md new file mode 100644 index 00000000000..c17f5568426 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-status.md @@ -0,0 +1,35 @@ +mutation { + accountUpdateStatus { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/account/update-verification.md b/docs/examples/1.7.x/client-graphql/examples/account/update-verification.md new file mode 100644 index 00000000000..11e63c7da35 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/account/update-verification.md @@ -0,0 +1,13 @@ +mutation { + accountUpdateVerification( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-browser.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-browser.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-favicon.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-flag.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-flag.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-image.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-image.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-initials.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-initials.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/avatars/get-q-r.md b/docs/examples/1.7.x/client-graphql/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/create-document.md b/docs/examples/1.7.x/client-graphql/examples/databases/create-document.md new file mode 100644 index 00000000000..4e2d90660bb --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/databases/create-document.md @@ -0,0 +1,17 @@ +mutation { + databasesCreateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/delete-document.md b/docs/examples/1.7.x/client-graphql/examples/databases/delete-document.md new file mode 100644 index 00000000000..848371bca06 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/databases/delete-document.md @@ -0,0 +1,9 @@ +mutation { + databasesDeleteDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/get-document.md b/docs/examples/1.7.x/client-graphql/examples/databases/get-document.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/list-documents.md b/docs/examples/1.7.x/client-graphql/examples/databases/list-documents.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/databases/update-document.md b/docs/examples/1.7.x/client-graphql/examples/databases/update-document.md new file mode 100644 index 00000000000..5e808946205 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/databases/update-document.md @@ -0,0 +1,17 @@ +mutation { + databasesUpdateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.7.x/client-graphql/examples/functions/create-execution.md new file mode 100644 index 00000000000..1479aa3bb60 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/functions/create-execution.md @@ -0,0 +1,35 @@ +mutation { + functionsCreateExecution( + functionId: "<FUNCTION_ID>", + body: "<BODY>", + async: false, + path: "<PATH>", + method: "GET", + headers: "{}", + scheduledAt: "" + ) { + _id + _createdAt + _updatedAt + _permissions + functionId + trigger + status + requestMethod + requestPath + requestHeaders { + name + value + } + responseStatusCode + responseBody + responseHeaders { + name + value + } + logs + errors + duration + scheduledAt + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/functions/get-execution.md b/docs/examples/1.7.x/client-graphql/examples/functions/get-execution.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/functions/list-executions.md b/docs/examples/1.7.x/client-graphql/examples/functions/list-executions.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/get.md b/docs/examples/1.7.x/client-graphql/examples/locale/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-codes.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-codes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-continents.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-continents.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-countries.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-countries.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-currencies.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-currencies.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/locale/list-languages.md b/docs/examples/1.7.x/client-graphql/examples/locale/list-languages.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/client-graphql/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..bab53612b79 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/messaging/create-subscriber.md @@ -0,0 +1,27 @@ +mutation { + messagingCreateSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>", + targetId: "<TARGET_ID>" + ) { + _id + _createdAt + _updatedAt + targetId + target { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + userId + userName + topicId + providerType + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-graphql/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..ededffcaac4 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/messaging/delete-subscriber.md @@ -0,0 +1,8 @@ +mutation { + messagingDeleteSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.7.x/client-graphql/examples/storage/create-file.md new file mode 100644 index 00000000000..97e2150c395 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/storage/create-file.md @@ -0,0 +1,25 @@ +POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="operations" + +{ "query": "mutation { storageCreateFile(bucketId: $bucketId, fileId: $fileId, file: $file, permissions: $permissions) { id }" }, "variables": { "bucketId": "<BUCKET_ID>", "fileId": "<FILE_ID>", "file": null, "permissions": ["read("any")"] } } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="map" + +{ "0": ["variables.file"], } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="0"; filename="file.ext" + +File contents + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/delete-file.md b/docs/examples/1.7.x/client-graphql/examples/storage/delete-file.md new file mode 100644 index 00000000000..17ec89931ab --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/storage/delete-file.md @@ -0,0 +1,8 @@ +mutation { + storageDeleteFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/get-file-download.md b/docs/examples/1.7.x/client-graphql/examples/storage/get-file-download.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/get-file-preview.md b/docs/examples/1.7.x/client-graphql/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/get-file-view.md b/docs/examples/1.7.x/client-graphql/examples/storage/get-file-view.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/get-file.md b/docs/examples/1.7.x/client-graphql/examples/storage/get-file.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/list-files.md b/docs/examples/1.7.x/client-graphql/examples/storage/list-files.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/storage/update-file.md b/docs/examples/1.7.x/client-graphql/examples/storage/update-file.md new file mode 100644 index 00000000000..b7832048c74 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/storage/update-file.md @@ -0,0 +1,20 @@ +mutation { + storageUpdateFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + name: "<NAME>", + permissions: ["read("any")"] + ) { + _id + bucketId + _createdAt + _updatedAt + _permissions + name + signature + mimeType + sizeOriginal + chunksTotal + chunksUploaded + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/create-membership.md b/docs/examples/1.7.x/client-graphql/examples/teams/create-membership.md new file mode 100644 index 00000000000..fe741f080dd --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/create-membership.md @@ -0,0 +1,25 @@ +mutation { + teamsCreateMembership( + teamId: "<TEAM_ID>", + roles: [], + email: "email@example.com", + userId: "<USER_ID>", + phone: "+12065550100", + url: "https://example.com", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + userId + userName + userEmail + teamId + teamName + invited + joined + confirm + mfa + roles + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/create.md b/docs/examples/1.7.x/client-graphql/examples/teams/create.md new file mode 100644 index 00000000000..1f2a7ab3f2a --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/create.md @@ -0,0 +1,16 @@ +mutation { + teamsCreate( + teamId: "<TEAM_ID>", + name: "<NAME>", + roles: [] + ) { + _id + _createdAt + _updatedAt + name + total + prefs { + data + } + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/delete-membership.md b/docs/examples/1.7.x/client-graphql/examples/teams/delete-membership.md new file mode 100644 index 00000000000..e391b6f6fa3 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/delete-membership.md @@ -0,0 +1,8 @@ +mutation { + teamsDeleteMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/delete.md b/docs/examples/1.7.x/client-graphql/examples/teams/delete.md new file mode 100644 index 00000000000..df0d36c5b51 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/delete.md @@ -0,0 +1,7 @@ +mutation { + teamsDelete( + teamId: "<TEAM_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/get-membership.md b/docs/examples/1.7.x/client-graphql/examples/teams/get-membership.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/get-prefs.md b/docs/examples/1.7.x/client-graphql/examples/teams/get-prefs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/get.md b/docs/examples/1.7.x/client-graphql/examples/teams/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/list-memberships.md b/docs/examples/1.7.x/client-graphql/examples/teams/list-memberships.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/list.md b/docs/examples/1.7.x/client-graphql/examples/teams/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/update-membership-status.md b/docs/examples/1.7.x/client-graphql/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..9b24450a868 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/update-membership-status.md @@ -0,0 +1,22 @@ +mutation { + teamsUpdateMembershipStatus( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + userName + userEmail + teamId + teamName + invited + joined + confirm + mfa + roles + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/update-membership.md b/docs/examples/1.7.x/client-graphql/examples/teams/update-membership.md new file mode 100644 index 00000000000..1c6a04f0784 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/update-membership.md @@ -0,0 +1,21 @@ +mutation { + teamsUpdateMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + roles: [] + ) { + _id + _createdAt + _updatedAt + userId + userName + userEmail + teamId + teamName + invited + joined + confirm + mfa + roles + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/update-name.md b/docs/examples/1.7.x/client-graphql/examples/teams/update-name.md new file mode 100644 index 00000000000..c40543b5cd6 --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/update-name.md @@ -0,0 +1,15 @@ +mutation { + teamsUpdateName( + teamId: "<TEAM_ID>", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + total + prefs { + data + } + } +} diff --git a/docs/examples/1.7.x/client-graphql/examples/teams/update-prefs.md b/docs/examples/1.7.x/client-graphql/examples/teams/update-prefs.md new file mode 100644 index 00000000000..95737e33f9b --- /dev/null +++ b/docs/examples/1.7.x/client-graphql/examples/teams/update-prefs.md @@ -0,0 +1,8 @@ +mutation { + teamsUpdatePrefs( + teamId: "<TEAM_ID>", + prefs: "{}" + ) { + data + } +} diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/client-react-native/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..4baad33e9d0 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createAnonymousSession(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-email-password-session.md b/docs/examples/1.7.x/client-react-native/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..217d7873aed --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-email-password-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createEmailPasswordSession( + 'email@example.com', // email + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.7.x/client-react-native/examples/account/create-email-token.md new file mode 100644 index 00000000000..b9bdf3bbe27 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-email-token.md @@ -0,0 +1,15 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createEmailToken( + '<USER_ID>', // userId + 'email@example.com', // email + false // phrase (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.7.x/client-react-native/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..217dc787854 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-j-w-t.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createJWT(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-react-native/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..413e347aef7 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMagicURLToken( + '<USER_ID>', // userId + 'email@example.com', // email + 'https://example.com', // url (optional) + false // phrase (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..ec243490aa9 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaAuthenticator( + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..04de25863f5 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-challenge.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticationFactor } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaChallenge( + AuthenticationFactor.Email // factor +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..f256be308b8 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/client-react-native/examples/account/create-o-auth2session.md new file mode 100644 index 00000000000..84bddb4777b --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-o-auth2session.md @@ -0,0 +1,15 @@ +import { Client, Account, OAuthProvider } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +account.createOAuth2Session( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); + diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/client-react-native/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..cd4ee86aa1f --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-o-auth2token.md @@ -0,0 +1,15 @@ +import { Client, Account, OAuthProvider } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +account.createOAuth2Token( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); + diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-phone-token.md b/docs/examples/1.7.x/client-react-native/examples/account/create-phone-token.md new file mode 100644 index 00000000000..d03e5ea4bc4 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-phone-token.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createPhoneToken( + '<USER_ID>', // userId + '+12065550100' // phone +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-phone-verification.md b/docs/examples/1.7.x/client-react-native/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..62bcc48113c --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-phone-verification.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createPhoneVerification(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.7.x/client-react-native/examples/account/create-push-target.md new file mode 100644 index 00000000000..83211ab9f38 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-push-target.md @@ -0,0 +1,15 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createPushTarget( + '<TARGET_ID>', // targetId + '<IDENTIFIER>', // identifier + '<PROVIDER_ID>' // providerId (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-recovery.md b/docs/examples/1.7.x/client-react-native/examples/account/create-recovery.md new file mode 100644 index 00000000000..802af82fb78 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createRecovery( + 'email@example.com', // email + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-session.md b/docs/examples/1.7.x/client-react-native/examples/account/create-session.md new file mode 100644 index 00000000000..bb3040aef6e --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create-verification.md b/docs/examples/1.7.x/client-react-native/examples/account/create-verification.md new file mode 100644 index 00000000000..5fdffcba5cb --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create-verification.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createVerification( + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/create.md b/docs/examples/1.7.x/client-react-native/examples/account/create.md new file mode 100644 index 00000000000..eb3d04ac54f --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/create.md @@ -0,0 +1,16 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.create( + '<USER_ID>', // userId + 'email@example.com', // email + '', // password + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/delete-identity.md b/docs/examples/1.7.x/client-react-native/examples/account/delete-identity.md new file mode 100644 index 00000000000..df492a528db --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/delete-identity.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteIdentity( + '<IDENTITY_ID>' // identityId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-react-native/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..093ba4d5a2c --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteMfaAuthenticator( + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/delete-push-target.md b/docs/examples/1.7.x/client-react-native/examples/account/delete-push-target.md new file mode 100644 index 00000000000..a926ede9c69 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/delete-push-target.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deletePushTarget( + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/delete-session.md b/docs/examples/1.7.x/client-react-native/examples/account/delete-session.md new file mode 100644 index 00000000000..134a2caa56a --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/delete-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteSession( + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/delete-sessions.md b/docs/examples/1.7.x/client-react-native/examples/account/delete-sessions.md new file mode 100644 index 00000000000..830eb273a84 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/delete-sessions.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteSessions(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-react-native/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..c660a17ab87 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.getMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/get-prefs.md b/docs/examples/1.7.x/client-react-native/examples/account/get-prefs.md new file mode 100644 index 00000000000..b26a7b09f04 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/get-prefs.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.getPrefs(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/get-session.md b/docs/examples/1.7.x/client-react-native/examples/account/get-session.md new file mode 100644 index 00000000000..1db05d5c269 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/get-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.getSession( + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/get.md b/docs/examples/1.7.x/client-react-native/examples/account/get.md new file mode 100644 index 00000000000..21d24016010 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/get.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.7.x/client-react-native/examples/account/list-identities.md new file mode 100644 index 00000000000..239dbbf21f7 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/list-identities.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listIdentities( + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.7.x/client-react-native/examples/account/list-logs.md new file mode 100644 index 00000000000..9cf441453ce --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/list-logs.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listLogs( + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/client-react-native/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..51b76c90e47 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/list-mfa-factors.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listMfaFactors(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/list-sessions.md b/docs/examples/1.7.x/client-react-native/examples/account/list-sessions.md new file mode 100644 index 00000000000..68232be292a --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/list-sessions.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listSessions(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-email.md b/docs/examples/1.7.x/client-react-native/examples/account/update-email.md new file mode 100644 index 00000000000..4bbe0b03e74 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-email.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateEmail( + 'email@example.com', // email + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.7.x/client-react-native/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..ebbfc0c8cd4 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-m-f-a.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMFA( + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-react-native/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..c5e6b613957 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMagicURLSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..07a798e7a6c --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-authenticator.md @@ -0,0 +1,14 @@ +import { Client, Account, AuthenticatorType } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaAuthenticator( + AuthenticatorType.Totp, // type + '<OTP>' // otp +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..b93e0bf520e --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-challenge.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaChallenge( + '<CHALLENGE_ID>', // challengeId + '<OTP>' // otp +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..2ed9bb02048 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-name.md b/docs/examples/1.7.x/client-react-native/examples/account/update-name.md new file mode 100644 index 00000000000..adbbcab5bee --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-name.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateName( + '<NAME>' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-password.md b/docs/examples/1.7.x/client-react-native/examples/account/update-password.md new file mode 100644 index 00000000000..3bde58e68ae --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-password.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePassword( + '', // password + 'password' // oldPassword (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-phone-session.md b/docs/examples/1.7.x/client-react-native/examples/account/update-phone-session.md new file mode 100644 index 00000000000..c9c82696fce --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-phone-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhoneSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-phone-verification.md b/docs/examples/1.7.x/client-react-native/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..0ef7e53e66d --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-phone-verification.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhoneVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-phone.md b/docs/examples/1.7.x/client-react-native/examples/account/update-phone.md new file mode 100644 index 00000000000..bf8aae2a3d9 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-phone.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhone( + '+12065550100', // phone + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.7.x/client-react-native/examples/account/update-prefs.md new file mode 100644 index 00000000000..01d4fd68783 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-prefs.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePrefs( + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-push-target.md b/docs/examples/1.7.x/client-react-native/examples/account/update-push-target.md new file mode 100644 index 00000000000..d88e22e04db --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-push-target.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePushTarget( + '<TARGET_ID>', // targetId + '<IDENTIFIER>' // identifier +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-recovery.md b/docs/examples/1.7.x/client-react-native/examples/account/update-recovery.md new file mode 100644 index 00000000000..9a5ef04f3ae --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-recovery.md @@ -0,0 +1,15 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateRecovery( + '<USER_ID>', // userId + '<SECRET>', // secret + '' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-session.md b/docs/examples/1.7.x/client-react-native/examples/account/update-session.md new file mode 100644 index 00000000000..0c8a9e5df38 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateSession( + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-status.md b/docs/examples/1.7.x/client-react-native/examples/account/update-status.md new file mode 100644 index 00000000000..8d3a2b0698f --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-status.md @@ -0,0 +1,11 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateStatus(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/account/update-verification.md b/docs/examples/1.7.x/client-react-native/examples/account/update-verification.md new file mode 100644 index 00000000000..c956d5fcd6c --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/account/update-verification.md @@ -0,0 +1,14 @@ +import { Client, Account } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-browser.md new file mode 100644 index 00000000000..433cbe5999c --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-browser.md @@ -0,0 +1,16 @@ +import { Client, Avatars, Browser } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getBrowser( + Browser.AvantBrowser, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..bbd0007fe07 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-credit-card.md @@ -0,0 +1,16 @@ +import { Client, Avatars, CreditCard } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getCreditCard( + CreditCard.AmericanExpress, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-favicon.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..ff48c76ffcc --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-favicon.md @@ -0,0 +1,13 @@ +import { Client, Avatars } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getFavicon( + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-flag.md new file mode 100644 index 00000000000..4e6070d190f --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-flag.md @@ -0,0 +1,16 @@ +import { Client, Avatars, Flag } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getFlag( + Flag.Afghanistan, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-image.md new file mode 100644 index 00000000000..006155effd0 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +import { Client, Avatars } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getImage( + 'https://example.com', // url + 0, // width (optional) + 0 // height (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-initials.md new file mode 100644 index 00000000000..a87a6434502 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-initials.md @@ -0,0 +1,16 @@ +import { Client, Avatars } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getInitials( + '<NAME>', // name (optional) + 0, // width (optional) + 0, // height (optional) + '' // background (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.7.x/client-react-native/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..177759d9efe --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/avatars/get-q-r.md @@ -0,0 +1,16 @@ +import { Client, Avatars } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getQR( + '<TEXT>', // text + 1, // size (optional) + 0, // margin (optional) + false // download (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.7.x/client-react-native/examples/databases/create-document.md new file mode 100644 index 00000000000..ec768fcfaf5 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/create-document.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const databases = new Databases(client); + +const result = await databases.createDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/delete-document.md b/docs/examples/1.7.x/client-react-native/examples/databases/delete-document.md new file mode 100644 index 00000000000..9136107a3cf --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/delete-document.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>' // documentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.7.x/client-react-native/examples/databases/get-document.md new file mode 100644 index 00000000000..9993e2c941c --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/get-document.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.7.x/client-react-native/examples/databases/list-documents.md new file mode 100644 index 00000000000..b2f377e53cb --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/list-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.7.x/client-react-native/examples/databases/update-document.md new file mode 100644 index 00000000000..7676ee109b8 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/databases/update-document.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.7.x/client-react-native/examples/functions/create-execution.md new file mode 100644 index 00000000000..72c71f77677 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/functions/create-execution.md @@ -0,0 +1,19 @@ +import { Client, Functions, ExecutionMethod } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createExecution( + '<FUNCTION_ID>', // functionId + '<BODY>', // body (optional) + false, // async (optional) + '<PATH>', // path (optional) + ExecutionMethod.GET, // method (optional) + {}, // headers (optional) + '' // scheduledAt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/functions/get-execution.md b/docs/examples/1.7.x/client-react-native/examples/functions/get-execution.md new file mode 100644 index 00000000000..848747ea2f2 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.7.x/client-react-native/examples/functions/list-executions.md new file mode 100644 index 00000000000..346f8c7ea85 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listExecutions( + '<FUNCTION_ID>', // functionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/graphql/mutation.md b/docs/examples/1.7.x/client-react-native/examples/graphql/mutation.md new file mode 100644 index 00000000000..3292a5dad26 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/graphql/mutation.md @@ -0,0 +1,13 @@ +import { Client, Graphql } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const graphql = new Graphql(client); + +const result = await graphql.mutation( + {} // query +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/graphql/query.md b/docs/examples/1.7.x/client-react-native/examples/graphql/query.md new file mode 100644 index 00000000000..a00c517a46e --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/graphql/query.md @@ -0,0 +1,13 @@ +import { Client, Graphql } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const graphql = new Graphql(client); + +const result = await graphql.query( + {} // query +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/get.md b/docs/examples/1.7.x/client-react-native/examples/locale/get.md new file mode 100644 index 00000000000..34c1672c532 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/get.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-codes.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-codes.md new file mode 100644 index 00000000000..29cec5a5cfd --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-codes.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-continents.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-continents.md new file mode 100644 index 00000000000..c98ba19af36 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-continents.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listContinents(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..7fb71a548d7 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-countries-e-u.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountriesEU(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..612debc5ab3 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-countries-phones.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountriesPhones(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-countries.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-countries.md new file mode 100644 index 00000000000..8b1f636fa6d --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-countries.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountries(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-currencies.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-currencies.md new file mode 100644 index 00000000000..4b96a5fdbc5 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-currencies.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCurrencies(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/locale/list-languages.md b/docs/examples/1.7.x/client-react-native/examples/locale/list-languages.md new file mode 100644 index 00000000000..54166afb1e9 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/locale/list-languages.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listLanguages(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/client-react-native/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..c950e90baee --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/messaging/create-subscriber.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>', // subscriberId + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-react-native/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..5004b59cacf --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/messaging/delete-subscriber.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.deleteSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.7.x/client-react-native/examples/storage/create-file.md new file mode 100644 index 00000000000..efbfd607c14 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/create-file.md @@ -0,0 +1,16 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.createFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + await pickSingle(), // file + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/delete-file.md b/docs/examples/1.7.x/client-react-native/examples/storage/delete-file.md new file mode 100644 index 00000000000..1a436ac8a86 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.deleteFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.7.x/client-react-native/examples/storage/get-file-download.md new file mode 100644 index 00000000000..e21bad67eb3 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFileDownload( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.7.x/client-react-native/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..6f116c5df6a --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/get-file-preview.md @@ -0,0 +1,26 @@ +import { Client, Storage, ImageGravity, ImageFormat } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFilePreview( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + 0, // width (optional) + 0, // height (optional) + ImageGravity.Center, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + '', // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + '', // background (optional) + ImageFormat.Jpg, // output (optional) + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.7.x/client-react-native/examples/storage/get-file-view.md new file mode 100644 index 00000000000..9b229f6a540 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFileView( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/get-file.md b/docs/examples/1.7.x/client-react-native/examples/storage/get-file.md new file mode 100644 index 00000000000..6d358adabdf --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/get-file.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.getFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.7.x/client-react-native/examples/storage/list-files.md new file mode 100644 index 00000000000..19099b12883 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/list-files.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.listFiles( + '<BUCKET_ID>', // bucketId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.7.x/client-react-native/examples/storage/update-file.md new file mode 100644 index 00000000000..d4ed68a337d --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/storage/update-file.md @@ -0,0 +1,16 @@ +import { Client, Storage } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.updateFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<NAME>', // name (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.7.x/client-react-native/examples/teams/create-membership.md new file mode 100644 index 00000000000..680fdb2ad80 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/create-membership.md @@ -0,0 +1,19 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.createMembership( + '<TEAM_ID>', // teamId + [], // roles + 'email@example.com', // email (optional) + '<USER_ID>', // userId (optional) + '+12065550100', // phone (optional) + 'https://example.com', // url (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/create.md b/docs/examples/1.7.x/client-react-native/examples/teams/create.md new file mode 100644 index 00000000000..51aaee358e4 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/create.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.create( + '<TEAM_ID>', // teamId + '<NAME>', // name + [] // roles (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/delete-membership.md b/docs/examples/1.7.x/client-react-native/examples/teams/delete-membership.md new file mode 100644 index 00000000000..37bdc7f87f9 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.deleteMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/delete.md b/docs/examples/1.7.x/client-react-native/examples/teams/delete.md new file mode 100644 index 00000000000..fe67eaffd18 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/delete.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.delete( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/get-membership.md b/docs/examples/1.7.x/client-react-native/examples/teams/get-membership.md new file mode 100644 index 00000000000..2b253c8b512 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/get-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.getMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/get-prefs.md b/docs/examples/1.7.x/client-react-native/examples/teams/get-prefs.md new file mode 100644 index 00000000000..943ed1a181e --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/get-prefs.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.getPrefs( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/get.md b/docs/examples/1.7.x/client-react-native/examples/teams/get.md new file mode 100644 index 00000000000..9267b57e2f6 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/get.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.get( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.7.x/client-react-native/examples/teams/list-memberships.md new file mode 100644 index 00000000000..4444bcd6642 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/list-memberships.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.listMemberships( + '<TEAM_ID>', // teamId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/list.md b/docs/examples/1.7.x/client-react-native/examples/teams/list.md new file mode 100644 index 00000000000..779538a70ab --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/list.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/update-membership-status.md b/docs/examples/1.7.x/client-react-native/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..c8edbf08c74 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/update-membership-status.md @@ -0,0 +1,16 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateMembershipStatus( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.7.x/client-react-native/examples/teams/update-membership.md new file mode 100644 index 00000000000..347cbdd0953 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/update-membership.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + [] // roles +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/update-name.md b/docs/examples/1.7.x/client-react-native/examples/teams/update-name.md new file mode 100644 index 00000000000..0ab4aa1c843 --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/update-name.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateName( + '<TEAM_ID>', // teamId + '<NAME>' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-react-native/examples/teams/update-prefs.md b/docs/examples/1.7.x/client-react-native/examples/teams/update-prefs.md new file mode 100644 index 00000000000..fda16a05dbe --- /dev/null +++ b/docs/examples/1.7.x/client-react-native/examples/teams/update-prefs.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "react-native-appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updatePrefs( + '<TEAM_ID>', // teamId + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/client-rest/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..2079b045d1b --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-anonymous-session.md @@ -0,0 +1,6 @@ +POST /v1/account/sessions/anonymous HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-email-password-session.md b/docs/examples/1.7.x/client-rest/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..8aee0e5b158 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-email-password-session.md @@ -0,0 +1,10 @@ +POST /v1/account/sessions/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "email": "email@example.com", + "password": "password" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-email-token.md b/docs/examples/1.7.x/client-rest/examples/account/create-email-token.md new file mode 100644 index 00000000000..98c5c9b454e --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-email-token.md @@ -0,0 +1,11 @@ +POST /v1/account/tokens/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "phrase": false +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-j-w-t.md b/docs/examples/1.7.x/client-rest/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..a8da4695c36 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-j-w-t.md @@ -0,0 +1,6 @@ +POST /v1/account/jwts HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-rest/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..a3db43516a6 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,12 @@ +POST /v1/account/tokens/magic-url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "url": "https://example.com", + "phrase": false +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-rest/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..8d6b52b8773 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-mfa-authenticator.md @@ -0,0 +1,8 @@ +POST /v1/account/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-rest/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..9a84c0ef697 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-mfa-challenge.md @@ -0,0 +1,9 @@ +POST /v1/account/mfa/challenge HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "factor": "email" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-rest/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..797824d5d75 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,8 @@ +POST /v1/account/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/client-rest/examples/account/create-o-auth2session.md new file mode 100644 index 00000000000..293170b4902 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-o-auth2session.md @@ -0,0 +1,4 @@ +GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/client-rest/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..dd1dd3ec5ea --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-o-auth2token.md @@ -0,0 +1,4 @@ +GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-phone-token.md b/docs/examples/1.7.x/client-rest/examples/account/create-phone-token.md new file mode 100644 index 00000000000..eef1021d9ee --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-phone-token.md @@ -0,0 +1,10 @@ +POST /v1/account/tokens/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "phone": "+12065550100" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-phone-verification.md b/docs/examples/1.7.x/client-rest/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..d161e580ffc --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-phone-verification.md @@ -0,0 +1,8 @@ +POST /v1/account/verification/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-push-target.md b/docs/examples/1.7.x/client-rest/examples/account/create-push-target.md new file mode 100644 index 00000000000..5844ccc19ea --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-push-target.md @@ -0,0 +1,12 @@ +POST /v1/account/targets/push HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: + +{ + "targetId": "<TARGET_ID>", + "identifier": "<IDENTIFIER>", + "providerId": "<PROVIDER_ID>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-recovery.md b/docs/examples/1.7.x/client-rest/examples/account/create-recovery.md new file mode 100644 index 00000000000..c195b96a5e0 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-recovery.md @@ -0,0 +1,12 @@ +POST /v1/account/recovery HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "email": "email@example.com", + "url": "https://example.com" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-session.md b/docs/examples/1.7.x/client-rest/examples/account/create-session.md new file mode 100644 index 00000000000..18e3b1acddd --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-session.md @@ -0,0 +1,10 @@ +POST /v1/account/sessions/token HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create-verification.md b/docs/examples/1.7.x/client-rest/examples/account/create-verification.md new file mode 100644 index 00000000000..1185d3a875c --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create-verification.md @@ -0,0 +1,11 @@ +POST /v1/account/verification HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "url": "https://example.com" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/create.md b/docs/examples/1.7.x/client-rest/examples/account/create.md new file mode 100644 index 00000000000..f546c07de5e --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/create.md @@ -0,0 +1,12 @@ +POST /v1/account HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": , + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/delete-identity.md b/docs/examples/1.7.x/client-rest/examples/account/delete-identity.md new file mode 100644 index 00000000000..edb036a593f --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/delete-identity.md @@ -0,0 +1,8 @@ +DELETE /v1/account/identities/{identityId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-rest/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..de58948195a --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,8 @@ +DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/delete-push-target.md b/docs/examples/1.7.x/client-rest/examples/account/delete-push-target.md new file mode 100644 index 00000000000..fdfc75a41be --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/delete-push-target.md @@ -0,0 +1,7 @@ +DELETE /v1/account/targets/{targetId}/push HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: + diff --git a/docs/examples/1.7.x/client-rest/examples/account/delete-session.md b/docs/examples/1.7.x/client-rest/examples/account/delete-session.md new file mode 100644 index 00000000000..9454a849139 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/delete-session.md @@ -0,0 +1,8 @@ +DELETE /v1/account/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/delete-sessions.md b/docs/examples/1.7.x/client-rest/examples/account/delete-sessions.md new file mode 100644 index 00000000000..97931c12e52 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/delete-sessions.md @@ -0,0 +1,8 @@ +DELETE /v1/account/sessions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-rest/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..81edee5234c --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,6 @@ +GET /v1/account/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.7.x/client-rest/examples/account/get-prefs.md new file mode 100644 index 00000000000..13a0b74d8fb --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/get-prefs.md @@ -0,0 +1,6 @@ +GET /v1/account/prefs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/get-session.md b/docs/examples/1.7.x/client-rest/examples/account/get-session.md new file mode 100644 index 00000000000..9417755b049 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/get-session.md @@ -0,0 +1,6 @@ +GET /v1/account/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/get.md b/docs/examples/1.7.x/client-rest/examples/account/get.md new file mode 100644 index 00000000000..023a6d116fb --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/get.md @@ -0,0 +1,6 @@ +GET /v1/account HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/list-identities.md b/docs/examples/1.7.x/client-rest/examples/account/list-identities.md new file mode 100644 index 00000000000..65edceb8d6c --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/list-identities.md @@ -0,0 +1,6 @@ +GET /v1/account/identities HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/list-logs.md b/docs/examples/1.7.x/client-rest/examples/account/list-logs.md new file mode 100644 index 00000000000..71e2e138efa --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/list-logs.md @@ -0,0 +1,6 @@ +GET /v1/account/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/client-rest/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..217ec6cb304 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/list-mfa-factors.md @@ -0,0 +1,6 @@ +GET /v1/account/mfa/factors HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.7.x/client-rest/examples/account/list-sessions.md new file mode 100644 index 00000000000..7bff23f25b7 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/list-sessions.md @@ -0,0 +1,6 @@ +GET /v1/account/sessions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-email.md b/docs/examples/1.7.x/client-rest/examples/account/update-email.md new file mode 100644 index 00000000000..fc3baaf4a43 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-email.md @@ -0,0 +1,12 @@ +PATCH /v1/account/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "email": "email@example.com", + "password": "password" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-m-f-a.md b/docs/examples/1.7.x/client-rest/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..803c47a8577 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-m-f-a.md @@ -0,0 +1,11 @@ +PATCH /v1/account/mfa HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "mfa": false +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-rest/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..3238322e0f0 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,10 @@ +PUT /v1/account/sessions/magic-url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-rest/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..9d3e5dceeab --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-mfa-authenticator.md @@ -0,0 +1,11 @@ +PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "otp": "<OTP>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-rest/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..ddc27ae3344 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-mfa-challenge.md @@ -0,0 +1,12 @@ +PUT /v1/account/mfa/challenge HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "challengeId": "<CHALLENGE_ID>", + "otp": "<OTP>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-rest/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..e4ab8abb3b9 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,8 @@ +PATCH /v1/account/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-name.md b/docs/examples/1.7.x/client-rest/examples/account/update-name.md new file mode 100644 index 00000000000..f2f7caa204d --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-name.md @@ -0,0 +1,11 @@ +PATCH /v1/account/name HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-password.md b/docs/examples/1.7.x/client-rest/examples/account/update-password.md new file mode 100644 index 00000000000..4f69b9ab3f2 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-password.md @@ -0,0 +1,12 @@ +PATCH /v1/account/password HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "password": , + "oldPassword": "password" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-phone-session.md b/docs/examples/1.7.x/client-rest/examples/account/update-phone-session.md new file mode 100644 index 00000000000..f1bc27d201c --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-phone-session.md @@ -0,0 +1,10 @@ +PUT /v1/account/sessions/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-phone-verification.md b/docs/examples/1.7.x/client-rest/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..ee6f5a68ff5 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-phone-verification.md @@ -0,0 +1,12 @@ +PUT /v1/account/verification/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-phone.md b/docs/examples/1.7.x/client-rest/examples/account/update-phone.md new file mode 100644 index 00000000000..bbe602a1811 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-phone.md @@ -0,0 +1,12 @@ +PATCH /v1/account/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "phone": "+12065550100", + "password": "password" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.7.x/client-rest/examples/account/update-prefs.md new file mode 100644 index 00000000000..aeabc2b68f7 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-prefs.md @@ -0,0 +1,11 @@ +PATCH /v1/account/prefs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "prefs": {} +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-push-target.md b/docs/examples/1.7.x/client-rest/examples/account/update-push-target.md new file mode 100644 index 00000000000..2e42a2d67f6 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-push-target.md @@ -0,0 +1,10 @@ +PUT /v1/account/targets/{targetId}/push HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: + +{ + "identifier": "<IDENTIFIER>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.7.x/client-rest/examples/account/update-recovery.md new file mode 100644 index 00000000000..054aacc8ede --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-recovery.md @@ -0,0 +1,13 @@ +PUT /v1/account/recovery HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>", + "password": +} diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-session.md b/docs/examples/1.7.x/client-rest/examples/account/update-session.md new file mode 100644 index 00000000000..9b2ba0e4a76 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-session.md @@ -0,0 +1,8 @@ +PATCH /v1/account/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-status.md b/docs/examples/1.7.x/client-rest/examples/account/update-status.md new file mode 100644 index 00000000000..8a3e01db0b0 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-status.md @@ -0,0 +1,8 @@ +PATCH /v1/account/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/account/update-verification.md b/docs/examples/1.7.x/client-rest/examples/account/update-verification.md new file mode 100644 index 00000000000..0c5ed8b55de --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/account/update-verification.md @@ -0,0 +1,12 @@ +PUT /v1/account/verification HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-browser.md new file mode 100644 index 00000000000..e5f6f22ab54 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-browser.md @@ -0,0 +1,6 @@ +GET /v1/avatars/browsers/{code} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..ab513115f83 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-credit-card.md @@ -0,0 +1,6 @@ +GET /v1/avatars/credit-cards/{code} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..837dba633c3 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-favicon.md @@ -0,0 +1,6 @@ +GET /v1/avatars/favicon HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-flag.md new file mode 100644 index 00000000000..d0c92d7c020 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-flag.md @@ -0,0 +1,6 @@ +GET /v1/avatars/flags/{code} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-image.md new file mode 100644 index 00000000000..2f80018f202 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-image.md @@ -0,0 +1,6 @@ +GET /v1/avatars/image HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-initials.md new file mode 100644 index 00000000000..f3879b5d525 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-initials.md @@ -0,0 +1,6 @@ +GET /v1/avatars/initials HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.7.x/client-rest/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..263c54742c8 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/avatars/get-q-r.md @@ -0,0 +1,6 @@ +GET /v1/avatars/qr HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/databases/create-document.md b/docs/examples/1.7.x/client-rest/examples/databases/create-document.md new file mode 100644 index 00000000000..3126197555e --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/create-document.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "documentId": "<DOCUMENT_ID>", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/client-rest/examples/databases/delete-document.md b/docs/examples/1.7.x/client-rest/examples/databases/delete-document.md new file mode 100644 index 00000000000..6b86aba853d --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/delete-document.md @@ -0,0 +1,8 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/databases/get-document.md b/docs/examples/1.7.x/client-rest/examples/databases/get-document.md new file mode 100644 index 00000000000..a32db40087d --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/get-document.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.7.x/client-rest/examples/databases/list-documents.md new file mode 100644 index 00000000000..22ca529e895 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/list-documents.md @@ -0,0 +1,6 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/databases/update-document.md b/docs/examples/1.7.x/client-rest/examples/databases/update-document.md new file mode 100644 index 00000000000..945b957c6e7 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/databases/update-document.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/client-rest/examples/functions/create-execution.md b/docs/examples/1.7.x/client-rest/examples/functions/create-execution.md new file mode 100644 index 00000000000..fec92ddab0a --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/functions/create-execution.md @@ -0,0 +1,16 @@ +POST /v1/functions/{functionId}/executions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "body": "<BODY>", + "async": false, + "path": "<PATH>", + "method": "GET", + "headers": {}, + "scheduledAt": +} diff --git a/docs/examples/1.7.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.7.x/client-rest/examples/functions/get-execution.md new file mode 100644 index 00000000000..7df2f3acbef --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/functions/get-execution.md @@ -0,0 +1,6 @@ +GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.7.x/client-rest/examples/functions/list-executions.md new file mode 100644 index 00000000000..b2ab0e05d16 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/functions/list-executions.md @@ -0,0 +1,6 @@ +GET /v1/functions/{functionId}/executions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/graphql/mutation.md b/docs/examples/1.7.x/client-rest/examples/graphql/mutation.md new file mode 100644 index 00000000000..db3b1c0c78c --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/graphql/mutation.md @@ -0,0 +1,12 @@ +POST /v1/graphql/mutation HTTP/1.1 +Host: cloud.appwrite.io +X-Sdk-Graphql: true +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "query": {} +} diff --git a/docs/examples/1.7.x/client-rest/examples/graphql/query.md b/docs/examples/1.7.x/client-rest/examples/graphql/query.md new file mode 100644 index 00000000000..8fc41efcfe1 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/graphql/query.md @@ -0,0 +1,12 @@ +POST /v1/graphql HTTP/1.1 +Host: cloud.appwrite.io +X-Sdk-Graphql: true +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "query": {} +} diff --git a/docs/examples/1.7.x/client-rest/examples/locale/get.md b/docs/examples/1.7.x/client-rest/examples/locale/get.md new file mode 100644 index 00000000000..0d676445838 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/get.md @@ -0,0 +1,6 @@ +GET /v1/locale HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.7.x/client-rest/examples/locale/list-codes.md new file mode 100644 index 00000000000..f362c5987e4 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-codes.md @@ -0,0 +1,6 @@ +GET /v1/locale/codes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.7.x/client-rest/examples/locale/list-continents.md new file mode 100644 index 00000000000..93db4fb302f --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-continents.md @@ -0,0 +1,6 @@ +GET /v1/locale/continents HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-rest/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..09eba6168fe --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-countries-e-u.md @@ -0,0 +1,6 @@ +GET /v1/locale/countries/eu HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/client-rest/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..94ef0bb9435 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-countries-phones.md @@ -0,0 +1,6 @@ +GET /v1/locale/countries/phones HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.7.x/client-rest/examples/locale/list-countries.md new file mode 100644 index 00000000000..dc8289980a1 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-countries.md @@ -0,0 +1,6 @@ +GET /v1/locale/countries HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.7.x/client-rest/examples/locale/list-currencies.md new file mode 100644 index 00000000000..9a3af20c941 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-currencies.md @@ -0,0 +1,6 @@ +GET /v1/locale/currencies HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.7.x/client-rest/examples/locale/list-languages.md new file mode 100644 index 00000000000..7d90c8b40a1 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/locale/list-languages.md @@ -0,0 +1,6 @@ +GET /v1/locale/languages HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/client-rest/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..94e98c44387 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/messaging/create-subscriber.md @@ -0,0 +1,12 @@ +POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> +X-Appwrite-Session: + +{ + "subscriberId": "<SUBSCRIBER_ID>", + "targetId": "<TARGET_ID>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-rest/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..e5ac0830a39 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/messaging/delete-subscriber.md @@ -0,0 +1,8 @@ +DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> +X-Appwrite-Session: + diff --git a/docs/examples/1.7.x/client-rest/examples/storage/create-file.md b/docs/examples/1.7.x/client-rest/examples/storage/create-file.md new file mode 100644 index 00000000000..f044b577b25 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/create-file.md @@ -0,0 +1,26 @@ +POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="fileId" + +"<FILE_ID>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="file" + +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc +e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="permissions[]" + +["read(\"any\")"] + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/client-rest/examples/storage/delete-file.md b/docs/examples/1.7.x/client-rest/examples/storage/delete-file.md new file mode 100644 index 00000000000..8d074341feb --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/delete-file.md @@ -0,0 +1,8 @@ +DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.7.x/client-rest/examples/storage/get-file-download.md new file mode 100644 index 00000000000..58c9c6d2765 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/get-file-download.md @@ -0,0 +1,6 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.7.x/client-rest/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..ff24de4ec4e --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/get-file-preview.md @@ -0,0 +1,6 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.7.x/client-rest/examples/storage/get-file-view.md new file mode 100644 index 00000000000..9c95a2b48f7 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/get-file-view.md @@ -0,0 +1,6 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/storage/get-file.md b/docs/examples/1.7.x/client-rest/examples/storage/get-file.md new file mode 100644 index 00000000000..ffb3703fe11 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/get-file.md @@ -0,0 +1,6 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/storage/list-files.md b/docs/examples/1.7.x/client-rest/examples/storage/list-files.md new file mode 100644 index 00000000000..d1258b97de6 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/list-files.md @@ -0,0 +1,6 @@ +GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/storage/update-file.md b/docs/examples/1.7.x/client-rest/examples/storage/update-file.md new file mode 100644 index 00000000000..210433622bb --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/storage/update-file.md @@ -0,0 +1,12 @@ +PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "name": "<NAME>", + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/client-rest/examples/teams/create-membership.md b/docs/examples/1.7.x/client-rest/examples/teams/create-membership.md new file mode 100644 index 00000000000..83e4803502a --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/create-membership.md @@ -0,0 +1,16 @@ +POST /v1/teams/{teamId}/memberships HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "email": "email@example.com", + "userId": "<USER_ID>", + "phone": "+12065550100", + "roles": [], + "url": "https://example.com", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/teams/create.md b/docs/examples/1.7.x/client-rest/examples/teams/create.md new file mode 100644 index 00000000000..c80b2bda8e5 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/create.md @@ -0,0 +1,13 @@ +POST /v1/teams HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "teamId": "<TEAM_ID>", + "name": "<NAME>", + "roles": [] +} diff --git a/docs/examples/1.7.x/client-rest/examples/teams/delete-membership.md b/docs/examples/1.7.x/client-rest/examples/teams/delete-membership.md new file mode 100644 index 00000000000..0fc17e11eee --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/delete-membership.md @@ -0,0 +1,8 @@ +DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/teams/delete.md b/docs/examples/1.7.x/client-rest/examples/teams/delete.md new file mode 100644 index 00000000000..ad614b17d1c --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/delete.md @@ -0,0 +1,8 @@ +DELETE /v1/teams/{teamId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.7.x/client-rest/examples/teams/get-membership.md new file mode 100644 index 00000000000..dbe034f34bf --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/get-membership.md @@ -0,0 +1,6 @@ +GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.7.x/client-rest/examples/teams/get-prefs.md new file mode 100644 index 00000000000..ddb863181d3 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/get-prefs.md @@ -0,0 +1,6 @@ +GET /v1/teams/{teamId}/prefs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/teams/get.md b/docs/examples/1.7.x/client-rest/examples/teams/get.md new file mode 100644 index 00000000000..730d23a03b9 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/get.md @@ -0,0 +1,6 @@ +GET /v1/teams/{teamId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.7.x/client-rest/examples/teams/list-memberships.md new file mode 100644 index 00000000000..82a9f82c335 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/list-memberships.md @@ -0,0 +1,6 @@ +GET /v1/teams/{teamId}/memberships HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/teams/list.md b/docs/examples/1.7.x/client-rest/examples/teams/list.md new file mode 100644 index 00000000000..00a419269ae --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/list.md @@ -0,0 +1,6 @@ +GET /v1/teams HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/client-rest/examples/teams/update-membership-status.md b/docs/examples/1.7.x/client-rest/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..9d828118f05 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/update-membership-status.md @@ -0,0 +1,12 @@ +PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/teams/update-membership.md b/docs/examples/1.7.x/client-rest/examples/teams/update-membership.md new file mode 100644 index 00000000000..3768499d16a --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/update-membership.md @@ -0,0 +1,11 @@ +PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "roles": [] +} diff --git a/docs/examples/1.7.x/client-rest/examples/teams/update-name.md b/docs/examples/1.7.x/client-rest/examples/teams/update-name.md new file mode 100644 index 00000000000..ec381348e83 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/update-name.md @@ -0,0 +1,11 @@ +PUT /v1/teams/{teamId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/client-rest/examples/teams/update-prefs.md b/docs/examples/1.7.x/client-rest/examples/teams/update-prefs.md new file mode 100644 index 00000000000..1db63003503 --- /dev/null +++ b/docs/examples/1.7.x/client-rest/examples/teams/update-prefs.md @@ -0,0 +1,11 @@ +PUT /v1/teams/{teamId}/prefs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "prefs": {} +} diff --git a/docs/examples/1.7.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/client-web/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..42279c03123 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createAnonymousSession(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-email-password-session.md b/docs/examples/1.7.x/client-web/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..3438ffbe540 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-email-password-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createEmailPasswordSession( + 'email@example.com', // email + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-email-token.md b/docs/examples/1.7.x/client-web/examples/account/create-email-token.md new file mode 100644 index 00000000000..e7cab7c360a --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-email-token.md @@ -0,0 +1,15 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createEmailToken( + '<USER_ID>', // userId + 'email@example.com', // email + false // phrase (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.7.x/client-web/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..ff17d606610 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-j-w-t.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createJWT(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/client-web/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..ba87bd9a3fe --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMagicURLToken( + '<USER_ID>', // userId + 'email@example.com', // email + 'https://example.com', // url (optional) + false // phrase (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/client-web/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..510481511dd --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaAuthenticator( + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/client-web/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..e9f6f08b480 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-mfa-challenge.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticationFactor } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaChallenge( + AuthenticationFactor.Email // factor +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/client-web/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..2cc744175e4 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.7.x/client-web/examples/account/create-o-auth2session.md new file mode 100644 index 00000000000..caad309ffde --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-o-auth2session.md @@ -0,0 +1,15 @@ +import { Client, Account, OAuthProvider } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +account.createOAuth2Session( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); + diff --git a/docs/examples/1.7.x/client-web/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/client-web/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..5f0aab36d8d --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-o-auth2token.md @@ -0,0 +1,15 @@ +import { Client, Account, OAuthProvider } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +account.createOAuth2Token( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); + diff --git a/docs/examples/1.7.x/client-web/examples/account/create-phone-token.md b/docs/examples/1.7.x/client-web/examples/account/create-phone-token.md new file mode 100644 index 00000000000..481e57d3539 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-phone-token.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createPhoneToken( + '<USER_ID>', // userId + '+12065550100' // phone +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.7.x/client-web/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..00373a3dd4b --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-phone-verification.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createPhoneVerification(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-push-target.md b/docs/examples/1.7.x/client-web/examples/account/create-push-target.md new file mode 100644 index 00000000000..c987e3d2a83 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-push-target.md @@ -0,0 +1,15 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createPushTarget( + '<TARGET_ID>', // targetId + '<IDENTIFIER>', // identifier + '<PROVIDER_ID>' // providerId (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-recovery.md b/docs/examples/1.7.x/client-web/examples/account/create-recovery.md new file mode 100644 index 00000000000..f0a400d86dd --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createRecovery( + 'email@example.com', // email + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-session.md b/docs/examples/1.7.x/client-web/examples/account/create-session.md new file mode 100644 index 00000000000..b6d7ef8bbbe --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create-verification.md b/docs/examples/1.7.x/client-web/examples/account/create-verification.md new file mode 100644 index 00000000000..4a3b3144b68 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create-verification.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.createVerification( + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/create.md b/docs/examples/1.7.x/client-web/examples/account/create.md new file mode 100644 index 00000000000..bf2dbec02ac --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/create.md @@ -0,0 +1,16 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.create( + '<USER_ID>', // userId + 'email@example.com', // email + '', // password + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/delete-identity.md b/docs/examples/1.7.x/client-web/examples/account/delete-identity.md new file mode 100644 index 00000000000..f34baaaf5ea --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/delete-identity.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteIdentity( + '<IDENTITY_ID>' // identityId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/client-web/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..d11351442c5 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteMfaAuthenticator( + AuthenticatorType.Totp // type +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/delete-push-target.md b/docs/examples/1.7.x/client-web/examples/account/delete-push-target.md new file mode 100644 index 00000000000..79bb06ed5d2 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/delete-push-target.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deletePushTarget( + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/delete-session.md b/docs/examples/1.7.x/client-web/examples/account/delete-session.md new file mode 100644 index 00000000000..4d27221d851 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/delete-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteSession( + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.7.x/client-web/examples/account/delete-sessions.md new file mode 100644 index 00000000000..c0fdf139245 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/delete-sessions.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.deleteSessions(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/client-web/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..850488b0c88 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.getMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/get-prefs.md b/docs/examples/1.7.x/client-web/examples/account/get-prefs.md new file mode 100644 index 00000000000..f2838328963 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/get-prefs.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.getPrefs(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/get-session.md b/docs/examples/1.7.x/client-web/examples/account/get-session.md new file mode 100644 index 00000000000..29af11052e2 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/get-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.getSession( + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/get.md b/docs/examples/1.7.x/client-web/examples/account/get.md new file mode 100644 index 00000000000..ea605914cee --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/get.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/list-identities.md b/docs/examples/1.7.x/client-web/examples/account/list-identities.md new file mode 100644 index 00000000000..54c569b8362 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/list-identities.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listIdentities( + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/list-logs.md b/docs/examples/1.7.x/client-web/examples/account/list-logs.md new file mode 100644 index 00000000000..17c214f9496 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/list-logs.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listLogs( + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/client-web/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..c9fa7da1bcb --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/list-mfa-factors.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listMfaFactors(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/list-sessions.md b/docs/examples/1.7.x/client-web/examples/account/list-sessions.md new file mode 100644 index 00000000000..453e6065177 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/list-sessions.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.listSessions(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-email.md b/docs/examples/1.7.x/client-web/examples/account/update-email.md new file mode 100644 index 00000000000..9e02fc94169 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-email.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateEmail( + 'email@example.com', // email + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-m-f-a.md b/docs/examples/1.7.x/client-web/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..58b6a061b10 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-m-f-a.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMFA( + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/client-web/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..47501c528f2 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMagicURLSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/client-web/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..74eedd8dc74 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-mfa-authenticator.md @@ -0,0 +1,14 @@ +import { Client, Account, AuthenticatorType } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaAuthenticator( + AuthenticatorType.Totp, // type + '<OTP>' // otp +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/client-web/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..01a09dd354b --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-mfa-challenge.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaChallenge( + '<CHALLENGE_ID>', // challengeId + '<OTP>' // otp +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/client-web/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..24ff10b1e47 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateMfaRecoveryCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-name.md b/docs/examples/1.7.x/client-web/examples/account/update-name.md new file mode 100644 index 00000000000..d6a6946795d --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-name.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateName( + '<NAME>' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-password.md b/docs/examples/1.7.x/client-web/examples/account/update-password.md new file mode 100644 index 00000000000..575779e35c6 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-password.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePassword( + '', // password + 'password' // oldPassword (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.7.x/client-web/examples/account/update-phone-session.md new file mode 100644 index 00000000000..092205ec6a9 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-phone-session.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhoneSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.7.x/client-web/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..1b85178e76a --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-phone-verification.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhoneVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-phone.md b/docs/examples/1.7.x/client-web/examples/account/update-phone.md new file mode 100644 index 00000000000..0c5ff216d80 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-phone.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePhone( + '+12065550100', // phone + 'password' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-prefs.md b/docs/examples/1.7.x/client-web/examples/account/update-prefs.md new file mode 100644 index 00000000000..b9e88eac28f --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-prefs.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePrefs( + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-push-target.md b/docs/examples/1.7.x/client-web/examples/account/update-push-target.md new file mode 100644 index 00000000000..3475a22ba95 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-push-target.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updatePushTarget( + '<TARGET_ID>', // targetId + '<IDENTIFIER>' // identifier +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-recovery.md b/docs/examples/1.7.x/client-web/examples/account/update-recovery.md new file mode 100644 index 00000000000..328e50ea4fe --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-recovery.md @@ -0,0 +1,15 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateRecovery( + '<USER_ID>', // userId + '<SECRET>', // secret + '' // password +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-session.md b/docs/examples/1.7.x/client-web/examples/account/update-session.md new file mode 100644 index 00000000000..4ccc8295d95 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-session.md @@ -0,0 +1,13 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateSession( + '<SESSION_ID>' // sessionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-status.md b/docs/examples/1.7.x/client-web/examples/account/update-status.md new file mode 100644 index 00000000000..932f167033a --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-status.md @@ -0,0 +1,11 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateStatus(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/account/update-verification.md b/docs/examples/1.7.x/client-web/examples/account/update-verification.md new file mode 100644 index 00000000000..6d15aeec2e6 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/account/update-verification.md @@ -0,0 +1,14 @@ +import { Client, Account } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const result = await account.updateVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.7.x/client-web/examples/avatars/get-browser.md new file mode 100644 index 00000000000..08512d1dc71 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-browser.md @@ -0,0 +1,16 @@ +import { Client, Avatars, Browser } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getBrowser( + Browser.AvantBrowser, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/client-web/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..fb631a4e3e3 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-credit-card.md @@ -0,0 +1,16 @@ +import { Client, Avatars, CreditCard } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getCreditCard( + CreditCard.AmericanExpress, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.7.x/client-web/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..85317f13832 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-favicon.md @@ -0,0 +1,13 @@ +import { Client, Avatars } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getFavicon( + 'https://example.com' // url +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.7.x/client-web/examples/avatars/get-flag.md new file mode 100644 index 00000000000..bfbc6c28656 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-flag.md @@ -0,0 +1,16 @@ +import { Client, Avatars, Flag } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getFlag( + Flag.Afghanistan, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-image.md b/docs/examples/1.7.x/client-web/examples/avatars/get-image.md new file mode 100644 index 00000000000..36f88ecb529 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +import { Client, Avatars } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getImage( + 'https://example.com', // url + 0, // width (optional) + 0 // height (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.7.x/client-web/examples/avatars/get-initials.md new file mode 100644 index 00000000000..321c448807f --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-initials.md @@ -0,0 +1,16 @@ +import { Client, Avatars } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getInitials( + '<NAME>', // name (optional) + 0, // width (optional) + 0, // height (optional) + '' // background (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.7.x/client-web/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..cbbabbc2c89 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/avatars/get-q-r.md @@ -0,0 +1,16 @@ +import { Client, Avatars } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const avatars = new Avatars(client); + +const result = avatars.getQR( + '<TEXT>', // text + 1, // size (optional) + 0, // margin (optional) + false // download (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/databases/create-document.md b/docs/examples/1.7.x/client-web/examples/databases/create-document.md new file mode 100644 index 00000000000..401a67488c4 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/create-document.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('') // + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const databases = new Databases(client); + +const result = await databases.createDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/databases/delete-document.md b/docs/examples/1.7.x/client-web/examples/databases/delete-document.md new file mode 100644 index 00000000000..c9a1e9f759d --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/delete-document.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.deleteDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>' // documentId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/databases/get-document.md b/docs/examples/1.7.x/client-web/examples/databases/get-document.md new file mode 100644 index 00000000000..a2836fc6ef6 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/get-document.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.getDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/databases/list-documents.md b/docs/examples/1.7.x/client-web/examples/databases/list-documents.md new file mode 100644 index 00000000000..d00ac563906 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/list-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.listDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/databases/update-document.md b/docs/examples/1.7.x/client-web/examples/databases/update-document.md new file mode 100644 index 00000000000..c0e06fce406 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/databases/update-document.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/functions/create-execution.md b/docs/examples/1.7.x/client-web/examples/functions/create-execution.md new file mode 100644 index 00000000000..8f07523b2b0 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/functions/create-execution.md @@ -0,0 +1,19 @@ +import { Client, Functions, ExecutionMethod } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.createExecution( + '<FUNCTION_ID>', // functionId + '<BODY>', // body (optional) + false, // async (optional) + '<PATH>', // path (optional) + ExecutionMethod.GET, // method (optional) + {}, // headers (optional) + '' // scheduledAt (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/functions/get-execution.md b/docs/examples/1.7.x/client-web/examples/functions/get-execution.md new file mode 100644 index 00000000000..9b88f81f6ce --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.getExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/functions/list-executions.md b/docs/examples/1.7.x/client-web/examples/functions/list-executions.md new file mode 100644 index 00000000000..9ec506346c6 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const functions = new Functions(client); + +const result = await functions.listExecutions( + '<FUNCTION_ID>', // functionId + [] // queries (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/graphql/mutation.md b/docs/examples/1.7.x/client-web/examples/graphql/mutation.md new file mode 100644 index 00000000000..0e7466ac13b --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/graphql/mutation.md @@ -0,0 +1,13 @@ +import { Client, Graphql } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const graphql = new Graphql(client); + +const result = await graphql.mutation( + {} // query +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/graphql/query.md b/docs/examples/1.7.x/client-web/examples/graphql/query.md new file mode 100644 index 00000000000..f9cd9b740f7 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/graphql/query.md @@ -0,0 +1,13 @@ +import { Client, Graphql } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const graphql = new Graphql(client); + +const result = await graphql.query( + {} // query +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/get.md b/docs/examples/1.7.x/client-web/examples/locale/get.md new file mode 100644 index 00000000000..bdd74722f49 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/get.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.get(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-codes.md b/docs/examples/1.7.x/client-web/examples/locale/list-codes.md new file mode 100644 index 00000000000..547bb056c03 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-codes.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCodes(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-continents.md b/docs/examples/1.7.x/client-web/examples/locale/list-continents.md new file mode 100644 index 00000000000..217ffc116ca --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-continents.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listContinents(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/client-web/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..515a3040ab0 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-countries-e-u.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountriesEU(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/client-web/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..72a6a31d08c --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-countries-phones.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountriesPhones(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-countries.md b/docs/examples/1.7.x/client-web/examples/locale/list-countries.md new file mode 100644 index 00000000000..a127521f36f --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-countries.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCountries(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.7.x/client-web/examples/locale/list-currencies.md new file mode 100644 index 00000000000..e6ff0e1fcef --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-currencies.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listCurrencies(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/locale/list-languages.md b/docs/examples/1.7.x/client-web/examples/locale/list-languages.md new file mode 100644 index 00000000000..03b4e7d2c12 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/locale/list-languages.md @@ -0,0 +1,11 @@ +import { Client, Locale } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const locale = new Locale(client); + +const result = await locale.listLanguages(); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/client-web/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..254870985d3 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/messaging/create-subscriber.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.createSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>', // subscriberId + '<TARGET_ID>' // targetId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/client-web/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..3d5d0a4b426 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/messaging/delete-subscriber.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const messaging = new Messaging(client); + +const result = await messaging.deleteSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/create-file.md b/docs/examples/1.7.x/client-web/examples/storage/create-file.md new file mode 100644 index 00000000000..20a42206a20 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/create-file.md @@ -0,0 +1,16 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.createFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + document.getElementById('uploader').files[0], // file + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/delete-file.md b/docs/examples/1.7.x/client-web/examples/storage/delete-file.md new file mode 100644 index 00000000000..373cdc03fcb --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.deleteFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.7.x/client-web/examples/storage/get-file-download.md new file mode 100644 index 00000000000..3ebb8f8f71c --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFileDownload( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.7.x/client-web/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..ffc64c9f3a1 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/get-file-preview.md @@ -0,0 +1,26 @@ +import { Client, Storage, ImageGravity, ImageFormat } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFilePreview( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + 0, // width (optional) + 0, // height (optional) + ImageGravity.Center, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + '', // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + '', // background (optional) + ImageFormat.Jpg, // output (optional) + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.7.x/client-web/examples/storage/get-file-view.md new file mode 100644 index 00000000000..add5a6fba58 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = storage.getFileView( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/get-file.md b/docs/examples/1.7.x/client-web/examples/storage/get-file.md new file mode 100644 index 00000000000..10bd9fb775b --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/get-file.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.getFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/list-files.md b/docs/examples/1.7.x/client-web/examples/storage/list-files.md new file mode 100644 index 00000000000..f2c3ccb2b8f --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/list-files.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.listFiles( + '<BUCKET_ID>', // bucketId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/storage/update-file.md b/docs/examples/1.7.x/client-web/examples/storage/update-file.md new file mode 100644 index 00000000000..1432b850993 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/storage/update-file.md @@ -0,0 +1,16 @@ +import { Client, Storage } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const storage = new Storage(client); + +const result = await storage.updateFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<NAME>', // name (optional) + ["read("any")"] // permissions (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/create-membership.md b/docs/examples/1.7.x/client-web/examples/teams/create-membership.md new file mode 100644 index 00000000000..8802e25af9c --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/create-membership.md @@ -0,0 +1,19 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.createMembership( + '<TEAM_ID>', // teamId + [], // roles + 'email@example.com', // email (optional) + '<USER_ID>', // userId (optional) + '+12065550100', // phone (optional) + 'https://example.com', // url (optional) + '<NAME>' // name (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/create.md b/docs/examples/1.7.x/client-web/examples/teams/create.md new file mode 100644 index 00000000000..b23f2201ac7 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/create.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.create( + '<TEAM_ID>', // teamId + '<NAME>', // name + [] // roles (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.7.x/client-web/examples/teams/delete-membership.md new file mode 100644 index 00000000000..2f360c3547d --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.deleteMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/delete.md b/docs/examples/1.7.x/client-web/examples/teams/delete.md new file mode 100644 index 00000000000..5fd7f5d8580 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/delete.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.delete( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/get-membership.md b/docs/examples/1.7.x/client-web/examples/teams/get-membership.md new file mode 100644 index 00000000000..cd253fd6ef0 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/get-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.getMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.7.x/client-web/examples/teams/get-prefs.md new file mode 100644 index 00000000000..a7f346f11fe --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/get-prefs.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.getPrefs( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/get.md b/docs/examples/1.7.x/client-web/examples/teams/get.md new file mode 100644 index 00000000000..539bdcf0514 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/get.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.get( + '<TEAM_ID>' // teamId +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.7.x/client-web/examples/teams/list-memberships.md new file mode 100644 index 00000000000..e8cc39b5d8c --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/list-memberships.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.listMemberships( + '<TEAM_ID>', // teamId + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/list.md b/docs/examples/1.7.x/client-web/examples/teams/list.md new file mode 100644 index 00000000000..4ca13ce8dd9 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/list.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.7.x/client-web/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..89cc13cac28 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/update-membership-status.md @@ -0,0 +1,16 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateMembershipStatus( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + '<USER_ID>', // userId + '<SECRET>' // secret +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/update-membership.md b/docs/examples/1.7.x/client-web/examples/teams/update-membership.md new file mode 100644 index 00000000000..fd6fffffcb0 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/update-membership.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + [] // roles +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/update-name.md b/docs/examples/1.7.x/client-web/examples/teams/update-name.md new file mode 100644 index 00000000000..d91939ff73c --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/update-name.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updateName( + '<TEAM_ID>', // teamId + '<NAME>' // name +); + +console.log(result); diff --git a/docs/examples/1.7.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.7.x/client-web/examples/teams/update-prefs.md new file mode 100644 index 00000000000..d7d4c367593 --- /dev/null +++ b/docs/examples/1.7.x/client-web/examples/teams/update-prefs.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "appwrite"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const teams = new Teams(client); + +const result = await teams.updatePrefs( + '<TEAM_ID>', // teamId + {} // prefs +); + +console.log(result); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-dart/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..7b1cc083048 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-anonymous-session.md @@ -0,0 +1,9 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.createAnonymousSession(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-dart/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..2305367d942 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-email-password-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.createEmailPasswordSession( + email: 'email@example.com', + password: 'password', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-email-token.md b/docs/examples/1.7.x/server-dart/examples/account/create-email-token.md new file mode 100644 index 00000000000..e9696f92bf6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-email-token.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createEmailToken( + userId: '<USER_ID>', + email: 'email@example.com', + phrase: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-dart/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..4288c71ce15 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-j-w-t.md @@ -0,0 +1,9 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Jwt result = await account.createJWT(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-dart/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..791b9cbd4f7 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createMagicURLToken( + userId: '<USER_ID>', + email: 'email@example.com', + url: 'https://example.com', // (optional) + phrase: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-dart/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..87797fa645a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-mfa-authenticator.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +MfaType result = await account.createMfaAuthenticator( + type: AuthenticatorType.totp, +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-dart/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..62f3eaf2c26 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-mfa-challenge.md @@ -0,0 +1,11 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +MfaChallenge result = await account.createMfaChallenge( + factor: AuthenticationFactor.email, +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dart/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..5ebe0e9e921 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +MfaRecoveryCodes result = await account.createMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-dart/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..4a26a9fd7fa --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-o-auth2token.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +await account.createOAuth2Token( + provider: OAuthProvider.amazon, + success: 'https://example.com', // (optional) + failure: 'https://example.com', // (optional) + scopes: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-dart/examples/account/create-phone-token.md new file mode 100644 index 00000000000..7011b3cf48c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-phone-token.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Token result = await account.createPhoneToken( + userId: '<USER_ID>', + phone: '+12065550100', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-dart/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..8616834b27d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-phone-verification.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Token result = await account.createPhoneVerification(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.7.x/server-dart/examples/account/create-recovery.md new file mode 100644 index 00000000000..f56d4227a9f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Token result = await account.createRecovery( + email: 'email@example.com', + url: 'https://example.com', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-session.md b/docs/examples/1.7.x/server-dart/examples/account/create-session.md new file mode 100644 index 00000000000..1e56fc71bb9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.createSession( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create-verification.md b/docs/examples/1.7.x/server-dart/examples/account/create-verification.md new file mode 100644 index 00000000000..150833cd6b2 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create-verification.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Token result = await account.createVerification( + url: 'https://example.com', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/create.md b/docs/examples/1.7.x/server-dart/examples/account/create.md new file mode 100644 index 00000000000..f0384f46f4f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/create.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +User result = await account.create( + userId: '<USER_ID>', + email: 'email@example.com', + password: '', + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.7.x/server-dart/examples/account/delete-identity.md new file mode 100644 index 00000000000..124e6adad44 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/delete-identity.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +await account.deleteIdentity( + identityId: '<IDENTITY_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-dart/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..efd5263e22d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +await account.deleteMfaAuthenticator( + type: AuthenticatorType.totp, +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/delete-session.md b/docs/examples/1.7.x/server-dart/examples/account/delete-session.md new file mode 100644 index 00000000000..d02808bbe9f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/delete-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +await account.deleteSession( + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-dart/examples/account/delete-sessions.md new file mode 100644 index 00000000000..9406ca39d0d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/delete-sessions.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +await account.deleteSessions(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dart/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..b073d402386 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +MfaRecoveryCodes result = await account.getMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.7.x/server-dart/examples/account/get-prefs.md new file mode 100644 index 00000000000..94e10db1b6a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/get-prefs.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Preferences result = await account.getPrefs(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/get-session.md b/docs/examples/1.7.x/server-dart/examples/account/get-session.md new file mode 100644 index 00000000000..3a81954bd92 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/get-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Session result = await account.getSession( + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/get.md b/docs/examples/1.7.x/server-dart/examples/account/get.md new file mode 100644 index 00000000000..76a139a46af --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/get.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.get(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/list-identities.md b/docs/examples/1.7.x/server-dart/examples/account/list-identities.md new file mode 100644 index 00000000000..a0b67851c2e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/list-identities.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +IdentityList result = await account.listIdentities( + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/list-logs.md b/docs/examples/1.7.x/server-dart/examples/account/list-logs.md new file mode 100644 index 00000000000..d3c50af1d5a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/list-logs.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +LogList result = await account.listLogs( + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-dart/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..32b269fbd7e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/list-mfa-factors.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +MfaFactors result = await account.listMfaFactors(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.7.x/server-dart/examples/account/list-sessions.md new file mode 100644 index 00000000000..73cf462af68 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/list-sessions.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +SessionList result = await account.listSessions(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-email.md b/docs/examples/1.7.x/server-dart/examples/account/update-email.md new file mode 100644 index 00000000000..cf6a56edcc8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-email.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updateEmail( + email: 'email@example.com', + password: 'password', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-dart/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..947d862e463 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-m-f-a.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updateMFA( + mfa: false, +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-dart/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..475e464ff0a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.updateMagicURLSession( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-dart/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..5a0f98f578e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-mfa-authenticator.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updateMfaAuthenticator( + type: AuthenticatorType.totp, + otp: '<OTP>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-dart/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..749c4cd6a01 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-mfa-challenge.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Session result = await account.updateMfaChallenge( + challengeId: '<CHALLENGE_ID>', + otp: '<OTP>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dart/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..7e274f0ead7 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +MfaRecoveryCodes result = await account.updateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-name.md b/docs/examples/1.7.x/server-dart/examples/account/update-name.md new file mode 100644 index 00000000000..82cc3358a10 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-name.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updateName( + name: '<NAME>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-password.md b/docs/examples/1.7.x/server-dart/examples/account/update-password.md new file mode 100644 index 00000000000..27d360ba519 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-password.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updatePassword( + password: '', + oldPassword: 'password', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-dart/examples/account/update-phone-session.md new file mode 100644 index 00000000000..046dd0a7016 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-phone-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +Account account = Account(client); + +Session result = await account.updatePhoneSession( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-dart/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..f4b0c6fe6a1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-phone-verification.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Token result = await account.updatePhoneVerification( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-phone.md b/docs/examples/1.7.x/server-dart/examples/account/update-phone.md new file mode 100644 index 00000000000..d861561b60a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-phone.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updatePhone( + phone: '+12065550100', + password: 'password', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.7.x/server-dart/examples/account/update-prefs.md new file mode 100644 index 00000000000..f4533cbea63 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-prefs.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updatePrefs( + prefs: {}, +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.7.x/server-dart/examples/account/update-recovery.md new file mode 100644 index 00000000000..162ad58ac90 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Token result = await account.updateRecovery( + userId: '<USER_ID>', + secret: '<SECRET>', + password: '', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-session.md b/docs/examples/1.7.x/server-dart/examples/account/update-session.md new file mode 100644 index 00000000000..a317a0840a1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Session result = await account.updateSession( + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-status.md b/docs/examples/1.7.x/server-dart/examples/account/update-status.md new file mode 100644 index 00000000000..2ee15d603cc --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-status.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +User result = await account.updateStatus(); diff --git a/docs/examples/1.7.x/server-dart/examples/account/update-verification.md b/docs/examples/1.7.x/server-dart/examples/account/update-verification.md new file mode 100644 index 00000000000..61904fd3f0d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/account/update-verification.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Account account = Account(client); + +Token result = await account.updateVerification( + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-browser.md new file mode 100644 index 00000000000..8d5287511d2 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-browser.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getBrowser( + code: Browser.avantBrowser, + width: 0, // (optional) + height: 0, // (optional) + quality: -1, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..88fe35ebd90 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-credit-card.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getCreditCard( + code: CreditCard.americanExpress, + width: 0, // (optional) + height: 0, // (optional) + quality: -1, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..d4cd8eae837 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-favicon.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getFavicon( + url: 'https://example.com', +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-flag.md new file mode 100644 index 00000000000..56046681bc4 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-flag.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getFlag( + code: Flag.afghanistan, + width: 0, // (optional) + height: 0, // (optional) + quality: -1, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-image.md new file mode 100644 index 00000000000..b6db1858c53 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-image.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getImage( + url: 'https://example.com', + width: 0, // (optional) + height: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-initials.md new file mode 100644 index 00000000000..7dc0989b4da --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-initials.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getInitials( + name: '<NAME>', // (optional) + width: 0, // (optional) + height: 0, // (optional) + background: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-dart/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..f64fe8a4ffb --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/avatars/get-q-r.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Avatars avatars = Avatars(client); + +UInt8List result = await avatars.getQR( + text: '<TEXT>', + size: 1, // (optional) + margin: 0, // (optional) + download: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..13ca992889d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-boolean-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeBoolean result = await databases.createBooleanAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: false, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.7.x/server-dart/examples/databases/create-collection.md new file mode 100644 index 00000000000..61401761ecc --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-collection.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Collection result = await databases.createCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + name: '<NAME>', + permissions: ["read("any")"], // (optional) + documentSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..25910114237 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-datetime-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeDatetime result = await databases.createDatetimeAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-document.md b/docs/examples/1.7.x/server-dart/examples/databases/create-document.md new file mode 100644 index 00000000000..1c9af5112c7 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-document.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('<YOUR_API_KEY>') // Your secret API key + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +Databases databases = Databases(client); + +Document result = await databases.createDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + data: {}, + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-documents.md b/docs/examples/1.7.x/server-dart/examples/databases/create-documents.md new file mode 100644 index 00000000000..7b4409a0b1f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-documents.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.createDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [], +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..216d020260a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-email-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeEmail result = await databases.createEmailAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: 'email@example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..d45ca4476cd --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-enum-attribute.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeEnum result = await databases.createEnumAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + elements: [], + xrequired: false, + xdefault: '<DEFAULT>', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..75d47f44adc --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-float-attribute.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeFloat result = await databases.createFloatAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-index.md b/docs/examples/1.7.x/server-dart/examples/databases/create-index.md new file mode 100644 index 00000000000..c3fa1abd605 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-index.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Index result = await databases.createIndex( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + type: IndexType.key, + attributes: [], + orders: [], // (optional) + lengths: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..6511696f922 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-integer-attribute.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeInteger result = await databases.createIntegerAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + min: 0, // (optional) + max: 0, // (optional) + xdefault: 0, // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..10ddb47bdf3 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-ip-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeIp result = await databases.createIpAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: '', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..dcdf34fcb84 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-relationship-attribute.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeRelationship result = await databases.createRelationshipAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + relatedCollectionId: '<RELATED_COLLECTION_ID>', + type: RelationshipType.oneToOne, + twoWay: false, // (optional) + key: '', // (optional) + twoWayKey: '', // (optional) + onDelete: RelationMutate.cascade, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..8785ea76474 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-string-attribute.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeString result = await databases.createStringAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + size: 1, + xrequired: false, + xdefault: '<DEFAULT>', // (optional) + array: false, // (optional) + encrypt: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..9088f8dfeb6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create-url-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeUrl result = await databases.createUrlAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: 'https://example.com', // (optional) + array: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/create.md b/docs/examples/1.7.x/server-dart/examples/databases/create.md new file mode 100644 index 00000000000..a2e978bd30f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/create.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Database result = await databases.create( + databaseId: '<DATABASE_ID>', + name: '<NAME>', + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..f9cbbd42ef9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/delete-attribute.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.deleteAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-dart/examples/databases/delete-collection.md new file mode 100644 index 00000000000..919e17891b6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/delete-collection.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.deleteCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.7.x/server-dart/examples/databases/delete-document.md new file mode 100644 index 00000000000..dd04d899594 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/delete-document.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Databases databases = Databases(client); + +await databases.deleteDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-dart/examples/databases/delete-documents.md new file mode 100644 index 00000000000..66bd5584c7d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.deleteDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.7.x/server-dart/examples/databases/delete-index.md new file mode 100644 index 00000000000..f16c84b9a7c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/delete-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.deleteIndex( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/delete.md b/docs/examples/1.7.x/server-dart/examples/databases/delete.md new file mode 100644 index 00000000000..5e9042e542d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.delete( + databaseId: '<DATABASE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/get-attribute.md new file mode 100644 index 00000000000..8329f8db052 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/get-attribute.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + + result = await databases.getAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.7.x/server-dart/examples/databases/get-collection.md new file mode 100644 index 00000000000..b6784201288 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/get-collection.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Collection result = await databases.getCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/get-document.md b/docs/examples/1.7.x/server-dart/examples/databases/get-document.md new file mode 100644 index 00000000000..45745186e62 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/get-document.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Databases databases = Databases(client); + +Document result = await databases.getDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/get-index.md b/docs/examples/1.7.x/server-dart/examples/databases/get-index.md new file mode 100644 index 00000000000..848257960af --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/get-index.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Index result = await databases.getIndex( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/get.md b/docs/examples/1.7.x/server-dart/examples/databases/get.md new file mode 100644 index 00000000000..28d3d2bd14a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/get.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Database result = await databases.get( + databaseId: '<DATABASE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-dart/examples/databases/list-attributes.md new file mode 100644 index 00000000000..64aaf331b84 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/list-attributes.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeList result = await databases.listAttributes( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.7.x/server-dart/examples/databases/list-collections.md new file mode 100644 index 00000000000..69c2a0fe61c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/list-collections.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +CollectionList result = await databases.listCollections( + databaseId: '<DATABASE_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.7.x/server-dart/examples/databases/list-documents.md new file mode 100644 index 00000000000..cdecc59e33d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/list-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Databases databases = Databases(client); + +DocumentList result = await databases.listDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-dart/examples/databases/list-indexes.md new file mode 100644 index 00000000000..38b95d5d5bb --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/list-indexes.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +IndexList result = await databases.listIndexes( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/list.md b/docs/examples/1.7.x/server-dart/examples/databases/list.md new file mode 100644 index 00000000000..2de4e97cf28 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/list.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DatabaseList result = await databases.list( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..46e3ef4ce31 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-boolean-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeBoolean result = await databases.updateBooleanAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: false, + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.7.x/server-dart/examples/databases/update-collection.md new file mode 100644 index 00000000000..c3c565b231e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-collection.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Collection result = await databases.updateCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + name: '<NAME>', + permissions: ["read("any")"], // (optional) + documentSecurity: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..ddc8f26a707 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-datetime-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeDatetime result = await databases.updateDatetimeAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-document.md b/docs/examples/1.7.x/server-dart/examples/databases/update-document.md new file mode 100644 index 00000000000..47a1867c109 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-document.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Databases databases = Databases(client); + +Document result = await databases.updateDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + data: {}, // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-documents.md b/docs/examples/1.7.x/server-dart/examples/databases/update-documents.md new file mode 100644 index 00000000000..70b7cbf86d1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.updateDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + data: {}, // (optional) + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..ee0e09719ee --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-email-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeEmail result = await databases.updateEmailAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: 'email@example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..61ef4d0835c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-enum-attribute.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeEnum result = await databases.updateEnumAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + elements: [], + xrequired: false, + xdefault: '<DEFAULT>', + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..36f360eebc5 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-float-attribute.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeFloat result = await databases.updateFloatAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..9089cc8bf65 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-integer-attribute.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeInteger result = await databases.updateIntegerAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..e698a59e3a4 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-ip-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeIp result = await databases.updateIpAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: '', + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..28aac9643f8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-relationship-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeRelationship result = await databases.updateRelationshipAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..7674f51c5b9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-string-attribute.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeString result = await databases.updateStringAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: '<DEFAULT>', + size: 1, // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-dart/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..3aaa01b441c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update-url-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +AttributeUrl result = await databases.updateUrlAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + xrequired: false, + xdefault: 'https://example.com', + newKey: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/update.md b/docs/examples/1.7.x/server-dart/examples/databases/update.md new file mode 100644 index 00000000000..a46f116389a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/update.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +Database result = await databases.update( + databaseId: '<DATABASE_ID>', + name: '<NAME>', + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-dart/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..46611b3b1ec --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.upsertDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/create-deployment.md new file mode 100644 index 00000000000..f459b3dd89b --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create-deployment.md @@ -0,0 +1,17 @@ +import 'dart:io'; +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Deployment result = await functions.createDeployment( + functionId: '<FUNCTION_ID>', + code: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), + activate: false, + entrypoint: '<ENTRYPOINT>', // (optional) + commands: '<COMMANDS>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..34ff5b2067a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Deployment result = await functions.createDuplicateDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', + buildId: '<BUILD_ID>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.7.x/server-dart/examples/functions/create-execution.md new file mode 100644 index 00000000000..2ae64bce551 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create-execution.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Functions functions = Functions(client); + +Execution result = await functions.createExecution( + functionId: '<FUNCTION_ID>', + body: '<BODY>', // (optional) + xasync: false, // (optional) + path: '<PATH>', // (optional) + method: ExecutionMethod.gET, // (optional) + headers: {}, // (optional) + scheduledAt: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..cc293b0c3ba --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create-template-deployment.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Deployment result = await functions.createTemplateDeployment( + functionId: '<FUNCTION_ID>', + repository: '<REPOSITORY>', + owner: '<OWNER>', + rootDirectory: '<ROOT_DIRECTORY>', + version: '<VERSION>', + activate: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.7.x/server-dart/examples/functions/create-variable.md new file mode 100644 index 00000000000..03e36d8275c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create-variable.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Variable result = await functions.createVariable( + functionId: '<FUNCTION_ID>', + key: '<KEY>', + value: '<VALUE>', + secret: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..ed315a54e37 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create-vcs-deployment.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Deployment result = await functions.createVcsDeployment( + functionId: '<FUNCTION_ID>', + type: VCSDeploymentType.branch, + reference: '<REFERENCE>', + activate: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/create.md b/docs/examples/1.7.x/server-dart/examples/functions/create.md new file mode 100644 index 00000000000..f3f26830004 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/create.md @@ -0,0 +1,29 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Func result = await functions.create( + functionId: '<FUNCTION_ID>', + name: '<NAME>', + runtime: .node145, + execute: ["any"], // (optional) + events: [], // (optional) + schedule: '', // (optional) + timeout: 1, // (optional) + enabled: false, // (optional) + logging: false, // (optional) + entrypoint: '<ENTRYPOINT>', // (optional) + commands: '<COMMANDS>', // (optional) + scopes: [], // (optional) + installationId: '<INSTALLATION_ID>', // (optional) + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) + providerBranch: '<PROVIDER_BRANCH>', // (optional) + providerSilentMode: false, // (optional) + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // (optional) + specification: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..8e4167f7565 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/delete-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +await functions.deleteDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-dart/examples/functions/delete-execution.md new file mode 100644 index 00000000000..d077bc93287 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +await functions.deleteExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-dart/examples/functions/delete-variable.md new file mode 100644 index 00000000000..d4b28328309 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/delete-variable.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +await functions.deleteVariable( + functionId: '<FUNCTION_ID>', + variableId: '<VARIABLE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/delete.md b/docs/examples/1.7.x/server-dart/examples/functions/delete.md new file mode 100644 index 00000000000..38d360b7641 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +await functions.delete( + functionId: '<FUNCTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-dart/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..e7bbacf3444 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/get-deployment-download.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +UInt8List result = await functions.getDeploymentDownload( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', + type: DeploymentDownloadType.source, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/get-deployment.md new file mode 100644 index 00000000000..805ca0b6347 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/get-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Deployment result = await functions.getDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.7.x/server-dart/examples/functions/get-execution.md new file mode 100644 index 00000000000..e0026e0c4b9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/get-execution.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Functions functions = Functions(client); + +Execution result = await functions.getExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.7.x/server-dart/examples/functions/get-variable.md new file mode 100644 index 00000000000..fe61cee587c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/get-variable.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Variable result = await functions.getVariable( + functionId: '<FUNCTION_ID>', + variableId: '<VARIABLE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/get.md b/docs/examples/1.7.x/server-dart/examples/functions/get.md new file mode 100644 index 00000000000..c92a4f746c6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/get.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Func result = await functions.get( + functionId: '<FUNCTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-dart/examples/functions/list-deployments.md new file mode 100644 index 00000000000..d07d2b32f31 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/list-deployments.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +DeploymentList result = await functions.listDeployments( + functionId: '<FUNCTION_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.7.x/server-dart/examples/functions/list-executions.md new file mode 100644 index 00000000000..1dfd39093d7 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/list-executions.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Functions functions = Functions(client); + +ExecutionList result = await functions.listExecutions( + functionId: '<FUNCTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-dart/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..a99f872b7e3 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/list-runtimes.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +RuntimeList result = await functions.listRuntimes(); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-dart/examples/functions/list-specifications.md new file mode 100644 index 00000000000..bec5d5e6350 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/list-specifications.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +SpecificationList result = await functions.listSpecifications(); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.7.x/server-dart/examples/functions/list-variables.md new file mode 100644 index 00000000000..0fa3b002bfe --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/list-variables.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +VariableList result = await functions.listVariables( + functionId: '<FUNCTION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/list.md b/docs/examples/1.7.x/server-dart/examples/functions/list.md new file mode 100644 index 00000000000..8eaeec0625a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/list.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +FunctionList result = await functions.list( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-dart/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..2b068098af6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/update-deployment-status.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Deployment result = await functions.updateDeploymentStatus( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-dart/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..0a5c09dd96a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/update-function-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Func result = await functions.updateFunctionDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.7.x/server-dart/examples/functions/update-variable.md new file mode 100644 index 00000000000..7330d9f8506 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/update-variable.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Variable result = await functions.updateVariable( + functionId: '<FUNCTION_ID>', + variableId: '<VARIABLE_ID>', + key: '<KEY>', + value: '<VALUE>', // (optional) + secret: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/functions/update.md b/docs/examples/1.7.x/server-dart/examples/functions/update.md new file mode 100644 index 00000000000..ebe3be8cc63 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/functions/update.md @@ -0,0 +1,29 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +Func result = await functions.update( + functionId: '<FUNCTION_ID>', + name: '<NAME>', + runtime: .node145, // (optional) + execute: ["any"], // (optional) + events: [], // (optional) + schedule: '', // (optional) + timeout: 1, // (optional) + enabled: false, // (optional) + logging: false, // (optional) + entrypoint: '<ENTRYPOINT>', // (optional) + commands: '<COMMANDS>', // (optional) + scopes: [], // (optional) + installationId: '<INSTALLATION_ID>', // (optional) + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) + providerBranch: '<PROVIDER_BRANCH>', // (optional) + providerSilentMode: false, // (optional) + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // (optional) + specification: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.7.x/server-dart/examples/graphql/mutation.md new file mode 100644 index 00000000000..a88749851cf --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/graphql/mutation.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Graphql graphql = Graphql(client); + +Any result = await graphql.mutation( + query: {}, +); diff --git a/docs/examples/1.7.x/server-dart/examples/graphql/query.md b/docs/examples/1.7.x/server-dart/examples/graphql/query.md new file mode 100644 index 00000000000..2dca8f2929c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/graphql/query.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Graphql graphql = Graphql(client); + +Any result = await graphql.query( + query: {}, +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-dart/examples/health/get-antivirus.md new file mode 100644 index 00000000000..395d1f84d18 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-antivirus.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthAntivirus result = await health.getAntivirus(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-cache.md b/docs/examples/1.7.x/server-dart/examples/health/get-cache.md new file mode 100644 index 00000000000..6312e3cbe6a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-cache.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthStatus result = await health.getCache(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-certificate.md b/docs/examples/1.7.x/server-dart/examples/health/get-certificate.md new file mode 100644 index 00000000000..eac30a6aef1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-certificate.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthCertificate result = await health.getCertificate( + domain: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.7.x/server-dart/examples/health/get-d-b.md new file mode 100644 index 00000000000..25ad9607f58 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-d-b.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthStatus result = await health.getDB(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-dart/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..6f80718f6b2 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-failed-jobs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getFailedJobs( + name: .v1Database, + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-dart/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..d544fbfc40a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-pub-sub.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthStatus result = await health.getPubSub(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..b48623ec181 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-builds.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueBuilds( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..d72ac97b145 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-certificates.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueCertificates( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..b9d8e8bc663 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-databases.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueDatabases( + name: '<NAME>', // (optional) + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..3074cbb8abd --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-deletes.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueDeletes( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..727fd239cc5 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-functions.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueFunctions( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..32d3e3bb7b2 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-logs.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueLogs( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..93ec9938453 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-mails.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueMails( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..4ffd769d3c0 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-messaging.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueMessaging( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..fab19875e52 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-migrations.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueMigrations( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..89a3d031799 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueStatsResources( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..473dcd15eed --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-usage.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueUsage( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-dart/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..523c1007f5e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-queue-webhooks.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueWebhooks( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-dart/examples/health/get-storage-local.md new file mode 100644 index 00000000000..c33cf555f35 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-storage-local.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthStatus result = await health.getStorageLocal(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-storage.md b/docs/examples/1.7.x/server-dart/examples/health/get-storage.md new file mode 100644 index 00000000000..cb6c572154e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-storage.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthStatus result = await health.getStorage(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get-time.md b/docs/examples/1.7.x/server-dart/examples/health/get-time.md new file mode 100644 index 00000000000..f4439957d93 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get-time.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthTime result = await health.getTime(); diff --git a/docs/examples/1.7.x/server-dart/examples/health/get.md b/docs/examples/1.7.x/server-dart/examples/health/get.md new file mode 100644 index 00000000000..31344908487 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/health/get.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthStatus result = await health.get(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/get.md b/docs/examples/1.7.x/server-dart/examples/locale/get.md new file mode 100644 index 00000000000..dec6f068c63 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/get.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +Locale result = await locale.get(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.7.x/server-dart/examples/locale/list-codes.md new file mode 100644 index 00000000000..9f9eac9f29d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-codes.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +LocaleCodeList result = await locale.listCodes(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.7.x/server-dart/examples/locale/list-continents.md new file mode 100644 index 00000000000..276738eac7a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-continents.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +ContinentList result = await locale.listContinents(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-dart/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..59596c624cf --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-countries-e-u.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +CountryList result = await locale.listCountriesEU(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-dart/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..2a2d32eacac --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-countries-phones.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +PhoneList result = await locale.listCountriesPhones(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.7.x/server-dart/examples/locale/list-countries.md new file mode 100644 index 00000000000..6b8343c6b3e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-countries.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +CountryList result = await locale.listCountries(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-dart/examples/locale/list-currencies.md new file mode 100644 index 00000000000..48247d98fe7 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-currencies.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +CurrencyList result = await locale.listCurrencies(); diff --git a/docs/examples/1.7.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.7.x/server-dart/examples/locale/list-languages.md new file mode 100644 index 00000000000..2376f189177 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/locale/list-languages.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Locale locale = Locale(client); + +LanguageList result = await locale.listLanguages(); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..82c1eb5da64 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-apns-provider.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createApnsProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + authKey: '<AUTH_KEY>', // (optional) + authKeyId: '<AUTH_KEY_ID>', // (optional) + teamId: '<TEAM_ID>', // (optional) + bundleId: '<BUNDLE_ID>', // (optional) + sandbox: false, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-email.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-email.md new file mode 100644 index 00000000000..78c695c7ed4 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-email.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.createEmail( + messageId: '<MESSAGE_ID>', + subject: '<SUBJECT>', + content: '<CONTENT>', + topics: [], // (optional) + users: [], // (optional) + targets: [], // (optional) + cc: [], // (optional) + bcc: [], // (optional) + attachments: [], // (optional) + draft: false, // (optional) + html: false, // (optional) + scheduledAt: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..25c2cb8cfa1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-fcm-provider.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createFcmProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + serviceAccountJSON: {}, // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..10d803d6244 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createMailgunProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + apiKey: '<API_KEY>', // (optional) + domain: '<DOMAIN>', // (optional) + isEuRegion: false, // (optional) + fromName: '<FROM_NAME>', // (optional) + fromEmail: 'email@example.com', // (optional) + replyToName: '<REPLY_TO_NAME>', // (optional) + replyToEmail: 'email@example.com', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..b283b753257 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-msg91provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createMsg91Provider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + templateId: '<TEMPLATE_ID>', // (optional) + senderId: '<SENDER_ID>', // (optional) + authKey: '<AUTH_KEY>', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-push.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-push.md new file mode 100644 index 00000000000..58d82c7a0a9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-push.md @@ -0,0 +1,30 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.createPush( + messageId: '<MESSAGE_ID>', + title: '<TITLE>', // (optional) + body: '<BODY>', // (optional) + topics: [], // (optional) + users: [], // (optional) + targets: [], // (optional) + data: {}, // (optional) + action: '<ACTION>', // (optional) + image: '[ID1:ID2]', // (optional) + icon: '<ICON>', // (optional) + sound: '<SOUND>', // (optional) + color: '<COLOR>', // (optional) + tag: '<TAG>', // (optional) + badge: 0, // (optional) + draft: false, // (optional) + scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..e759a26094a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createSendgridProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + apiKey: '<API_KEY>', // (optional) + fromName: '<FROM_NAME>', // (optional) + fromEmail: 'email@example.com', // (optional) + replyToName: '<REPLY_TO_NAME>', // (optional) + replyToEmail: 'email@example.com', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-sms.md new file mode 100644 index 00000000000..04a715870f0 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-sms.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.createSms( + messageId: '<MESSAGE_ID>', + content: '<CONTENT>', + topics: [], // (optional) + users: [], // (optional) + targets: [], // (optional) + draft: false, // (optional) + scheduledAt: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..6201987fbb8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-smtp-provider.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createSmtpProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + host: '<HOST>', + port: 1, // (optional) + username: '<USERNAME>', // (optional) + password: '<PASSWORD>', // (optional) + encryption: SmtpEncryption.none, // (optional) + autoTLS: false, // (optional) + mailer: '<MAILER>', // (optional) + fromName: '<FROM_NAME>', // (optional) + fromEmail: 'email@example.com', // (optional) + replyToName: '<REPLY_TO_NAME>', // (optional) + replyToEmail: 'email@example.com', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..5fd4859fb9d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-subscriber.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +Messaging messaging = Messaging(client); + +Subscriber result = await messaging.createSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>', + targetId: '<TARGET_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..5417b951dd3 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-telesign-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createTelesignProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // (optional) + customerId: '<CUSTOMER_ID>', // (optional) + apiKey: '<API_KEY>', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..4cf6463b6ed --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createTextmagicProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // (optional) + username: '<USERNAME>', // (optional) + apiKey: '<API_KEY>', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-topic.md new file mode 100644 index 00000000000..67e47412a10 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-topic.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Topic result = await messaging.createTopic( + topicId: '<TOPIC_ID>', + name: '<NAME>', + subscribe: ["any"], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..8c3370baa7d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-twilio-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createTwilioProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // (optional) + accountSid: '<ACCOUNT_SID>', // (optional) + authToken: '<AUTH_TOKEN>', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..d625f382307 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/create-vonage-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.createVonageProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // (optional) + apiKey: '<API_KEY>', // (optional) + apiSecret: '<API_SECRET>', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..361bacc2c3d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/delete-provider.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +await messaging.deleteProvider( + providerId: '<PROVIDER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-dart/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..e4a044c2804 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/delete-subscriber.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +Messaging messaging = Messaging(client); + +await messaging.deleteSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-dart/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..59c5592c93c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/delete-topic.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +await messaging.deleteTopic( + topicId: '<TOPIC_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/delete.md b/docs/examples/1.7.x/server-dart/examples/messaging/delete.md new file mode 100644 index 00000000000..14b680ae99f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +await messaging.delete( + messageId: '<MESSAGE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/get-message.md b/docs/examples/1.7.x/server-dart/examples/messaging/get-message.md new file mode 100644 index 00000000000..ccc98961e78 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/get-message.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.getMessage( + messageId: '<MESSAGE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/get-provider.md new file mode 100644 index 00000000000..a82ef15775d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/get-provider.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.getProvider( + providerId: '<PROVIDER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-dart/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..03f78b7fa4e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/get-subscriber.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Subscriber result = await messaging.getSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-dart/examples/messaging/get-topic.md new file mode 100644 index 00000000000..204f8757935 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/get-topic.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Topic result = await messaging.getTopic( + topicId: '<TOPIC_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..1d2b1805b47 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-message-logs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +LogList result = await messaging.listMessageLogs( + messageId: '<MESSAGE_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-messages.md new file mode 100644 index 00000000000..2c0a142ee8a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-messages.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +MessageList result = await messaging.listMessages( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..9f40a5fa49b --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-provider-logs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +LogList result = await messaging.listProviderLogs( + providerId: '<PROVIDER_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-providers.md new file mode 100644 index 00000000000..df7a8a022c5 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-providers.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +ProviderList result = await messaging.listProviders( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..3a9593ca893 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +LogList result = await messaging.listSubscriberLogs( + subscriberId: '<SUBSCRIBER_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..19d907cd9ac --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-subscribers.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +SubscriberList result = await messaging.listSubscribers( + topicId: '<TOPIC_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-targets.md new file mode 100644 index 00000000000..5a327773c2c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-targets.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +TargetList result = await messaging.listTargets( + messageId: '<MESSAGE_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..0ab02eaa740 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-topic-logs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +LogList result = await messaging.listTopicLogs( + topicId: '<TOPIC_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-dart/examples/messaging/list-topics.md new file mode 100644 index 00000000000..c5fdb4901f1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/list-topics.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +TopicList result = await messaging.listTopics( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..edc0a1f769d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-apns-provider.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateApnsProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + authKey: '<AUTH_KEY>', // (optional) + authKeyId: '<AUTH_KEY_ID>', // (optional) + teamId: '<TEAM_ID>', // (optional) + bundleId: '<BUNDLE_ID>', // (optional) + sandbox: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-email.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-email.md new file mode 100644 index 00000000000..b725cee5f0b --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-email.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.updateEmail( + messageId: '<MESSAGE_ID>', + topics: [], // (optional) + users: [], // (optional) + targets: [], // (optional) + subject: '<SUBJECT>', // (optional) + content: '<CONTENT>', // (optional) + draft: false, // (optional) + html: false, // (optional) + cc: [], // (optional) + bcc: [], // (optional) + scheduledAt: '', // (optional) + attachments: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..1e2d8a8ca27 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-fcm-provider.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateFcmProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + serviceAccountJSON: {}, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..c042a6faaab --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateMailgunProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + apiKey: '<API_KEY>', // (optional) + domain: '<DOMAIN>', // (optional) + isEuRegion: false, // (optional) + enabled: false, // (optional) + fromName: '<FROM_NAME>', // (optional) + fromEmail: 'email@example.com', // (optional) + replyToName: '<REPLY_TO_NAME>', // (optional) + replyToEmail: '<REPLY_TO_EMAIL>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..24290e958f4 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-msg91provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateMsg91Provider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + templateId: '<TEMPLATE_ID>', // (optional) + senderId: '<SENDER_ID>', // (optional) + authKey: '<AUTH_KEY>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-push.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-push.md new file mode 100644 index 00000000000..f7cc117b649 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-push.md @@ -0,0 +1,30 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.updatePush( + messageId: '<MESSAGE_ID>', + topics: [], // (optional) + users: [], // (optional) + targets: [], // (optional) + title: '<TITLE>', // (optional) + body: '<BODY>', // (optional) + data: {}, // (optional) + action: '<ACTION>', // (optional) + image: '[ID1:ID2]', // (optional) + icon: '<ICON>', // (optional) + sound: '<SOUND>', // (optional) + color: '<COLOR>', // (optional) + tag: '<TAG>', // (optional) + badge: 0, // (optional) + draft: false, // (optional) + scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..53b8c33df41 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,19 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateSendgridProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + apiKey: '<API_KEY>', // (optional) + fromName: '<FROM_NAME>', // (optional) + fromEmail: 'email@example.com', // (optional) + replyToName: '<REPLY_TO_NAME>', // (optional) + replyToEmail: '<REPLY_TO_EMAIL>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-sms.md new file mode 100644 index 00000000000..f4356deed33 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-sms.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Message result = await messaging.updateSms( + messageId: '<MESSAGE_ID>', + topics: [], // (optional) + users: [], // (optional) + targets: [], // (optional) + content: '<CONTENT>', // (optional) + draft: false, // (optional) + scheduledAt: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..16530c01c88 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-smtp-provider.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateSmtpProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + host: '<HOST>', // (optional) + port: 1, // (optional) + username: '<USERNAME>', // (optional) + password: '<PASSWORD>', // (optional) + encryption: SmtpEncryption.none, // (optional) + autoTLS: false, // (optional) + mailer: '<MAILER>', // (optional) + fromName: '<FROM_NAME>', // (optional) + fromEmail: 'email@example.com', // (optional) + replyToName: '<REPLY_TO_NAME>', // (optional) + replyToEmail: '<REPLY_TO_EMAIL>', // (optional) + enabled: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..4bf76fbcfe9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-telesign-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateTelesignProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + customerId: '<CUSTOMER_ID>', // (optional) + apiKey: '<API_KEY>', // (optional) + from: '<FROM>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..86bb985778d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateTextmagicProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + username: '<USERNAME>', // (optional) + apiKey: '<API_KEY>', // (optional) + from: '<FROM>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-topic.md new file mode 100644 index 00000000000..5311fd5e9b9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-topic.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Topic result = await messaging.updateTopic( + topicId: '<TOPIC_ID>', + name: '<NAME>', // (optional) + subscribe: ["any"], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..8ace97521bb --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-twilio-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateTwilioProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + accountSid: '<ACCOUNT_SID>', // (optional) + authToken: '<AUTH_TOKEN>', // (optional) + from: '<FROM>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-dart/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..e0d95d1cb40 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/messaging/update-vonage-provider.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Messaging messaging = Messaging(client); + +Provider result = await messaging.updateVonageProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // (optional) + enabled: false, // (optional) + apiKey: '<API_KEY>', // (optional) + apiSecret: '<API_SECRET>', // (optional) + from: '<FROM>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/create-deployment.md new file mode 100644 index 00000000000..93f9615b8b3 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/create-deployment.md @@ -0,0 +1,18 @@ +import 'dart:io'; +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Deployment result = await sites.createDeployment( + siteId: '<SITE_ID>', + code: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), + activate: false, + installCommand: '<INSTALL_COMMAND>', // (optional) + buildCommand: '<BUILD_COMMAND>', // (optional) + outputDirectory: '<OUTPUT_DIRECTORY>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..1a3e84a33c6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Deployment result = await sites.createDuplicateDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..348b4652b63 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/create-template-deployment.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Deployment result = await sites.createTemplateDeployment( + siteId: '<SITE_ID>', + repository: '<REPOSITORY>', + owner: '<OWNER>', + rootDirectory: '<ROOT_DIRECTORY>', + version: '<VERSION>', + activate: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/create-variable.md b/docs/examples/1.7.x/server-dart/examples/sites/create-variable.md new file mode 100644 index 00000000000..aa3c8761744 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/create-variable.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Variable result = await sites.createVariable( + siteId: '<SITE_ID>', + key: '<KEY>', + value: '<VALUE>', + secret: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..50f65b96036 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/create-vcs-deployment.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Deployment result = await sites.createVcsDeployment( + siteId: '<SITE_ID>', + type: VCSDeploymentType.branch, + reference: '<REFERENCE>', + activate: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/create.md b/docs/examples/1.7.x/server-dart/examples/sites/create.md new file mode 100644 index 00000000000..448abab1dfb --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/create.md @@ -0,0 +1,29 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Site result = await sites.create( + siteId: '<SITE_ID>', + name: '<NAME>', + framework: .analog, + buildRuntime: .node145, + enabled: false, // (optional) + logging: false, // (optional) + timeout: 1, // (optional) + installCommand: '<INSTALL_COMMAND>', // (optional) + buildCommand: '<BUILD_COMMAND>', // (optional) + outputDirectory: '<OUTPUT_DIRECTORY>', // (optional) + adapter: .static, // (optional) + installationId: '<INSTALLATION_ID>', // (optional) + fallbackFile: '<FALLBACK_FILE>', // (optional) + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) + providerBranch: '<PROVIDER_BRANCH>', // (optional) + providerSilentMode: false, // (optional) + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // (optional) + specification: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..ca93ac668d0 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/delete-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +await sites.deleteDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/delete-log.md b/docs/examples/1.7.x/server-dart/examples/sites/delete-log.md new file mode 100644 index 00000000000..c11ecab71e8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/delete-log.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +await sites.deleteLog( + siteId: '<SITE_ID>', + logId: '<LOG_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-dart/examples/sites/delete-variable.md new file mode 100644 index 00000000000..f04b9451ae6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/delete-variable.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +await sites.deleteVariable( + siteId: '<SITE_ID>', + variableId: '<VARIABLE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/delete.md b/docs/examples/1.7.x/server-dart/examples/sites/delete.md new file mode 100644 index 00000000000..e81df372bcb --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +await sites.delete( + siteId: '<SITE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-dart/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..ad21070b8ae --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/get-deployment-download.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +UInt8List result = await sites.getDeploymentDownload( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', + type: DeploymentDownloadType.source, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/get-deployment.md new file mode 100644 index 00000000000..9acc89b56f6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/get-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Deployment result = await sites.getDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/get-log.md b/docs/examples/1.7.x/server-dart/examples/sites/get-log.md new file mode 100644 index 00000000000..195f8aad2da --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/get-log.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Execution result = await sites.getLog( + siteId: '<SITE_ID>', + logId: '<LOG_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/get-variable.md b/docs/examples/1.7.x/server-dart/examples/sites/get-variable.md new file mode 100644 index 00000000000..637e08a58c9 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/get-variable.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Variable result = await sites.getVariable( + siteId: '<SITE_ID>', + variableId: '<VARIABLE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/get.md b/docs/examples/1.7.x/server-dart/examples/sites/get.md new file mode 100644 index 00000000000..32abcfcffc5 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/get.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Site result = await sites.get( + siteId: '<SITE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-dart/examples/sites/list-deployments.md new file mode 100644 index 00000000000..6f6c9ce3f03 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/list-deployments.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +DeploymentList result = await sites.listDeployments( + siteId: '<SITE_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-dart/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..72a600fad3f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/list-frameworks.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +FrameworkList result = await sites.listFrameworks(); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/list-logs.md b/docs/examples/1.7.x/server-dart/examples/sites/list-logs.md new file mode 100644 index 00000000000..4ccf170f8b6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/list-logs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +ExecutionList result = await sites.listLogs( + siteId: '<SITE_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-dart/examples/sites/list-specifications.md new file mode 100644 index 00000000000..b81faf0e43d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/list-specifications.md @@ -0,0 +1,10 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +SpecificationList result = await sites.listSpecifications(); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/list-variables.md b/docs/examples/1.7.x/server-dart/examples/sites/list-variables.md new file mode 100644 index 00000000000..14be96629c1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/list-variables.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +VariableList result = await sites.listVariables( + siteId: '<SITE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/list.md b/docs/examples/1.7.x/server-dart/examples/sites/list.md new file mode 100644 index 00000000000..0dd52262f19 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/list.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +SiteList result = await sites.list( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-dart/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..bd031cf27a2 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/update-deployment-status.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Deployment result = await sites.updateDeploymentStatus( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-dart/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..dbb4e27aa64 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/update-site-deployment.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Site result = await sites.updateSiteDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/update-variable.md b/docs/examples/1.7.x/server-dart/examples/sites/update-variable.md new file mode 100644 index 00000000000..af2123c9899 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/update-variable.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Variable result = await sites.updateVariable( + siteId: '<SITE_ID>', + variableId: '<VARIABLE_ID>', + key: '<KEY>', + value: '<VALUE>', // (optional) + secret: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/sites/update.md b/docs/examples/1.7.x/server-dart/examples/sites/update.md new file mode 100644 index 00000000000..c13acfb25be --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/sites/update.md @@ -0,0 +1,29 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Sites sites = Sites(client); + +Site result = await sites.update( + siteId: '<SITE_ID>', + name: '<NAME>', + framework: .analog, + enabled: false, // (optional) + logging: false, // (optional) + timeout: 1, // (optional) + installCommand: '<INSTALL_COMMAND>', // (optional) + buildCommand: '<BUILD_COMMAND>', // (optional) + outputDirectory: '<OUTPUT_DIRECTORY>', // (optional) + buildRuntime: .node145, // (optional) + adapter: .static, // (optional) + fallbackFile: '<FALLBACK_FILE>', // (optional) + installationId: '<INSTALLATION_ID>', // (optional) + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) + providerBranch: '<PROVIDER_BRANCH>', // (optional) + providerSilentMode: false, // (optional) + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // (optional) + specification: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-dart/examples/storage/create-bucket.md new file mode 100644 index 00000000000..c09a4f2c5d0 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/create-bucket.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Storage storage = Storage(client); + +Bucket result = await storage.createBucket( + bucketId: '<BUCKET_ID>', + name: '<NAME>', + permissions: ["read("any")"], // (optional) + fileSecurity: false, // (optional) + enabled: false, // (optional) + maximumFileSize: 1, // (optional) + allowedFileExtensions: [], // (optional) + compression: .none, // (optional) + encryption: false, // (optional) + antivirus: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/create-file.md b/docs/examples/1.7.x/server-dart/examples/storage/create-file.md new file mode 100644 index 00000000000..e631416ecb6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/create-file.md @@ -0,0 +1,16 @@ +import 'dart:io'; +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +File result = await storage.createFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-dart/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..1eb1b51ca2e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/delete-bucket.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Storage storage = Storage(client); + +await storage.deleteBucket( + bucketId: '<BUCKET_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.7.x/server-dart/examples/storage/delete-file.md new file mode 100644 index 00000000000..26dd602c7e1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/delete-file.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +await storage.deleteFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-dart/examples/storage/get-bucket.md new file mode 100644 index 00000000000..3464d2233bf --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/get-bucket.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Storage storage = Storage(client); + +Bucket result = await storage.getBucket( + bucketId: '<BUCKET_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-dart/examples/storage/get-file-download.md new file mode 100644 index 00000000000..8c119c386c3 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/get-file-download.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +UInt8List result = await storage.getFileDownload( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + token: '<TOKEN>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-dart/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..a1f3c09b33e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/get-file-preview.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +UInt8List result = await storage.getFilePreview( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + width: 0, // (optional) + height: 0, // (optional) + gravity: ImageGravity.center, // (optional) + quality: -1, // (optional) + borderWidth: 0, // (optional) + borderColor: '', // (optional) + borderRadius: 0, // (optional) + opacity: 0, // (optional) + rotation: -360, // (optional) + background: '', // (optional) + output: ImageFormat.jpg, // (optional) + token: '<TOKEN>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-dart/examples/storage/get-file-view.md new file mode 100644 index 00000000000..d48b51c19c3 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/get-file-view.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +UInt8List result = await storage.getFileView( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + token: '<TOKEN>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/get-file.md b/docs/examples/1.7.x/server-dart/examples/storage/get-file.md new file mode 100644 index 00000000000..f765c62356a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/get-file.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +File result = await storage.getFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-dart/examples/storage/list-buckets.md new file mode 100644 index 00000000000..c20dac19688 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/list-buckets.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Storage storage = Storage(client); + +BucketList result = await storage.listBuckets( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/list-files.md b/docs/examples/1.7.x/server-dart/examples/storage/list-files.md new file mode 100644 index 00000000000..28f85b091a0 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/list-files.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +FileList result = await storage.listFiles( + bucketId: '<BUCKET_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-dart/examples/storage/update-bucket.md new file mode 100644 index 00000000000..b4e45e059c8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/update-bucket.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Storage storage = Storage(client); + +Bucket result = await storage.updateBucket( + bucketId: '<BUCKET_ID>', + name: '<NAME>', + permissions: ["read("any")"], // (optional) + fileSecurity: false, // (optional) + enabled: false, // (optional) + maximumFileSize: 1, // (optional) + allowedFileExtensions: [], // (optional) + compression: .none, // (optional) + encryption: false, // (optional) + antivirus: false, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/storage/update-file.md b/docs/examples/1.7.x/server-dart/examples/storage/update-file.md new file mode 100644 index 00000000000..966883a1f9a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/storage/update-file.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Storage storage = Storage(client); + +File result = await storage.updateFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + name: '<NAME>', // (optional) + permissions: ["read("any")"], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.7.x/server-dart/examples/teams/create-membership.md new file mode 100644 index 00000000000..f13a6e69bb5 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/create-membership.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Membership result = await teams.createMembership( + teamId: '<TEAM_ID>', + roles: [], + email: 'email@example.com', // (optional) + userId: '<USER_ID>', // (optional) + phone: '+12065550100', // (optional) + url: 'https://example.com', // (optional) + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/create.md b/docs/examples/1.7.x/server-dart/examples/teams/create.md new file mode 100644 index 00000000000..772f3cfa864 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/create.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Team result = await teams.create( + teamId: '<TEAM_ID>', + name: '<NAME>', + roles: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-dart/examples/teams/delete-membership.md new file mode 100644 index 00000000000..9d99cbbd3db --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/delete-membership.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +await teams.deleteMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/delete.md b/docs/examples/1.7.x/server-dart/examples/teams/delete.md new file mode 100644 index 00000000000..1c08ab8ed9f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +await teams.delete( + teamId: '<TEAM_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.7.x/server-dart/examples/teams/get-membership.md new file mode 100644 index 00000000000..0bdc63f8d4f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/get-membership.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Membership result = await teams.getMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-dart/examples/teams/get-prefs.md new file mode 100644 index 00000000000..e2063933207 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/get-prefs.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Preferences result = await teams.getPrefs( + teamId: '<TEAM_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/get.md b/docs/examples/1.7.x/server-dart/examples/teams/get.md new file mode 100644 index 00000000000..bb3bcaf7e21 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/get.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Team result = await teams.get( + teamId: '<TEAM_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-dart/examples/teams/list-memberships.md new file mode 100644 index 00000000000..3c01dec4c54 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/list-memberships.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +MembershipList result = await teams.listMemberships( + teamId: '<TEAM_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/list.md b/docs/examples/1.7.x/server-dart/examples/teams/list.md new file mode 100644 index 00000000000..093a139f715 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/list.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +TeamList result = await teams.list( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-dart/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..c947162fa41 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/update-membership-status.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Membership result = await teams.updateMembershipStatus( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', + userId: '<USER_ID>', + secret: '<SECRET>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.7.x/server-dart/examples/teams/update-membership.md new file mode 100644 index 00000000000..87a4325857d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/update-membership.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Membership result = await teams.updateMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', + roles: [], +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/update-name.md b/docs/examples/1.7.x/server-dart/examples/teams/update-name.md new file mode 100644 index 00000000000..fe3a9faabfa --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/update-name.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Team result = await teams.updateName( + teamId: '<TEAM_ID>', + name: '<NAME>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-dart/examples/teams/update-prefs.md new file mode 100644 index 00000000000..57518ada43f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/teams/update-prefs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Teams teams = Teams(client); + +Preferences result = await teams.updatePrefs( + teamId: '<TEAM_ID>', + prefs: {}, +); diff --git a/docs/examples/1.7.x/server-dart/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-dart/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..cc75a91726f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/tokens/create-file-token.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Tokens tokens = Tokens(client); + +ResourceToken result = await tokens.createFileToken( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + expire: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/tokens/delete.md b/docs/examples/1.7.x/server-dart/examples/tokens/delete.md new file mode 100644 index 00000000000..ce95e7b7522 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/tokens/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Tokens tokens = Tokens(client); + +await tokens.delete( + tokenId: '<TOKEN_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/tokens/get.md b/docs/examples/1.7.x/server-dart/examples/tokens/get.md new file mode 100644 index 00000000000..3112b5e1e5f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/tokens/get.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Tokens tokens = Tokens(client); + +ResourceToken result = await tokens.get( + tokenId: '<TOKEN_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/tokens/list.md b/docs/examples/1.7.x/server-dart/examples/tokens/list.md new file mode 100644 index 00000000000..5331e44de34 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/tokens/list.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Tokens tokens = Tokens(client); + +ResourceTokenList result = await tokens.list( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/tokens/update.md b/docs/examples/1.7.x/server-dart/examples/tokens/update.md new file mode 100644 index 00000000000..47e910d5745 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/tokens/update.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Tokens tokens = Tokens(client); + +ResourceToken result = await tokens.update( + tokenId: '<TOKEN_ID>', + expire: '', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-dart/examples/users/create-argon2user.md new file mode 100644 index 00000000000..38b0255ea4c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-argon2user.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createArgon2User( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-dart/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..aa898ba22f8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-bcrypt-user.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createBcryptUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-dart/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..6e8b7a2bac4 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Jwt result = await users.createJWT( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', // (optional) + duration: 0, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-dart/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..e08edd617f2 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-m-d5user.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createMD5User( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dart/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..c2b9562e4ed --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +MfaRecoveryCodes result = await users.createMfaRecoveryCodes( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-dart/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..9f23baaef2f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-p-h-pass-user.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createPHPassUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-dart/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..628cf3297e8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-s-h-a-user.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createSHAUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + passwordVersion: PasswordHash.sha1, // (optional) + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-dart/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..34bfbf66c41 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,18 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createScryptModifiedUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + passwordSalt: '<PASSWORD_SALT>', + passwordSaltSeparator: '<PASSWORD_SALT_SEPARATOR>', + passwordSignerKey: '<PASSWORD_SIGNER_KEY>', + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-dart/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..20cf911a09c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-scrypt-user.md @@ -0,0 +1,20 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.createScryptUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + passwordSalt: '<PASSWORD_SALT>', + passwordCpu: 0, + passwordMemory: 0, + passwordParallel: 0, + passwordLength: 0, + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-session.md b/docs/examples/1.7.x/server-dart/examples/users/create-session.md new file mode 100644 index 00000000000..4293e7edf6f --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-session.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Session result = await users.createSession( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-target.md b/docs/examples/1.7.x/server-dart/examples/users/create-target.md new file mode 100644 index 00000000000..354a8dbb48d --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-target.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Target result = await users.createTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>', + providerType: MessagingProviderType.email, + identifier: '<IDENTIFIER>', + providerId: '<PROVIDER_ID>', // (optional) + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create-token.md b/docs/examples/1.7.x/server-dart/examples/users/create-token.md new file mode 100644 index 00000000000..ab7acba3dd4 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create-token.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Token result = await users.createToken( + userId: '<USER_ID>', + length: 4, // (optional) + expire: 60, // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/create.md b/docs/examples/1.7.x/server-dart/examples/users/create.md new file mode 100644 index 00000000000..b4953748e52 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/create.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.create( + userId: '<USER_ID>', + email: 'email@example.com', // (optional) + phone: '+12065550100', // (optional) + password: '', // (optional) + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.7.x/server-dart/examples/users/delete-identity.md new file mode 100644 index 00000000000..7ac2da90005 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/delete-identity.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +await users.deleteIdentity( + identityId: '<IDENTITY_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-dart/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..eed7dbd41b1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +await users.deleteMfaAuthenticator( + userId: '<USER_ID>', + type: AuthenticatorType.totp, +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/delete-session.md b/docs/examples/1.7.x/server-dart/examples/users/delete-session.md new file mode 100644 index 00000000000..68d243e52f8 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/delete-session.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +await users.deleteSession( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-dart/examples/users/delete-sessions.md new file mode 100644 index 00000000000..07c3566a7ca --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/delete-sessions.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +await users.deleteSessions( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/delete-target.md b/docs/examples/1.7.x/server-dart/examples/users/delete-target.md new file mode 100644 index 00000000000..aa27b32d383 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/delete-target.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +await users.deleteTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/delete.md b/docs/examples/1.7.x/server-dart/examples/users/delete.md new file mode 100644 index 00000000000..93819b72d76 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/delete.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +await users.delete( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dart/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..cf66c676100 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +MfaRecoveryCodes result = await users.getMfaRecoveryCodes( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.7.x/server-dart/examples/users/get-prefs.md new file mode 100644 index 00000000000..146cff68203 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/get-prefs.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Preferences result = await users.getPrefs( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/get-target.md b/docs/examples/1.7.x/server-dart/examples/users/get-target.md new file mode 100644 index 00000000000..9ddaafb55fd --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/get-target.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Target result = await users.getTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/get.md b/docs/examples/1.7.x/server-dart/examples/users/get.md new file mode 100644 index 00000000000..a171b79582e --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/get.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.get( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list-identities.md b/docs/examples/1.7.x/server-dart/examples/users/list-identities.md new file mode 100644 index 00000000000..2c14775e9ac --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list-identities.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +IdentityList result = await users.listIdentities( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list-logs.md b/docs/examples/1.7.x/server-dart/examples/users/list-logs.md new file mode 100644 index 00000000000..5885dcb8745 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list-logs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +LogList result = await users.listLogs( + userId: '<USER_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.7.x/server-dart/examples/users/list-memberships.md new file mode 100644 index 00000000000..dabe5a123c7 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list-memberships.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +MembershipList result = await users.listMemberships( + userId: '<USER_ID>', + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-dart/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..7134ee5dab6 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list-mfa-factors.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +MfaFactors result = await users.listMfaFactors( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.7.x/server-dart/examples/users/list-sessions.md new file mode 100644 index 00000000000..22a37c05a00 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list-sessions.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +SessionList result = await users.listSessions( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list-targets.md b/docs/examples/1.7.x/server-dart/examples/users/list-targets.md new file mode 100644 index 00000000000..971fbea0e1c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list-targets.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +TargetList result = await users.listTargets( + userId: '<USER_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/list.md b/docs/examples/1.7.x/server-dart/examples/users/list.md new file mode 100644 index 00000000000..6d34bb470b1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/list.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +UserList result = await users.list( + queries: [], // (optional) + search: '<SEARCH>', // (optional) +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-dart/examples/users/update-email-verification.md new file mode 100644 index 00000000000..9930e30be50 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-email-verification.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updateEmailVerification( + userId: '<USER_ID>', + emailVerification: false, +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-email.md b/docs/examples/1.7.x/server-dart/examples/users/update-email.md new file mode 100644 index 00000000000..129a8e2437c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-email.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updateEmail( + userId: '<USER_ID>', + email: 'email@example.com', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-labels.md b/docs/examples/1.7.x/server-dart/examples/users/update-labels.md new file mode 100644 index 00000000000..d247bf5e748 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-labels.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updateLabels( + userId: '<USER_ID>', + labels: [], +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dart/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..3b7d81f57c1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +MfaRecoveryCodes result = await users.updateMfaRecoveryCodes( + userId: '<USER_ID>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-mfa.md b/docs/examples/1.7.x/server-dart/examples/users/update-mfa.md new file mode 100644 index 00000000000..f26b1055345 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-mfa.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updateMfa( + userId: '<USER_ID>', + mfa: false, +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-name.md b/docs/examples/1.7.x/server-dart/examples/users/update-name.md new file mode 100644 index 00000000000..905cee0e498 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-name.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updateName( + userId: '<USER_ID>', + name: '<NAME>', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-password.md b/docs/examples/1.7.x/server-dart/examples/users/update-password.md new file mode 100644 index 00000000000..14e27482ec1 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-password.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updatePassword( + userId: '<USER_ID>', + password: '', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-dart/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..b57aafab1f0 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-phone-verification.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updatePhoneVerification( + userId: '<USER_ID>', + phoneVerification: false, +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-phone.md b/docs/examples/1.7.x/server-dart/examples/users/update-phone.md new file mode 100644 index 00000000000..aa891d2351c --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-phone.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updatePhone( + userId: '<USER_ID>', + number: '+12065550100', +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.7.x/server-dart/examples/users/update-prefs.md new file mode 100644 index 00000000000..87fc2968f58 --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-prefs.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Preferences result = await users.updatePrefs( + userId: '<USER_ID>', + prefs: {}, +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-status.md b/docs/examples/1.7.x/server-dart/examples/users/update-status.md new file mode 100644 index 00000000000..4d8dca03ada --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-status.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +User result = await users.updateStatus( + userId: '<USER_ID>', + status: false, +); diff --git a/docs/examples/1.7.x/server-dart/examples/users/update-target.md b/docs/examples/1.7.x/server-dart/examples/users/update-target.md new file mode 100644 index 00000000000..f66f0b7475a --- /dev/null +++ b/docs/examples/1.7.x/server-dart/examples/users/update-target.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Target result = await users.updateTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>', + identifier: '<IDENTIFIER>', // (optional) + providerId: '<PROVIDER_ID>', // (optional) + name: '<NAME>', // (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-deno/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..62ad345304e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-anonymous-session.md @@ -0,0 +1,9 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createAnonymousSession(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-deno/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..d08a92d2c38 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-email-password-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createEmailPasswordSession( + 'email@example.com', // email + 'password' // password +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-email-token.md b/docs/examples/1.7.x/server-deno/examples/account/create-email-token.md new file mode 100644 index 00000000000..384a3fbbea3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-email-token.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createEmailToken( + '<USER_ID>', // userId + 'email@example.com', // email + false // phrase (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-deno/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..a0a7f722ccf --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-j-w-t.md @@ -0,0 +1,9 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createJWT(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-deno/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..29e552a8194 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,14 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createMagicURLToken( + '<USER_ID>', // userId + 'email@example.com', // email + 'https://example.com', // url (optional) + false // phrase (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-deno/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..52c193a848f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-mfa-authenticator.md @@ -0,0 +1,12 @@ +import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.createMfaAuthenticator( + AuthenticatorType.Totp // type +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-deno/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..296e36dec47 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-mfa-challenge.md @@ -0,0 +1,11 @@ +import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createMfaChallenge( + AuthenticationFactor.Email // factor +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-deno/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..cfd9aa2ba8c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.createMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-deno/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..24e43a9d9c9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-o-auth2token.md @@ -0,0 +1,14 @@ +import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +account.createOAuth2Token( + OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-deno/examples/account/create-phone-token.md new file mode 100644 index 00000000000..77e4adcb9c1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-phone-token.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createPhoneToken( + '<USER_ID>', // userId + '+12065550100' // phone +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-deno/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..8f01304f5bf --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-phone-verification.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.createPhoneVerification(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.7.x/server-deno/examples/account/create-recovery.md new file mode 100644 index 00000000000..a3d92d866e1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.createRecovery( + 'email@example.com', // email + 'https://example.com' // url +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-session.md b/docs/examples/1.7.x/server-deno/examples/account/create-session.md new file mode 100644 index 00000000000..888493a21ac --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.createSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create-verification.md b/docs/examples/1.7.x/server-deno/examples/account/create-verification.md new file mode 100644 index 00000000000..438feee807d --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create-verification.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.createVerification( + 'https://example.com' // url +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/create.md b/docs/examples/1.7.x/server-deno/examples/account/create.md new file mode 100644 index 00000000000..c410a0f7c7e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/create.md @@ -0,0 +1,14 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.create( + '<USER_ID>', // userId + 'email@example.com', // email + '', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.7.x/server-deno/examples/account/delete-identity.md new file mode 100644 index 00000000000..359c7a3cfa6 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/delete-identity.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.deleteIdentity( + '<IDENTITY_ID>' // identityId +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-deno/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..f4b164b43d8 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,12 @@ +import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.deleteMfaAuthenticator( + AuthenticatorType.Totp // type +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/delete-session.md b/docs/examples/1.7.x/server-deno/examples/account/delete-session.md new file mode 100644 index 00000000000..a0b7d196870 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/delete-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.deleteSession( + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-deno/examples/account/delete-sessions.md new file mode 100644 index 00000000000..864c50535bd --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/delete-sessions.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.deleteSessions(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-deno/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..73fc143978e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.getMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.7.x/server-deno/examples/account/get-prefs.md new file mode 100644 index 00000000000..4479df71f7b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/get-prefs.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.getPrefs(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/get-session.md b/docs/examples/1.7.x/server-deno/examples/account/get-session.md new file mode 100644 index 00000000000..c380b72ed5f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/get-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.getSession( + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/get.md b/docs/examples/1.7.x/server-deno/examples/account/get.md new file mode 100644 index 00000000000..5abdc95ec7c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/get.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.get(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/list-identities.md b/docs/examples/1.7.x/server-deno/examples/account/list-identities.md new file mode 100644 index 00000000000..1c612f97375 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/list-identities.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.listIdentities( + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/list-logs.md b/docs/examples/1.7.x/server-deno/examples/account/list-logs.md new file mode 100644 index 00000000000..28ab351f5a2 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/list-logs.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.listLogs( + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-deno/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..35fb7497dee --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/list-mfa-factors.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.listMfaFactors(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.7.x/server-deno/examples/account/list-sessions.md new file mode 100644 index 00000000000..e34da16995d --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/list-sessions.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.listSessions(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-email.md b/docs/examples/1.7.x/server-deno/examples/account/update-email.md new file mode 100644 index 00000000000..0753cff9fd1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-email.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateEmail( + 'email@example.com', // email + 'password' // password +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-deno/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..24611aa43a6 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-m-f-a.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateMFA( + false // mfa +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-deno/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..a83c1d91a46 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.updateMagicURLSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-deno/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..6b95818e06c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateMfaAuthenticator( + AuthenticatorType.Totp, // type + '<OTP>' // otp +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-deno/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..61a7b44fd0c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-mfa-challenge.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateMfaChallenge( + '<CHALLENGE_ID>', // challengeId + '<OTP>' // otp +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-deno/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..2030e1c5510 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-name.md b/docs/examples/1.7.x/server-deno/examples/account/update-name.md new file mode 100644 index 00000000000..a02591b3b53 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-name.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateName( + '<NAME>' // name +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-password.md b/docs/examples/1.7.x/server-deno/examples/account/update-password.md new file mode 100644 index 00000000000..088bea88acf --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-password.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updatePassword( + '', // password + 'password' // oldPassword (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-deno/examples/account/update-phone-session.md new file mode 100644 index 00000000000..4710a451a8a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-phone-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new Account(client); + +const response = await account.updatePhoneSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-deno/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..3b150c8c4a1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-phone-verification.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updatePhoneVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-phone.md b/docs/examples/1.7.x/server-deno/examples/account/update-phone.md new file mode 100644 index 00000000000..9c1923c2174 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-phone.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updatePhone( + '+12065550100', // phone + 'password' // password +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.7.x/server-deno/examples/account/update-prefs.md new file mode 100644 index 00000000000..4b37a64fe79 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-prefs.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updatePrefs( + {} // prefs +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.7.x/server-deno/examples/account/update-recovery.md new file mode 100644 index 00000000000..5d0d80f9568 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateRecovery( + '<USER_ID>', // userId + '<SECRET>', // secret + '' // password +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-session.md b/docs/examples/1.7.x/server-deno/examples/account/update-session.md new file mode 100644 index 00000000000..cb36b9491e0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-session.md @@ -0,0 +1,12 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateSession( + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-status.md b/docs/examples/1.7.x/server-deno/examples/account/update-status.md new file mode 100644 index 00000000000..0c70c88b515 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-status.md @@ -0,0 +1,10 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateStatus(); diff --git a/docs/examples/1.7.x/server-deno/examples/account/update-verification.md b/docs/examples/1.7.x/server-deno/examples/account/update-verification.md new file mode 100644 index 00000000000..96370858cda --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/account/update-verification.md @@ -0,0 +1,13 @@ +import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new Account(client); + +const response = await account.updateVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-browser.md new file mode 100644 index 00000000000..5443200b398 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-browser.md @@ -0,0 +1,15 @@ +import { Client, Avatars, Browser } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getBrowser( + Browser.AvantBrowser, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..8bcc67e08cd --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-credit-card.md @@ -0,0 +1,15 @@ +import { Client, Avatars, CreditCard } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getCreditCard( + CreditCard.AmericanExpress, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..cca313a9a2b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-favicon.md @@ -0,0 +1,12 @@ +import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getFavicon( + 'https://example.com' // url +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-flag.md new file mode 100644 index 00000000000..6837438c109 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-flag.md @@ -0,0 +1,15 @@ +import { Client, Avatars, Flag } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getFlag( + Flag.Afghanistan, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-image.md new file mode 100644 index 00000000000..2960daba8d1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-image.md @@ -0,0 +1,14 @@ +import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getImage( + 'https://example.com', // url + 0, // width (optional) + 0 // height (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-initials.md new file mode 100644 index 00000000000..10eb2d80b8f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-initials.md @@ -0,0 +1,15 @@ +import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getInitials( + '<NAME>', // name (optional) + 0, // width (optional) + 0, // height (optional) + '' // background (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-deno/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..d9ccc0dbca5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/avatars/get-q-r.md @@ -0,0 +1,15 @@ +import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new Avatars(client); + +const result = avatars.getQR( + '<TEXT>', // text + 1, // size (optional) + 0, // margin (optional) + false // download (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..b216c2ead3a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-boolean-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createBooleanAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.7.x/server-deno/examples/databases/create-collection.md new file mode 100644 index 00000000000..c7e8026758e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-collection.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // documentSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..664da19de27 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-datetime-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createDatetimeAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-document.md b/docs/examples/1.7.x/server-deno/examples/databases/create-document.md new file mode 100644 index 00000000000..f18b4f30dc3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-document.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('<YOUR_API_KEY>') // Your secret API key + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const databases = new Databases(client); + +const response = await databases.createDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-documents.md b/docs/examples/1.7.x/server-deno/examples/databases/create-documents.md new file mode 100644 index 00000000000..f5e320e1934 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-documents.md @@ -0,0 +1,13 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..6c667ed38af --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-email-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createEmailAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..6fdd2773c87 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-enum-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createEnumAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + [], // elements + false, // required + '<DEFAULT>', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..c5991d49f63 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-float-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createFloatAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-index.md b/docs/examples/1.7.x/server-deno/examples/databases/create-index.md new file mode 100644 index 00000000000..3ab3c7a3aad --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-index.md @@ -0,0 +1,18 @@ +import { Client, Databases, IndexType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createIndex( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + IndexType.Key, // type + [], // attributes + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..4a306cd50df --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-integer-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createIntegerAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..c043b252071 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-ip-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createIpAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..d96ee59a4d0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-relationship-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createRelationshipAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<RELATED_COLLECTION_ID>', // relatedCollectionId + RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..5f8e9555411 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-string-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createStringAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + 1, // size + false, // required + '<DEFAULT>', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..4639f75f5ba --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create-url-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createUrlAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/create.md b/docs/examples/1.7.x/server-deno/examples/databases/create.md new file mode 100644 index 00000000000..86795eb7506 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/create.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.create( + '<DATABASE_ID>', // databaseId + '<NAME>', // name + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..f7ad6b105a7 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/delete-attribute.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.deleteAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-deno/examples/databases/delete-collection.md new file mode 100644 index 00000000000..828d48a7bcc --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/delete-collection.md @@ -0,0 +1,13 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.deleteCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>' // collectionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.7.x/server-deno/examples/databases/delete-document.md new file mode 100644 index 00000000000..47d5df49f15 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/delete-document.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new Databases(client); + +const response = await databases.deleteDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>' // documentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-deno/examples/databases/delete-documents.md new file mode 100644 index 00000000000..4768ed426bd --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.deleteDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.7.x/server-deno/examples/databases/delete-index.md new file mode 100644 index 00000000000..eee1613a870 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/delete-index.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.deleteIndex( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/delete.md b/docs/examples/1.7.x/server-deno/examples/databases/delete.md new file mode 100644 index 00000000000..39b3f5395e5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/delete.md @@ -0,0 +1,12 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.delete( + '<DATABASE_ID>' // databaseId +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/get-attribute.md new file mode 100644 index 00000000000..f2b801b5f1c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/get-attribute.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.getAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.7.x/server-deno/examples/databases/get-collection.md new file mode 100644 index 00000000000..b94f4fd5ffb --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/get-collection.md @@ -0,0 +1,13 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.getCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>' // collectionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/get-document.md b/docs/examples/1.7.x/server-deno/examples/databases/get-document.md new file mode 100644 index 00000000000..5cb02c4de3c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/get-document.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new Databases(client); + +const response = await databases.getDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/get-index.md b/docs/examples/1.7.x/server-deno/examples/databases/get-index.md new file mode 100644 index 00000000000..6c3a3dec1ad --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/get-index.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.getIndex( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/get.md b/docs/examples/1.7.x/server-deno/examples/databases/get.md new file mode 100644 index 00000000000..403e467e048 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/get.md @@ -0,0 +1,12 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.get( + '<DATABASE_ID>' // databaseId +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-deno/examples/databases/list-attributes.md new file mode 100644 index 00000000000..2171ffe4ada --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/list-attributes.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.listAttributes( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.7.x/server-deno/examples/databases/list-collections.md new file mode 100644 index 00000000000..408ea2d601e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/list-collections.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.listCollections( + '<DATABASE_ID>', // databaseId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.7.x/server-deno/examples/databases/list-documents.md new file mode 100644 index 00000000000..528e9795174 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/list-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new Databases(client); + +const response = await databases.listDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-deno/examples/databases/list-indexes.md new file mode 100644 index 00000000000..88af3b7f28b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/list-indexes.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.listIndexes( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/list.md b/docs/examples/1.7.x/server-deno/examples/databases/list.md new file mode 100644 index 00000000000..dcae151617b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/list.md @@ -0,0 +1,13 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..fe1b80073a3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-boolean-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateBooleanAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.7.x/server-deno/examples/databases/update-collection.md new file mode 100644 index 00000000000..47f1c027837 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-collection.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // documentSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..ad18d938658 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-datetime-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateDatetimeAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-document.md b/docs/examples/1.7.x/server-deno/examples/databases/update-document.md new file mode 100644 index 00000000000..31cce5ed1c5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-document.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new Databases(client); + +const response = await databases.updateDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-documents.md b/docs/examples/1.7.x/server-deno/examples/databases/update-documents.md new file mode 100644 index 00000000000..1eef7794fb6 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..116fadc6c76 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-email-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateEmailAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..663e44b530a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-enum-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateEnumAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + [], // elements + false, // required + '<DEFAULT>', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..d9eab5aac55 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-float-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateFloatAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..369b49d574b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-integer-attribute.md @@ -0,0 +1,19 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateIntegerAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..049a5279937 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-ip-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateIpAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..7fae26b535a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-relationship-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateRelationshipAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..ec91d3367e5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-string-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateStringAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-deno/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..32f44b7eaf6 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update-url-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateUrlAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/update.md b/docs/examples/1.7.x/server-deno/examples/databases/update.md new file mode 100644 index 00000000000..b87ad82ec0a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/update.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.update( + '<DATABASE_ID>', // databaseId + '<NAME>', // name + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-deno/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..c0ee477875a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.upsertDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/create-deployment.md new file mode 100644 index 00000000000..a134a382fa5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create-deployment.md @@ -0,0 +1,16 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.createDeployment( + '<FUNCTION_ID>', // functionId + InputFile.fromPath('/path/to/file.png', 'file.png'), // code + false, // activate + '<ENTRYPOINT>', // entrypoint (optional) + '<COMMANDS>' // commands (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..e22d1da72a7 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.createDuplicateDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>', // deploymentId + '<BUILD_ID>' // buildId (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.7.x/server-deno/examples/functions/create-execution.md new file mode 100644 index 00000000000..bec6a17db24 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create-execution.md @@ -0,0 +1,18 @@ +import { Client, Functions, ExecutionMethod } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const functions = new Functions(client); + +const response = await functions.createExecution( + '<FUNCTION_ID>', // functionId + '<BODY>', // body (optional) + false, // async (optional) + '<PATH>', // path (optional) + ExecutionMethod.GET, // method (optional) + {}, // headers (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..69503da6a91 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create-template-deployment.md @@ -0,0 +1,17 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.createTemplateDeployment( + '<FUNCTION_ID>', // functionId + '<REPOSITORY>', // repository + '<OWNER>', // owner + '<ROOT_DIRECTORY>', // rootDirectory + '<VERSION>', // version + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.7.x/server-deno/examples/functions/create-variable.md new file mode 100644 index 00000000000..28648901eee --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create-variable.md @@ -0,0 +1,15 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.createVariable( + '<FUNCTION_ID>', // functionId + '<KEY>', // key + '<VALUE>', // value + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..d501b0ee265 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create-vcs-deployment.md @@ -0,0 +1,15 @@ +import { Client, Functions, VCSDeploymentType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.createVcsDeployment( + '<FUNCTION_ID>', // functionId + VCSDeploymentType.Branch, // type + '<REFERENCE>', // reference + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/create.md b/docs/examples/1.7.x/server-deno/examples/functions/create.md new file mode 100644 index 00000000000..32265deb0b5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/create.md @@ -0,0 +1,29 @@ +import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.create( + '<FUNCTION_ID>', // functionId + '<NAME>', // name + .Node145, // runtime + ["any"], // execute (optional) + [], // events (optional) + '', // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + '<ENTRYPOINT>', // entrypoint (optional) + '<COMMANDS>', // commands (optional) + [], // scopes (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..179bbaf3034 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/delete-deployment.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.deleteDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-deno/examples/functions/delete-execution.md new file mode 100644 index 00000000000..4ab7c377852 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-deno/examples/functions/delete-variable.md new file mode 100644 index 00000000000..39a9428ed37 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/delete-variable.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.deleteVariable( + '<FUNCTION_ID>', // functionId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/delete.md b/docs/examples/1.7.x/server-deno/examples/functions/delete.md new file mode 100644 index 00000000000..94d58c33dd8 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/delete.md @@ -0,0 +1,12 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.delete( + '<FUNCTION_ID>' // functionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-deno/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..d153036c9ad --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/get-deployment-download.md @@ -0,0 +1,14 @@ +import { Client, Functions, DeploymentDownloadType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const result = functions.getDeploymentDownload( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>', // deploymentId + DeploymentDownloadType.Source // type (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/get-deployment.md new file mode 100644 index 00000000000..339b99d4f19 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/get-deployment.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.getDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.7.x/server-deno/examples/functions/get-execution.md new file mode 100644 index 00000000000..adeff0256aa --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/get-execution.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const functions = new Functions(client); + +const response = await functions.getExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.7.x/server-deno/examples/functions/get-variable.md new file mode 100644 index 00000000000..cbbdd2f8475 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/get-variable.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.getVariable( + '<FUNCTION_ID>', // functionId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/get.md b/docs/examples/1.7.x/server-deno/examples/functions/get.md new file mode 100644 index 00000000000..8fec17ed15a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/get.md @@ -0,0 +1,12 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.get( + '<FUNCTION_ID>' // functionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-deno/examples/functions/list-deployments.md new file mode 100644 index 00000000000..849fe232b89 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/list-deployments.md @@ -0,0 +1,14 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.listDeployments( + '<FUNCTION_ID>', // functionId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.7.x/server-deno/examples/functions/list-executions.md new file mode 100644 index 00000000000..cd597fb7a5a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/list-executions.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const functions = new Functions(client); + +const response = await functions.listExecutions( + '<FUNCTION_ID>', // functionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-deno/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..a45afe4aa7b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/list-runtimes.md @@ -0,0 +1,10 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.listRuntimes(); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-deno/examples/functions/list-specifications.md new file mode 100644 index 00000000000..3bf0d08e7ca --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/list-specifications.md @@ -0,0 +1,10 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.listSpecifications(); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.7.x/server-deno/examples/functions/list-variables.md new file mode 100644 index 00000000000..173d5aa9ef3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/list-variables.md @@ -0,0 +1,12 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.listVariables( + '<FUNCTION_ID>' // functionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/list.md b/docs/examples/1.7.x/server-deno/examples/functions/list.md new file mode 100644 index 00000000000..ecc43d1a7c0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/list.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-deno/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..4c7e8052c13 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/update-deployment-status.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.updateDeploymentStatus( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-deno/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..55196c148dc --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/update-function-deployment.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.updateFunctionDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.7.x/server-deno/examples/functions/update-variable.md new file mode 100644 index 00000000000..3da706d5f4b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/update-variable.md @@ -0,0 +1,16 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.updateVariable( + '<FUNCTION_ID>', // functionId + '<VARIABLE_ID>', // variableId + '<KEY>', // key + '<VALUE>', // value (optional) + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/functions/update.md b/docs/examples/1.7.x/server-deno/examples/functions/update.md new file mode 100644 index 00000000000..399af058417 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/functions/update.md @@ -0,0 +1,29 @@ +import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.update( + '<FUNCTION_ID>', // functionId + '<NAME>', // name + .Node145, // runtime (optional) + ["any"], // execute (optional) + [], // events (optional) + '', // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + '<ENTRYPOINT>', // entrypoint (optional) + '<COMMANDS>', // commands (optional) + [], // scopes (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.7.x/server-deno/examples/graphql/mutation.md new file mode 100644 index 00000000000..200120f1e85 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/graphql/mutation.md @@ -0,0 +1,12 @@ +import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const graphql = new Graphql(client); + +const response = await graphql.mutation( + {} // query +); diff --git a/docs/examples/1.7.x/server-deno/examples/graphql/query.md b/docs/examples/1.7.x/server-deno/examples/graphql/query.md new file mode 100644 index 00000000000..bb0116278cf --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/graphql/query.md @@ -0,0 +1,12 @@ +import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const graphql = new Graphql(client); + +const response = await graphql.query( + {} // query +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-deno/examples/health/get-antivirus.md new file mode 100644 index 00000000000..d8dcc1fe3a5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-antivirus.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getAntivirus(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-cache.md b/docs/examples/1.7.x/server-deno/examples/health/get-cache.md new file mode 100644 index 00000000000..e138b50b264 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-cache.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getCache(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-certificate.md b/docs/examples/1.7.x/server-deno/examples/health/get-certificate.md new file mode 100644 index 00000000000..828e53dd7bb --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-certificate.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getCertificate( + '' // domain (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.7.x/server-deno/examples/health/get-d-b.md new file mode 100644 index 00000000000..bded9eb81be --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-d-b.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getDB(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-deno/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..5e40f762e44 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-failed-jobs.md @@ -0,0 +1,13 @@ +import { Client, Health, } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getFailedJobs( + .V1Database, // name + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-deno/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..ecc05a3e21b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-pub-sub.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getPubSub(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..f6b9388bb36 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-builds.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueBuilds( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..e783fa52b3a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-certificates.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueCertificates( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..e33c7a29293 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-databases.md @@ -0,0 +1,13 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueDatabases( + '<NAME>', // name (optional) + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..ea7da5b587e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-deletes.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueDeletes( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..e075a65602f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-functions.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueFunctions( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..eb7ffb028a0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-logs.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueLogs( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..d9f61bc088d --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-mails.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueMails( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..8bc76398d9f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-messaging.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueMessaging( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..e6f7bf543c3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-migrations.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueMigrations( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ecc7ebd322e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..46aa4db5be2 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-usage.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueUsage( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-deno/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..75a1c1f8336 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-queue-webhooks.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueWebhooks( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-deno/examples/health/get-storage-local.md new file mode 100644 index 00000000000..0e64e1a6dd2 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-storage-local.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getStorageLocal(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-storage.md b/docs/examples/1.7.x/server-deno/examples/health/get-storage.md new file mode 100644 index 00000000000..698e33b9998 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-storage.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getStorage(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get-time.md b/docs/examples/1.7.x/server-deno/examples/health/get-time.md new file mode 100644 index 00000000000..1bb1ae0e560 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get-time.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getTime(); diff --git a/docs/examples/1.7.x/server-deno/examples/health/get.md b/docs/examples/1.7.x/server-deno/examples/health/get.md new file mode 100644 index 00000000000..87d7ea53969 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/health/get.md @@ -0,0 +1,10 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.get(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/get.md b/docs/examples/1.7.x/server-deno/examples/locale/get.md new file mode 100644 index 00000000000..960ee6f4f3f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/get.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.get(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.7.x/server-deno/examples/locale/list-codes.md new file mode 100644 index 00000000000..8f91c212dfd --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-codes.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listCodes(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.7.x/server-deno/examples/locale/list-continents.md new file mode 100644 index 00000000000..55b208c7418 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-continents.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listContinents(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-deno/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..b4fbfa0e370 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-countries-e-u.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listCountriesEU(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-deno/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..19ac0a06cfe --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-countries-phones.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listCountriesPhones(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.7.x/server-deno/examples/locale/list-countries.md new file mode 100644 index 00000000000..67ba0fedd7e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-countries.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listCountries(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-deno/examples/locale/list-currencies.md new file mode 100644 index 00000000000..986f09d237a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-currencies.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listCurrencies(); diff --git a/docs/examples/1.7.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.7.x/server-deno/examples/locale/list-languages.md new file mode 100644 index 00000000000..91b4a857b92 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/locale/list-languages.md @@ -0,0 +1,10 @@ +import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new Locale(client); + +const response = await locale.listLanguages(); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..e2c33feff8a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-apns-provider.md @@ -0,0 +1,19 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createApnsProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<AUTH_KEY>', // authKey (optional) + '<AUTH_KEY_ID>', // authKeyId (optional) + '<TEAM_ID>', // teamId (optional) + '<BUNDLE_ID>', // bundleId (optional) + false, // sandbox (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-email.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-email.md new file mode 100644 index 00000000000..8db2879f9c2 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-email.md @@ -0,0 +1,23 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createEmail( + '<MESSAGE_ID>', // messageId + '<SUBJECT>', // subject + '<CONTENT>', // content + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + [], // cc (optional) + [], // bcc (optional) + [], // attachments (optional) + false, // draft (optional) + false, // html (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..3f443d6bf5f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-fcm-provider.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createFcmProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + {}, // serviceAccountJSON (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..32f7c94f211 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,21 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createMailgunProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<API_KEY>', // apiKey (optional) + '<DOMAIN>', // domain (optional) + false, // isEuRegion (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..57e94188b96 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-msg91provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createMsg91Provider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<TEMPLATE_ID>', // templateId (optional) + '<SENDER_ID>', // senderId (optional) + '<AUTH_KEY>', // authKey (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-push.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-push.md new file mode 100644 index 00000000000..7523c2978f8 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-push.md @@ -0,0 +1,30 @@ +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createPush( + '<MESSAGE_ID>', // messageId + '<TITLE>', // title (optional) + '<BODY>', // body (optional) + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + {}, // data (optional) + '<ACTION>', // action (optional) + '[ID1:ID2]', // image (optional) + '<ICON>', // icon (optional) + '<SOUND>', // sound (optional) + '<COLOR>', // color (optional) + '<TAG>', // tag (optional) + null, // badge (optional) + false, // draft (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..15fe7b8c7b0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,19 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createSendgridProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<API_KEY>', // apiKey (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-sms.md new file mode 100644 index 00000000000..264203a8be5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-sms.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createSms( + '<MESSAGE_ID>', // messageId + '<CONTENT>', // content + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + false, // draft (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..2d6d33c62a9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-smtp-provider.md @@ -0,0 +1,25 @@ +import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createSmtpProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<HOST>', // host + 1, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + SmtpEncryption.None, // encryption (optional) + false, // autoTLS (optional) + '<MAILER>', // mailer (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..8be79f3f9ee --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-subscriber.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const messaging = new Messaging(client); + +const response = await messaging.createSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>', // subscriberId + '<TARGET_ID>' // targetId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..2bb95c4e2d7 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-telesign-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createTelesignProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<CUSTOMER_ID>', // customerId (optional) + '<API_KEY>', // apiKey (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..46574936646 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createTextmagicProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<USERNAME>', // username (optional) + '<API_KEY>', // apiKey (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-topic.md new file mode 100644 index 00000000000..c2ca3a4ed21 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-topic.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createTopic( + '<TOPIC_ID>', // topicId + '<NAME>', // name + ["any"] // subscribe (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..aa7bbf6a186 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-twilio-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createTwilioProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<ACCOUNT_SID>', // accountSid (optional) + '<AUTH_TOKEN>', // authToken (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..5fe734fb0c9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/create-vonage-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.createVonageProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<API_KEY>', // apiKey (optional) + '<API_SECRET>', // apiSecret (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..7bc99ef3b52 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/delete-provider.md @@ -0,0 +1,12 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.deleteProvider( + '<PROVIDER_ID>' // providerId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-deno/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..147456887da --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/delete-subscriber.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const messaging = new Messaging(client); + +const response = await messaging.deleteSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-deno/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..aa1359cf281 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/delete-topic.md @@ -0,0 +1,12 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.deleteTopic( + '<TOPIC_ID>' // topicId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/delete.md b/docs/examples/1.7.x/server-deno/examples/messaging/delete.md new file mode 100644 index 00000000000..0442da1e8b0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/delete.md @@ -0,0 +1,12 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.delete( + '<MESSAGE_ID>' // messageId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/get-message.md b/docs/examples/1.7.x/server-deno/examples/messaging/get-message.md new file mode 100644 index 00000000000..9565a611aed --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/get-message.md @@ -0,0 +1,12 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.getMessage( + '<MESSAGE_ID>' // messageId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/get-provider.md new file mode 100644 index 00000000000..8e5d4264186 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/get-provider.md @@ -0,0 +1,12 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.getProvider( + '<PROVIDER_ID>' // providerId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-deno/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..e9377a532fa --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/get-subscriber.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.getSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-deno/examples/messaging/get-topic.md new file mode 100644 index 00000000000..35f1853adaf --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/get-topic.md @@ -0,0 +1,12 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.getTopic( + '<TOPIC_ID>' // topicId +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..f39a90037a9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-message-logs.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listMessageLogs( + '<MESSAGE_ID>', // messageId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-messages.md new file mode 100644 index 00000000000..50b1a10f4b5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-messages.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listMessages( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..c4b20a83069 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-provider-logs.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listProviderLogs( + '<PROVIDER_ID>', // providerId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-providers.md new file mode 100644 index 00000000000..7c877c25ded --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-providers.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listProviders( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..0d14f857771 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listSubscriberLogs( + '<SUBSCRIBER_ID>', // subscriberId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..384bb8fe4f3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-subscribers.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listSubscribers( + '<TOPIC_ID>', // topicId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-targets.md new file mode 100644 index 00000000000..5ce20822362 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-targets.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listTargets( + '<MESSAGE_ID>', // messageId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..d2c771d480e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-topic-logs.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listTopicLogs( + '<TOPIC_ID>', // topicId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-deno/examples/messaging/list-topics.md new file mode 100644 index 00000000000..1d0ec43066a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/list-topics.md @@ -0,0 +1,13 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.listTopics( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..71bd038edb4 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-apns-provider.md @@ -0,0 +1,19 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateApnsProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<AUTH_KEY>', // authKey (optional) + '<AUTH_KEY_ID>', // authKeyId (optional) + '<TEAM_ID>', // teamId (optional) + '<BUNDLE_ID>', // bundleId (optional) + false // sandbox (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-email.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-email.md new file mode 100644 index 00000000000..c8b05582503 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-email.md @@ -0,0 +1,23 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateEmail( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<SUBJECT>', // subject (optional) + '<CONTENT>', // content (optional) + false, // draft (optional) + false, // html (optional) + [], // cc (optional) + [], // bcc (optional) + '', // scheduledAt (optional) + [] // attachments (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..eb71dddd1a5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-fcm-provider.md @@ -0,0 +1,15 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateFcmProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + {} // serviceAccountJSON (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..f80d6a4b1d4 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,21 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateMailgunProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + '<API_KEY>', // apiKey (optional) + '<DOMAIN>', // domain (optional) + false, // isEuRegion (optional) + false, // enabled (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>' // replyToEmail (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..36943f2fa0a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-msg91provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateMsg91Provider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<TEMPLATE_ID>', // templateId (optional) + '<SENDER_ID>', // senderId (optional) + '<AUTH_KEY>' // authKey (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-push.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-push.md new file mode 100644 index 00000000000..c7f068604b4 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-push.md @@ -0,0 +1,30 @@ +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updatePush( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<TITLE>', // title (optional) + '<BODY>', // body (optional) + {}, // data (optional) + '<ACTION>', // action (optional) + '[ID1:ID2]', // image (optional) + '<ICON>', // icon (optional) + '<SOUND>', // sound (optional) + '<COLOR>', // color (optional) + '<TAG>', // tag (optional) + null, // badge (optional) + false, // draft (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..0ec96db2f80 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,19 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateSendgridProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<API_KEY>', // apiKey (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>' // replyToEmail (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-sms.md new file mode 100644 index 00000000000..9c1dc4a5dc2 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-sms.md @@ -0,0 +1,18 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateSms( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<CONTENT>', // content (optional) + false, // draft (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..9d59bb36462 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-smtp-provider.md @@ -0,0 +1,25 @@ +import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateSmtpProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + '<HOST>', // host (optional) + 1, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + SmtpEncryption.None, // encryption (optional) + false, // autoTLS (optional) + '<MAILER>', // mailer (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..052d394f053 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-telesign-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateTelesignProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<CUSTOMER_ID>', // customerId (optional) + '<API_KEY>', // apiKey (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..2163792f83b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateTextmagicProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<USERNAME>', // username (optional) + '<API_KEY>', // apiKey (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-topic.md new file mode 100644 index 00000000000..5f7f77901b1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-topic.md @@ -0,0 +1,14 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateTopic( + '<TOPIC_ID>', // topicId + '<NAME>', // name (optional) + ["any"] // subscribe (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..5abdd65a9cd --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-twilio-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateTwilioProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<ACCOUNT_SID>', // accountSid (optional) + '<AUTH_TOKEN>', // authToken (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-deno/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..c8fa90d9ab1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/messaging/update-vonage-provider.md @@ -0,0 +1,17 @@ +import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new Messaging(client); + +const response = await messaging.updateVonageProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<API_KEY>', // apiKey (optional) + '<API_SECRET>', // apiSecret (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/create-deployment.md new file mode 100644 index 00000000000..f674553a10e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/create-deployment.md @@ -0,0 +1,17 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.createDeployment( + '<SITE_ID>', // siteId + InputFile.fromPath('/path/to/file.png', 'file.png'), // code + false, // activate + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>' // outputDirectory (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..317e80b3125 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.createDuplicateDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..4ef245bd168 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/create-template-deployment.md @@ -0,0 +1,17 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.createTemplateDeployment( + '<SITE_ID>', // siteId + '<REPOSITORY>', // repository + '<OWNER>', // owner + '<ROOT_DIRECTORY>', // rootDirectory + '<VERSION>', // version + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/create-variable.md b/docs/examples/1.7.x/server-deno/examples/sites/create-variable.md new file mode 100644 index 00000000000..7b07a088cee --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/create-variable.md @@ -0,0 +1,15 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.createVariable( + '<SITE_ID>', // siteId + '<KEY>', // key + '<VALUE>', // value + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..5c49808811a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/create-vcs-deployment.md @@ -0,0 +1,15 @@ +import { Client, Sites, VCSDeploymentType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.createVcsDeployment( + '<SITE_ID>', // siteId + VCSDeploymentType.Branch, // type + '<REFERENCE>', // reference + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/create.md b/docs/examples/1.7.x/server-deno/examples/sites/create.md new file mode 100644 index 00000000000..420b36290bb --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/create.md @@ -0,0 +1,29 @@ +import { Client, Sites, , , } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.create( + '<SITE_ID>', // siteId + '<NAME>', // name + .Analog, // framework + .Node145, // buildRuntime + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>', // outputDirectory (optional) + .Static, // adapter (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<FALLBACK_FILE>', // fallbackFile (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..cd97673387c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/delete-deployment.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.deleteDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/delete-log.md b/docs/examples/1.7.x/server-deno/examples/sites/delete-log.md new file mode 100644 index 00000000000..0b70eb30b6e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/delete-log.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.deleteLog( + '<SITE_ID>', // siteId + '<LOG_ID>' // logId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-deno/examples/sites/delete-variable.md new file mode 100644 index 00000000000..0bbc2e33dcc --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/delete-variable.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.deleteVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/delete.md b/docs/examples/1.7.x/server-deno/examples/sites/delete.md new file mode 100644 index 00000000000..af5dbed3f28 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/delete.md @@ -0,0 +1,12 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.delete( + '<SITE_ID>' // siteId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-deno/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..4c3ceca8ae9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/get-deployment-download.md @@ -0,0 +1,14 @@ +import { Client, Sites, DeploymentDownloadType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const result = sites.getDeploymentDownload( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>', // deploymentId + DeploymentDownloadType.Source // type (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/get-deployment.md new file mode 100644 index 00000000000..4e614b0de95 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/get-deployment.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.getDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/get-log.md b/docs/examples/1.7.x/server-deno/examples/sites/get-log.md new file mode 100644 index 00000000000..9495030fa32 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/get-log.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.getLog( + '<SITE_ID>', // siteId + '<LOG_ID>' // logId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/get-variable.md b/docs/examples/1.7.x/server-deno/examples/sites/get-variable.md new file mode 100644 index 00000000000..12ab5530268 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/get-variable.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.getVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/get.md b/docs/examples/1.7.x/server-deno/examples/sites/get.md new file mode 100644 index 00000000000..769f426d1e5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/get.md @@ -0,0 +1,12 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.get( + '<SITE_ID>' // siteId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-deno/examples/sites/list-deployments.md new file mode 100644 index 00000000000..09cc52194fb --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/list-deployments.md @@ -0,0 +1,14 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.listDeployments( + '<SITE_ID>', // siteId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-deno/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..56239604632 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/list-frameworks.md @@ -0,0 +1,10 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.listFrameworks(); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/list-logs.md b/docs/examples/1.7.x/server-deno/examples/sites/list-logs.md new file mode 100644 index 00000000000..3249903c077 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/list-logs.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.listLogs( + '<SITE_ID>', // siteId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-deno/examples/sites/list-specifications.md new file mode 100644 index 00000000000..a1b0b334ed8 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/list-specifications.md @@ -0,0 +1,10 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.listSpecifications(); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/list-variables.md b/docs/examples/1.7.x/server-deno/examples/sites/list-variables.md new file mode 100644 index 00000000000..0aac3198163 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/list-variables.md @@ -0,0 +1,12 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.listVariables( + '<SITE_ID>' // siteId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/list.md b/docs/examples/1.7.x/server-deno/examples/sites/list.md new file mode 100644 index 00000000000..f21433d7942 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/list.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-deno/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..83fe6f85a00 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/update-deployment-status.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.updateDeploymentStatus( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-deno/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..1d9d697d399 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/update-site-deployment.md @@ -0,0 +1,13 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.updateSiteDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/update-variable.md b/docs/examples/1.7.x/server-deno/examples/sites/update-variable.md new file mode 100644 index 00000000000..6776af7a651 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/update-variable.md @@ -0,0 +1,16 @@ +import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.updateVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>', // variableId + '<KEY>', // key + '<VALUE>', // value (optional) + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/sites/update.md b/docs/examples/1.7.x/server-deno/examples/sites/update.md new file mode 100644 index 00000000000..ba7d195cd3f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/sites/update.md @@ -0,0 +1,29 @@ +import { Client, Sites, , , } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new Sites(client); + +const response = await sites.update( + '<SITE_ID>', // siteId + '<NAME>', // name + .Analog, // framework + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>', // outputDirectory (optional) + .Node145, // buildRuntime (optional) + .Static, // adapter (optional) + '<FALLBACK_FILE>', // fallbackFile (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-deno/examples/storage/create-bucket.md new file mode 100644 index 00000000000..e7d3e9006a0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/create-bucket.md @@ -0,0 +1,21 @@ +import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new Storage(client); + +const response = await storage.createBucket( + '<BUCKET_ID>', // bucketId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + [], // allowedFileExtensions (optional) + .None, // compression (optional) + false, // encryption (optional) + false // antivirus (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/create-file.md b/docs/examples/1.7.x/server-deno/examples/storage/create-file.md new file mode 100644 index 00000000000..d8912c6c1e3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/create-file.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const response = await storage.createFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + InputFile.fromPath('/path/to/file.png', 'file.png'), // file + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-deno/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..f0d71467d46 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/delete-bucket.md @@ -0,0 +1,12 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new Storage(client); + +const response = await storage.deleteBucket( + '<BUCKET_ID>' // bucketId +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.7.x/server-deno/examples/storage/delete-file.md new file mode 100644 index 00000000000..2a1f95ed183 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/delete-file.md @@ -0,0 +1,13 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const response = await storage.deleteFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-deno/examples/storage/get-bucket.md new file mode 100644 index 00000000000..a695021b72e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/get-bucket.md @@ -0,0 +1,12 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new Storage(client); + +const response = await storage.getBucket( + '<BUCKET_ID>' // bucketId +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-deno/examples/storage/get-file-download.md new file mode 100644 index 00000000000..df11f40b803 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/get-file-download.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const result = storage.getFileDownload( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-deno/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..6457c7831ba --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/get-file-preview.md @@ -0,0 +1,25 @@ +import { Client, Storage, ImageGravity, ImageFormat } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const result = storage.getFilePreview( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + 0, // width (optional) + 0, // height (optional) + ImageGravity.Center, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + '', // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + '', // background (optional) + ImageFormat.Jpg, // output (optional) + '<TOKEN>' // token (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-deno/examples/storage/get-file-view.md new file mode 100644 index 00000000000..5a1dbac86a2 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/get-file-view.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const result = storage.getFileView( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/get-file.md b/docs/examples/1.7.x/server-deno/examples/storage/get-file.md new file mode 100644 index 00000000000..5479dc569d5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/get-file.md @@ -0,0 +1,13 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const response = await storage.getFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-deno/examples/storage/list-buckets.md new file mode 100644 index 00000000000..9286bd488cc --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/list-buckets.md @@ -0,0 +1,13 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new Storage(client); + +const response = await storage.listBuckets( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/list-files.md b/docs/examples/1.7.x/server-deno/examples/storage/list-files.md new file mode 100644 index 00000000000..316875cf51b --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/list-files.md @@ -0,0 +1,14 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const response = await storage.listFiles( + '<BUCKET_ID>', // bucketId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-deno/examples/storage/update-bucket.md new file mode 100644 index 00000000000..1e70f16ef3d --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/update-bucket.md @@ -0,0 +1,21 @@ +import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new Storage(client); + +const response = await storage.updateBucket( + '<BUCKET_ID>', // bucketId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + [], // allowedFileExtensions (optional) + .None, // compression (optional) + false, // encryption (optional) + false // antivirus (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/storage/update-file.md b/docs/examples/1.7.x/server-deno/examples/storage/update-file.md new file mode 100644 index 00000000000..683b0b73043 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/storage/update-file.md @@ -0,0 +1,15 @@ +import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new Storage(client); + +const response = await storage.updateFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<NAME>', // name (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.7.x/server-deno/examples/teams/create-membership.md new file mode 100644 index 00000000000..d8e855f8520 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/create-membership.md @@ -0,0 +1,18 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.createMembership( + '<TEAM_ID>', // teamId + [], // roles + 'email@example.com', // email (optional) + '<USER_ID>', // userId (optional) + '+12065550100', // phone (optional) + 'https://example.com', // url (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/create.md b/docs/examples/1.7.x/server-deno/examples/teams/create.md new file mode 100644 index 00000000000..495f26e006e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/create.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.create( + '<TEAM_ID>', // teamId + '<NAME>', // name + [] // roles (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-deno/examples/teams/delete-membership.md new file mode 100644 index 00000000000..a5b03875d5a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/delete-membership.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.deleteMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/delete.md b/docs/examples/1.7.x/server-deno/examples/teams/delete.md new file mode 100644 index 00000000000..556fbb5ea5c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/delete.md @@ -0,0 +1,12 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.delete( + '<TEAM_ID>' // teamId +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.7.x/server-deno/examples/teams/get-membership.md new file mode 100644 index 00000000000..75283bffc76 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/get-membership.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.getMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-deno/examples/teams/get-prefs.md new file mode 100644 index 00000000000..442d8b139a0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/get-prefs.md @@ -0,0 +1,12 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.getPrefs( + '<TEAM_ID>' // teamId +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/get.md b/docs/examples/1.7.x/server-deno/examples/teams/get.md new file mode 100644 index 00000000000..2e5803ca7b1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/get.md @@ -0,0 +1,12 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.get( + '<TEAM_ID>' // teamId +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-deno/examples/teams/list-memberships.md new file mode 100644 index 00000000000..0b7e6638e6f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/list-memberships.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.listMemberships( + '<TEAM_ID>', // teamId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/list.md b/docs/examples/1.7.x/server-deno/examples/teams/list.md new file mode 100644 index 00000000000..6c08b5c80ac --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/list.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-deno/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..48fc9cd8be5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/update-membership-status.md @@ -0,0 +1,15 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.updateMembershipStatus( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.7.x/server-deno/examples/teams/update-membership.md new file mode 100644 index 00000000000..be8651d724a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/update-membership.md @@ -0,0 +1,14 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.updateMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + [] // roles +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/update-name.md b/docs/examples/1.7.x/server-deno/examples/teams/update-name.md new file mode 100644 index 00000000000..6e2144b897e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/update-name.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.updateName( + '<TEAM_ID>', // teamId + '<NAME>' // name +); diff --git a/docs/examples/1.7.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-deno/examples/teams/update-prefs.md new file mode 100644 index 00000000000..dea8a368c4f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/teams/update-prefs.md @@ -0,0 +1,13 @@ +import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new Teams(client); + +const response = await teams.updatePrefs( + '<TEAM_ID>', // teamId + {} // prefs +); diff --git a/docs/examples/1.7.x/server-deno/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-deno/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..7c24738cb55 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/tokens/create-file-token.md @@ -0,0 +1,14 @@ +import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new Tokens(client); + +const response = await tokens.createFileToken( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '' // expire (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/tokens/delete.md b/docs/examples/1.7.x/server-deno/examples/tokens/delete.md new file mode 100644 index 00000000000..b5e3adfa35c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/tokens/delete.md @@ -0,0 +1,12 @@ +import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new Tokens(client); + +const response = await tokens.delete( + '<TOKEN_ID>' // tokenId +); diff --git a/docs/examples/1.7.x/server-deno/examples/tokens/get.md b/docs/examples/1.7.x/server-deno/examples/tokens/get.md new file mode 100644 index 00000000000..2bb827d8707 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/tokens/get.md @@ -0,0 +1,12 @@ +import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new Tokens(client); + +const response = await tokens.get( + '<TOKEN_ID>' // tokenId +); diff --git a/docs/examples/1.7.x/server-deno/examples/tokens/list.md b/docs/examples/1.7.x/server-deno/examples/tokens/list.md new file mode 100644 index 00000000000..7208a535530 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/tokens/list.md @@ -0,0 +1,14 @@ +import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new Tokens(client); + +const response = await tokens.list( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/tokens/update.md b/docs/examples/1.7.x/server-deno/examples/tokens/update.md new file mode 100644 index 00000000000..4464a0ccf84 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/tokens/update.md @@ -0,0 +1,13 @@ +import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new Tokens(client); + +const response = await tokens.update( + '<TOKEN_ID>', // tokenId + '' // expire (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-deno/examples/users/create-argon2user.md new file mode 100644 index 00000000000..7a6e0fb1440 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-argon2user.md @@ -0,0 +1,15 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createArgon2User( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-deno/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..ddfb7f3b129 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-bcrypt-user.md @@ -0,0 +1,15 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createBcryptUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-deno/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..4c433aebdd7 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-deno/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..8cc63cedbde --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-m-d5user.md @@ -0,0 +1,15 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createMD5User( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-deno/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..98ba71a845a --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createMfaRecoveryCodes( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-deno/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..750b2990746 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-p-h-pass-user.md @@ -0,0 +1,15 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createPHPassUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-deno/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..e243a1d6ee4 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-s-h-a-user.md @@ -0,0 +1,16 @@ +import { Client, Users, PasswordHash } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createSHAUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + PasswordHash.Sha1, // passwordVersion (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-deno/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..0d6a65b8b49 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,18 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createScryptModifiedUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<PASSWORD_SALT>', // passwordSalt + '<PASSWORD_SALT_SEPARATOR>', // passwordSaltSeparator + '<PASSWORD_SIGNER_KEY>', // passwordSignerKey + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-deno/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..87f2dbb09e1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-scrypt-user.md @@ -0,0 +1,20 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createScryptUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<PASSWORD_SALT>', // passwordSalt + null, // passwordCpu + null, // passwordMemory + null, // passwordParallel + null, // passwordLength + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-session.md b/docs/examples/1.7.x/server-deno/examples/users/create-session.md new file mode 100644 index 00000000000..37d6948942f --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-session.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createSession( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-target.md b/docs/examples/1.7.x/server-deno/examples/users/create-target.md new file mode 100644 index 00000000000..a36072a5de8 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-target.md @@ -0,0 +1,17 @@ +import { Client, Users, MessagingProviderType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createTarget( + '<USER_ID>', // userId + '<TARGET_ID>', // targetId + MessagingProviderType.Email, // providerType + '<IDENTIFIER>', // identifier + '<PROVIDER_ID>', // providerId (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create-token.md b/docs/examples/1.7.x/server-deno/examples/users/create-token.md new file mode 100644 index 00000000000..91885e15f37 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create-token.md @@ -0,0 +1,14 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createToken( + '<USER_ID>', // userId + 4, // length (optional) + 60 // expire (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/create.md b/docs/examples/1.7.x/server-deno/examples/users/create.md new file mode 100644 index 00000000000..e0eb5856d13 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/create.md @@ -0,0 +1,16 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.create( + '<USER_ID>', // userId + 'email@example.com', // email (optional) + '+12065550100', // phone (optional) + '', // password (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.7.x/server-deno/examples/users/delete-identity.md new file mode 100644 index 00000000000..7aea6546451 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/delete-identity.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.deleteIdentity( + '<IDENTITY_ID>' // identityId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-deno/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..2d7595005e5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.deleteMfaAuthenticator( + '<USER_ID>', // userId + AuthenticatorType.Totp // type +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/delete-session.md b/docs/examples/1.7.x/server-deno/examples/users/delete-session.md new file mode 100644 index 00000000000..0ce82fe50f1 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/delete-session.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.deleteSession( + '<USER_ID>', // userId + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-deno/examples/users/delete-sessions.md new file mode 100644 index 00000000000..f80300b2054 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/delete-sessions.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.deleteSessions( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/delete-target.md b/docs/examples/1.7.x/server-deno/examples/users/delete-target.md new file mode 100644 index 00000000000..9080a962e60 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/delete-target.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.deleteTarget( + '<USER_ID>', // userId + '<TARGET_ID>' // targetId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/delete.md b/docs/examples/1.7.x/server-deno/examples/users/delete.md new file mode 100644 index 00000000000..7ac1bf1d3ae --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/delete.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.delete( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-deno/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..f78c0bf1b0c --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.getMfaRecoveryCodes( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.7.x/server-deno/examples/users/get-prefs.md new file mode 100644 index 00000000000..ef1be1e18bd --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/get-prefs.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.getPrefs( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/get-target.md b/docs/examples/1.7.x/server-deno/examples/users/get-target.md new file mode 100644 index 00000000000..301ee6e7ed0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/get-target.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.getTarget( + '<USER_ID>', // userId + '<TARGET_ID>' // targetId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/get.md b/docs/examples/1.7.x/server-deno/examples/users/get.md new file mode 100644 index 00000000000..8e41ed63509 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/get.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.get( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list-identities.md b/docs/examples/1.7.x/server-deno/examples/users/list-identities.md new file mode 100644 index 00000000000..6ac439547b3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list-identities.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.listIdentities( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list-logs.md b/docs/examples/1.7.x/server-deno/examples/users/list-logs.md new file mode 100644 index 00000000000..983ffba299d --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list-logs.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.listLogs( + '<USER_ID>', // userId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.7.x/server-deno/examples/users/list-memberships.md new file mode 100644 index 00000000000..afdd4d4f2d9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list-memberships.md @@ -0,0 +1,14 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.listMemberships( + '<USER_ID>', // userId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-deno/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..34b65afac3e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list-mfa-factors.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.listMfaFactors( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.7.x/server-deno/examples/users/list-sessions.md new file mode 100644 index 00000000000..314f277d7ac --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list-sessions.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.listSessions( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list-targets.md b/docs/examples/1.7.x/server-deno/examples/users/list-targets.md new file mode 100644 index 00000000000..9ed2dda4ce9 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list-targets.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.listTargets( + '<USER_ID>', // userId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/list.md b/docs/examples/1.7.x/server-deno/examples/users/list.md new file mode 100644 index 00000000000..488fbdc09c5 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/list.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-deno/examples/users/update-email-verification.md new file mode 100644 index 00000000000..3243f21c6f0 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-email-verification.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateEmailVerification( + '<USER_ID>', // userId + false // emailVerification +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-email.md b/docs/examples/1.7.x/server-deno/examples/users/update-email.md new file mode 100644 index 00000000000..f609cab4634 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-email.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateEmail( + '<USER_ID>', // userId + 'email@example.com' // email +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-labels.md b/docs/examples/1.7.x/server-deno/examples/users/update-labels.md new file mode 100644 index 00000000000..5a232981790 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-labels.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateLabels( + '<USER_ID>', // userId + [] // labels +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-deno/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..a74577e9cc6 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateMfaRecoveryCodes( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-mfa.md b/docs/examples/1.7.x/server-deno/examples/users/update-mfa.md new file mode 100644 index 00000000000..717f8d6ab75 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-mfa.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateMfa( + '<USER_ID>', // userId + false // mfa +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-name.md b/docs/examples/1.7.x/server-deno/examples/users/update-name.md new file mode 100644 index 00000000000..35fc853e3f3 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-name.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateName( + '<USER_ID>', // userId + '<NAME>' // name +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-password.md b/docs/examples/1.7.x/server-deno/examples/users/update-password.md new file mode 100644 index 00000000000..8366b5c4c2e --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-password.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updatePassword( + '<USER_ID>', // userId + '' // password +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-deno/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..088fd1eb574 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-phone-verification.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updatePhoneVerification( + '<USER_ID>', // userId + false // phoneVerification +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-phone.md b/docs/examples/1.7.x/server-deno/examples/users/update-phone.md new file mode 100644 index 00000000000..a8e47a62b82 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-phone.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updatePhone( + '<USER_ID>', // userId + '+12065550100' // number +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.7.x/server-deno/examples/users/update-prefs.md new file mode 100644 index 00000000000..cb8919a98fb --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-prefs.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updatePrefs( + '<USER_ID>', // userId + {} // prefs +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-status.md b/docs/examples/1.7.x/server-deno/examples/users/update-status.md new file mode 100644 index 00000000000..1c672a4d253 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-status.md @@ -0,0 +1,13 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateStatus( + '<USER_ID>', // userId + false // status +); diff --git a/docs/examples/1.7.x/server-deno/examples/users/update-target.md b/docs/examples/1.7.x/server-deno/examples/users/update-target.md new file mode 100644 index 00000000000..4524748c551 --- /dev/null +++ b/docs/examples/1.7.x/server-deno/examples/users/update-target.md @@ -0,0 +1,16 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.updateTarget( + '<USER_ID>', // userId + '<TARGET_ID>', // targetId + '<IDENTIFIER>', // identifier (optional) + '<PROVIDER_ID>', // providerId (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..fc807aa4e58 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Session result = await account.CreateAnonymousSession(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..abf5a413176 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-email-password-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Session result = await account.CreateEmailPasswordSession( + email: "email@example.com", + password: "password" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-email-token.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-email-token.md new file mode 100644 index 00000000000..69862feed0d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-email-token.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Token result = await account.CreateEmailToken( + userId: "<USER_ID>", + email: "email@example.com", + phrase: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..423cbed2b3c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-j-w-t.md @@ -0,0 +1,11 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +JWT result = await account.CreateJWT(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..21bcef6bed1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Token result = await account.CreateMagicURLToken( + userId: "<USER_ID>", + email: "email@example.com", + url: "https://example.com", // optional + phrase: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..bc54970469b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-authenticator.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +MfaType result = await account.CreateMfaAuthenticator( + type: AuthenticatorType.Totp +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..734133f2bdd --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +MfaChallenge result = await account.CreateMfaChallenge( + factor: AuthenticationFactor.Email +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..1922a45c0a7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +MfaRecoveryCodes result = await account.CreateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..5b405449b14 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-o-auth2token.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +await account.CreateOAuth2Token( + provider: OAuthProvider.Amazon, + success: "https://example.com", // optional + failure: "https://example.com", // optional + scopes: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-phone-token.md new file mode 100644 index 00000000000..0d17f5eceec --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-phone-token.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Token result = await account.CreatePhoneToken( + userId: "<USER_ID>", + phone: "+12065550100" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..185fc46e0d9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-phone-verification.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Token result = await account.CreatePhoneVerification(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-recovery.md new file mode 100644 index 00000000000..c2e3571d56c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-recovery.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Token result = await account.CreateRecovery( + email: "email@example.com", + url: "https://example.com" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-session.md new file mode 100644 index 00000000000..2da46ce62be --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Session result = await account.CreateSession( + userId: "<USER_ID>", + secret: "<SECRET>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.7.x/server-dotnet/examples/account/create-verification.md new file mode 100644 index 00000000000..92222ea88a8 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create-verification.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Token result = await account.CreateVerification( + url: "https://example.com" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/create.md b/docs/examples/1.7.x/server-dotnet/examples/account/create.md new file mode 100644 index 00000000000..83c1d542515 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/create.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +User result = await account.Create( + userId: "<USER_ID>", + email: "email@example.com", + password: "", + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.7.x/server-dotnet/examples/account/delete-identity.md new file mode 100644 index 00000000000..9b084800d4a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/delete-identity.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +await account.DeleteIdentity( + identityId: "<IDENTITY_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-dotnet/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..2b27cb6ad8c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +await account.DeleteMfaAuthenticator( + type: AuthenticatorType.Totp +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/delete-session.md new file mode 100644 index 00000000000..0bca7c172aa --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/delete-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +await account.DeleteSession( + sessionId: "<SESSION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-dotnet/examples/account/delete-sessions.md new file mode 100644 index 00000000000..5b0e7b5cba4 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/delete-sessions.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +await account.DeleteSessions(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dotnet/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..cc39db191da --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +MfaRecoveryCodes result = await account.GetMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.7.x/server-dotnet/examples/account/get-prefs.md new file mode 100644 index 00000000000..b0fce89a3fb --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/get-prefs.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Preferences result = await account.GetPrefs(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/get-session.md new file mode 100644 index 00000000000..9aa7abaee02 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/get-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Session result = await account.GetSession( + sessionId: "<SESSION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/get.md b/docs/examples/1.7.x/server-dotnet/examples/account/get.md new file mode 100644 index 00000000000..eecb890b301 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/get.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.Get(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.7.x/server-dotnet/examples/account/list-identities.md new file mode 100644 index 00000000000..661fab9f4ea --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/list-identities.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +IdentityList result = await account.ListIdentities( + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.7.x/server-dotnet/examples/account/list-logs.md new file mode 100644 index 00000000000..8e5eadf961d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/list-logs.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +LogList result = await account.ListLogs( + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-dotnet/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..291534920f4 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/list-mfa-factors.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +MfaFactors result = await account.ListMfaFactors(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.7.x/server-dotnet/examples/account/list-sessions.md new file mode 100644 index 00000000000..6304383cb39 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/list-sessions.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +SessionList result = await account.ListSessions(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-email.md new file mode 100644 index 00000000000..06e2a2a9dfc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-email.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdateEmail( + email: "email@example.com", + password: "password" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..b9405e7e2cc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-m-f-a.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdateMFA( + mfa: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..a8d8312e182 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Session result = await account.UpdateMagicURLSession( + userId: "<USER_ID>", + secret: "<SECRET>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..051653d19a9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-authenticator.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdateMfaAuthenticator( + type: AuthenticatorType.Totp, + otp: "<OTP>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..d2735058399 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-challenge.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Session result = await account.UpdateMfaChallenge( + challengeId: "<CHALLENGE_ID>", + otp: "<OTP>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..7daaf932134 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +MfaRecoveryCodes result = await account.UpdateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-name.md new file mode 100644 index 00000000000..6088226fc85 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-name.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdateName( + name: "<NAME>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-password.md new file mode 100644 index 00000000000..f24c703a9a8 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-password.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdatePassword( + password: "", + oldPassword: "password" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-phone-session.md new file mode 100644 index 00000000000..2f8b091999a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-phone-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +Session result = await account.UpdatePhoneSession( + userId: "<USER_ID>", + secret: "<SECRET>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..a100c0f2e2c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-phone-verification.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Token result = await account.UpdatePhoneVerification( + userId: "<USER_ID>", + secret: "<SECRET>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-phone.md new file mode 100644 index 00000000000..224001dd6e7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-phone.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdatePhone( + phone: "+12065550100", + password: "password" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-prefs.md new file mode 100644 index 00000000000..0b348a9c74c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-prefs.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdatePrefs( + prefs: [object] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-recovery.md new file mode 100644 index 00000000000..188462229b1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-recovery.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Token result = await account.UpdateRecovery( + userId: "<USER_ID>", + secret: "<SECRET>", + password: "" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-session.md new file mode 100644 index 00000000000..a98644c032d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Session result = await account.UpdateSession( + sessionId: "<SESSION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-status.md new file mode 100644 index 00000000000..d9c5b41d723 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-status.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +User result = await account.UpdateStatus(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.7.x/server-dotnet/examples/account/update-verification.md new file mode 100644 index 00000000000..b9dd1ded402 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/account/update-verification.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Account account = new Account(client); + +Token result = await account.UpdateVerification( + userId: "<USER_ID>", + secret: "<SECRET>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-browser.md new file mode 100644 index 00000000000..9c7b643af16 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-browser.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetBrowser( + code: Browser.AvantBrowser, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..a41ade1438a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-credit-card.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetCreditCard( + code: CreditCard.AmericanExpress, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..345d8567170 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-favicon.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetFavicon( + url: "https://example.com" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-flag.md new file mode 100644 index 00000000000..f7a3e05ceee --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-flag.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetFlag( + code: Flag.Afghanistan, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-image.md new file mode 100644 index 00000000000..4a67e585179 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-image.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetImage( + url: "https://example.com", + width: 0, // optional + height: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-initials.md new file mode 100644 index 00000000000..55427ff622c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-initials.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetInitials( + name: "<NAME>", // optional + width: 0, // optional + height: 0, // optional + background: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..4591b7d99c9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/avatars/get-q-r.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +byte[] result = await avatars.GetQR( + text: "<TEXT>", + size: 1, // optional + margin: 0, // optional + download: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..88076485215 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeBoolean result = await databases.CreateBooleanAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-collection.md new file mode 100644 index 00000000000..75a1c5c3119 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-collection.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Collection result = await databases.CreateCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..7be723379e6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeDatetime result = await databases.CreateDatetimeAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-document.md new file mode 100644 index 00000000000..cb4bc62ced3 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-document.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetSession("") // The user session to authenticate with + .SetKey("<YOUR_API_KEY>") // Your secret API key + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Databases databases = new Databases(client); + +Document result = await databases.CreateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: [object], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-documents.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-documents.md new file mode 100644 index 00000000000..495a3080fa0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.CreateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: new List<object>() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..df00119ff95 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-email-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeEmail result = await databases.CreateEmailAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..d85e8a72a95 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeEnum result = await databases.CreateEnumAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + elements: new List<string>(), + required: false, + default: "<DEFAULT>", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..bc03fac7aec --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-float-attribute.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeFloat result = await databases.CreateFloatAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-index.md new file mode 100644 index 00000000000..ae5583c68d9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-index.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Index result = await databases.CreateIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + type: IndexType.Key, + attributes: new List<string>(), + orders: new List<string>(), // optional + lengths: new List<long>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..c8e7c13355e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeInteger result = await databases.CreateIntegerAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..f95c257089a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeIp result = await databases.CreateIpAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..b0f4d1194fa --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -0,0 +1,22 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeRelationship result = await databases.CreateRelationshipAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + relatedCollectionId: "<RELATED_COLLECTION_ID>", + type: RelationshipType.OneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: RelationMutate.Cascade // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..6cba31ff365 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-string-attribute.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeString result = await databases.CreateStringAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + size: 1, + required: false, + default: "<DEFAULT>", // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..dce1ac496a5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create-url-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeUrl result = await databases.CreateUrlAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/create.md b/docs/examples/1.7.x/server-dotnet/examples/databases/create.md new file mode 100644 index 00000000000..9b66c15cefc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/create.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Database result = await databases.Create( + databaseId: "<DATABASE_ID>", + name: "<NAME>", + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..46eb44b4b8c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-attribute.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.DeleteAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-collection.md new file mode 100644 index 00000000000..e05717dc6c9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-collection.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.DeleteCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-document.md new file mode 100644 index 00000000000..221b80e2540 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-document.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +await databases.DeleteDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-documents.md new file mode 100644 index 00000000000..a9bc9c277b6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.DeleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-index.md new file mode 100644 index 00000000000..02dcf5c66a5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/delete-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.DeleteIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.7.x/server-dotnet/examples/databases/delete.md new file mode 100644 index 00000000000..a877eabc021 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.Delete( + databaseId: "<DATABASE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/get-attribute.md new file mode 100644 index 00000000000..d9e02e36b6b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/get-attribute.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + + result = await databases.GetAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.7.x/server-dotnet/examples/databases/get-collection.md new file mode 100644 index 00000000000..79fe685cbc7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/get-collection.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Collection result = await databases.GetCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.7.x/server-dotnet/examples/databases/get-document.md new file mode 100644 index 00000000000..d7e9b68807b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/get-document.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +Document result = await databases.GetDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.7.x/server-dotnet/examples/databases/get-index.md new file mode 100644 index 00000000000..02f7b812c88 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/get-index.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Index result = await databases.GetIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/get.md b/docs/examples/1.7.x/server-dotnet/examples/databases/get.md new file mode 100644 index 00000000000..174d74c4f08 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/get.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Database result = await databases.Get( + databaseId: "<DATABASE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-dotnet/examples/databases/list-attributes.md new file mode 100644 index 00000000000..d2ac6c3afdc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/list-attributes.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeList result = await databases.ListAttributes( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.7.x/server-dotnet/examples/databases/list-collections.md new file mode 100644 index 00000000000..5dacb62e976 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/list-collections.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +CollectionList result = await databases.ListCollections( + databaseId: "<DATABASE_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.7.x/server-dotnet/examples/databases/list-documents.md new file mode 100644 index 00000000000..f59e4576bd2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/list-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +DocumentList result = await databases.ListDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-dotnet/examples/databases/list-indexes.md new file mode 100644 index 00000000000..e6adab1f2d2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/list-indexes.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +IndexList result = await databases.ListIndexes( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/list.md b/docs/examples/1.7.x/server-dotnet/examples/databases/list.md new file mode 100644 index 00000000000..d2b552b27c2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/list.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DatabaseList result = await databases.List( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..aa2ed498d23 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeBoolean result = await databases.UpdateBooleanAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: false, + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-collection.md new file mode 100644 index 00000000000..7885ad39696 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-collection.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Collection result = await databases.UpdateCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..e6b60c87530 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeDatetime result = await databases.UpdateDatetimeAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-document.md new file mode 100644 index 00000000000..3121c15e08c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-document.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +Document result = await databases.UpdateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: [object], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-documents.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-documents.md new file mode 100644 index 00000000000..63ded21ac99 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-documents.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.UpdateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: [object], // optional + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..8d36a43780e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-email-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeEmail result = await databases.UpdateEmailAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..e3ca9fe124f --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeEnum result = await databases.UpdateEnumAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + elements: new List<string>(), + required: false, + default: "<DEFAULT>", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..46328d26f54 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-float-attribute.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeFloat result = await databases.UpdateFloatAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..91ff1897c7b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeInteger result = await databases.UpdateIntegerAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..dfcb5d214ac --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeIp result = await databases.UpdateIpAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..5b6dd714672 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeRelationship result = await databases.UpdateRelationshipAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..918fdc0e3ff --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-string-attribute.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeString result = await databases.UpdateStringAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..8766a3f2f74 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update-url-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +AttributeUrl result = await databases.UpdateUrlAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/update.md b/docs/examples/1.7.x/server-dotnet/examples/databases/update.md new file mode 100644 index 00000000000..d4dd28aa2bf --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/update.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +Database result = await databases.Update( + databaseId: "<DATABASE_ID>", + name: "<NAME>", + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-dotnet/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..d9db60ce2df --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/databases/upsert-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.UpsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: new List<object>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create-deployment.md new file mode 100644 index 00000000000..26c6ff4c42e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create-deployment.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Deployment result = await functions.CreateDeployment( + functionId: "<FUNCTION_ID>", + code: InputFile.FromPath("./path-to-files/image.jpg"), + activate: false, + entrypoint: "<ENTRYPOINT>", // optional + commands: "<COMMANDS>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..057fe12b106 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Deployment result = await functions.CreateDuplicateDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>", + buildId: "<BUILD_ID>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create-execution.md new file mode 100644 index 00000000000..c8fd5595e9f --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create-execution.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Functions functions = new Functions(client); + +Execution result = await functions.CreateExecution( + functionId: "<FUNCTION_ID>", + body: "<BODY>", // optional + async: false, // optional + path: "<PATH>", // optional + method: ExecutionMethod.GET, // optional + headers: [object], // optional + scheduledAt: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..019a9bf2563 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create-template-deployment.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Deployment result = await functions.CreateTemplateDeployment( + functionId: "<FUNCTION_ID>", + repository: "<REPOSITORY>", + owner: "<OWNER>", + rootDirectory: "<ROOT_DIRECTORY>", + version: "<VERSION>", + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create-variable.md new file mode 100644 index 00000000000..6d1f85b12e3 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create-variable.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Variable result = await functions.CreateVariable( + functionId: "<FUNCTION_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..96513659128 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create-vcs-deployment.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Deployment result = await functions.CreateVcsDeployment( + functionId: "<FUNCTION_ID>", + type: VCSDeploymentType.Branch, + reference: "<REFERENCE>", + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/create.md b/docs/examples/1.7.x/server-dotnet/examples/functions/create.md new file mode 100644 index 00000000000..6e705228f1d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/create.md @@ -0,0 +1,32 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Function result = await functions.Create( + functionId: "<FUNCTION_ID>", + name: "<NAME>", + runtime: .Node145, + execute: ["any"], // optional + events: new List<string>(), // optional + schedule: "", // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: "<ENTRYPOINT>", // optional + commands: "<COMMANDS>", // optional + scopes: new List<string>(), // optional + installationId: "<INSTALLATION_ID>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..33c537ad0d2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/delete-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +await functions.DeleteDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-dotnet/examples/functions/delete-execution.md new file mode 100644 index 00000000000..5d5ab8dee27 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/delete-execution.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +await functions.DeleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-dotnet/examples/functions/delete-variable.md new file mode 100644 index 00000000000..263c3f6420e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/delete-variable.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +await functions.DeleteVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.7.x/server-dotnet/examples/functions/delete.md new file mode 100644 index 00000000000..ed780ac15a4 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +await functions.Delete( + functionId: "<FUNCTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-dotnet/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..bfc32096353 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/get-deployment-download.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +byte[] result = await functions.GetDeploymentDownload( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>", + type: DeploymentDownloadType.Source // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/get-deployment.md new file mode 100644 index 00000000000..5fe31a2f6ec --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/get-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Deployment result = await functions.GetDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.7.x/server-dotnet/examples/functions/get-execution.md new file mode 100644 index 00000000000..8581b968af5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/get-execution.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Functions functions = new Functions(client); + +Execution result = await functions.GetExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.7.x/server-dotnet/examples/functions/get-variable.md new file mode 100644 index 00000000000..57ba9933894 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/get-variable.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Variable result = await functions.GetVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/get.md b/docs/examples/1.7.x/server-dotnet/examples/functions/get.md new file mode 100644 index 00000000000..baba5d0b4a6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/get.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Function result = await functions.Get( + functionId: "<FUNCTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-dotnet/examples/functions/list-deployments.md new file mode 100644 index 00000000000..093befcf612 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/list-deployments.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +DeploymentList result = await functions.ListDeployments( + functionId: "<FUNCTION_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.7.x/server-dotnet/examples/functions/list-executions.md new file mode 100644 index 00000000000..6ec320eb7ab --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/list-executions.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Functions functions = new Functions(client); + +ExecutionList result = await functions.ListExecutions( + functionId: "<FUNCTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-dotnet/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..c2386716701 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/list-runtimes.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +RuntimeList result = await functions.ListRuntimes(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-dotnet/examples/functions/list-specifications.md new file mode 100644 index 00000000000..2d868d1343e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/list-specifications.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +SpecificationList result = await functions.ListSpecifications(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.7.x/server-dotnet/examples/functions/list-variables.md new file mode 100644 index 00000000000..4c85da8995b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/list-variables.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +VariableList result = await functions.ListVariables( + functionId: "<FUNCTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/list.md b/docs/examples/1.7.x/server-dotnet/examples/functions/list.md new file mode 100644 index 00000000000..750642d498b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/list.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +FunctionList result = await functions.List( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-dotnet/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..4dd70b19327 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/update-deployment-status.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Deployment result = await functions.UpdateDeploymentStatus( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..7bdbd91b5ca --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/update-function-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Function result = await functions.UpdateFunctionDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.7.x/server-dotnet/examples/functions/update-variable.md new file mode 100644 index 00000000000..2b776d69ea1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/update-variable.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Variable result = await functions.UpdateVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>", + key: "<KEY>", + value: "<VALUE>", // optional + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/functions/update.md b/docs/examples/1.7.x/server-dotnet/examples/functions/update.md new file mode 100644 index 00000000000..7160795f77b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/functions/update.md @@ -0,0 +1,32 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +Function result = await functions.Update( + functionId: "<FUNCTION_ID>", + name: "<NAME>", + runtime: .Node145, // optional + execute: ["any"], // optional + events: new List<string>(), // optional + schedule: "", // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: "<ENTRYPOINT>", // optional + commands: "<COMMANDS>", // optional + scopes: new List<string>(), // optional + installationId: "<INSTALLATION_ID>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.7.x/server-dotnet/examples/graphql/mutation.md new file mode 100644 index 00000000000..b153e34d515 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/graphql/mutation.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Graphql graphql = new Graphql(client); + +Any result = await graphql.Mutation( + query: [object] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.7.x/server-dotnet/examples/graphql/query.md new file mode 100644 index 00000000000..61345d76656 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/graphql/query.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Graphql graphql = new Graphql(client); + +Any result = await graphql.Query( + query: [object] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-antivirus.md new file mode 100644 index 00000000000..115c0e5c7b6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-antivirus.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthAntivirus result = await health.GetAntivirus(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-cache.md new file mode 100644 index 00000000000..0c5ec37c2b4 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-cache.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthStatus result = await health.GetCache(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-certificate.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-certificate.md new file mode 100644 index 00000000000..457b70128a5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-certificate.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthCertificate result = await health.GetCertificate( + domain: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-d-b.md new file mode 100644 index 00000000000..7ae8b148549 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-d-b.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthStatus result = await health.GetDB(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..4d434798316 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-failed-jobs.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetFailedJobs( + name: .V1Database, + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..4ffdd7e5316 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-pub-sub.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthStatus result = await health.GetPubSub(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..5d522f03f24 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-builds.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueBuilds( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..c7e186e5ee7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-certificates.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueCertificates( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..1db6fb518c2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-databases.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueDatabases( + name: "<NAME>", // optional + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..487cee34112 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-deletes.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueDeletes( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..949e3766a7a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-functions.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueFunctions( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..58ad1ac2fe1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-logs.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueLogs( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..2c1008c7b13 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-mails.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueMails( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..4116f19b1fc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-messaging.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueMessaging( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..5a0c7a03377 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-migrations.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueMigrations( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..4002cca1581 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueStatsResources( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..546e9a07de6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-usage.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueUsage( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..1fc8d4d63c9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueWebhooks( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-storage-local.md new file mode 100644 index 00000000000..3e8539794ab --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-storage-local.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthStatus result = await health.GetStorageLocal(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-storage.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-storage.md new file mode 100644 index 00000000000..42d4aba45b8 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-storage.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthStatus result = await health.GetStorage(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.7.x/server-dotnet/examples/health/get-time.md new file mode 100644 index 00000000000..959060113b0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get-time.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthTime result = await health.GetTime(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/health/get.md b/docs/examples/1.7.x/server-dotnet/examples/health/get.md new file mode 100644 index 00000000000..a926fe71e53 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/health/get.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthStatus result = await health.Get(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/get.md b/docs/examples/1.7.x/server-dotnet/examples/locale/get.md new file mode 100644 index 00000000000..48b97018014 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/get.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +Locale result = await locale.Get(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-codes.md new file mode 100644 index 00000000000..0df7696da5d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-codes.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +LocaleCodeList result = await locale.ListCodes(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-continents.md new file mode 100644 index 00000000000..7cf74caec3b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-continents.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +ContinentList result = await locale.ListContinents(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..106e140ee43 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +CountryList result = await locale.ListCountriesEU(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..38fbe24ff31 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries-phones.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +PhoneList result = await locale.ListCountriesPhones(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries.md new file mode 100644 index 00000000000..5e5d9f407fe --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-countries.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +CountryList result = await locale.ListCountries(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-currencies.md new file mode 100644 index 00000000000..e51a1388139 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-currencies.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +CurrencyList result = await locale.ListCurrencies(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.7.x/server-dotnet/examples/locale/list-languages.md new file mode 100644 index 00000000000..62aa15d1d9a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/locale/list-languages.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +LanguageList result = await locale.ListLanguages(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..9cc37a17e0e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-apns-provider.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateApnsProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + authKey: "<AUTH_KEY>", // optional + authKeyId: "<AUTH_KEY_ID>", // optional + teamId: "<TEAM_ID>", // optional + bundleId: "<BUNDLE_ID>", // optional + sandbox: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-email.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-email.md new file mode 100644 index 00000000000..51c6db4ddb3 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-email.md @@ -0,0 +1,25 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.CreateEmail( + messageId: "<MESSAGE_ID>", + subject: "<SUBJECT>", + content: "<CONTENT>", + topics: new List<string>(), // optional + users: new List<string>(), // optional + targets: new List<string>(), // optional + cc: new List<string>(), // optional + bcc: new List<string>(), // optional + attachments: new List<string>(), // optional + draft: false, // optional + html: false, // optional + scheduledAt: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..15fdace2d3c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-fcm-provider.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateFcmProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + serviceAccountJSON: [object], // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..1bacbab8d54 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,23 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateMailgunProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", // optional + domain: "<DOMAIN>", // optional + isEuRegion: false, // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "email@example.com", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..a0b73727095 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-msg91provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateMsg91Provider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + templateId: "<TEMPLATE_ID>", // optional + senderId: "<SENDER_ID>", // optional + authKey: "<AUTH_KEY>", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-push.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-push.md new file mode 100644 index 00000000000..1d2dbec1f21 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-push.md @@ -0,0 +1,33 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.CreatePush( + messageId: "<MESSAGE_ID>", + title: "<TITLE>", // optional + body: "<BODY>", // optional + topics: new List<string>(), // optional + users: new List<string>(), // optional + targets: new List<string>(), // optional + data: [object], // optional + action: "<ACTION>", // optional + image: "[ID1:ID2]", // optional + icon: "<ICON>", // optional + sound: "<SOUND>", // optional + color: "<COLOR>", // optional + tag: "<TAG>", // optional + badge: 0, // optional + draft: false, // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..8464c47ae11 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateSendgridProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "email@example.com", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-sms.md new file mode 100644 index 00000000000..06e9e69e656 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-sms.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.CreateSms( + messageId: "<MESSAGE_ID>", + content: "<CONTENT>", + topics: new List<string>(), // optional + users: new List<string>(), // optional + targets: new List<string>(), // optional + draft: false, // optional + scheduledAt: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..16b091f98e0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-smtp-provider.md @@ -0,0 +1,28 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateSmtpProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + host: "<HOST>", + port: 1, // optional + username: "<USERNAME>", // optional + password: "<PASSWORD>", // optional + encryption: SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: "<MAILER>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "email@example.com", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..8b37d31e68d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-subscriber.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Messaging messaging = new Messaging(client); + +Subscriber result = await messaging.CreateSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>", + targetId: "<TARGET_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..37e1bd1df91 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-telesign-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateTelesignProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + customerId: "<CUSTOMER_ID>", // optional + apiKey: "<API_KEY>", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..7dc0a6b26fa --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateTextmagicProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + username: "<USERNAME>", // optional + apiKey: "<API_KEY>", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-topic.md new file mode 100644 index 00000000000..51eab0fd116 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-topic.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Topic result = await messaging.CreateTopic( + topicId: "<TOPIC_ID>", + name: "<NAME>", + subscribe: ["any"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..0deba742ff7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-twilio-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateTwilioProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + accountSid: "<ACCOUNT_SID>", // optional + authToken: "<AUTH_TOKEN>", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..8f4855aab42 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/create-vonage-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.CreateVonageProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + apiKey: "<API_KEY>", // optional + apiSecret: "<API_SECRET>", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..a1ca2a14509 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-provider.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +await messaging.DeleteProvider( + providerId: "<PROVIDER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..9424535c9f7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-subscriber.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Messaging messaging = new Messaging(client); + +await messaging.DeleteSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..0b4819a219e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete-topic.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +await messaging.DeleteTopic( + topicId: "<TOPIC_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/delete.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete.md new file mode 100644 index 00000000000..ff041e853ab --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +await messaging.Delete( + messageId: "<MESSAGE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/get-message.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-message.md new file mode 100644 index 00000000000..0dad3668f81 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-message.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.GetMessage( + messageId: "<MESSAGE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-provider.md new file mode 100644 index 00000000000..fac5a07da5c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-provider.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.GetProvider( + providerId: "<PROVIDER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..516aa682c86 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-subscriber.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Subscriber result = await messaging.GetSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-topic.md new file mode 100644 index 00000000000..3a662b3111d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/get-topic.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Topic result = await messaging.GetTopic( + topicId: "<TOPIC_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..49d35131271 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-message-logs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +LogList result = await messaging.ListMessageLogs( + messageId: "<MESSAGE_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-messages.md new file mode 100644 index 00000000000..4c17128e72c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-messages.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +MessageList result = await messaging.ListMessages( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..928c14845a2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-provider-logs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +LogList result = await messaging.ListProviderLogs( + providerId: "<PROVIDER_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-providers.md new file mode 100644 index 00000000000..6cf5757fb68 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-providers.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +ProviderList result = await messaging.ListProviders( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..815f1325d4f --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +LogList result = await messaging.ListSubscriberLogs( + subscriberId: "<SUBSCRIBER_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..b522be327c9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-subscribers.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +SubscriberList result = await messaging.ListSubscribers( + topicId: "<TOPIC_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-targets.md new file mode 100644 index 00000000000..a8e8de567e4 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-targets.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +TargetList result = await messaging.ListTargets( + messageId: "<MESSAGE_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..093db0ff2c1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-topic-logs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +LogList result = await messaging.ListTopicLogs( + topicId: "<TOPIC_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-topics.md new file mode 100644 index 00000000000..cc88afab694 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/list-topics.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +TopicList result = await messaging.ListTopics( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..f06e134d025 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-apns-provider.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateApnsProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + authKey: "<AUTH_KEY>", // optional + authKeyId: "<AUTH_KEY_ID>", // optional + teamId: "<TEAM_ID>", // optional + bundleId: "<BUNDLE_ID>", // optional + sandbox: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-email.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-email.md new file mode 100644 index 00000000000..90d1555d8f0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-email.md @@ -0,0 +1,25 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.UpdateEmail( + messageId: "<MESSAGE_ID>", + topics: new List<string>(), // optional + users: new List<string>(), // optional + targets: new List<string>(), // optional + subject: "<SUBJECT>", // optional + content: "<CONTENT>", // optional + draft: false, // optional + html: false, // optional + cc: new List<string>(), // optional + bcc: new List<string>(), // optional + scheduledAt: "", // optional + attachments: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..0006fedf54d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-fcm-provider.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateFcmProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + serviceAccountJSON: [object] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..512cb0586ba --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,23 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateMailgunProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + apiKey: "<API_KEY>", // optional + domain: "<DOMAIN>", // optional + isEuRegion: false, // optional + enabled: false, // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "<REPLY_TO_EMAIL>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..51355c5836a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-msg91provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateMsg91Provider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + templateId: "<TEMPLATE_ID>", // optional + senderId: "<SENDER_ID>", // optional + authKey: "<AUTH_KEY>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-push.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-push.md new file mode 100644 index 00000000000..37da215e826 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-push.md @@ -0,0 +1,33 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.UpdatePush( + messageId: "<MESSAGE_ID>", + topics: new List<string>(), // optional + users: new List<string>(), // optional + targets: new List<string>(), // optional + title: "<TITLE>", // optional + body: "<BODY>", // optional + data: [object], // optional + action: "<ACTION>", // optional + image: "[ID1:ID2]", // optional + icon: "<ICON>", // optional + sound: "<SOUND>", // optional + color: "<COLOR>", // optional + tag: "<TAG>", // optional + badge: 0, // optional + draft: false, // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..d718a7158b0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,21 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateSendgridProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + apiKey: "<API_KEY>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "<REPLY_TO_EMAIL>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-sms.md new file mode 100644 index 00000000000..475d29923d3 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-sms.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Message result = await messaging.UpdateSms( + messageId: "<MESSAGE_ID>", + topics: new List<string>(), // optional + users: new List<string>(), // optional + targets: new List<string>(), // optional + content: "<CONTENT>", // optional + draft: false, // optional + scheduledAt: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..4e7ab6dfebc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-smtp-provider.md @@ -0,0 +1,28 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateSmtpProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + host: "<HOST>", // optional + port: 1, // optional + username: "<USERNAME>", // optional + password: "<PASSWORD>", // optional + encryption: SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: "<MAILER>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "<REPLY_TO_EMAIL>", // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..d4f1c5e0150 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-telesign-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateTelesignProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + customerId: "<CUSTOMER_ID>", // optional + apiKey: "<API_KEY>", // optional + from: "<FROM>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..3529f9b99c0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateTextmagicProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + username: "<USERNAME>", // optional + apiKey: "<API_KEY>", // optional + from: "<FROM>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-topic.md new file mode 100644 index 00000000000..11943f70e24 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-topic.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Topic result = await messaging.UpdateTopic( + topicId: "<TOPIC_ID>", + name: "<NAME>", // optional + subscribe: ["any"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..66fc7e27a3a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-twilio-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateTwilioProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + accountSid: "<ACCOUNT_SID>", // optional + authToken: "<AUTH_TOKEN>", // optional + from: "<FROM>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..03addd3de67 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/messaging/update-vonage-provider.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +Provider result = await messaging.UpdateVonageProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + apiKey: "<API_KEY>", // optional + apiSecret: "<API_SECRET>", // optional + from: "<FROM>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/create-deployment.md new file mode 100644 index 00000000000..1bcb5d5bac9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/create-deployment.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Deployment result = await sites.CreateDeployment( + siteId: "<SITE_ID>", + code: InputFile.FromPath("./path-to-files/image.jpg"), + activate: false, + installCommand: "<INSTALL_COMMAND>", // optional + buildCommand: "<BUILD_COMMAND>", // optional + outputDirectory: "<OUTPUT_DIRECTORY>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..1e45aca8ef1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Deployment result = await sites.CreateDuplicateDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..57f9a83d9c6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/create-template-deployment.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Deployment result = await sites.CreateTemplateDeployment( + siteId: "<SITE_ID>", + repository: "<REPOSITORY>", + owner: "<OWNER>", + rootDirectory: "<ROOT_DIRECTORY>", + version: "<VERSION>", + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/create-variable.md b/docs/examples/1.7.x/server-dotnet/examples/sites/create-variable.md new file mode 100644 index 00000000000..09feb0316ee --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/create-variable.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Variable result = await sites.CreateVariable( + siteId: "<SITE_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..4d3e6851768 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/create-vcs-deployment.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Deployment result = await sites.CreateVcsDeployment( + siteId: "<SITE_ID>", + type: VCSDeploymentType.Branch, + reference: "<REFERENCE>", + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/create.md b/docs/examples/1.7.x/server-dotnet/examples/sites/create.md new file mode 100644 index 00000000000..025adca41dd --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/create.md @@ -0,0 +1,32 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Site result = await sites.Create( + siteId: "<SITE_ID>", + name: "<NAME>", + framework: .Analog, + buildRuntime: .Node145, + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: "<INSTALL_COMMAND>", // optional + buildCommand: "<BUILD_COMMAND>", // optional + outputDirectory: "<OUTPUT_DIRECTORY>", // optional + adapter: .Static, // optional + installationId: "<INSTALLATION_ID>", // optional + fallbackFile: "<FALLBACK_FILE>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..f74be24acfb --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/delete-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +await sites.DeleteDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/delete-log.md b/docs/examples/1.7.x/server-dotnet/examples/sites/delete-log.md new file mode 100644 index 00000000000..83d1aa12ca1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/delete-log.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +await sites.DeleteLog( + siteId: "<SITE_ID>", + logId: "<LOG_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-dotnet/examples/sites/delete-variable.md new file mode 100644 index 00000000000..97515127184 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/delete-variable.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +await sites.DeleteVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/delete.md b/docs/examples/1.7.x/server-dotnet/examples/sites/delete.md new file mode 100644 index 00000000000..173c4864997 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +await sites.Delete( + siteId: "<SITE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-dotnet/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..27c96476290 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/get-deployment-download.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +byte[] result = await sites.GetDeploymentDownload( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>", + type: DeploymentDownloadType.Source // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/get-deployment.md new file mode 100644 index 00000000000..138c97ba429 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/get-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Deployment result = await sites.GetDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/get-log.md b/docs/examples/1.7.x/server-dotnet/examples/sites/get-log.md new file mode 100644 index 00000000000..d90b6c84776 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/get-log.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Execution result = await sites.GetLog( + siteId: "<SITE_ID>", + logId: "<LOG_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/get-variable.md b/docs/examples/1.7.x/server-dotnet/examples/sites/get-variable.md new file mode 100644 index 00000000000..01f57f3bf2f --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/get-variable.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Variable result = await sites.GetVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/get.md b/docs/examples/1.7.x/server-dotnet/examples/sites/get.md new file mode 100644 index 00000000000..87a91ae8e8e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/get.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Site result = await sites.Get( + siteId: "<SITE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-dotnet/examples/sites/list-deployments.md new file mode 100644 index 00000000000..ac1cae91273 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/list-deployments.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +DeploymentList result = await sites.ListDeployments( + siteId: "<SITE_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-dotnet/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..9220b2a7dad --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/list-frameworks.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +FrameworkList result = await sites.ListFrameworks(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/list-logs.md b/docs/examples/1.7.x/server-dotnet/examples/sites/list-logs.md new file mode 100644 index 00000000000..692bd707b2b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/list-logs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +ExecutionList result = await sites.ListLogs( + siteId: "<SITE_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-dotnet/examples/sites/list-specifications.md new file mode 100644 index 00000000000..edf82da81b2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/list-specifications.md @@ -0,0 +1,12 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +SpecificationList result = await sites.ListSpecifications(); diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/list-variables.md b/docs/examples/1.7.x/server-dotnet/examples/sites/list-variables.md new file mode 100644 index 00000000000..6eb0ff70933 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/list-variables.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +VariableList result = await sites.ListVariables( + siteId: "<SITE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/list.md b/docs/examples/1.7.x/server-dotnet/examples/sites/list.md new file mode 100644 index 00000000000..649ee503313 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/list.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +SiteList result = await sites.List( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-dotnet/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..c7415e7a0b1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/update-deployment-status.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Deployment result = await sites.UpdateDeploymentStatus( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-dotnet/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..8706ff594a6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/update-site-deployment.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Site result = await sites.UpdateSiteDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/update-variable.md b/docs/examples/1.7.x/server-dotnet/examples/sites/update-variable.md new file mode 100644 index 00000000000..99718cd6cdf --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/update-variable.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Variable result = await sites.UpdateVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>", + key: "<KEY>", + value: "<VALUE>", // optional + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/sites/update.md b/docs/examples/1.7.x/server-dotnet/examples/sites/update.md new file mode 100644 index 00000000000..c25e3f6df9b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/sites/update.md @@ -0,0 +1,32 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +Site result = await sites.Update( + siteId: "<SITE_ID>", + name: "<NAME>", + framework: .Analog, + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: "<INSTALL_COMMAND>", // optional + buildCommand: "<BUILD_COMMAND>", // optional + outputDirectory: "<OUTPUT_DIRECTORY>", // optional + buildRuntime: .Node145, // optional + adapter: .Static, // optional + fallbackFile: "<FALLBACK_FILE>", // optional + installationId: "<INSTALLATION_ID>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-dotnet/examples/storage/create-bucket.md new file mode 100644 index 00000000000..0cc317d9a61 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/create-bucket.md @@ -0,0 +1,24 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +Bucket result = await storage.CreateBucket( + bucketId: "<BUCKET_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: new List<string>(), // optional + compression: .None, // optional + encryption: false, // optional + antivirus: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.7.x/server-dotnet/examples/storage/create-file.md new file mode 100644 index 00000000000..a4cedb82148 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/create-file.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +File result = await storage.CreateFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + file: InputFile.FromPath("./path-to-files/image.jpg"), + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-dotnet/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..22aa2acf193 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/delete-bucket.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +await storage.DeleteBucket( + bucketId: "<BUCKET_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.7.x/server-dotnet/examples/storage/delete-file.md new file mode 100644 index 00000000000..a8cc310aa57 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/delete-file.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +await storage.DeleteFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-dotnet/examples/storage/get-bucket.md new file mode 100644 index 00000000000..a6f74ebdae3 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/get-bucket.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +Bucket result = await storage.GetBucket( + bucketId: "<BUCKET_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-download.md new file mode 100644 index 00000000000..514fda9e9c2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-download.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +byte[] result = await storage.GetFileDownload( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + token: "<TOKEN>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..c9ec508b4a6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-preview.md @@ -0,0 +1,28 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +byte[] result = await storage.GetFilePreview( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + width: 0, // optional + height: 0, // optional + gravity: ImageGravity.Center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: "", // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: "", // optional + output: ImageFormat.Jpg, // optional + token: "<TOKEN>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-view.md new file mode 100644 index 00000000000..1a27dc153c2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file-view.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +byte[] result = await storage.GetFileView( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + token: "<TOKEN>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file.md new file mode 100644 index 00000000000..e4c05c1e6bb --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/get-file.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +File result = await storage.GetFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-dotnet/examples/storage/list-buckets.md new file mode 100644 index 00000000000..8e397729e6a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/list-buckets.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +BucketList result = await storage.ListBuckets( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.7.x/server-dotnet/examples/storage/list-files.md new file mode 100644 index 00000000000..2751da52449 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/list-files.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +FileList result = await storage.ListFiles( + bucketId: "<BUCKET_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-dotnet/examples/storage/update-bucket.md new file mode 100644 index 00000000000..2a439ba2af4 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/update-bucket.md @@ -0,0 +1,24 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +Bucket result = await storage.UpdateBucket( + bucketId: "<BUCKET_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: new List<string>(), // optional + compression: .None, // optional + encryption: false, // optional + antivirus: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.7.x/server-dotnet/examples/storage/update-file.md new file mode 100644 index 00000000000..3f6ea608d71 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/storage/update-file.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +File result = await storage.UpdateFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + name: "<NAME>", // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.7.x/server-dotnet/examples/teams/create-membership.md new file mode 100644 index 00000000000..f3f5682cbf6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/create-membership.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Membership result = await teams.CreateMembership( + teamId: "<TEAM_ID>", + roles: new List<string>(), + email: "email@example.com", // optional + userId: "<USER_ID>", // optional + phone: "+12065550100", // optional + url: "https://example.com", // optional + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/create.md b/docs/examples/1.7.x/server-dotnet/examples/teams/create.md new file mode 100644 index 00000000000..07b102d70a5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/create.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Team result = await teams.Create( + teamId: "<TEAM_ID>", + name: "<NAME>", + roles: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-dotnet/examples/teams/delete-membership.md new file mode 100644 index 00000000000..01a58aaa11d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/delete-membership.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +await teams.DeleteMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.7.x/server-dotnet/examples/teams/delete.md new file mode 100644 index 00000000000..ee525f23c99 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +await teams.Delete( + teamId: "<TEAM_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.7.x/server-dotnet/examples/teams/get-membership.md new file mode 100644 index 00000000000..cb9109df141 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/get-membership.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Membership result = await teams.GetMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-dotnet/examples/teams/get-prefs.md new file mode 100644 index 00000000000..f95d73af77c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/get-prefs.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Preferences result = await teams.GetPrefs( + teamId: "<TEAM_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/get.md b/docs/examples/1.7.x/server-dotnet/examples/teams/get.md new file mode 100644 index 00000000000..339b33f657d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/get.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Team result = await teams.Get( + teamId: "<TEAM_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-dotnet/examples/teams/list-memberships.md new file mode 100644 index 00000000000..6072158100d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/list-memberships.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +MembershipList result = await teams.ListMemberships( + teamId: "<TEAM_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/list.md b/docs/examples/1.7.x/server-dotnet/examples/teams/list.md new file mode 100644 index 00000000000..b1ca72b82ea --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/list.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +TeamList result = await teams.List( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-dotnet/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..87609aa32ea --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/update-membership-status.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Membership result = await teams.UpdateMembershipStatus( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + userId: "<USER_ID>", + secret: "<SECRET>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.7.x/server-dotnet/examples/teams/update-membership.md new file mode 100644 index 00000000000..3583b4d0a96 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/update-membership.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Membership result = await teams.UpdateMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + roles: new List<string>() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.7.x/server-dotnet/examples/teams/update-name.md new file mode 100644 index 00000000000..9a3fb1316a6 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/update-name.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Team result = await teams.UpdateName( + teamId: "<TEAM_ID>", + name: "<NAME>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-dotnet/examples/teams/update-prefs.md new file mode 100644 index 00000000000..55ff96e9e8b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/teams/update-prefs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +Preferences result = await teams.UpdatePrefs( + teamId: "<TEAM_ID>", + prefs: [object] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-dotnet/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..70f4ed39008 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/tokens/create-file-token.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +ResourceToken result = await tokens.CreateFileToken( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + expire: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/tokens/delete.md b/docs/examples/1.7.x/server-dotnet/examples/tokens/delete.md new file mode 100644 index 00000000000..e88147c1c91 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/tokens/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +await tokens.Delete( + tokenId: "<TOKEN_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/tokens/get.md b/docs/examples/1.7.x/server-dotnet/examples/tokens/get.md new file mode 100644 index 00000000000..da9b4310174 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/tokens/get.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +ResourceToken result = await tokens.Get( + tokenId: "<TOKEN_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/tokens/list.md b/docs/examples/1.7.x/server-dotnet/examples/tokens/list.md new file mode 100644 index 00000000000..68579f237b3 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/tokens/list.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +ResourceTokenList result = await tokens.List( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/tokens/update.md b/docs/examples/1.7.x/server-dotnet/examples/tokens/update.md new file mode 100644 index 00000000000..b7604182ab2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/tokens/update.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +ResourceToken result = await tokens.Update( + tokenId: "<TOKEN_ID>", + expire: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-argon2user.md new file mode 100644 index 00000000000..db6dd6486a1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-argon2user.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreateArgon2User( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..bf8bf3dedd5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreateBcryptUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..a7c57ad6429 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-j-w-t.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +JWT result = await users.CreateJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", // optional + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..7b7d0e7760c --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-m-d5user.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreateMD5User( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..9b43dc02afa --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +MfaRecoveryCodes result = await users.CreateMfaRecoveryCodes( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..9f5521ef2fe --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreatePHPassUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..0821bf46e9d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreateSHAUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordVersion: PasswordHash.Sha1, // optional + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..3af99e88c21 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreateScryptModifiedUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordSalt: "<PASSWORD_SALT>", + passwordSaltSeparator: "<PASSWORD_SALT_SEPARATOR>", + passwordSignerKey: "<PASSWORD_SIGNER_KEY>", + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..79085f72065 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-scrypt-user.md @@ -0,0 +1,22 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.CreateScryptUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordSalt: "<PASSWORD_SALT>", + passwordCpu: 0, + passwordMemory: 0, + passwordParallel: 0, + passwordLength: 0, + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-session.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-session.md new file mode 100644 index 00000000000..a021c2551fd --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-session.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Session result = await users.CreateSession( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-target.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-target.md new file mode 100644 index 00000000000..44ba48ac012 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-target.md @@ -0,0 +1,20 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Target result = await users.CreateTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>", + providerType: MessagingProviderType.Email, + identifier: "<IDENTIFIER>", + providerId: "<PROVIDER_ID>", // optional + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create-token.md b/docs/examples/1.7.x/server-dotnet/examples/users/create-token.md new file mode 100644 index 00000000000..0e9cf43fd75 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create-token.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Token result = await users.CreateToken( + userId: "<USER_ID>", + length: 4, // optional + expire: 60 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/create.md b/docs/examples/1.7.x/server-dotnet/examples/users/create.md new file mode 100644 index 00000000000..3cf1d3af290 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/create.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.Create( + userId: "<USER_ID>", + email: "email@example.com", // optional + phone: "+12065550100", // optional + password: "", // optional + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.7.x/server-dotnet/examples/users/delete-identity.md new file mode 100644 index 00000000000..d2bac6b7973 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/delete-identity.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +await users.DeleteIdentity( + identityId: "<IDENTITY_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-dotnet/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..bb33dbf9e4b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Enums; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +await users.DeleteMfaAuthenticator( + userId: "<USER_ID>", + type: AuthenticatorType.Totp +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.7.x/server-dotnet/examples/users/delete-session.md new file mode 100644 index 00000000000..d9d36d20b4d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/delete-session.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +await users.DeleteSession( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-dotnet/examples/users/delete-sessions.md new file mode 100644 index 00000000000..7011e426bb5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/delete-sessions.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +await users.DeleteSessions( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/delete-target.md b/docs/examples/1.7.x/server-dotnet/examples/users/delete-target.md new file mode 100644 index 00000000000..ad900afa5ad --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/delete-target.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +await users.DeleteTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/delete.md b/docs/examples/1.7.x/server-dotnet/examples/users/delete.md new file mode 100644 index 00000000000..00ed23cf5f9 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/delete.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +await users.Delete( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dotnet/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..213c3473a85 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +MfaRecoveryCodes result = await users.GetMfaRecoveryCodes( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.7.x/server-dotnet/examples/users/get-prefs.md new file mode 100644 index 00000000000..36888651d9d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/get-prefs.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Preferences result = await users.GetPrefs( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/get-target.md b/docs/examples/1.7.x/server-dotnet/examples/users/get-target.md new file mode 100644 index 00000000000..2bbf4d614cd --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/get-target.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Target result = await users.GetTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/get.md b/docs/examples/1.7.x/server-dotnet/examples/users/get.md new file mode 100644 index 00000000000..25971baddc2 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/get.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.Get( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.7.x/server-dotnet/examples/users/list-identities.md new file mode 100644 index 00000000000..996edfba710 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list-identities.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +IdentityList result = await users.ListIdentities( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.7.x/server-dotnet/examples/users/list-logs.md new file mode 100644 index 00000000000..822d16fe64e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list-logs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +LogList result = await users.ListLogs( + userId: "<USER_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.7.x/server-dotnet/examples/users/list-memberships.md new file mode 100644 index 00000000000..4296cd2dcdc --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list-memberships.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +MembershipList result = await users.ListMemberships( + userId: "<USER_ID>", + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-dotnet/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..54f68ae516b --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list-mfa-factors.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +MfaFactors result = await users.ListMfaFactors( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.7.x/server-dotnet/examples/users/list-sessions.md new file mode 100644 index 00000000000..97f92f3b077 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list-sessions.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +SessionList result = await users.ListSessions( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list-targets.md b/docs/examples/1.7.x/server-dotnet/examples/users/list-targets.md new file mode 100644 index 00000000000..aa59ce2983f --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list-targets.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +TargetList result = await users.ListTargets( + userId: "<USER_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/list.md b/docs/examples/1.7.x/server-dotnet/examples/users/list.md new file mode 100644 index 00000000000..aae7ae27b32 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/list.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +UserList result = await users.List( + queries: new List<string>(), // optional + search: "<SEARCH>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-email-verification.md new file mode 100644 index 00000000000..8add2d4d6ba --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-email-verification.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdateEmailVerification( + userId: "<USER_ID>", + emailVerification: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-email.md new file mode 100644 index 00000000000..d0d737cb80e --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-email.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdateEmail( + userId: "<USER_ID>", + email: "email@example.com" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-labels.md new file mode 100644 index 00000000000..6637ad0438a --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-labels.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdateLabels( + userId: "<USER_ID>", + labels: new List<string>() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..35be70777a1 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +MfaRecoveryCodes result = await users.UpdateMfaRecoveryCodes( + userId: "<USER_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-mfa.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-mfa.md new file mode 100644 index 00000000000..d009df1759d --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-mfa.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdateMfa( + userId: "<USER_ID>", + mfa: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-name.md new file mode 100644 index 00000000000..ffa90f96570 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-name.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdateName( + userId: "<USER_ID>", + name: "<NAME>" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-password.md new file mode 100644 index 00000000000..6dc30d5bcf7 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-password.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdatePassword( + userId: "<USER_ID>", + password: "" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..ba5ca253ee5 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-phone-verification.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdatePhoneVerification( + userId: "<USER_ID>", + phoneVerification: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-phone.md new file mode 100644 index 00000000000..e633740e941 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-phone.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdatePhone( + userId: "<USER_ID>", + number: "+12065550100" +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-prefs.md new file mode 100644 index 00000000000..421a4c2314f --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-prefs.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Preferences result = await users.UpdatePrefs( + userId: "<USER_ID>", + prefs: [object] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-status.md new file mode 100644 index 00000000000..3037d8dd0c0 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-status.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +User result = await users.UpdateStatus( + userId: "<USER_ID>", + status: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-dotnet/examples/users/update-target.md b/docs/examples/1.7.x/server-dotnet/examples/users/update-target.md new file mode 100644 index 00000000000..9863af19d86 --- /dev/null +++ b/docs/examples/1.7.x/server-dotnet/examples/users/update-target.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +Target result = await users.UpdateTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>", // optional + providerId: "<PROVIDER_ID>", // optional + name: "<NAME>" // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-go/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-go/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..a6b5b6a2cf2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-anonymous-session.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateAnonymousSession( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-go/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..d876edc7ac2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-email-password-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateEmailPasswordSession( + "email@example.com", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-email-token.md b/docs/examples/1.7.x/server-go/examples/account/create-email-token.md new file mode 100644 index 00000000000..aa832e7bf50 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-email-token.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateEmailToken( + "<USER_ID>", + "email@example.com", + account.WithCreateEmailTokenPhrase(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-go/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..fad35ab5190 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-j-w-t.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateJWT( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-go/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..1e2090fd8eb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateMagicURLToken( + "<USER_ID>", + "email@example.com", + account.WithCreateMagicURLTokenUrl("https://example.com"), + account.WithCreateMagicURLTokenPhrase(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-go/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..8d425404b58 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-mfa-authenticator.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateMfaAuthenticator( + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-go/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..3ac4a3babf4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-mfa-challenge.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateMfaChallenge( + "email", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-go/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..063a804f6e4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-go/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..f3b6997fffa --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-o-auth2token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateOAuth2Token( + "amazon", + account.WithCreateOAuth2TokenSuccess("https://example.com"), + account.WithCreateOAuth2TokenFailure("https://example.com"), + account.WithCreateOAuth2TokenScopes([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-go/examples/account/create-phone-token.md new file mode 100644 index 00000000000..c9e80de622b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-phone-token.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreatePhoneToken( + "<USER_ID>", + "+12065550100", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-go/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..c7a6bf4bf54 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-phone-verification.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreatePhoneVerification( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-recovery.md b/docs/examples/1.7.x/server-go/examples/account/create-recovery.md new file mode 100644 index 00000000000..9d55755c379 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-recovery.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateRecovery( + "email@example.com", + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-session.md b/docs/examples/1.7.x/server-go/examples/account/create-session.md new file mode 100644 index 00000000000..f93502a31f1 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create-verification.md b/docs/examples/1.7.x/server-go/examples/account/create-verification.md new file mode 100644 index 00000000000..afb98c7ec0a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create-verification.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateVerification( + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/create.md b/docs/examples/1.7.x/server-go/examples/account/create.md new file mode 100644 index 00000000000..b834d47d0f8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.Create( + "<USER_ID>", + "email@example.com", + "", + account.WithCreateName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/delete-identity.md b/docs/examples/1.7.x/server-go/examples/account/delete-identity.md new file mode 100644 index 00000000000..30d25346021 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/delete-identity.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteIdentity( + "<IDENTITY_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-go/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..7f3edec33dc --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteMfaAuthenticator( + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/delete-session.md b/docs/examples/1.7.x/server-go/examples/account/delete-session.md new file mode 100644 index 00000000000..398604ecdd0 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/delete-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-go/examples/account/delete-sessions.md new file mode 100644 index 00000000000..97eda5899aa --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/delete-sessions.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteSessions( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-go/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..0dd93bb765e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/get-prefs.md b/docs/examples/1.7.x/server-go/examples/account/get-prefs.md new file mode 100644 index 00000000000..b7985acbd79 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/get-prefs.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetPrefs( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/get-session.md b/docs/examples/1.7.x/server-go/examples/account/get-session.md new file mode 100644 index 00000000000..d6d1ffe05fd --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/get-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/get.md b/docs/examples/1.7.x/server-go/examples/account/get.md new file mode 100644 index 00000000000..7e08024930a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/list-identities.md b/docs/examples/1.7.x/server-go/examples/account/list-identities.md new file mode 100644 index 00000000000..7a7f4bc09fc --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/list-identities.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListIdentities( + account.WithListIdentitiesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/list-logs.md b/docs/examples/1.7.x/server-go/examples/account/list-logs.md new file mode 100644 index 00000000000..eec9ed33e01 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/list-logs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListLogs( + account.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-go/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..4dca59fff61 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/list-mfa-factors.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListMfaFactors( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/list-sessions.md b/docs/examples/1.7.x/server-go/examples/account/list-sessions.md new file mode 100644 index 00000000000..9f8a5f47998 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/list-sessions.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListSessions( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-email.md b/docs/examples/1.7.x/server-go/examples/account/update-email.md new file mode 100644 index 00000000000..11f98265b67 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-email.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateEmail( + "email@example.com", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-go/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..d3df3d46389 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-m-f-a.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateMFA( + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-go/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..fdc9d45c049 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.UpdateMagicURLSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-go/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..fb225574d43 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-mfa-authenticator.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateMfaAuthenticator( + "totp", + "<OTP>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-go/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..1e95a60d34b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-mfa-challenge.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateMfaChallenge( + "<CHALLENGE_ID>", + "<OTP>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-go/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..08feede2610 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-name.md b/docs/examples/1.7.x/server-go/examples/account/update-name.md new file mode 100644 index 00000000000..8424a269460 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-name.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateName( + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-password.md b/docs/examples/1.7.x/server-go/examples/account/update-password.md new file mode 100644 index 00000000000..561ff0a6672 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-password.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdatePassword( + "", + account.WithUpdatePasswordOldPassword("password"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-go/examples/account/update-phone-session.md new file mode 100644 index 00000000000..433043e439b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-phone-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.UpdatePhoneSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-go/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..46602a8be82 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-phone-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdatePhoneVerification( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-phone.md b/docs/examples/1.7.x/server-go/examples/account/update-phone.md new file mode 100644 index 00000000000..d753cb21d3f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-phone.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdatePhone( + "+12065550100", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-prefs.md b/docs/examples/1.7.x/server-go/examples/account/update-prefs.md new file mode 100644 index 00000000000..0319de200a6 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdatePrefs( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-recovery.md b/docs/examples/1.7.x/server-go/examples/account/update-recovery.md new file mode 100644 index 00000000000..f40414e5e85 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-recovery.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateRecovery( + "<USER_ID>", + "<SECRET>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-session.md b/docs/examples/1.7.x/server-go/examples/account/update-session.md new file mode 100644 index 00000000000..8e1725a71c8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-status.md b/docs/examples/1.7.x/server-go/examples/account/update-status.md new file mode 100644 index 00000000000..a9a0e239b05 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-status.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateStatus( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/account/update-verification.md b/docs/examples/1.7.x/server-go/examples/account/update-verification.md new file mode 100644 index 00000000000..2fd356dcf82 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/account/update-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateVerification( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-go/examples/avatars/get-browser.md new file mode 100644 index 00000000000..34f3bf58f9b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-browser.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetBrowser( + "aa", + avatars.WithGetBrowserWidth(0), + avatars.WithGetBrowserHeight(0), + avatars.WithGetBrowserQuality(-1), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-go/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..764debd8775 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-credit-card.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetCreditCard( + "amex", + avatars.WithGetCreditCardWidth(0), + avatars.WithGetCreditCardHeight(0), + avatars.WithGetCreditCardQuality(-1), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-go/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..bdea40db2f1 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-favicon.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetFavicon( + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-go/examples/avatars/get-flag.md new file mode 100644 index 00000000000..dfda1ed6879 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-flag.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetFlag( + "af", + avatars.WithGetFlagWidth(0), + avatars.WithGetFlagHeight(0), + avatars.WithGetFlagQuality(-1), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-image.md b/docs/examples/1.7.x/server-go/examples/avatars/get-image.md new file mode 100644 index 00000000000..a751abb9274 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-image.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetImage( + "https://example.com", + avatars.WithGetImageWidth(0), + avatars.WithGetImageHeight(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-go/examples/avatars/get-initials.md new file mode 100644 index 00000000000..21fa9282aeb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-initials.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetInitials( + avatars.WithGetInitialsName("<NAME>"), + avatars.WithGetInitialsWidth(0), + avatars.WithGetInitialsHeight(0), + avatars.WithGetInitialsBackground(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-go/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..8eeea5f6bf8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/avatars/get-q-r.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetQR( + "<TEXT>", + avatars.WithGetQRSize(1), + avatars.WithGetQRMargin(0), + avatars.WithGetQRDownload(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..73e118e3b7b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-boolean-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateBooleanAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateBooleanAttributeDefault(false), + databases.WithCreateBooleanAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-collection.md b/docs/examples/1.7.x/server-go/examples/databases/create-collection.md new file mode 100644 index 00000000000..815b21d6cb2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-collection.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<NAME>", + databases.WithCreateCollectionPermissions(interface{}{"read("any")"}), + databases.WithCreateCollectionDocumentSecurity(false), + databases.WithCreateCollectionEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..edf716911dd --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-datetime-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateDatetimeAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateDatetimeAttributeDefault(""), + databases.WithCreateDatetimeAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-document.md b/docs/examples/1.7.x/server-go/examples/databases/create-document.md new file mode 100644 index 00000000000..5a5280a1075 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-document.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + map[string]interface{}{}, + databases.WithCreateDocumentPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-documents.md b/docs/examples/1.7.x/server-go/examples/databases/create-documents.md new file mode 100644 index 00000000000..4199c282304 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-documents.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..f564b4033a0 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-email-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateEmailAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateEmailAttributeDefault("email@example.com"), + databases.WithCreateEmailAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..0827d31e1a7 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-enum-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateEnumAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + []interface{}{}, + false, + databases.WithCreateEnumAttributeDefault("<DEFAULT>"), + databases.WithCreateEnumAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..a262e1d3f39 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-float-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateFloatAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateFloatAttributeMin(0), + databases.WithCreateFloatAttributeMax(0), + databases.WithCreateFloatAttributeDefault(0), + databases.WithCreateFloatAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-index.md b/docs/examples/1.7.x/server-go/examples/databases/create-index.md new file mode 100644 index 00000000000..83e97d8e367 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-index.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + "key", + []interface{}{}, + databases.WithCreateIndexOrders([]interface{}{}), + databases.WithCreateIndexLengths([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..daa54f9ec69 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-integer-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateIntegerAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateIntegerAttributeMin(0), + databases.WithCreateIntegerAttributeMax(0), + databases.WithCreateIntegerAttributeDefault(0), + databases.WithCreateIntegerAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..4c5c9c37c2e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-ip-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateIpAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateIpAttributeDefault(""), + databases.WithCreateIpAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..e10aee8ddde --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-relationship-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateRelationshipAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<RELATED_COLLECTION_ID>", + "oneToOne", + databases.WithCreateRelationshipAttributeTwoWay(false), + databases.WithCreateRelationshipAttributeKey(""), + databases.WithCreateRelationshipAttributeTwoWayKey(""), + databases.WithCreateRelationshipAttributeOnDelete("cascade"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..e4bd63ce352 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-string-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateStringAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + 1, + false, + databases.WithCreateStringAttributeDefault("<DEFAULT>"), + databases.WithCreateStringAttributeArray(false), + databases.WithCreateStringAttributeEncrypt(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..9d8b2e13f8b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create-url-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateUrlAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateUrlAttributeDefault("https://example.com"), + databases.WithCreateUrlAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/create.md b/docs/examples/1.7.x/server-go/examples/databases/create.md new file mode 100644 index 00000000000..80f9f92c294 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Create( + "<DATABASE_ID>", + "<NAME>", + databases.WithCreateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..746dae5d0b2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/delete-attribute.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-go/examples/databases/delete-collection.md new file mode 100644 index 00000000000..abf6a7ae200 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/delete-collection.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/delete-document.md b/docs/examples/1.7.x/server-go/examples/databases/delete-document.md new file mode 100644 index 00000000000..e8131a73f58 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/delete-document.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-go/examples/databases/delete-documents.md new file mode 100644 index 00000000000..6527cee6779 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/delete-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithDeleteDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/delete-index.md b/docs/examples/1.7.x/server-go/examples/databases/delete-index.md new file mode 100644 index 00000000000..38e6bc94d0b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/delete-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/delete.md b/docs/examples/1.7.x/server-go/examples/databases/delete.md new file mode 100644 index 00000000000..0e7fb0a0582 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Delete( + "<DATABASE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/get-attribute.md new file mode 100644 index 00000000000..64ba82e65c4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/get-attribute.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/get-collection.md b/docs/examples/1.7.x/server-go/examples/databases/get-collection.md new file mode 100644 index 00000000000..ee166a4ff97 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/get-collection.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/get-document.md b/docs/examples/1.7.x/server-go/examples/databases/get-document.md new file mode 100644 index 00000000000..657a3dcab36 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/get-document.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + databases.WithGetDocumentQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/get-index.md b/docs/examples/1.7.x/server-go/examples/databases/get-index.md new file mode 100644 index 00000000000..efc9c1f9504 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/get-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/get.md b/docs/examples/1.7.x/server-go/examples/databases/get.md new file mode 100644 index 00000000000..b6d337111ba --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Get( + "<DATABASE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-go/examples/databases/list-attributes.md new file mode 100644 index 00000000000..8095b75d196 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/list-attributes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListAttributes( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListAttributesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/list-collections.md b/docs/examples/1.7.x/server-go/examples/databases/list-collections.md new file mode 100644 index 00000000000..2303c98bde2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/list-collections.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListCollections( + "<DATABASE_ID>", + databases.WithListCollectionsQueries([]interface{}{}), + databases.WithListCollectionsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/list-documents.md b/docs/examples/1.7.x/server-go/examples/databases/list-documents.md new file mode 100644 index 00000000000..952a1b2b489 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/list-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-go/examples/databases/list-indexes.md new file mode 100644 index 00000000000..8593dd71b77 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/list-indexes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListIndexes( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListIndexesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/list.md b/docs/examples/1.7.x/server-go/examples/databases/list.md new file mode 100644 index 00000000000..798e33b6ea8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.List( + databases.WithListQueries([]interface{}{}), + databases.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..770617635d4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-boolean-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateBooleanAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + false, + databases.WithUpdateBooleanAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-collection.md b/docs/examples/1.7.x/server-go/examples/databases/update-collection.md new file mode 100644 index 00000000000..1f80eaa255e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-collection.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<NAME>", + databases.WithUpdateCollectionPermissions(interface{}{"read("any")"}), + databases.WithUpdateCollectionDocumentSecurity(false), + databases.WithUpdateCollectionEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..252334b20f9 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-datetime-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateDatetimeAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "", + databases.WithUpdateDatetimeAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-document.md b/docs/examples/1.7.x/server-go/examples/databases/update-document.md new file mode 100644 index 00000000000..5ec0e189e9e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-document.md @@ -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.NewClient() + + 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) + response, error := service.UpdateDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + databases.WithUpdateDocumentData(map[string]interface{}{}), + databases.WithUpdateDocumentPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-documents.md b/docs/examples/1.7.x/server-go/examples/databases/update-documents.md new file mode 100644 index 00000000000..e6545906912 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-documents.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithUpdateDocumentsData(map[string]interface{}{}), + databases.WithUpdateDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..c2e0cf9552a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-email-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateEmailAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "email@example.com", + databases.WithUpdateEmailAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..fb993f37ccd --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-enum-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateEnumAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + []interface{}{}, + false, + "<DEFAULT>", + databases.WithUpdateEnumAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..814da25bdeb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-float-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateFloatAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + 0, + databases.WithUpdateFloatAttributeMin(0), + databases.WithUpdateFloatAttributeMax(0), + databases.WithUpdateFloatAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..961374e3db4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-integer-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateIntegerAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + 0, + databases.WithUpdateIntegerAttributeMin(0), + databases.WithUpdateIntegerAttributeMax(0), + databases.WithUpdateIntegerAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..4895feb54d6 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-ip-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateIpAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "", + databases.WithUpdateIpAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..6df9de20157 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-relationship-attribute.md @@ -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.NewClient() + + 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) + response, error := service.UpdateRelationshipAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + databases.WithUpdateRelationshipAttributeOnDelete("cascade"), + databases.WithUpdateRelationshipAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..0469527d04b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-string-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateStringAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "<DEFAULT>", + databases.WithUpdateStringAttributeSize(1), + databases.WithUpdateStringAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-go/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..53e2a482ef6 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update-url-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateUrlAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "https://example.com", + databases.WithUpdateUrlAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/update.md b/docs/examples/1.7.x/server-go/examples/databases/update.md new file mode 100644 index 00000000000..8f5c6896a61 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/update.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Update( + "<DATABASE_ID>", + "<NAME>", + databases.WithUpdateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-go/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..a8399f79c07 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/databases/upsert-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpsertDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithUpsertDocumentsDocuments([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/create-deployment.md new file mode 100644 index 00000000000..afcfeb31736 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create-deployment.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateDeployment( + "<FUNCTION_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + false, + functions.WithCreateDeploymentEntrypoint("<ENTRYPOINT>"), + functions.WithCreateDeploymentCommands("<COMMANDS>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..f6323717037 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateDuplicateDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + functions.WithCreateDuplicateDeploymentBuildId("<BUILD_ID>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create-execution.md b/docs/examples/1.7.x/server-go/examples/functions/create-execution.md new file mode 100644 index 00000000000..356e8513761 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create-execution.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateExecution( + "<FUNCTION_ID>", + functions.WithCreateExecutionBody("<BODY>"), + functions.WithCreateExecutionAsync(false), + functions.WithCreateExecutionPath("<PATH>"), + functions.WithCreateExecutionMethod("GET"), + functions.WithCreateExecutionHeaders(map[string]interface{}{}), + functions.WithCreateExecutionScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..b0b1ab8f4ad --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create-template-deployment.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateTemplateDeployment( + "<FUNCTION_ID>", + "<REPOSITORY>", + "<OWNER>", + "<ROOT_DIRECTORY>", + "<VERSION>", + functions.WithCreateTemplateDeploymentActivate(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create-variable.md b/docs/examples/1.7.x/server-go/examples/functions/create-variable.md new file mode 100644 index 00000000000..961869e325e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create-variable.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateVariable( + "<FUNCTION_ID>", + "<KEY>", + "<VALUE>", + functions.WithCreateVariableSecret(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..06e583ebe17 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create-vcs-deployment.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.CreateVcsDeployment( + "<FUNCTION_ID>", + "branch", + "<REFERENCE>", + functions.WithCreateVcsDeploymentActivate(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/create.md b/docs/examples/1.7.x/server-go/examples/functions/create.md new file mode 100644 index 00000000000..c3b13d1ff7c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/create.md @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Create( + "<FUNCTION_ID>", + "<NAME>", + "node-14.5", + functions.WithCreateExecute(interface{}{"any"}), + functions.WithCreateEvents([]interface{}{}), + functions.WithCreateSchedule(""), + functions.WithCreateTimeout(1), + functions.WithCreateEnabled(false), + functions.WithCreateLogging(false), + functions.WithCreateEntrypoint("<ENTRYPOINT>"), + functions.WithCreateCommands("<COMMANDS>"), + functions.WithCreateScopes([]interface{}{}), + functions.WithCreateInstallationId("<INSTALLATION_ID>"), + functions.WithCreateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + functions.WithCreateProviderBranch("<PROVIDER_BRANCH>"), + functions.WithCreateProviderSilentMode(false), + functions.WithCreateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + functions.WithCreateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..cf088e82c88 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/delete-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-go/examples/functions/delete-execution.md new file mode 100644 index 00000000000..e863e3ba573 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/delete-execution.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteExecution( + "<FUNCTION_ID>", + "<EXECUTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-go/examples/functions/delete-variable.md new file mode 100644 index 00000000000..7cb66a04ceb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/delete-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.DeleteVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/delete.md b/docs/examples/1.7.x/server-go/examples/functions/delete.md new file mode 100644 index 00000000000..ec006f20794 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Delete( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-go/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..f867d4f9036 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/get-deployment-download.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetDeploymentDownload( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + functions.WithGetDeploymentDownloadType("source"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/get-deployment.md new file mode 100644 index 00000000000..6b6824500a9 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/get-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/get-execution.md b/docs/examples/1.7.x/server-go/examples/functions/get-execution.md new file mode 100644 index 00000000000..627c95b5a7d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/get-execution.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetExecution( + "<FUNCTION_ID>", + "<EXECUTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/get-variable.md b/docs/examples/1.7.x/server-go/examples/functions/get-variable.md new file mode 100644 index 00000000000..003baf4011b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/get-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.GetVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/get.md b/docs/examples/1.7.x/server-go/examples/functions/get.md new file mode 100644 index 00000000000..a18d0526dea --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Get( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-go/examples/functions/list-deployments.md new file mode 100644 index 00000000000..b137c3047c4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/list-deployments.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListDeployments( + "<FUNCTION_ID>", + functions.WithListDeploymentsQueries([]interface{}{}), + functions.WithListDeploymentsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/list-executions.md b/docs/examples/1.7.x/server-go/examples/functions/list-executions.md new file mode 100644 index 00000000000..758d3f80d72 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/list-executions.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListExecutions( + "<FUNCTION_ID>", + functions.WithListExecutionsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-go/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..76e4414df28 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/list-runtimes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListRuntimes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-go/examples/functions/list-specifications.md new file mode 100644 index 00000000000..c1abea5d170 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/list-specifications.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListSpecifications( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/list-variables.md b/docs/examples/1.7.x/server-go/examples/functions/list-variables.md new file mode 100644 index 00000000000..e27df96670a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/list-variables.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.ListVariables( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/list.md b/docs/examples/1.7.x/server-go/examples/functions/list.md new file mode 100644 index 00000000000..36a55d72b28 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.List( + functions.WithListQueries([]interface{}{}), + functions.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-go/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..d89d59200a3 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/update-deployment-status.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateDeploymentStatus( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-go/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..ee0ccf5e217 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/update-function-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateFunctionDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/update-variable.md b/docs/examples/1.7.x/server-go/examples/functions/update-variable.md new file mode 100644 index 00000000000..42ec29a914f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/update-variable.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.UpdateVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + "<KEY>", + functions.WithUpdateVariableValue("<VALUE>"), + functions.WithUpdateVariableSecret(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/functions/update.md b/docs/examples/1.7.x/server-go/examples/functions/update.md new file mode 100644 index 00000000000..318ba4dfd0e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/functions/update.md @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + 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) + response, error := service.Update( + "<FUNCTION_ID>", + "<NAME>", + functions.WithUpdateRuntime("node-14.5"), + functions.WithUpdateExecute(interface{}{"any"}), + functions.WithUpdateEvents([]interface{}{}), + functions.WithUpdateSchedule(""), + functions.WithUpdateTimeout(1), + functions.WithUpdateEnabled(false), + functions.WithUpdateLogging(false), + functions.WithUpdateEntrypoint("<ENTRYPOINT>"), + functions.WithUpdateCommands("<COMMANDS>"), + functions.WithUpdateScopes([]interface{}{}), + functions.WithUpdateInstallationId("<INSTALLATION_ID>"), + functions.WithUpdateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + functions.WithUpdateProviderBranch("<PROVIDER_BRANCH>"), + functions.WithUpdateProviderSilentMode(false), + functions.WithUpdateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + functions.WithUpdateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/graphql/mutation.md b/docs/examples/1.7.x/server-go/examples/graphql/mutation.md new file mode 100644 index 00000000000..092e817c939 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/graphql/mutation.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/graphql" +) + +func main() { + client := client.NewClient() + + 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 := graphql.NewGraphql(client) + response, error := service.Mutation( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/graphql/query.md b/docs/examples/1.7.x/server-go/examples/graphql/query.md new file mode 100644 index 00000000000..511d6c452ea --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/graphql/query.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/graphql" +) + +func main() { + client := client.NewClient() + + 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 := graphql.NewGraphql(client) + response, error := service.Query( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-go/examples/health/get-antivirus.md new file mode 100644 index 00000000000..1640c01c0eb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-antivirus.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetAntivirus( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-cache.md b/docs/examples/1.7.x/server-go/examples/health/get-cache.md new file mode 100644 index 00000000000..976d51fbe74 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-cache.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetCache( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-certificate.md b/docs/examples/1.7.x/server-go/examples/health/get-certificate.md new file mode 100644 index 00000000000..44d1d1bb929 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-certificate.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetCertificate( + health.WithGetCertificateDomain(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-d-b.md b/docs/examples/1.7.x/server-go/examples/health/get-d-b.md new file mode 100644 index 00000000000..8f681a04c19 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-d-b.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetDB( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-go/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..814b8850e83 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-failed-jobs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetFailedJobs( + "v1-database", + health.WithGetFailedJobsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-go/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..6a3d67e838a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-pub-sub.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetPubSub( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..ebd1a2f3d84 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-builds.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueBuilds( + health.WithGetQueueBuildsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..473d953c157 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-certificates.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueCertificates( + health.WithGetQueueCertificatesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..83eb8584a54 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-databases.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueDatabases( + health.WithGetQueueDatabasesName("<NAME>"), + health.WithGetQueueDatabasesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..e491446f94c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-deletes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueDeletes( + health.WithGetQueueDeletesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..c7cf45a3557 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-functions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueFunctions( + health.WithGetQueueFunctionsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..b369c24277c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-logs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueLogs( + health.WithGetQueueLogsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..cc944d0cadf --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-mails.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueMails( + health.WithGetQueueMailsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..65c6c34610f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-messaging.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueMessaging( + health.WithGetQueueMessagingThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..d0c3bd2573b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-migrations.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueMigrations( + health.WithGetQueueMigrationsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..5ed004c7cf7 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-stats-resources.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueStatsResources( + health.WithGetQueueStatsResourcesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..5202371d1ef --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-usage.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueUsage( + health.WithGetQueueUsageThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-go/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..4782aef9aca --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-queue-webhooks.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetQueueWebhooks( + health.WithGetQueueWebhooksThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-go/examples/health/get-storage-local.md new file mode 100644 index 00000000000..e58b944497a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-storage-local.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetStorageLocal( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-storage.md b/docs/examples/1.7.x/server-go/examples/health/get-storage.md new file mode 100644 index 00000000000..73ae964d514 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-storage.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetStorage( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get-time.md b/docs/examples/1.7.x/server-go/examples/health/get-time.md new file mode 100644 index 00000000000..43c0ca46a4d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get-time.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.GetTime( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/health/get.md b/docs/examples/1.7.x/server-go/examples/health/get.md new file mode 100644 index 00000000000..c9730f70dd4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/health/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + 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 := health.NewHealth(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/get.md b/docs/examples/1.7.x/server-go/examples/locale/get.md new file mode 100644 index 00000000000..055889b6ce7 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-codes.md b/docs/examples/1.7.x/server-go/examples/locale/list-codes.md new file mode 100644 index 00000000000..a69a05d6cd7 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-continents.md b/docs/examples/1.7.x/server-go/examples/locale/list-continents.md new file mode 100644 index 00000000000..0430fdbe994 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-continents.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListContinents( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-go/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..92bd24d1f8f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-countries-e-u.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListCountriesEU( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-go/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..1615834103a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-countries-phones.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListCountriesPhones( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-countries.md b/docs/examples/1.7.x/server-go/examples/locale/list-countries.md new file mode 100644 index 00000000000..25bbbd15382 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-countries.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListCountries( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-go/examples/locale/list-currencies.md new file mode 100644 index 00000000000..e4bde5d9d98 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-currencies.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListCurrencies( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/locale/list-languages.md b/docs/examples/1.7.x/server-go/examples/locale/list-languages.md new file mode 100644 index 00000000000..acce3181beb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/locale/list-languages.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + 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 := locale.NewLocale(client) + response, error := service.ListLanguages( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..620219e07db --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-apns-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateApnsProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateApnsProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithCreateApnsProviderTeamId("<TEAM_ID>"), + messaging.WithCreateApnsProviderBundleId("<BUNDLE_ID>"), + messaging.WithCreateApnsProviderSandbox(false), + messaging.WithCreateApnsProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-email.md b/docs/examples/1.7.x/server-go/examples/messaging/create-email.md new file mode 100644 index 00000000000..3da6c88cf4d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-email.md @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateEmail( + "<MESSAGE_ID>", + "<SUBJECT>", + "<CONTENT>", + messaging.WithCreateEmailTopics([]interface{}{}), + messaging.WithCreateEmailUsers([]interface{}{}), + messaging.WithCreateEmailTargets([]interface{}{}), + messaging.WithCreateEmailCc([]interface{}{}), + messaging.WithCreateEmailBcc([]interface{}{}), + messaging.WithCreateEmailAttachments([]interface{}{}), + messaging.WithCreateEmailDraft(false), + messaging.WithCreateEmailHtml(false), + messaging.WithCreateEmailScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..c70c340eb5f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-fcm-provider.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateFcmProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateFcmProviderServiceAccountJSON(map[string]interface{}{}), + messaging.WithCreateFcmProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..e265218ef49 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateMailgunProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateMailgunProviderApiKey("<API_KEY>"), + messaging.WithCreateMailgunProviderDomain("<DOMAIN>"), + messaging.WithCreateMailgunProviderIsEuRegion(false), + messaging.WithCreateMailgunProviderFromName("<FROM_NAME>"), + messaging.WithCreateMailgunProviderFromEmail("email@example.com"), + messaging.WithCreateMailgunProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateMailgunProviderReplyToEmail("email@example.com"), + messaging.WithCreateMailgunProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..53660cbfa03 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-msg91provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateMsg91Provider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateMsg91ProviderTemplateId("<TEMPLATE_ID>"), + messaging.WithCreateMsg91ProviderSenderId("<SENDER_ID>"), + messaging.WithCreateMsg91ProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateMsg91ProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-push.md b/docs/examples/1.7.x/server-go/examples/messaging/create-push.md new file mode 100644 index 00000000000..214d6ae0ed1 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-push.md @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreatePush( + "<MESSAGE_ID>", + messaging.WithCreatePushTitle("<TITLE>"), + messaging.WithCreatePushBody("<BODY>"), + messaging.WithCreatePushTopics([]interface{}{}), + messaging.WithCreatePushUsers([]interface{}{}), + messaging.WithCreatePushTargets([]interface{}{}), + messaging.WithCreatePushData(map[string]interface{}{}), + messaging.WithCreatePushAction("<ACTION>"), + messaging.WithCreatePushImage("[ID1:ID2]"), + messaging.WithCreatePushIcon("<ICON>"), + messaging.WithCreatePushSound("<SOUND>"), + messaging.WithCreatePushColor("<COLOR>"), + messaging.WithCreatePushTag("<TAG>"), + messaging.WithCreatePushBadge(0), + messaging.WithCreatePushDraft(false), + messaging.WithCreatePushScheduledAt(""), + messaging.WithCreatePushContentAvailable(false), + messaging.WithCreatePushCritical(false), + messaging.WithCreatePushPriority("normal"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..69375a23ca8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateSendgridProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateSendgridProviderApiKey("<API_KEY>"), + messaging.WithCreateSendgridProviderFromName("<FROM_NAME>"), + messaging.WithCreateSendgridProviderFromEmail("email@example.com"), + messaging.WithCreateSendgridProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSendgridProviderReplyToEmail("email@example.com"), + messaging.WithCreateSendgridProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-go/examples/messaging/create-sms.md new file mode 100644 index 00000000000..95c7738969c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-sms.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateSms( + "<MESSAGE_ID>", + "<CONTENT>", + messaging.WithCreateSmsTopics([]interface{}{}), + messaging.WithCreateSmsUsers([]interface{}{}), + messaging.WithCreateSmsTargets([]interface{}{}), + messaging.WithCreateSmsDraft(false), + messaging.WithCreateSmsScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..4c88b4ef7ab --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-smtp-provider.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateSmtpProvider( + "<PROVIDER_ID>", + "<NAME>", + "<HOST>", + messaging.WithCreateSmtpProviderPort(1), + messaging.WithCreateSmtpProviderUsername("<USERNAME>"), + messaging.WithCreateSmtpProviderPassword("<PASSWORD>"), + messaging.WithCreateSmtpProviderEncryption("none"), + messaging.WithCreateSmtpProviderAutoTLS(false), + messaging.WithCreateSmtpProviderMailer("<MAILER>"), + messaging.WithCreateSmtpProviderFromName("<FROM_NAME>"), + messaging.WithCreateSmtpProviderFromEmail("email@example.com"), + messaging.WithCreateSmtpProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSmtpProviderReplyToEmail("email@example.com"), + messaging.WithCreateSmtpProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-go/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..c4faa8544a8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-subscriber.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token + + service := messaging.NewMessaging(client) + response, error := service.CreateSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..11dd8c9bc6c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-telesign-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateTelesignProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTelesignProviderFrom("+12065550100"), + messaging.WithCreateTelesignProviderCustomerId("<CUSTOMER_ID>"), + messaging.WithCreateTelesignProviderApiKey("<API_KEY>"), + messaging.WithCreateTelesignProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..a0365492402 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateTextmagicProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTextmagicProviderFrom("+12065550100"), + messaging.WithCreateTextmagicProviderUsername("<USERNAME>"), + messaging.WithCreateTextmagicProviderApiKey("<API_KEY>"), + messaging.WithCreateTextmagicProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-go/examples/messaging/create-topic.md new file mode 100644 index 00000000000..0453089fbc6 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-topic.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateTopic( + "<TOPIC_ID>", + "<NAME>", + messaging.WithCreateTopicSubscribe(interface{}{"any"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..cd8a993a6cc --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-twilio-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateTwilioProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTwilioProviderFrom("+12065550100"), + messaging.WithCreateTwilioProviderAccountSid("<ACCOUNT_SID>"), + messaging.WithCreateTwilioProviderAuthToken("<AUTH_TOKEN>"), + messaging.WithCreateTwilioProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..e17e8d885bb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/create-vonage-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.CreateVonageProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateVonageProviderFrom("+12065550100"), + messaging.WithCreateVonageProviderApiKey("<API_KEY>"), + messaging.WithCreateVonageProviderApiSecret("<API_SECRET>"), + messaging.WithCreateVonageProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..2c5b77d622e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/delete-provider.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.DeleteProvider( + "<PROVIDER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-go/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..fec03f53f74 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/delete-subscriber.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token + + service := messaging.NewMessaging(client) + response, error := service.DeleteSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-go/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..3a9787b6ce4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/delete-topic.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.DeleteTopic( + "<TOPIC_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/delete.md b/docs/examples/1.7.x/server-go/examples/messaging/delete.md new file mode 100644 index 00000000000..4d5accd22fb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.Delete( + "<MESSAGE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/get-message.md b/docs/examples/1.7.x/server-go/examples/messaging/get-message.md new file mode 100644 index 00000000000..d6db3188c81 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/get-message.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.GetMessage( + "<MESSAGE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/get-provider.md new file mode 100644 index 00000000000..ff2bab3acfa --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/get-provider.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.GetProvider( + "<PROVIDER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-go/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..47fccf23cd9 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/get-subscriber.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.GetSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-go/examples/messaging/get-topic.md new file mode 100644 index 00000000000..a332f55ba44 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/get-topic.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.GetTopic( + "<TOPIC_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-go/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..b4a5528b41f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-message-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListMessageLogs( + "<MESSAGE_ID>", + messaging.WithListMessageLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-go/examples/messaging/list-messages.md new file mode 100644 index 00000000000..f1ca97d3fe5 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-messages.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListMessages( + messaging.WithListMessagesQueries([]interface{}{}), + messaging.WithListMessagesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-go/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..945dbcfd4eb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-provider-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListProviderLogs( + "<PROVIDER_ID>", + messaging.WithListProviderLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-go/examples/messaging/list-providers.md new file mode 100644 index 00000000000..57c09a20611 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-providers.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListProviders( + messaging.WithListProvidersQueries([]interface{}{}), + messaging.WithListProvidersSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-go/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..cb2f050dd9c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListSubscriberLogs( + "<SUBSCRIBER_ID>", + messaging.WithListSubscriberLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-go/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..045777d8c45 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-subscribers.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListSubscribers( + "<TOPIC_ID>", + messaging.WithListSubscribersQueries([]interface{}{}), + messaging.WithListSubscribersSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-go/examples/messaging/list-targets.md new file mode 100644 index 00000000000..9cc65e0d1c6 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-targets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListTargets( + "<MESSAGE_ID>", + messaging.WithListTargetsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-go/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..2e928dbfc76 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-topic-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListTopicLogs( + "<TOPIC_ID>", + messaging.WithListTopicLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-go/examples/messaging/list-topics.md new file mode 100644 index 00000000000..69574ae02fe --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/list-topics.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.ListTopics( + messaging.WithListTopicsQueries([]interface{}{}), + messaging.WithListTopicsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..aac3e39c6ec --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-apns-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateApnsProvider( + "<PROVIDER_ID>", + messaging.WithUpdateApnsProviderName("<NAME>"), + messaging.WithUpdateApnsProviderEnabled(false), + messaging.WithUpdateApnsProviderAuthKey("<AUTH_KEY>"), + messaging.WithUpdateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithUpdateApnsProviderTeamId("<TEAM_ID>"), + messaging.WithUpdateApnsProviderBundleId("<BUNDLE_ID>"), + messaging.WithUpdateApnsProviderSandbox(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-email.md b/docs/examples/1.7.x/server-go/examples/messaging/update-email.md new file mode 100644 index 00000000000..f1e9f081d22 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-email.md @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateEmail( + "<MESSAGE_ID>", + messaging.WithUpdateEmailTopics([]interface{}{}), + messaging.WithUpdateEmailUsers([]interface{}{}), + messaging.WithUpdateEmailTargets([]interface{}{}), + messaging.WithUpdateEmailSubject("<SUBJECT>"), + messaging.WithUpdateEmailContent("<CONTENT>"), + messaging.WithUpdateEmailDraft(false), + messaging.WithUpdateEmailHtml(false), + messaging.WithUpdateEmailCc([]interface{}{}), + messaging.WithUpdateEmailBcc([]interface{}{}), + messaging.WithUpdateEmailScheduledAt(""), + messaging.WithUpdateEmailAttachments([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..55e4b90363c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-fcm-provider.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateFcmProvider( + "<PROVIDER_ID>", + messaging.WithUpdateFcmProviderName("<NAME>"), + messaging.WithUpdateFcmProviderEnabled(false), + messaging.WithUpdateFcmProviderServiceAccountJSON(map[string]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..5bb229f3486 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateMailgunProvider( + "<PROVIDER_ID>", + messaging.WithUpdateMailgunProviderName("<NAME>"), + messaging.WithUpdateMailgunProviderApiKey("<API_KEY>"), + messaging.WithUpdateMailgunProviderDomain("<DOMAIN>"), + messaging.WithUpdateMailgunProviderIsEuRegion(false), + messaging.WithUpdateMailgunProviderEnabled(false), + messaging.WithUpdateMailgunProviderFromName("<FROM_NAME>"), + messaging.WithUpdateMailgunProviderFromEmail("email@example.com"), + messaging.WithUpdateMailgunProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateMailgunProviderReplyToEmail("<REPLY_TO_EMAIL>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..d19c5002624 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-msg91provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateMsg91Provider( + "<PROVIDER_ID>", + messaging.WithUpdateMsg91ProviderName("<NAME>"), + messaging.WithUpdateMsg91ProviderEnabled(false), + messaging.WithUpdateMsg91ProviderTemplateId("<TEMPLATE_ID>"), + messaging.WithUpdateMsg91ProviderSenderId("<SENDER_ID>"), + messaging.WithUpdateMsg91ProviderAuthKey("<AUTH_KEY>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-push.md b/docs/examples/1.7.x/server-go/examples/messaging/update-push.md new file mode 100644 index 00000000000..856b95dc1bb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-push.md @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdatePush( + "<MESSAGE_ID>", + messaging.WithUpdatePushTopics([]interface{}{}), + messaging.WithUpdatePushUsers([]interface{}{}), + messaging.WithUpdatePushTargets([]interface{}{}), + messaging.WithUpdatePushTitle("<TITLE>"), + messaging.WithUpdatePushBody("<BODY>"), + messaging.WithUpdatePushData(map[string]interface{}{}), + messaging.WithUpdatePushAction("<ACTION>"), + messaging.WithUpdatePushImage("[ID1:ID2]"), + messaging.WithUpdatePushIcon("<ICON>"), + messaging.WithUpdatePushSound("<SOUND>"), + messaging.WithUpdatePushColor("<COLOR>"), + messaging.WithUpdatePushTag("<TAG>"), + messaging.WithUpdatePushBadge(0), + messaging.WithUpdatePushDraft(false), + messaging.WithUpdatePushScheduledAt(""), + messaging.WithUpdatePushContentAvailable(false), + messaging.WithUpdatePushCritical(false), + messaging.WithUpdatePushPriority("normal"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..5742b448743 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateSendgridProvider( + "<PROVIDER_ID>", + messaging.WithUpdateSendgridProviderName("<NAME>"), + messaging.WithUpdateSendgridProviderEnabled(false), + messaging.WithUpdateSendgridProviderApiKey("<API_KEY>"), + messaging.WithUpdateSendgridProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSendgridProviderFromEmail("email@example.com"), + messaging.WithUpdateSendgridProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSendgridProviderReplyToEmail("<REPLY_TO_EMAIL>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-go/examples/messaging/update-sms.md new file mode 100644 index 00000000000..09b3456d388 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-sms.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateSms( + "<MESSAGE_ID>", + messaging.WithUpdateSmsTopics([]interface{}{}), + messaging.WithUpdateSmsUsers([]interface{}{}), + messaging.WithUpdateSmsTargets([]interface{}{}), + messaging.WithUpdateSmsContent("<CONTENT>"), + messaging.WithUpdateSmsDraft(false), + messaging.WithUpdateSmsScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..b99f86e1230 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-smtp-provider.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateSmtpProvider( + "<PROVIDER_ID>", + messaging.WithUpdateSmtpProviderName("<NAME>"), + messaging.WithUpdateSmtpProviderHost("<HOST>"), + messaging.WithUpdateSmtpProviderPort(1), + messaging.WithUpdateSmtpProviderUsername("<USERNAME>"), + messaging.WithUpdateSmtpProviderPassword("<PASSWORD>"), + messaging.WithUpdateSmtpProviderEncryption("none"), + messaging.WithUpdateSmtpProviderAutoTLS(false), + messaging.WithUpdateSmtpProviderMailer("<MAILER>"), + messaging.WithUpdateSmtpProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSmtpProviderFromEmail("email@example.com"), + messaging.WithUpdateSmtpProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSmtpProviderReplyToEmail("<REPLY_TO_EMAIL>"), + messaging.WithUpdateSmtpProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..5fb99a68ec9 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-telesign-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateTelesignProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTelesignProviderName("<NAME>"), + messaging.WithUpdateTelesignProviderEnabled(false), + messaging.WithUpdateTelesignProviderCustomerId("<CUSTOMER_ID>"), + messaging.WithUpdateTelesignProviderApiKey("<API_KEY>"), + messaging.WithUpdateTelesignProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..24e619cc7f4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateTextmagicProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTextmagicProviderName("<NAME>"), + messaging.WithUpdateTextmagicProviderEnabled(false), + messaging.WithUpdateTextmagicProviderUsername("<USERNAME>"), + messaging.WithUpdateTextmagicProviderApiKey("<API_KEY>"), + messaging.WithUpdateTextmagicProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-go/examples/messaging/update-topic.md new file mode 100644 index 00000000000..ab8902b4b2f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-topic.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateTopic( + "<TOPIC_ID>", + messaging.WithUpdateTopicName("<NAME>"), + messaging.WithUpdateTopicSubscribe(interface{}{"any"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..316a2516d16 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-twilio-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateTwilioProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTwilioProviderName("<NAME>"), + messaging.WithUpdateTwilioProviderEnabled(false), + messaging.WithUpdateTwilioProviderAccountSid("<ACCOUNT_SID>"), + messaging.WithUpdateTwilioProviderAuthToken("<AUTH_TOKEN>"), + messaging.WithUpdateTwilioProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-go/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..d17452140a3 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/messaging/update-vonage-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + 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 := messaging.NewMessaging(client) + response, error := service.UpdateVonageProvider( + "<PROVIDER_ID>", + messaging.WithUpdateVonageProviderName("<NAME>"), + messaging.WithUpdateVonageProviderEnabled(false), + messaging.WithUpdateVonageProviderApiKey("<API_KEY>"), + messaging.WithUpdateVonageProviderApiSecret("<API_SECRET>"), + messaging.WithUpdateVonageProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/create-deployment.md new file mode 100644 index 00000000000..0e97c8083a2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/create-deployment.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.CreateDeployment( + "<SITE_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + false, + sites.WithCreateDeploymentInstallCommand("<INSTALL_COMMAND>"), + sites.WithCreateDeploymentBuildCommand("<BUILD_COMMAND>"), + sites.WithCreateDeploymentOutputDirectory("<OUTPUT_DIRECTORY>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..a128fda1855 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.CreateDuplicateDeployment( + "<SITE_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..2c1e8fb5c5a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/create-template-deployment.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.CreateTemplateDeployment( + "<SITE_ID>", + "<REPOSITORY>", + "<OWNER>", + "<ROOT_DIRECTORY>", + "<VERSION>", + sites.WithCreateTemplateDeploymentActivate(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/create-variable.md b/docs/examples/1.7.x/server-go/examples/sites/create-variable.md new file mode 100644 index 00000000000..1660ad24a1a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/create-variable.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.CreateVariable( + "<SITE_ID>", + "<KEY>", + "<VALUE>", + sites.WithCreateVariableSecret(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..2135f71edbe --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/create-vcs-deployment.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.CreateVcsDeployment( + "<SITE_ID>", + "branch", + "<REFERENCE>", + sites.WithCreateVcsDeploymentActivate(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/create.md b/docs/examples/1.7.x/server-go/examples/sites/create.md new file mode 100644 index 00000000000..c683404d860 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/create.md @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.Create( + "<SITE_ID>", + "<NAME>", + "analog", + "node-14.5", + sites.WithCreateEnabled(false), + sites.WithCreateLogging(false), + sites.WithCreateTimeout(1), + sites.WithCreateInstallCommand("<INSTALL_COMMAND>"), + sites.WithCreateBuildCommand("<BUILD_COMMAND>"), + sites.WithCreateOutputDirectory("<OUTPUT_DIRECTORY>"), + sites.WithCreateAdapter("static"), + sites.WithCreateInstallationId("<INSTALLATION_ID>"), + sites.WithCreateFallbackFile("<FALLBACK_FILE>"), + sites.WithCreateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + sites.WithCreateProviderBranch("<PROVIDER_BRANCH>"), + sites.WithCreateProviderSilentMode(false), + sites.WithCreateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + sites.WithCreateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..83daf676344 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/delete-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.DeleteDeployment( + "<SITE_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/delete-log.md b/docs/examples/1.7.x/server-go/examples/sites/delete-log.md new file mode 100644 index 00000000000..6f17e84dc4f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/delete-log.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.DeleteLog( + "<SITE_ID>", + "<LOG_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-go/examples/sites/delete-variable.md new file mode 100644 index 00000000000..80f8b7cda9e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/delete-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.DeleteVariable( + "<SITE_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/delete.md b/docs/examples/1.7.x/server-go/examples/sites/delete.md new file mode 100644 index 00000000000..4015d9c51ef --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.Delete( + "<SITE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-go/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..1e97fba0c60 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/get-deployment-download.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.GetDeploymentDownload( + "<SITE_ID>", + "<DEPLOYMENT_ID>", + sites.WithGetDeploymentDownloadType("source"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/get-deployment.md new file mode 100644 index 00000000000..cf4be1f92e3 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/get-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.GetDeployment( + "<SITE_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/get-log.md b/docs/examples/1.7.x/server-go/examples/sites/get-log.md new file mode 100644 index 00000000000..2b19b2b8a80 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/get-log.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.GetLog( + "<SITE_ID>", + "<LOG_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/get-variable.md b/docs/examples/1.7.x/server-go/examples/sites/get-variable.md new file mode 100644 index 00000000000..6c8395a5dbc --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/get-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.GetVariable( + "<SITE_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/get.md b/docs/examples/1.7.x/server-go/examples/sites/get.md new file mode 100644 index 00000000000..a2fae14dffa --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.Get( + "<SITE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-go/examples/sites/list-deployments.md new file mode 100644 index 00000000000..f81580f39f3 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/list-deployments.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.ListDeployments( + "<SITE_ID>", + sites.WithListDeploymentsQueries([]interface{}{}), + sites.WithListDeploymentsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-go/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..c134c0bf408 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/list-frameworks.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.ListFrameworks( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/list-logs.md b/docs/examples/1.7.x/server-go/examples/sites/list-logs.md new file mode 100644 index 00000000000..7d7a841b643 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/list-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.ListLogs( + "<SITE_ID>", + sites.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-go/examples/sites/list-specifications.md new file mode 100644 index 00000000000..4136f618815 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/list-specifications.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.ListSpecifications( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/list-variables.md b/docs/examples/1.7.x/server-go/examples/sites/list-variables.md new file mode 100644 index 00000000000..e3070ad75b0 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/list-variables.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.ListVariables( + "<SITE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/list.md b/docs/examples/1.7.x/server-go/examples/sites/list.md new file mode 100644 index 00000000000..d8792808021 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.List( + sites.WithListQueries([]interface{}{}), + sites.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-go/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..efb388e3c65 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/update-deployment-status.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.UpdateDeploymentStatus( + "<SITE_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-go/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..5904a76a74d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/update-site-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.UpdateSiteDeployment( + "<SITE_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/update-variable.md b/docs/examples/1.7.x/server-go/examples/sites/update-variable.md new file mode 100644 index 00000000000..d50fe8c046f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/update-variable.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.UpdateVariable( + "<SITE_ID>", + "<VARIABLE_ID>", + "<KEY>", + sites.WithUpdateVariableValue("<VALUE>"), + sites.WithUpdateVariableSecret(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/sites/update.md b/docs/examples/1.7.x/server-go/examples/sites/update.md new file mode 100644 index 00000000000..4001eb4f48c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/sites/update.md @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/sites" +) + +func main() { + client := client.NewClient() + + 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 := sites.NewSites(client) + response, error := service.Update( + "<SITE_ID>", + "<NAME>", + "analog", + sites.WithUpdateEnabled(false), + sites.WithUpdateLogging(false), + sites.WithUpdateTimeout(1), + sites.WithUpdateInstallCommand("<INSTALL_COMMAND>"), + sites.WithUpdateBuildCommand("<BUILD_COMMAND>"), + sites.WithUpdateOutputDirectory("<OUTPUT_DIRECTORY>"), + sites.WithUpdateBuildRuntime("node-14.5"), + sites.WithUpdateAdapter("static"), + sites.WithUpdateFallbackFile("<FALLBACK_FILE>"), + sites.WithUpdateInstallationId("<INSTALLATION_ID>"), + sites.WithUpdateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + sites.WithUpdateProviderBranch("<PROVIDER_BRANCH>"), + sites.WithUpdateProviderSilentMode(false), + sites.WithUpdateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + sites.WithUpdateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-go/examples/storage/create-bucket.md new file mode 100644 index 00000000000..39dc1d06d96 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/create-bucket.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.CreateBucket( + "<BUCKET_ID>", + "<NAME>", + storage.WithCreateBucketPermissions(interface{}{"read("any")"}), + storage.WithCreateBucketFileSecurity(false), + storage.WithCreateBucketEnabled(false), + storage.WithCreateBucketMaximumFileSize(1), + storage.WithCreateBucketAllowedFileExtensions([]interface{}{}), + storage.WithCreateBucketCompression("none"), + storage.WithCreateBucketEncryption(false), + storage.WithCreateBucketAntivirus(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/create-file.md b/docs/examples/1.7.x/server-go/examples/storage/create-file.md new file mode 100644 index 00000000000..1ca815c92ec --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/create-file.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.CreateFile( + "<BUCKET_ID>", + "<FILE_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + storage.WithCreateFilePermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-go/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..37a3f69b256 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/delete-bucket.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.DeleteBucket( + "<BUCKET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/delete-file.md b/docs/examples/1.7.x/server-go/examples/storage/delete-file.md new file mode 100644 index 00000000000..522aacae728 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/delete-file.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.DeleteFile( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-go/examples/storage/get-bucket.md new file mode 100644 index 00000000000..b76ac37d25b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/get-bucket.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.GetBucket( + "<BUCKET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-go/examples/storage/get-file-download.md new file mode 100644 index 00000000000..9aa461de89d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/get-file-download.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.GetFileDownload( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithGetFileDownloadToken("<TOKEN>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-go/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..511cad13253 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/get-file-preview.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.GetFilePreview( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithGetFilePreviewWidth(0), + storage.WithGetFilePreviewHeight(0), + storage.WithGetFilePreviewGravity("center"), + storage.WithGetFilePreviewQuality(-1), + storage.WithGetFilePreviewBorderWidth(0), + storage.WithGetFilePreviewBorderColor(""), + storage.WithGetFilePreviewBorderRadius(0), + storage.WithGetFilePreviewOpacity(0), + storage.WithGetFilePreviewRotation(-360), + storage.WithGetFilePreviewBackground(""), + storage.WithGetFilePreviewOutput("jpg"), + storage.WithGetFilePreviewToken("<TOKEN>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-go/examples/storage/get-file-view.md new file mode 100644 index 00000000000..58325175341 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/get-file-view.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.GetFileView( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithGetFileViewToken("<TOKEN>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/get-file.md b/docs/examples/1.7.x/server-go/examples/storage/get-file.md new file mode 100644 index 00000000000..824c86f0542 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/get-file.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.GetFile( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-go/examples/storage/list-buckets.md new file mode 100644 index 00000000000..00dd8d657b7 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/list-buckets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.ListBuckets( + storage.WithListBucketsQueries([]interface{}{}), + storage.WithListBucketsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/list-files.md b/docs/examples/1.7.x/server-go/examples/storage/list-files.md new file mode 100644 index 00000000000..a84dfac6fdb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/list-files.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.ListFiles( + "<BUCKET_ID>", + storage.WithListFilesQueries([]interface{}{}), + storage.WithListFilesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-go/examples/storage/update-bucket.md new file mode 100644 index 00000000000..58efff687bd --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/update-bucket.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.UpdateBucket( + "<BUCKET_ID>", + "<NAME>", + storage.WithUpdateBucketPermissions(interface{}{"read("any")"}), + storage.WithUpdateBucketFileSecurity(false), + storage.WithUpdateBucketEnabled(false), + storage.WithUpdateBucketMaximumFileSize(1), + storage.WithUpdateBucketAllowedFileExtensions([]interface{}{}), + storage.WithUpdateBucketCompression("none"), + storage.WithUpdateBucketEncryption(false), + storage.WithUpdateBucketAntivirus(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/storage/update-file.md b/docs/examples/1.7.x/server-go/examples/storage/update-file.md new file mode 100644 index 00000000000..f1705138e98 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/storage/update-file.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + 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 := storage.NewStorage(client) + response, error := service.UpdateFile( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithUpdateFileName("<NAME>"), + storage.WithUpdateFilePermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/create-membership.md b/docs/examples/1.7.x/server-go/examples/teams/create-membership.md new file mode 100644 index 00000000000..90c3d82348e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/create-membership.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.CreateMembership( + "<TEAM_ID>", + []interface{}{}, + teams.WithCreateMembershipEmail("email@example.com"), + teams.WithCreateMembershipUserId("<USER_ID>"), + teams.WithCreateMembershipPhone("+12065550100"), + teams.WithCreateMembershipUrl("https://example.com"), + teams.WithCreateMembershipName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/create.md b/docs/examples/1.7.x/server-go/examples/teams/create.md new file mode 100644 index 00000000000..1898936941f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.Create( + "<TEAM_ID>", + "<NAME>", + teams.WithCreateRoles([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-go/examples/teams/delete-membership.md new file mode 100644 index 00000000000..78810817a93 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/delete-membership.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.DeleteMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/delete.md b/docs/examples/1.7.x/server-go/examples/teams/delete.md new file mode 100644 index 00000000000..fb4771605d3 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.Delete( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/get-membership.md b/docs/examples/1.7.x/server-go/examples/teams/get-membership.md new file mode 100644 index 00000000000..c61b9c57c33 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/get-membership.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.GetMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-go/examples/teams/get-prefs.md new file mode 100644 index 00000000000..c237cd144ac --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/get-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.GetPrefs( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/get.md b/docs/examples/1.7.x/server-go/examples/teams/get.md new file mode 100644 index 00000000000..c29e9fa7864 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.Get( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-go/examples/teams/list-memberships.md new file mode 100644 index 00000000000..1e8fb45ca7e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/list-memberships.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.ListMemberships( + "<TEAM_ID>", + teams.WithListMembershipsQueries([]interface{}{}), + teams.WithListMembershipsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/list.md b/docs/examples/1.7.x/server-go/examples/teams/list.md new file mode 100644 index 00000000000..c4b109f1f3e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.List( + teams.WithListQueries([]interface{}{}), + teams.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-go/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..fbec3b8e845 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/update-membership-status.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.UpdateMembershipStatus( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/update-membership.md b/docs/examples/1.7.x/server-go/examples/teams/update-membership.md new file mode 100644 index 00000000000..1b478a19137 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/update-membership.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.UpdateMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/update-name.md b/docs/examples/1.7.x/server-go/examples/teams/update-name.md new file mode 100644 index 00000000000..a7b5da7c201 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/update-name.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.UpdateName( + "<TEAM_ID>", + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-go/examples/teams/update-prefs.md new file mode 100644 index 00000000000..6d395add217 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/teams/update-prefs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + 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 := teams.NewTeams(client) + response, error := service.UpdatePrefs( + "<TEAM_ID>", + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-go/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..8343e3e0774 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/tokens/create-file-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tokens" +) + +func main() { + client := client.NewClient() + + 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 := tokens.NewTokens(client) + response, error := service.CreateFileToken( + "<BUCKET_ID>", + "<FILE_ID>", + tokens.WithCreateFileTokenExpire(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/tokens/delete.md b/docs/examples/1.7.x/server-go/examples/tokens/delete.md new file mode 100644 index 00000000000..73322e6c9b4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/tokens/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tokens" +) + +func main() { + client := client.NewClient() + + 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 := tokens.NewTokens(client) + response, error := service.Delete( + "<TOKEN_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/tokens/get.md b/docs/examples/1.7.x/server-go/examples/tokens/get.md new file mode 100644 index 00000000000..64b53a24b96 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/tokens/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tokens" +) + +func main() { + client := client.NewClient() + + 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 := tokens.NewTokens(client) + response, error := service.Get( + "<TOKEN_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/tokens/list.md b/docs/examples/1.7.x/server-go/examples/tokens/list.md new file mode 100644 index 00000000000..e4864cd74a4 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/tokens/list.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tokens" +) + +func main() { + client := client.NewClient() + + 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 := tokens.NewTokens(client) + response, error := service.List( + "<BUCKET_ID>", + "<FILE_ID>", + tokens.WithListQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/tokens/update.md b/docs/examples/1.7.x/server-go/examples/tokens/update.md new file mode 100644 index 00000000000..94c30ece794 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/tokens/update.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tokens" +) + +func main() { + client := client.NewClient() + + 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 := tokens.NewTokens(client) + response, error := service.Update( + "<TOKEN_ID>", + tokens.WithUpdateExpire(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-go/examples/users/create-argon2user.md new file mode 100644 index 00000000000..44eaafbcd4c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-argon2user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateArgon2User( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateArgon2UserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-go/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..d818598c707 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-bcrypt-user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateBcryptUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateBcryptUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-go/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..dc1e51b1956 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-j-w-t.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateJWT( + "<USER_ID>", + users.WithCreateJWTSessionId("<SESSION_ID>"), + users.WithCreateJWTDuration(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-go/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..1dba39c5fd6 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-m-d5user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateMD5User( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateMD5UserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-go/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..3078f0993ba --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-go/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..c0380bd9f31 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-p-h-pass-user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreatePHPassUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreatePHPassUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-go/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..93aa77e853c --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-s-h-a-user.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateSHAUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateSHAUserPasswordVersion("sha1"), + users.WithCreateSHAUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-go/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..cd48f6c83fa --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateScryptModifiedUser( + "<USER_ID>", + "email@example.com", + "password", + "<PASSWORD_SALT>", + "<PASSWORD_SALT_SEPARATOR>", + "<PASSWORD_SIGNER_KEY>", + users.WithCreateScryptModifiedUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-go/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..65d70e986fd --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-scrypt-user.md @@ -0,0 +1,34 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateScryptUser( + "<USER_ID>", + "email@example.com", + "password", + "<PASSWORD_SALT>", + 0, + 0, + 0, + 0, + users.WithCreateScryptUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-session.md b/docs/examples/1.7.x/server-go/examples/users/create-session.md new file mode 100644 index 00000000000..92304e647db --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateSession( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-target.md b/docs/examples/1.7.x/server-go/examples/users/create-target.md new file mode 100644 index 00000000000..db42e2c3914 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-target.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateTarget( + "<USER_ID>", + "<TARGET_ID>", + "email", + "<IDENTIFIER>", + users.WithCreateTargetProviderId("<PROVIDER_ID>"), + users.WithCreateTargetName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create-token.md b/docs/examples/1.7.x/server-go/examples/users/create-token.md new file mode 100644 index 00000000000..6181a8d9d40 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.CreateToken( + "<USER_ID>", + users.WithCreateTokenLength(4), + users.WithCreateTokenExpire(60), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/create.md b/docs/examples/1.7.x/server-go/examples/users/create.md new file mode 100644 index 00000000000..0ab673bc73e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/create.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.Create( + "<USER_ID>", + users.WithCreateEmail("email@example.com"), + users.WithCreatePhone("+12065550100"), + users.WithCreatePassword(""), + users.WithCreateName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/delete-identity.md b/docs/examples/1.7.x/server-go/examples/users/delete-identity.md new file mode 100644 index 00000000000..1095a1763a3 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/delete-identity.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.DeleteIdentity( + "<IDENTITY_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-go/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..d61c5db0c83 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.DeleteMfaAuthenticator( + "<USER_ID>", + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/delete-session.md b/docs/examples/1.7.x/server-go/examples/users/delete-session.md new file mode 100644 index 00000000000..2a0de4c2710 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/delete-session.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.DeleteSession( + "<USER_ID>", + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-go/examples/users/delete-sessions.md new file mode 100644 index 00000000000..ea15501819d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/delete-sessions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.DeleteSessions( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/delete-target.md b/docs/examples/1.7.x/server-go/examples/users/delete-target.md new file mode 100644 index 00000000000..d4cd4e51a82 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/delete-target.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.DeleteTarget( + "<USER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/delete.md b/docs/examples/1.7.x/server-go/examples/users/delete.md new file mode 100644 index 00000000000..2c359e3ab0b --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.Delete( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-go/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..485075546f1 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.GetMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/get-prefs.md b/docs/examples/1.7.x/server-go/examples/users/get-prefs.md new file mode 100644 index 00000000000..0dba2723887 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/get-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.GetPrefs( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/get-target.md b/docs/examples/1.7.x/server-go/examples/users/get-target.md new file mode 100644 index 00000000000..b1291d7490e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/get-target.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.GetTarget( + "<USER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/get.md b/docs/examples/1.7.x/server-go/examples/users/get.md new file mode 100644 index 00000000000..c6aae29d5d9 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.Get( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list-identities.md b/docs/examples/1.7.x/server-go/examples/users/list-identities.md new file mode 100644 index 00000000000..063b9100fb2 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list-identities.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.ListIdentities( + users.WithListIdentitiesQueries([]interface{}{}), + users.WithListIdentitiesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list-logs.md b/docs/examples/1.7.x/server-go/examples/users/list-logs.md new file mode 100644 index 00000000000..674668b965d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.ListLogs( + "<USER_ID>", + users.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list-memberships.md b/docs/examples/1.7.x/server-go/examples/users/list-memberships.md new file mode 100644 index 00000000000..08b9a884f4f --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list-memberships.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.ListMemberships( + "<USER_ID>", + users.WithListMembershipsQueries([]interface{}{}), + users.WithListMembershipsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-go/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..1c39b87a66d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list-mfa-factors.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.ListMfaFactors( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list-sessions.md b/docs/examples/1.7.x/server-go/examples/users/list-sessions.md new file mode 100644 index 00000000000..835c23b1bce --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list-sessions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.ListSessions( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list-targets.md b/docs/examples/1.7.x/server-go/examples/users/list-targets.md new file mode 100644 index 00000000000..84c2c312a9a --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list-targets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.ListTargets( + "<USER_ID>", + users.WithListTargetsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/list.md b/docs/examples/1.7.x/server-go/examples/users/list.md new file mode 100644 index 00000000000..247ad4c2e72 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.List( + users.WithListQueries([]interface{}{}), + users.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-go/examples/users/update-email-verification.md new file mode 100644 index 00000000000..70f5a107574 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-email-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateEmailVerification( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-email.md b/docs/examples/1.7.x/server-go/examples/users/update-email.md new file mode 100644 index 00000000000..697783b9677 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-email.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateEmail( + "<USER_ID>", + "email@example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-labels.md b/docs/examples/1.7.x/server-go/examples/users/update-labels.md new file mode 100644 index 00000000000..a65d2ead9d1 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-labels.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateLabels( + "<USER_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-go/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..eb47e2ee09e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-mfa.md b/docs/examples/1.7.x/server-go/examples/users/update-mfa.md new file mode 100644 index 00000000000..756863799f8 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-mfa.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateMfa( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-name.md b/docs/examples/1.7.x/server-go/examples/users/update-name.md new file mode 100644 index 00000000000..8ef173c2e3e --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-name.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateName( + "<USER_ID>", + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-password.md b/docs/examples/1.7.x/server-go/examples/users/update-password.md new file mode 100644 index 00000000000..2f9efac65fb --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-password.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdatePassword( + "<USER_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-go/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..c94fbd861ef --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-phone-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdatePhoneVerification( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-phone.md b/docs/examples/1.7.x/server-go/examples/users/update-phone.md new file mode 100644 index 00000000000..77d20162f92 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-phone.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdatePhone( + "<USER_ID>", + "+12065550100", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-prefs.md b/docs/examples/1.7.x/server-go/examples/users/update-prefs.md new file mode 100644 index 00000000000..f7889a6337d --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-prefs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdatePrefs( + "<USER_ID>", + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-status.md b/docs/examples/1.7.x/server-go/examples/users/update-status.md new file mode 100644 index 00000000000..2349e4e0c98 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-status.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateStatus( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-go/examples/users/update-target.md b/docs/examples/1.7.x/server-go/examples/users/update-target.md new file mode 100644 index 00000000000..f8028b44834 --- /dev/null +++ b/docs/examples/1.7.x/server-go/examples/users/update-target.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + 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 := users.NewUsers(client) + response, error := service.UpdateTarget( + "<USER_ID>", + "<TARGET_ID>", + users.WithUpdateTargetIdentifier("<IDENTIFIER>"), + users.WithUpdateTargetProviderId("<PROVIDER_ID>"), + users.WithUpdateTargetName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-graphql/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..92c12acee5c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-anonymous-session.md @@ -0,0 +1,33 @@ +mutation { + accountCreateAnonymousSession { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-graphql/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..931bb4add09 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-email-password-session.md @@ -0,0 +1,36 @@ +mutation { + accountCreateEmailPasswordSession( + email: "email@example.com", + password: "password" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-email-token.md b/docs/examples/1.7.x/server-graphql/examples/account/create-email-token.md new file mode 100644 index 00000000000..de320b45edd --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-email-token.md @@ -0,0 +1,14 @@ +mutation { + accountCreateEmailToken( + userId: "<USER_ID>", + email: "email@example.com", + phrase: false + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-graphql/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..a5204f1256d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-j-w-t.md @@ -0,0 +1,5 @@ +mutation { + accountCreateJWT { + jwt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-graphql/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..4024a5b3a9e --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,15 @@ +mutation { + accountCreateMagicURLToken( + userId: "<USER_ID>", + email: "email@example.com", + url: "https://example.com", + phrase: false + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..6b29292494e --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-authenticator.md @@ -0,0 +1,8 @@ +mutation { + accountCreateMfaAuthenticator( + type: "totp" + ) { + secret + uri + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..eb5cba127d6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-challenge.md @@ -0,0 +1,10 @@ +mutation { + accountCreateMfaChallenge( + factor: "email" + ) { + _id + _createdAt + userId + expire + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..f39b7d080d1 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,5 @@ +mutation { + accountCreateMfaRecoveryCodes { + recoveryCodes + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-graphql/examples/account/create-phone-token.md new file mode 100644 index 00000000000..b56c4eb4e44 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-phone-token.md @@ -0,0 +1,13 @@ +mutation { + accountCreatePhoneToken( + userId: "<USER_ID>", + phone: "+12065550100" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-graphql/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..a4cad59b1a6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-phone-verification.md @@ -0,0 +1,10 @@ +mutation { + accountCreatePhoneVerification { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-recovery.md b/docs/examples/1.7.x/server-graphql/examples/account/create-recovery.md new file mode 100644 index 00000000000..ad31fd82d73 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +mutation { + accountCreateRecovery( + email: "email@example.com", + url: "https://example.com" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-session.md b/docs/examples/1.7.x/server-graphql/examples/account/create-session.md new file mode 100644 index 00000000000..f473d142075 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-session.md @@ -0,0 +1,36 @@ +mutation { + accountCreateSession( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create-verification.md b/docs/examples/1.7.x/server-graphql/examples/account/create-verification.md new file mode 100644 index 00000000000..df50dda5291 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create-verification.md @@ -0,0 +1,12 @@ +mutation { + accountCreateVerification( + url: "https://example.com" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/create.md b/docs/examples/1.7.x/server-graphql/examples/account/create.md new file mode 100644 index 00000000000..0d39394a3d0 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/create.md @@ -0,0 +1,40 @@ +mutation { + accountCreate( + userId: "<USER_ID>", + email: "email@example.com", + password: "", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/delete-identity.md b/docs/examples/1.7.x/server-graphql/examples/account/delete-identity.md new file mode 100644 index 00000000000..f3c2e2e7b9c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/delete-identity.md @@ -0,0 +1,7 @@ +mutation { + accountDeleteIdentity( + identityId: "<IDENTITY_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-graphql/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..fc5486623a9 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,7 @@ +mutation { + accountDeleteMfaAuthenticator( + type: "totp" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/delete-session.md b/docs/examples/1.7.x/server-graphql/examples/account/delete-session.md new file mode 100644 index 00000000000..09aff38fdd8 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/delete-session.md @@ -0,0 +1,7 @@ +mutation { + accountDeleteSession( + sessionId: "<SESSION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-graphql/examples/account/delete-sessions.md new file mode 100644 index 00000000000..b0d61daa817 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/delete-sessions.md @@ -0,0 +1,5 @@ +mutation { + accountDeleteSessions { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-graphql/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/get-prefs.md b/docs/examples/1.7.x/server-graphql/examples/account/get-prefs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/get-session.md b/docs/examples/1.7.x/server-graphql/examples/account/get-session.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/get.md b/docs/examples/1.7.x/server-graphql/examples/account/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/list-identities.md b/docs/examples/1.7.x/server-graphql/examples/account/list-identities.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/list-logs.md b/docs/examples/1.7.x/server-graphql/examples/account/list-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-graphql/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/list-sessions.md b/docs/examples/1.7.x/server-graphql/examples/account/list-sessions.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-email.md b/docs/examples/1.7.x/server-graphql/examples/account/update-email.md new file mode 100644 index 00000000000..c879e24a43a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-email.md @@ -0,0 +1,38 @@ +mutation { + accountUpdateEmail( + email: "email@example.com", + password: "password" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-graphql/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..787c2e08608 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-m-f-a.md @@ -0,0 +1,37 @@ +mutation { + accountUpdateMFA( + mfa: false + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-graphql/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..075bc91d17a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,36 @@ +mutation { + accountUpdateMagicURLSession( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..9cfe9150be6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-authenticator.md @@ -0,0 +1,38 @@ +mutation { + accountUpdateMfaAuthenticator( + type: "totp", + otp: "<OTP>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..0bcec2157fe --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-challenge.md @@ -0,0 +1,36 @@ +mutation { + accountUpdateMfaChallenge( + challengeId: "<CHALLENGE_ID>", + otp: "<OTP>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..e706d2b9d71 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,5 @@ +mutation { + accountUpdateMfaRecoveryCodes { + recoveryCodes + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-name.md b/docs/examples/1.7.x/server-graphql/examples/account/update-name.md new file mode 100644 index 00000000000..8ba2c99d9c2 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-name.md @@ -0,0 +1,37 @@ +mutation { + accountUpdateName( + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-password.md b/docs/examples/1.7.x/server-graphql/examples/account/update-password.md new file mode 100644 index 00000000000..f3619a10d28 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-password.md @@ -0,0 +1,38 @@ +mutation { + accountUpdatePassword( + password: "", + oldPassword: "password" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-graphql/examples/account/update-phone-session.md new file mode 100644 index 00000000000..199e774ab00 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-phone-session.md @@ -0,0 +1,36 @@ +mutation { + accountUpdatePhoneSession( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-graphql/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..dd62298bb9b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-phone-verification.md @@ -0,0 +1,13 @@ +mutation { + accountUpdatePhoneVerification( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-phone.md b/docs/examples/1.7.x/server-graphql/examples/account/update-phone.md new file mode 100644 index 00000000000..adecb711684 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-phone.md @@ -0,0 +1,38 @@ +mutation { + accountUpdatePhone( + phone: "+12065550100", + password: "password" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.7.x/server-graphql/examples/account/update-prefs.md new file mode 100644 index 00000000000..57280247e40 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-prefs.md @@ -0,0 +1,37 @@ +mutation { + accountUpdatePrefs( + prefs: "{}" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-recovery.md b/docs/examples/1.7.x/server-graphql/examples/account/update-recovery.md new file mode 100644 index 00000000000..2d15fdcaa1c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +mutation { + accountUpdateRecovery( + userId: "<USER_ID>", + secret: "<SECRET>", + password: "" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-session.md b/docs/examples/1.7.x/server-graphql/examples/account/update-session.md new file mode 100644 index 00000000000..29a8979872f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-session.md @@ -0,0 +1,35 @@ +mutation { + accountUpdateSession( + sessionId: "<SESSION_ID>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-status.md b/docs/examples/1.7.x/server-graphql/examples/account/update-status.md new file mode 100644 index 00000000000..c17f5568426 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-status.md @@ -0,0 +1,35 @@ +mutation { + accountUpdateStatus { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/account/update-verification.md b/docs/examples/1.7.x/server-graphql/examples/account/update-verification.md new file mode 100644 index 00000000000..11e63c7da35 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/account/update-verification.md @@ -0,0 +1,13 @@ +mutation { + accountUpdateVerification( + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-browser.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-flag.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-image.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-image.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-initials.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-graphql/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..aa0bfa832e4 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-boolean-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesCreateBooleanAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: false, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-collection.md new file mode 100644 index 00000000000..00dfba1e7ba --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-collection.md @@ -0,0 +1,31 @@ +mutation { + databasesCreateCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + name: "<NAME>", + permissions: ["read("any")"], + documentSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + documentSecurity + attributes + indexes { + key + type + status + error + attributes + lengths + orders + _createdAt + _updatedAt + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..47601df0d8e --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-datetime-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesCreateDatetimeAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-document.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-document.md new file mode 100644 index 00000000000..4e2d90660bb --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-document.md @@ -0,0 +1,17 @@ +mutation { + databasesCreateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-documents.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-documents.md new file mode 100644 index 00000000000..3e3a50f3abf --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesCreateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..e5845ccd47c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-email-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesCreateEmailAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "email@example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..d13c080e4ac --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-enum-attribute.md @@ -0,0 +1,23 @@ +mutation { + databasesCreateEnumAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + elements: [], + required: false, + default: "<DEFAULT>", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..2a270c3aff8 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-float-attribute.md @@ -0,0 +1,24 @@ +mutation { + databasesCreateFloatAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-index.md new file mode 100644 index 00000000000..c6479309437 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-index.md @@ -0,0 +1,21 @@ +mutation { + databasesCreateIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + type: "key", + attributes: [], + orders: [], + lengths: [] + ) { + key + type + status + error + attributes + lengths + orders + _createdAt + _updatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..8c79706817a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-integer-attribute.md @@ -0,0 +1,24 @@ +mutation { + databasesCreateIntegerAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + min: 0, + max: 0, + default: 0, + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..0f4ad9e1396 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-ip-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesCreateIpAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..f66b87d6afc --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-relationship-attribute.md @@ -0,0 +1,27 @@ +mutation { + databasesCreateRelationshipAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + relatedCollectionId: "<RELATED_COLLECTION_ID>", + type: "oneToOne", + twoWay: false, + key: "", + twoWayKey: "", + onDelete: "cascade" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedCollection + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..62d97d69623 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-string-attribute.md @@ -0,0 +1,23 @@ +mutation { + databasesCreateStringAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + size: 1, + required: false, + default: "<DEFAULT>", + array: false, + encrypt: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..89ad873e52b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create-url-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesCreateUrlAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "https://example.com", + array: false + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/create.md b/docs/examples/1.7.x/server-graphql/examples/databases/create.md new file mode 100644 index 00000000000..c48e024e7c7 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/create.md @@ -0,0 +1,13 @@ +mutation { + databasesCreate( + databaseId: "<DATABASE_ID>", + name: "<NAME>", + enabled: false + ) { + _id + name + _createdAt + _updatedAt + enabled + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..af0f9d66150 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/delete-attribute.md @@ -0,0 +1,9 @@ +mutation { + databasesDeleteAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-graphql/examples/databases/delete-collection.md new file mode 100644 index 00000000000..8683bd87a4f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/delete-collection.md @@ -0,0 +1,8 @@ +mutation { + databasesDeleteCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/delete-document.md b/docs/examples/1.7.x/server-graphql/examples/databases/delete-document.md new file mode 100644 index 00000000000..848371bca06 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/delete-document.md @@ -0,0 +1,9 @@ +mutation { + databasesDeleteDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-graphql/examples/databases/delete-documents.md new file mode 100644 index 00000000000..ad5826f22ad --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/delete-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesDeleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/delete-index.md b/docs/examples/1.7.x/server-graphql/examples/databases/delete-index.md new file mode 100644 index 00000000000..a2389cf9d4b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/delete-index.md @@ -0,0 +1,9 @@ +mutation { + databasesDeleteIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/delete.md b/docs/examples/1.7.x/server-graphql/examples/databases/delete.md new file mode 100644 index 00000000000..7cd4c92341d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/delete.md @@ -0,0 +1,7 @@ +mutation { + databasesDelete( + databaseId: "<DATABASE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/get-attribute.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/get-collection.md b/docs/examples/1.7.x/server-graphql/examples/databases/get-collection.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/get-document.md b/docs/examples/1.7.x/server-graphql/examples/databases/get-document.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/get-index.md b/docs/examples/1.7.x/server-graphql/examples/databases/get-index.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/get.md b/docs/examples/1.7.x/server-graphql/examples/databases/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-graphql/examples/databases/list-attributes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/list-collections.md b/docs/examples/1.7.x/server-graphql/examples/databases/list-collections.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/list-documents.md b/docs/examples/1.7.x/server-graphql/examples/databases/list-documents.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-graphql/examples/databases/list-indexes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/list.md b/docs/examples/1.7.x/server-graphql/examples/databases/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..d508e62139d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-boolean-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateBooleanAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: false, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-collection.md new file mode 100644 index 00000000000..040578ae9db --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-collection.md @@ -0,0 +1,31 @@ +mutation { + databasesUpdateCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + name: "<NAME>", + permissions: ["read("any")"], + documentSecurity: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + _permissions + databaseId + name + enabled + documentSecurity + attributes + indexes { + key + type + status + error + attributes + lengths + orders + _createdAt + _updatedAt + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..a21b910edc9 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-datetime-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesUpdateDatetimeAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-document.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-document.md new file mode 100644 index 00000000000..5e808946205 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-document.md @@ -0,0 +1,17 @@ +mutation { + databasesUpdateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: "{}", + permissions: ["read("any")"] + ) { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-documents.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-documents.md new file mode 100644 index 00000000000..c05acb16a0e --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-documents.md @@ -0,0 +1,19 @@ +mutation { + databasesUpdateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: "{}", + queries: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..6c83d80e162 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-email-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesUpdateEmailAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "email@example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..378e32f9b87 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-enum-attribute.md @@ -0,0 +1,23 @@ +mutation { + databasesUpdateEnumAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + elements: [], + required: false, + default: "<DEFAULT>", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + elements + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..c70232e7491 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-float-attribute.md @@ -0,0 +1,24 @@ +mutation { + databasesUpdateFloatAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..b24af5f2605 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-integer-attribute.md @@ -0,0 +1,24 @@ +mutation { + databasesUpdateIntegerAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: 0, + min: 0, + max: 0, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + min + max + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..7a262242005 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-ip-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesUpdateIpAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..6694540d93f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-relationship-attribute.md @@ -0,0 +1,24 @@ +mutation { + databasesUpdateRelationshipAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + onDelete: "cascade", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + relatedCollection + relationType + twoWay + twoWayKey + onDelete + side + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..afafb307f5b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-string-attribute.md @@ -0,0 +1,22 @@ +mutation { + databasesUpdateStringAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "<DEFAULT>", + size: 1, + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + size + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-graphql/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..f9f14a04f61 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update-url-attribute.md @@ -0,0 +1,21 @@ +mutation { + databasesUpdateUrlAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "https://example.com", + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + format + default + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/update.md b/docs/examples/1.7.x/server-graphql/examples/databases/update.md new file mode 100644 index 00000000000..88d286dc8a3 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/update.md @@ -0,0 +1,13 @@ +mutation { + databasesUpdate( + databaseId: "<DATABASE_ID>", + name: "<NAME>", + enabled: false + ) { + _id + name + _createdAt + _updatedAt + enabled + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-graphql/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..d6e7bba9a3b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/databases/upsert-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesUpsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/create-deployment.md new file mode 100644 index 00000000000..0e7cc7d19a3 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create-deployment.md @@ -0,0 +1,24 @@ +POST /v1/functions/{functionId}/deployments HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="operations" + +{ "query": "mutation { functionsCreateDeployment(functionId: $functionId, code: $code, activate: $activate, entrypoint: $entrypoint, commands: $commands) { id }" }, "variables": { "functionId": "<FUNCTION_ID>", "code": null, "activate": false, "entrypoint": "<ENTRYPOINT>", "commands": "<COMMANDS>" } } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="map" + +{ "0": ["variables.code"], } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="0"; filename="code.ext" + +File contents + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..cdd92c2a024 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,35 @@ +mutation { + functionsCreateDuplicateDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>", + buildId: "<BUILD_ID>" + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.7.x/server-graphql/examples/functions/create-execution.md new file mode 100644 index 00000000000..1479aa3bb60 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create-execution.md @@ -0,0 +1,35 @@ +mutation { + functionsCreateExecution( + functionId: "<FUNCTION_ID>", + body: "<BODY>", + async: false, + path: "<PATH>", + method: "GET", + headers: "{}", + scheduledAt: "" + ) { + _id + _createdAt + _updatedAt + _permissions + functionId + trigger + status + requestMethod + requestPath + requestHeaders { + name + value + } + responseStatusCode + responseBody + responseHeaders { + name + value + } + logs + errors + duration + scheduledAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..12c50c32f33 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create-template-deployment.md @@ -0,0 +1,38 @@ +mutation { + functionsCreateTemplateDeployment( + functionId: "<FUNCTION_ID>", + repository: "<REPOSITORY>", + owner: "<OWNER>", + rootDirectory: "<ROOT_DIRECTORY>", + version: "<VERSION>", + activate: false + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create-variable.md b/docs/examples/1.7.x/server-graphql/examples/functions/create-variable.md new file mode 100644 index 00000000000..6c64922320f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create-variable.md @@ -0,0 +1,17 @@ +mutation { + functionsCreateVariable( + functionId: "<FUNCTION_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false + ) { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..ebfced2c689 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create-vcs-deployment.md @@ -0,0 +1,36 @@ +mutation { + functionsCreateVcsDeployment( + functionId: "<FUNCTION_ID>", + type: "branch", + reference: "<REFERENCE>", + activate: false + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/create.md b/docs/examples/1.7.x/server-graphql/examples/functions/create.md new file mode 100644 index 00000000000..2df77be8ecc --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/create.md @@ -0,0 +1,60 @@ +mutation { + functionsCreate( + functionId: "<FUNCTION_ID>", + name: "<NAME>", + runtime: "node-14.5", + execute: ["any"], + events: [], + schedule: "", + timeout: 1, + enabled: false, + logging: false, + entrypoint: "<ENTRYPOINT>", + commands: "<COMMANDS>", + scopes: [], + installationId: "<INSTALLATION_ID>", + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", + providerBranch: "<PROVIDER_BRANCH>", + providerSilentMode: false, + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", + specification: "" + ) { + _id + _createdAt + _updatedAt + execute + name + enabled + live + logging + runtime + deploymentId + deploymentCreatedAt + latestDeploymentId + latestDeploymentCreatedAt + latestDeploymentStatus + scopes + vars { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } + events + schedule + timeout + entrypoint + commands + version + installationId + providerRepositoryId + providerBranch + providerRootDirectory + providerSilentMode + specification + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..8d83f28d4ff --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/delete-deployment.md @@ -0,0 +1,8 @@ +mutation { + functionsDeleteDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-graphql/examples/functions/delete-execution.md new file mode 100644 index 00000000000..c6e950afc9b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/delete-execution.md @@ -0,0 +1,8 @@ +mutation { + functionsDeleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-graphql/examples/functions/delete-variable.md new file mode 100644 index 00000000000..9bc2d9b6e60 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/delete-variable.md @@ -0,0 +1,8 @@ +mutation { + functionsDeleteVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/delete.md b/docs/examples/1.7.x/server-graphql/examples/functions/delete.md new file mode 100644 index 00000000000..db019bf3760 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/delete.md @@ -0,0 +1,7 @@ +mutation { + functionsDelete( + functionId: "<FUNCTION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-graphql/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/get-deployment.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/get-execution.md b/docs/examples/1.7.x/server-graphql/examples/functions/get-execution.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/get-variable.md b/docs/examples/1.7.x/server-graphql/examples/functions/get-variable.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/get.md b/docs/examples/1.7.x/server-graphql/examples/functions/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-graphql/examples/functions/list-deployments.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/list-executions.md b/docs/examples/1.7.x/server-graphql/examples/functions/list-executions.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-graphql/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-graphql/examples/functions/list-specifications.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/list-variables.md b/docs/examples/1.7.x/server-graphql/examples/functions/list-variables.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/list.md b/docs/examples/1.7.x/server-graphql/examples/functions/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-graphql/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..50df97fd215 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/update-deployment-status.md @@ -0,0 +1,34 @@ +mutation { + functionsUpdateDeploymentStatus( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-graphql/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..3ff2220fda4 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/update-function-deployment.md @@ -0,0 +1,44 @@ +mutation { + functionsUpdateFunctionDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + _createdAt + _updatedAt + execute + name + enabled + live + logging + runtime + deploymentId + deploymentCreatedAt + latestDeploymentId + latestDeploymentCreatedAt + latestDeploymentStatus + scopes + vars { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } + events + schedule + timeout + entrypoint + commands + version + installationId + providerRepositoryId + providerBranch + providerRootDirectory + providerSilentMode + specification + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/update-variable.md b/docs/examples/1.7.x/server-graphql/examples/functions/update-variable.md new file mode 100644 index 00000000000..15c8e3bdf3f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/update-variable.md @@ -0,0 +1,18 @@ +mutation { + functionsUpdateVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false + ) { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/functions/update.md b/docs/examples/1.7.x/server-graphql/examples/functions/update.md new file mode 100644 index 00000000000..7510cdc50d7 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/functions/update.md @@ -0,0 +1,60 @@ +mutation { + functionsUpdate( + functionId: "<FUNCTION_ID>", + name: "<NAME>", + runtime: "node-14.5", + execute: ["any"], + events: [], + schedule: "", + timeout: 1, + enabled: false, + logging: false, + entrypoint: "<ENTRYPOINT>", + commands: "<COMMANDS>", + scopes: [], + installationId: "<INSTALLATION_ID>", + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", + providerBranch: "<PROVIDER_BRANCH>", + providerSilentMode: false, + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", + specification: "" + ) { + _id + _createdAt + _updatedAt + execute + name + enabled + live + logging + runtime + deploymentId + deploymentCreatedAt + latestDeploymentId + latestDeploymentCreatedAt + latestDeploymentStatus + scopes + vars { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } + events + schedule + timeout + entrypoint + commands + version + installationId + providerRepositoryId + providerBranch + providerRootDirectory + providerSilentMode + specification + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-graphql/examples/health/get-antivirus.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-cache.md b/docs/examples/1.7.x/server-graphql/examples/health/get-cache.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-certificate.md b/docs/examples/1.7.x/server-graphql/examples/health/get-certificate.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-d-b.md b/docs/examples/1.7.x/server-graphql/examples/health/get-d-b.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-graphql/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-graphql/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-graphql/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-graphql/examples/health/get-storage-local.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-storage.md b/docs/examples/1.7.x/server-graphql/examples/health/get-storage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get-time.md b/docs/examples/1.7.x/server-graphql/examples/health/get-time.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/health/get.md b/docs/examples/1.7.x/server-graphql/examples/health/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/get.md b/docs/examples/1.7.x/server-graphql/examples/locale/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-codes.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-codes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-continents.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-continents.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-countries.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-countries.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-currencies.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/locale/list-languages.md b/docs/examples/1.7.x/server-graphql/examples/locale/list-languages.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..425b3bb8dcc --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-apns-provider.md @@ -0,0 +1,22 @@ +mutation { + messagingCreateApnsProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + authKey: "<AUTH_KEY>", + authKeyId: "<AUTH_KEY_ID>", + teamId: "<TEAM_ID>", + bundleId: "<BUNDLE_ID>", + sandbox: false, + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-email.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-email.md new file mode 100644 index 00000000000..a1e35aad192 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-email.md @@ -0,0 +1,30 @@ +mutation { + messagingCreateEmail( + messageId: "<MESSAGE_ID>", + subject: "<SUBJECT>", + content: "<CONTENT>", + topics: [], + users: [], + targets: [], + cc: [], + bcc: [], + attachments: [], + draft: false, + html: false, + scheduledAt: "" + ) { + _id + _createdAt + _updatedAt + providerType + topics + users + targets + scheduledAt + deliveredAt + deliveryErrors + deliveredTotal + data + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..0aa48a9e2fe --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-fcm-provider.md @@ -0,0 +1,18 @@ +mutation { + messagingCreateFcmProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + serviceAccountJSON: "{}", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..9da1e238477 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,24 @@ +mutation { + messagingCreateMailgunProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", + domain: "<DOMAIN>", + isEuRegion: false, + fromName: "<FROM_NAME>", + fromEmail: "email@example.com", + replyToName: "<REPLY_TO_NAME>", + replyToEmail: "email@example.com", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..ddaf2d4c2b1 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-msg91provider.md @@ -0,0 +1,20 @@ +mutation { + messagingCreateMsg91Provider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + templateId: "<TEMPLATE_ID>", + senderId: "<SENDER_ID>", + authKey: "<AUTH_KEY>", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-push.md new file mode 100644 index 00000000000..92264d1b675 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-push.md @@ -0,0 +1,37 @@ +mutation { + messagingCreatePush( + messageId: "<MESSAGE_ID>", + title: "<TITLE>", + body: "<BODY>", + topics: [], + users: [], + targets: [], + data: "{}", + action: "<ACTION>", + image: "[ID1:ID2]", + icon: "<ICON>", + sound: "<SOUND>", + color: "<COLOR>", + tag: "<TAG>", + badge: 0, + draft: false, + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" + ) { + _id + _createdAt + _updatedAt + providerType + topics + users + targets + scheduledAt + deliveredAt + deliveryErrors + deliveredTotal + data + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..cda0652d677 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,22 @@ +mutation { + messagingCreateSendgridProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", + fromName: "<FROM_NAME>", + fromEmail: "email@example.com", + replyToName: "<REPLY_TO_NAME>", + replyToEmail: "email@example.com", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-sms.md new file mode 100644 index 00000000000..99af83b154d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-sms.md @@ -0,0 +1,25 @@ +mutation { + messagingCreateSms( + messageId: "<MESSAGE_ID>", + content: "<CONTENT>", + topics: [], + users: [], + targets: [], + draft: false, + scheduledAt: "" + ) { + _id + _createdAt + _updatedAt + providerType + topics + users + targets + scheduledAt + deliveredAt + deliveryErrors + deliveredTotal + data + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..b7b24bc1a53 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-smtp-provider.md @@ -0,0 +1,28 @@ +mutation { + messagingCreateSmtpProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + host: "<HOST>", + port: 1, + username: "<USERNAME>", + password: "<PASSWORD>", + encryption: "none", + autoTLS: false, + mailer: "<MAILER>", + fromName: "<FROM_NAME>", + fromEmail: "email@example.com", + replyToName: "<REPLY_TO_NAME>", + replyToEmail: "email@example.com", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..bab53612b79 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-subscriber.md @@ -0,0 +1,27 @@ +mutation { + messagingCreateSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>", + targetId: "<TARGET_ID>" + ) { + _id + _createdAt + _updatedAt + targetId + target { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + userId + userName + topicId + providerType + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..7960a8427f6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-telesign-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingCreateTelesignProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", + customerId: "<CUSTOMER_ID>", + apiKey: "<API_KEY>", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..e082097b70c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingCreateTextmagicProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", + username: "<USERNAME>", + apiKey: "<API_KEY>", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-topic.md new file mode 100644 index 00000000000..6216c4cda53 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-topic.md @@ -0,0 +1,16 @@ +mutation { + messagingCreateTopic( + topicId: "<TOPIC_ID>", + name: "<NAME>", + subscribe: ["any"] + ) { + _id + _createdAt + _updatedAt + name + emailTotal + smsTotal + pushTotal + subscribe + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..ac14d1d32b4 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-twilio-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingCreateTwilioProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", + accountSid: "<ACCOUNT_SID>", + authToken: "<AUTH_TOKEN>", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..ca7a7108967 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/create-vonage-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingCreateVonageProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", + apiKey: "<API_KEY>", + apiSecret: "<API_SECRET>", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..8d9ac359536 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/delete-provider.md @@ -0,0 +1,7 @@ +mutation { + messagingDeleteProvider( + providerId: "<PROVIDER_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-graphql/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..ededffcaac4 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/delete-subscriber.md @@ -0,0 +1,8 @@ +mutation { + messagingDeleteSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-graphql/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..e49cd1ed918 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/delete-topic.md @@ -0,0 +1,7 @@ +mutation { + messagingDeleteTopic( + topicId: "<TOPIC_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/delete.md b/docs/examples/1.7.x/server-graphql/examples/messaging/delete.md new file mode 100644 index 00000000000..495557ef18c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/delete.md @@ -0,0 +1,7 @@ +mutation { + messagingDelete( + messageId: "<MESSAGE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/get-message.md b/docs/examples/1.7.x/server-graphql/examples/messaging/get-message.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/get-provider.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-graphql/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-graphql/examples/messaging/get-topic.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-messages.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-providers.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-targets.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-graphql/examples/messaging/list-topics.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..b3d6e8745e8 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-apns-provider.md @@ -0,0 +1,22 @@ +mutation { + messagingUpdateApnsProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + authKey: "<AUTH_KEY>", + authKeyId: "<AUTH_KEY_ID>", + teamId: "<TEAM_ID>", + bundleId: "<BUNDLE_ID>", + sandbox: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-email.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-email.md new file mode 100644 index 00000000000..1d1302efc4d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-email.md @@ -0,0 +1,30 @@ +mutation { + messagingUpdateEmail( + messageId: "<MESSAGE_ID>", + topics: [], + users: [], + targets: [], + subject: "<SUBJECT>", + content: "<CONTENT>", + draft: false, + html: false, + cc: [], + bcc: [], + scheduledAt: "", + attachments: [] + ) { + _id + _createdAt + _updatedAt + providerType + topics + users + targets + scheduledAt + deliveredAt + deliveryErrors + deliveredTotal + data + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..a0b3f9e3da5 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-fcm-provider.md @@ -0,0 +1,18 @@ +mutation { + messagingUpdateFcmProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + serviceAccountJSON: "{}" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..6c26d52ff21 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,24 @@ +mutation { + messagingUpdateMailgunProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", + domain: "<DOMAIN>", + isEuRegion: false, + enabled: false, + fromName: "<FROM_NAME>", + fromEmail: "email@example.com", + replyToName: "<REPLY_TO_NAME>", + replyToEmail: "<REPLY_TO_EMAIL>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..a6552a47348 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-msg91provider.md @@ -0,0 +1,20 @@ +mutation { + messagingUpdateMsg91Provider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + templateId: "<TEMPLATE_ID>", + senderId: "<SENDER_ID>", + authKey: "<AUTH_KEY>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-push.md new file mode 100644 index 00000000000..8ee2f576107 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-push.md @@ -0,0 +1,37 @@ +mutation { + messagingUpdatePush( + messageId: "<MESSAGE_ID>", + topics: [], + users: [], + targets: [], + title: "<TITLE>", + body: "<BODY>", + data: "{}", + action: "<ACTION>", + image: "[ID1:ID2]", + icon: "<ICON>", + sound: "<SOUND>", + color: "<COLOR>", + tag: "<TAG>", + badge: 0, + draft: false, + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" + ) { + _id + _createdAt + _updatedAt + providerType + topics + users + targets + scheduledAt + deliveredAt + deliveryErrors + deliveredTotal + data + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..319dcea461c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,22 @@ +mutation { + messagingUpdateSendgridProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + apiKey: "<API_KEY>", + fromName: "<FROM_NAME>", + fromEmail: "email@example.com", + replyToName: "<REPLY_TO_NAME>", + replyToEmail: "<REPLY_TO_EMAIL>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-sms.md new file mode 100644 index 00000000000..7b45f09abce --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-sms.md @@ -0,0 +1,25 @@ +mutation { + messagingUpdateSms( + messageId: "<MESSAGE_ID>", + topics: [], + users: [], + targets: [], + content: "<CONTENT>", + draft: false, + scheduledAt: "" + ) { + _id + _createdAt + _updatedAt + providerType + topics + users + targets + scheduledAt + deliveredAt + deliveryErrors + deliveredTotal + data + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..a091685655f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-smtp-provider.md @@ -0,0 +1,28 @@ +mutation { + messagingUpdateSmtpProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + host: "<HOST>", + port: 1, + username: "<USERNAME>", + password: "<PASSWORD>", + encryption: "none", + autoTLS: false, + mailer: "<MAILER>", + fromName: "<FROM_NAME>", + fromEmail: "email@example.com", + replyToName: "<REPLY_TO_NAME>", + replyToEmail: "<REPLY_TO_EMAIL>", + enabled: false + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..c9c96c0d5d1 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-telesign-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingUpdateTelesignProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + customerId: "<CUSTOMER_ID>", + apiKey: "<API_KEY>", + from: "<FROM>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..3fd68ed8e90 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingUpdateTextmagicProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + username: "<USERNAME>", + apiKey: "<API_KEY>", + from: "<FROM>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-topic.md new file mode 100644 index 00000000000..8d3dc84c72c --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-topic.md @@ -0,0 +1,16 @@ +mutation { + messagingUpdateTopic( + topicId: "<TOPIC_ID>", + name: "<NAME>", + subscribe: ["any"] + ) { + _id + _createdAt + _updatedAt + name + emailTotal + smsTotal + pushTotal + subscribe + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..6f10839567b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-twilio-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingUpdateTwilioProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + accountSid: "<ACCOUNT_SID>", + authToken: "<AUTH_TOKEN>", + from: "<FROM>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-graphql/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..f42670a4283 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/messaging/update-vonage-provider.md @@ -0,0 +1,20 @@ +mutation { + messagingUpdateVonageProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + enabled: false, + apiKey: "<API_KEY>", + apiSecret: "<API_SECRET>", + from: "<FROM>" + ) { + _id + _createdAt + _updatedAt + name + provider + enabled + type + credentials + options + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/create-deployment.md new file mode 100644 index 00000000000..8f77dd60ebd --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/create-deployment.md @@ -0,0 +1,24 @@ +POST /v1/sites/{siteId}/deployments HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="operations" + +{ "query": "mutation { sitesCreateDeployment(siteId: $siteId, code: $code, activate: $activate, installCommand: $installCommand, buildCommand: $buildCommand, outputDirectory: $outputDirectory) { id }" }, "variables": { "siteId": "<SITE_ID>", "code": null, "activate": false, "installCommand": "<INSTALL_COMMAND>", "buildCommand": "<BUILD_COMMAND>", "outputDirectory": "<OUTPUT_DIRECTORY>" } } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="map" + +{ "0": ["variables.code"], } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="0"; filename="code.ext" + +File contents + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..62262826511 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,34 @@ +mutation { + sitesCreateDuplicateDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..72562556e4a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/create-template-deployment.md @@ -0,0 +1,38 @@ +mutation { + sitesCreateTemplateDeployment( + siteId: "<SITE_ID>", + repository: "<REPOSITORY>", + owner: "<OWNER>", + rootDirectory: "<ROOT_DIRECTORY>", + version: "<VERSION>", + activate: false + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/create-variable.md b/docs/examples/1.7.x/server-graphql/examples/sites/create-variable.md new file mode 100644 index 00000000000..6bc92de43a6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/create-variable.md @@ -0,0 +1,17 @@ +mutation { + sitesCreateVariable( + siteId: "<SITE_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false + ) { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..ccc18cf2e07 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/create-vcs-deployment.md @@ -0,0 +1,36 @@ +mutation { + sitesCreateVcsDeployment( + siteId: "<SITE_ID>", + type: "branch", + reference: "<REFERENCE>", + activate: false + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/create.md b/docs/examples/1.7.x/server-graphql/examples/sites/create.md new file mode 100644 index 00000000000..bb89ac93442 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/create.md @@ -0,0 +1,61 @@ +mutation { + sitesCreate( + siteId: "<SITE_ID>", + name: "<NAME>", + framework: "analog", + buildRuntime: "node-14.5", + enabled: false, + logging: false, + timeout: 1, + installCommand: "<INSTALL_COMMAND>", + buildCommand: "<BUILD_COMMAND>", + outputDirectory: "<OUTPUT_DIRECTORY>", + adapter: "static", + installationId: "<INSTALLATION_ID>", + fallbackFile: "<FALLBACK_FILE>", + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", + providerBranch: "<PROVIDER_BRANCH>", + providerSilentMode: false, + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", + specification: "" + ) { + _id + _createdAt + _updatedAt + name + enabled + live + logging + framework + deploymentId + deploymentCreatedAt + deploymentScreenshotLight + deploymentScreenshotDark + latestDeploymentId + latestDeploymentCreatedAt + latestDeploymentStatus + vars { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } + timeout + installCommand + buildCommand + outputDirectory + installationId + providerRepositoryId + providerBranch + providerRootDirectory + providerSilentMode + specification + buildRuntime + adapter + fallbackFile + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..443a951cee6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/delete-deployment.md @@ -0,0 +1,8 @@ +mutation { + sitesDeleteDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/delete-log.md b/docs/examples/1.7.x/server-graphql/examples/sites/delete-log.md new file mode 100644 index 00000000000..60f27218c0d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/delete-log.md @@ -0,0 +1,8 @@ +mutation { + sitesDeleteLog( + siteId: "<SITE_ID>", + logId: "<LOG_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-graphql/examples/sites/delete-variable.md new file mode 100644 index 00000000000..2f86eddff17 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/delete-variable.md @@ -0,0 +1,8 @@ +mutation { + sitesDeleteVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/delete.md b/docs/examples/1.7.x/server-graphql/examples/sites/delete.md new file mode 100644 index 00000000000..35138f6d4ff --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/delete.md @@ -0,0 +1,7 @@ +mutation { + sitesDelete( + siteId: "<SITE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-graphql/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/get-deployment.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/get-log.md b/docs/examples/1.7.x/server-graphql/examples/sites/get-log.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/get-variable.md b/docs/examples/1.7.x/server-graphql/examples/sites/get-variable.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/get.md b/docs/examples/1.7.x/server-graphql/examples/sites/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-graphql/examples/sites/list-deployments.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-graphql/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/list-logs.md b/docs/examples/1.7.x/server-graphql/examples/sites/list-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-graphql/examples/sites/list-specifications.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/list-variables.md b/docs/examples/1.7.x/server-graphql/examples/sites/list-variables.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/list.md b/docs/examples/1.7.x/server-graphql/examples/sites/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-graphql/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..92751c167f2 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/update-deployment-status.md @@ -0,0 +1,34 @@ +mutation { + sitesUpdateDeploymentStatus( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + _createdAt + _updatedAt + type + resourceId + resourceType + entrypoint + sourceSize + buildSize + totalSize + buildId + activate + screenshotLight + screenshotDark + status + buildLogs + buildDuration + providerRepositoryName + providerRepositoryOwner + providerRepositoryUrl + providerBranch + providerCommitHash + providerCommitAuthorUrl + providerCommitAuthor + providerCommitMessage + providerCommitUrl + providerBranchUrl + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-graphql/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..6c09c037353 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/update-site-deployment.md @@ -0,0 +1,45 @@ +mutation { + sitesUpdateSiteDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + _createdAt + _updatedAt + name + enabled + live + logging + framework + deploymentId + deploymentCreatedAt + deploymentScreenshotLight + deploymentScreenshotDark + latestDeploymentId + latestDeploymentCreatedAt + latestDeploymentStatus + vars { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } + timeout + installCommand + buildCommand + outputDirectory + installationId + providerRepositoryId + providerBranch + providerRootDirectory + providerSilentMode + specification + buildRuntime + adapter + fallbackFile + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/update-variable.md b/docs/examples/1.7.x/server-graphql/examples/sites/update-variable.md new file mode 100644 index 00000000000..240dca60f3f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/update-variable.md @@ -0,0 +1,18 @@ +mutation { + sitesUpdateVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false + ) { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/sites/update.md b/docs/examples/1.7.x/server-graphql/examples/sites/update.md new file mode 100644 index 00000000000..801eca31617 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/sites/update.md @@ -0,0 +1,61 @@ +mutation { + sitesUpdate( + siteId: "<SITE_ID>", + name: "<NAME>", + framework: "analog", + enabled: false, + logging: false, + timeout: 1, + installCommand: "<INSTALL_COMMAND>", + buildCommand: "<BUILD_COMMAND>", + outputDirectory: "<OUTPUT_DIRECTORY>", + buildRuntime: "node-14.5", + adapter: "static", + fallbackFile: "<FALLBACK_FILE>", + installationId: "<INSTALLATION_ID>", + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", + providerBranch: "<PROVIDER_BRANCH>", + providerSilentMode: false, + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", + specification: "" + ) { + _id + _createdAt + _updatedAt + name + enabled + live + logging + framework + deploymentId + deploymentCreatedAt + deploymentScreenshotLight + deploymentScreenshotDark + latestDeploymentId + latestDeploymentCreatedAt + latestDeploymentStatus + vars { + _id + _createdAt + _updatedAt + key + value + secret + resourceType + resourceId + } + timeout + installCommand + buildCommand + outputDirectory + installationId + providerRepositoryId + providerBranch + providerRootDirectory + providerSilentMode + specification + buildRuntime + adapter + fallbackFile + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-graphql/examples/storage/create-bucket.md new file mode 100644 index 00000000000..45d03802d21 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/storage/create-bucket.md @@ -0,0 +1,27 @@ +mutation { + storageCreateBucket( + bucketId: "<BUCKET_ID>", + name: "<NAME>", + permissions: ["read("any")"], + fileSecurity: false, + enabled: false, + maximumFileSize: 1, + allowedFileExtensions: [], + compression: "none", + encryption: false, + antivirus: false + ) { + _id + _createdAt + _updatedAt + _permissions + fileSecurity + name + enabled + maximumFileSize + allowedFileExtensions + compression + encryption + antivirus + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.7.x/server-graphql/examples/storage/create-file.md new file mode 100644 index 00000000000..5b4f9a0c221 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/storage/create-file.md @@ -0,0 +1,26 @@ +POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="operations" + +{ "query": "mutation { storageCreateFile(bucketId: $bucketId, fileId: $fileId, file: $file, permissions: $permissions) { id }" }, "variables": { "bucketId": "<BUCKET_ID>", "fileId": "<FILE_ID>", "file": null, "permissions": ["read("any")"] } } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="map" + +{ "0": ["variables.file"], } + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="0"; filename="file.ext" + +File contents + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-graphql/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..3dadd1f0729 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/storage/delete-bucket.md @@ -0,0 +1,7 @@ +mutation { + storageDeleteBucket( + bucketId: "<BUCKET_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/delete-file.md b/docs/examples/1.7.x/server-graphql/examples/storage/delete-file.md new file mode 100644 index 00000000000..17ec89931ab --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/storage/delete-file.md @@ -0,0 +1,8 @@ +mutation { + storageDeleteFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-graphql/examples/storage/get-bucket.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-graphql/examples/storage/get-file-download.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-graphql/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-graphql/examples/storage/get-file-view.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/get-file.md b/docs/examples/1.7.x/server-graphql/examples/storage/get-file.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-graphql/examples/storage/list-buckets.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/list-files.md b/docs/examples/1.7.x/server-graphql/examples/storage/list-files.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-graphql/examples/storage/update-bucket.md new file mode 100644 index 00000000000..8265a15a58d --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/storage/update-bucket.md @@ -0,0 +1,27 @@ +mutation { + storageUpdateBucket( + bucketId: "<BUCKET_ID>", + name: "<NAME>", + permissions: ["read("any")"], + fileSecurity: false, + enabled: false, + maximumFileSize: 1, + allowedFileExtensions: [], + compression: "none", + encryption: false, + antivirus: false + ) { + _id + _createdAt + _updatedAt + _permissions + fileSecurity + name + enabled + maximumFileSize + allowedFileExtensions + compression + encryption + antivirus + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/storage/update-file.md b/docs/examples/1.7.x/server-graphql/examples/storage/update-file.md new file mode 100644 index 00000000000..b7832048c74 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/storage/update-file.md @@ -0,0 +1,20 @@ +mutation { + storageUpdateFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + name: "<NAME>", + permissions: ["read("any")"] + ) { + _id + bucketId + _createdAt + _updatedAt + _permissions + name + signature + mimeType + sizeOriginal + chunksTotal + chunksUploaded + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/create-membership.md b/docs/examples/1.7.x/server-graphql/examples/teams/create-membership.md new file mode 100644 index 00000000000..fe741f080dd --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/create-membership.md @@ -0,0 +1,25 @@ +mutation { + teamsCreateMembership( + teamId: "<TEAM_ID>", + roles: [], + email: "email@example.com", + userId: "<USER_ID>", + phone: "+12065550100", + url: "https://example.com", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + userId + userName + userEmail + teamId + teamName + invited + joined + confirm + mfa + roles + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/create.md b/docs/examples/1.7.x/server-graphql/examples/teams/create.md new file mode 100644 index 00000000000..1f2a7ab3f2a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/create.md @@ -0,0 +1,16 @@ +mutation { + teamsCreate( + teamId: "<TEAM_ID>", + name: "<NAME>", + roles: [] + ) { + _id + _createdAt + _updatedAt + name + total + prefs { + data + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-graphql/examples/teams/delete-membership.md new file mode 100644 index 00000000000..e391b6f6fa3 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/delete-membership.md @@ -0,0 +1,8 @@ +mutation { + teamsDeleteMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/delete.md b/docs/examples/1.7.x/server-graphql/examples/teams/delete.md new file mode 100644 index 00000000000..df0d36c5b51 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/delete.md @@ -0,0 +1,7 @@ +mutation { + teamsDelete( + teamId: "<TEAM_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/get-membership.md b/docs/examples/1.7.x/server-graphql/examples/teams/get-membership.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-graphql/examples/teams/get-prefs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/get.md b/docs/examples/1.7.x/server-graphql/examples/teams/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-graphql/examples/teams/list-memberships.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/list.md b/docs/examples/1.7.x/server-graphql/examples/teams/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-graphql/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..9b24450a868 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/update-membership-status.md @@ -0,0 +1,22 @@ +mutation { + teamsUpdateMembershipStatus( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + userId: "<USER_ID>", + secret: "<SECRET>" + ) { + _id + _createdAt + _updatedAt + userId + userName + userEmail + teamId + teamName + invited + joined + confirm + mfa + roles + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/update-membership.md b/docs/examples/1.7.x/server-graphql/examples/teams/update-membership.md new file mode 100644 index 00000000000..1c6a04f0784 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/update-membership.md @@ -0,0 +1,21 @@ +mutation { + teamsUpdateMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + roles: [] + ) { + _id + _createdAt + _updatedAt + userId + userName + userEmail + teamId + teamName + invited + joined + confirm + mfa + roles + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/update-name.md b/docs/examples/1.7.x/server-graphql/examples/teams/update-name.md new file mode 100644 index 00000000000..c40543b5cd6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/update-name.md @@ -0,0 +1,15 @@ +mutation { + teamsUpdateName( + teamId: "<TEAM_ID>", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + total + prefs { + data + } + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-graphql/examples/teams/update-prefs.md new file mode 100644 index 00000000000..95737e33f9b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/teams/update-prefs.md @@ -0,0 +1,8 @@ +mutation { + teamsUpdatePrefs( + teamId: "<TEAM_ID>", + prefs: "{}" + ) { + data + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-graphql/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..22cff062fa9 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/tokens/create-file-token.md @@ -0,0 +1,15 @@ +mutation { + tokensCreateFileToken( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + expire: "" + ) { + _id + _createdAt + resourceId + resourceType + expire + secret + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/tokens/delete.md b/docs/examples/1.7.x/server-graphql/examples/tokens/delete.md new file mode 100644 index 00000000000..b13ad72f6b8 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/tokens/delete.md @@ -0,0 +1,7 @@ +mutation { + tokensDelete( + tokenId: "<TOKEN_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/tokens/get.md b/docs/examples/1.7.x/server-graphql/examples/tokens/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/tokens/list.md b/docs/examples/1.7.x/server-graphql/examples/tokens/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/tokens/update.md b/docs/examples/1.7.x/server-graphql/examples/tokens/update.md new file mode 100644 index 00000000000..2f7324fd042 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/tokens/update.md @@ -0,0 +1,14 @@ +mutation { + tokensUpdate( + tokenId: "<TOKEN_ID>", + expire: "" + ) { + _id + _createdAt + resourceId + resourceType + expire + secret + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-argon2user.md new file mode 100644 index 00000000000..7f99622e524 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-argon2user.md @@ -0,0 +1,40 @@ +mutation { + usersCreateArgon2User( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..26659176ebf --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-bcrypt-user.md @@ -0,0 +1,40 @@ +mutation { + usersCreateBcryptUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-graphql/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..bf0b1bd6382 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-j-w-t.md @@ -0,0 +1,9 @@ +mutation { + usersCreateJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", + duration: 0 + ) { + jwt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..7e642b8233e --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-m-d5user.md @@ -0,0 +1,40 @@ +mutation { + usersCreateMD5User( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-graphql/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..7c4f1c55755 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,7 @@ +mutation { + usersCreateMfaRecoveryCodes( + userId: "<USER_ID>" + ) { + recoveryCodes + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..4c06b007a24 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-p-h-pass-user.md @@ -0,0 +1,40 @@ +mutation { + usersCreatePHPassUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..f99da2752da --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-s-h-a-user.md @@ -0,0 +1,41 @@ +mutation { + usersCreateSHAUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordVersion: "sha1", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..624ffcdd386 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,43 @@ +mutation { + usersCreateScryptModifiedUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordSalt: "<PASSWORD_SALT>", + passwordSaltSeparator: "<PASSWORD_SALT_SEPARATOR>", + passwordSignerKey: "<PASSWORD_SIGNER_KEY>", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-graphql/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..68a5f4c75f7 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-scrypt-user.md @@ -0,0 +1,45 @@ +mutation { + usersCreateScryptUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordSalt: "<PASSWORD_SALT>", + passwordCpu: 0, + passwordMemory: 0, + passwordParallel: 0, + passwordLength: 0, + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-session.md b/docs/examples/1.7.x/server-graphql/examples/users/create-session.md new file mode 100644 index 00000000000..701ddf501f2 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-session.md @@ -0,0 +1,35 @@ +mutation { + usersCreateSession( + userId: "<USER_ID>" + ) { + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-target.md b/docs/examples/1.7.x/server-graphql/examples/users/create-target.md new file mode 100644 index 00000000000..7068c21aba1 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-target.md @@ -0,0 +1,20 @@ +mutation { + usersCreateTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>", + providerType: "email", + identifier: "<IDENTIFIER>", + providerId: "<PROVIDER_ID>", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create-token.md b/docs/examples/1.7.x/server-graphql/examples/users/create-token.md new file mode 100644 index 00000000000..78255f76762 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create-token.md @@ -0,0 +1,14 @@ +mutation { + usersCreateToken( + userId: "<USER_ID>", + length: 4, + expire: 60 + ) { + _id + _createdAt + userId + secret + expire + phrase + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/create.md b/docs/examples/1.7.x/server-graphql/examples/users/create.md new file mode 100644 index 00000000000..465da804322 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/create.md @@ -0,0 +1,41 @@ +mutation { + usersCreate( + userId: "<USER_ID>", + email: "email@example.com", + phone: "+12065550100", + password: "", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/delete-identity.md b/docs/examples/1.7.x/server-graphql/examples/users/delete-identity.md new file mode 100644 index 00000000000..1ea0d990b1a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/delete-identity.md @@ -0,0 +1,7 @@ +mutation { + usersDeleteIdentity( + identityId: "<IDENTITY_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-graphql/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..43f73404f0a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,8 @@ +mutation { + usersDeleteMfaAuthenticator( + userId: "<USER_ID>", + type: "totp" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/delete-session.md b/docs/examples/1.7.x/server-graphql/examples/users/delete-session.md new file mode 100644 index 00000000000..7e6538b34a6 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/delete-session.md @@ -0,0 +1,8 @@ +mutation { + usersDeleteSession( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-graphql/examples/users/delete-sessions.md new file mode 100644 index 00000000000..d1ccaa26f4f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/delete-sessions.md @@ -0,0 +1,7 @@ +mutation { + usersDeleteSessions( + userId: "<USER_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/delete-target.md b/docs/examples/1.7.x/server-graphql/examples/users/delete-target.md new file mode 100644 index 00000000000..92d0a16ac50 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/delete-target.md @@ -0,0 +1,8 @@ +mutation { + usersDeleteTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/delete.md b/docs/examples/1.7.x/server-graphql/examples/users/delete.md new file mode 100644 index 00000000000..2cf392b7f13 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/delete.md @@ -0,0 +1,7 @@ +mutation { + usersDelete( + userId: "<USER_ID>" + ) { + status + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-graphql/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/get-prefs.md b/docs/examples/1.7.x/server-graphql/examples/users/get-prefs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/get-target.md b/docs/examples/1.7.x/server-graphql/examples/users/get-target.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/get.md b/docs/examples/1.7.x/server-graphql/examples/users/get.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list-identities.md b/docs/examples/1.7.x/server-graphql/examples/users/list-identities.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list-logs.md b/docs/examples/1.7.x/server-graphql/examples/users/list-logs.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list-memberships.md b/docs/examples/1.7.x/server-graphql/examples/users/list-memberships.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-graphql/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list-sessions.md b/docs/examples/1.7.x/server-graphql/examples/users/list-sessions.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list-targets.md b/docs/examples/1.7.x/server-graphql/examples/users/list-targets.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/list.md b/docs/examples/1.7.x/server-graphql/examples/users/list.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-graphql/examples/users/update-email-verification.md new file mode 100644 index 00000000000..cda7278ac0b --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-email-verification.md @@ -0,0 +1,38 @@ +mutation { + usersUpdateEmailVerification( + userId: "<USER_ID>", + emailVerification: false + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-email.md b/docs/examples/1.7.x/server-graphql/examples/users/update-email.md new file mode 100644 index 00000000000..408a74972b4 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-email.md @@ -0,0 +1,38 @@ +mutation { + usersUpdateEmail( + userId: "<USER_ID>", + email: "email@example.com" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-labels.md b/docs/examples/1.7.x/server-graphql/examples/users/update-labels.md new file mode 100644 index 00000000000..cb3c5b64830 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-labels.md @@ -0,0 +1,38 @@ +mutation { + usersUpdateLabels( + userId: "<USER_ID>", + labels: [] + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-graphql/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..dbef2bd3450 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,7 @@ +mutation { + usersUpdateMfaRecoveryCodes( + userId: "<USER_ID>" + ) { + recoveryCodes + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-mfa.md b/docs/examples/1.7.x/server-graphql/examples/users/update-mfa.md new file mode 100644 index 00000000000..ac09ea19a4f --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-mfa.md @@ -0,0 +1,38 @@ +mutation { + usersUpdateMfa( + userId: "<USER_ID>", + mfa: false + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-name.md b/docs/examples/1.7.x/server-graphql/examples/users/update-name.md new file mode 100644 index 00000000000..ec7e3dc27cc --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-name.md @@ -0,0 +1,38 @@ +mutation { + usersUpdateName( + userId: "<USER_ID>", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-password.md b/docs/examples/1.7.x/server-graphql/examples/users/update-password.md new file mode 100644 index 00000000000..95ef74c83dd --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-password.md @@ -0,0 +1,38 @@ +mutation { + usersUpdatePassword( + userId: "<USER_ID>", + password: "" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-graphql/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..c6afa54ba4a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-phone-verification.md @@ -0,0 +1,38 @@ +mutation { + usersUpdatePhoneVerification( + userId: "<USER_ID>", + phoneVerification: false + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-phone.md b/docs/examples/1.7.x/server-graphql/examples/users/update-phone.md new file mode 100644 index 00000000000..d3fc7d5f378 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-phone.md @@ -0,0 +1,38 @@ +mutation { + usersUpdatePhone( + userId: "<USER_ID>", + number: "+12065550100" + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-prefs.md b/docs/examples/1.7.x/server-graphql/examples/users/update-prefs.md new file mode 100644 index 00000000000..431664c2a1a --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-prefs.md @@ -0,0 +1,8 @@ +mutation { + usersUpdatePrefs( + userId: "<USER_ID>", + prefs: "{}" + ) { + data + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-status.md b/docs/examples/1.7.x/server-graphql/examples/users/update-status.md new file mode 100644 index 00000000000..2499c1c2588 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-status.md @@ -0,0 +1,38 @@ +mutation { + usersUpdateStatus( + userId: "<USER_ID>", + status: false + ) { + _id + _createdAt + _updatedAt + name + password + hash + hashOptions + registration + status + labels + passwordUpdate + email + phone + emailVerification + phoneVerification + mfa + prefs { + data + } + targets { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } + accessedAt + } +} diff --git a/docs/examples/1.7.x/server-graphql/examples/users/update-target.md b/docs/examples/1.7.x/server-graphql/examples/users/update-target.md new file mode 100644 index 00000000000..1f7cc1147a5 --- /dev/null +++ b/docs/examples/1.7.x/server-graphql/examples/users/update-target.md @@ -0,0 +1,19 @@ +mutation { + usersUpdateTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>", + providerId: "<PROVIDER_ID>", + name: "<NAME>" + ) { + _id + _createdAt + _updatedAt + name + userId + providerId + providerType + identifier + expired + } +} diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-anonymous-session.md b/docs/examples/1.7.x/server-kotlin/java/account/create-anonymous-session.md new file mode 100644 index 00000000000..d65c20a600e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-anonymous-session.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createAnonymousSession(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-email-password-session.md b/docs/examples/1.7.x/server-kotlin/java/account/create-email-password-session.md new file mode 100644 index 00000000000..633931089fe --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-email-password-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createEmailPasswordSession( + "email@example.com", // email + "password", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-email-token.md b/docs/examples/1.7.x/server-kotlin/java/account/create-email-token.md new file mode 100644 index 00000000000..7a6a0d7fea5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-email-token.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createEmailToken( + "<USER_ID>", // userId + "email@example.com", // email + false, // phrase (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-j-w-t.md b/docs/examples/1.7.x/server-kotlin/java/account/create-j-w-t.md new file mode 100644 index 00000000000..3756edee257 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-j-w-t.md @@ -0,0 +1,18 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createJWT(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-kotlin/java/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..df021f9568e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-magic-u-r-l-token.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createMagicURLToken( + "<USER_ID>", // userId + "email@example.com", // email + "https://example.com", // url (optional) + false, // phrase (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..ee37e487947 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-authenticator.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.createMfaAuthenticator( + AuthenticatorType.TOTP, // type + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-challenge.md new file mode 100644 index 00000000000..4a07e26e49f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-challenge.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticationFactor; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createMfaChallenge( + AuthenticationFactor.EMAIL, // factor + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..eb76cdca9bd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-mfa-recovery-codes.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.createMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-o-auth2token.md b/docs/examples/1.7.x/server-kotlin/java/account/create-o-auth2token.md new file mode 100644 index 00000000000..5b325f5c61c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-o-auth2token.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.OAuthProvider; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createOAuth2Token( + OAuthProvider.AMAZON, // provider + "https://example.com", // success (optional) + "https://example.com", // failure (optional) + listOf(), // scopes (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-phone-token.md b/docs/examples/1.7.x/server-kotlin/java/account/create-phone-token.md new file mode 100644 index 00000000000..14fb8126878 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-phone-token.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createPhoneToken( + "<USER_ID>", // userId + "+12065550100", // phone + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.7.x/server-kotlin/java/account/create-phone-verification.md new file mode 100644 index 00000000000..9e49c62880a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-phone-verification.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.createPhoneVerification(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.7.x/server-kotlin/java/account/create-recovery.md new file mode 100644 index 00000000000..f529ea4cb71 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-recovery.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.createRecovery( + "email@example.com", // email + "https://example.com", // url + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-session.md b/docs/examples/1.7.x/server-kotlin/java/account/create-session.md new file mode 100644 index 00000000000..5bcdf990596 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.createSession( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.7.x/server-kotlin/java/account/create-verification.md new file mode 100644 index 00000000000..65c8e8be497 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create-verification.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.createVerification( + "https://example.com", // url + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/create.md b/docs/examples/1.7.x/server-kotlin/java/account/create.md new file mode 100644 index 00000000000..d24bfb85925 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/create.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.create( + "<USER_ID>", // userId + "email@example.com", // email + "", // password + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.7.x/server-kotlin/java/account/delete-identity.md new file mode 100644 index 00000000000..0d6f860a636 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/delete-identity.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.deleteIdentity( + "<IDENTITY_ID>", // identityId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/java/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..06835f66807 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/delete-mfa-authenticator.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.deleteMfaAuthenticator( + AuthenticatorType.TOTP, // type + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.7.x/server-kotlin/java/account/delete-session.md new file mode 100644 index 00000000000..fd27d746b1b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/delete-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.deleteSession( + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.7.x/server-kotlin/java/account/delete-sessions.md new file mode 100644 index 00000000000..11076e72d2d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/delete-sessions.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.deleteSessions(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/java/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..c818c3ea74b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/get-mfa-recovery-codes.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.getMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.7.x/server-kotlin/java/account/get-prefs.md new file mode 100644 index 00000000000..6614f92aaa5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/get-prefs.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.getPrefs(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/get-session.md b/docs/examples/1.7.x/server-kotlin/java/account/get-session.md new file mode 100644 index 00000000000..3f30d902562 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/get-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.getSession( + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/get.md b/docs/examples/1.7.x/server-kotlin/java/account/get.md new file mode 100644 index 00000000000..70e2dfb97fd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/get.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.get(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.7.x/server-kotlin/java/account/list-identities.md new file mode 100644 index 00000000000..ceb4b3099a4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/list-identities.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.listIdentities( + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.7.x/server-kotlin/java/account/list-logs.md new file mode 100644 index 00000000000..de22fcec6ac --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/list-logs.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.listLogs( + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/list-mfa-factors.md b/docs/examples/1.7.x/server-kotlin/java/account/list-mfa-factors.md new file mode 100644 index 00000000000..d9f90a4127b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/list-mfa-factors.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.listMfaFactors(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.7.x/server-kotlin/java/account/list-sessions.md new file mode 100644 index 00000000000..557832df822 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/list-sessions.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.listSessions(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-email.md b/docs/examples/1.7.x/server-kotlin/java/account/update-email.md new file mode 100644 index 00000000000..8529ba6a26e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-email.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateEmail( + "email@example.com", // email + "password", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-m-f-a.md b/docs/examples/1.7.x/server-kotlin/java/account/update-m-f-a.md new file mode 100644 index 00000000000..d1b60c54739 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-m-f-a.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateMFA( + false, // mfa + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-kotlin/java/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..b4735f49eab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-magic-u-r-l-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updateMagicURLSession( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..947c85a2446 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-authenticator.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateMfaAuthenticator( + AuthenticatorType.TOTP, // type + "<OTP>", // otp + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-challenge.md new file mode 100644 index 00000000000..b9b0ae9db5b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-challenge.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateMfaChallenge( + "<CHALLENGE_ID>", // challengeId + "<OTP>", // otp + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..4b3e52700bf --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-mfa-recovery-codes.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-name.md b/docs/examples/1.7.x/server-kotlin/java/account/update-name.md new file mode 100644 index 00000000000..749fe268afe --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-name.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateName( + "<NAME>", // name + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-password.md b/docs/examples/1.7.x/server-kotlin/java/account/update-password.md new file mode 100644 index 00000000000..8eaa08b4604 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-password.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updatePassword( + "", // password + "password", // oldPassword (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-phone-session.md b/docs/examples/1.7.x/server-kotlin/java/account/update-phone-session.md new file mode 100644 index 00000000000..cbfdca58ec8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-phone-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>"); // Your project ID + +Account account = new Account(client); + +account.updatePhoneSession( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.7.x/server-kotlin/java/account/update-phone-verification.md new file mode 100644 index 00000000000..998826544a9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-phone-verification.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updatePhoneVerification( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.7.x/server-kotlin/java/account/update-phone.md new file mode 100644 index 00000000000..d54aa9cfb2a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-phone.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updatePhone( + "+12065550100", // phone + "password", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.7.x/server-kotlin/java/account/update-prefs.md new file mode 100644 index 00000000000..0e900d0a664 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-prefs.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updatePrefs( + mapOf( "a" to "b" ), // prefs + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.7.x/server-kotlin/java/account/update-recovery.md new file mode 100644 index 00000000000..8ab16e18cec --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-recovery.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateRecovery( + "<USER_ID>", // userId + "<SECRET>", // secret + "", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-session.md b/docs/examples/1.7.x/server-kotlin/java/account/update-session.md new file mode 100644 index 00000000000..8233c054f5d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateSession( + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-status.md b/docs/examples/1.7.x/server-kotlin/java/account/update-status.md new file mode 100644 index 00000000000..d5f4f794760 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-status.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateStatus(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.7.x/server-kotlin/java/account/update-verification.md new file mode 100644 index 00000000000..dafe6db4573 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/account/update-verification.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Account; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Account account = new Account(client); + +account.updateVerification( + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-browser.md new file mode 100644 index 00000000000..9c3433eef5a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-browser.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; +import io.appwrite.enums.Browser; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getBrowser( + Browser.AVANT_BROWSER, // code + 0, // width (optional) + 0, // height (optional) + -1, // quality (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-credit-card.md new file mode 100644 index 00000000000..69046381065 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-credit-card.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; +import io.appwrite.enums.CreditCard; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getCreditCard( + CreditCard.AMERICAN_EXPRESS, // code + 0, // width (optional) + 0, // height (optional) + -1, // quality (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-favicon.md new file mode 100644 index 00000000000..f4e89cfadc6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-favicon.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getFavicon( + "https://example.com", // url + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-flag.md new file mode 100644 index 00000000000..159dcdcde6a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-flag.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; +import io.appwrite.enums.Flag; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getFlag( + Flag.AFGHANISTAN, // code + 0, // width (optional) + 0, // height (optional) + -1, // quality (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-image.md new file mode 100644 index 00000000000..afad760c385 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-image.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getImage( + "https://example.com", // url + 0, // width (optional) + 0, // height (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-initials.md new file mode 100644 index 00000000000..171b636f02b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-initials.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getInitials( + "<NAME>", // name (optional) + 0, // width (optional) + 0, // height (optional) + "", // background (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.7.x/server-kotlin/java/avatars/get-q-r.md new file mode 100644 index 00000000000..113fd1fceb5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/avatars/get-q-r.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Avatars; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Avatars avatars = new Avatars(client); + +avatars.getQR( + "<TEXT>", // text + 1, // size (optional) + 0, // margin (optional) + false, // download (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..7585471443d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createBooleanAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + false, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-collection.md new file mode 100644 index 00000000000..8ec51e698ab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-collection.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createCollection( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<NAME>", // name + listOf("read("any")"), // permissions (optional) + false, // documentSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..d95e048b090 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createDatetimeAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-document.md new file mode 100644 index 00000000000..368b8162190 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-document.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("<YOUR_API_KEY>") // Your secret API key + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Databases databases = new Databases(client); + +databases.createDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + mapOf( "a" to "b" ), // data + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-documents.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-documents.md new file mode 100644 index 00000000000..d816af366dd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-documents.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // documents + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-email-attribute.md new file mode 100644 index 00000000000..b2ecc99a170 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-email-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createEmailAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "email@example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-enum-attribute.md new file mode 100644 index 00000000000..44202086b0c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-enum-attribute.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createEnumAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + listOf(), // elements + false, // required + "<DEFAULT>", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-float-attribute.md new file mode 100644 index 00000000000..2263cdb5c62 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-float-attribute.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createFloatAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-index.md new file mode 100644 index 00000000000..fe2d9bf66d3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-index.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; +import io.appwrite.enums.IndexType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createIndex( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + IndexType.KEY, // type + listOf(), // attributes + listOf(), // orders (optional) + listOf(), // lengths (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-integer-attribute.md new file mode 100644 index 00000000000..b084e7c9742 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-integer-attribute.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createIntegerAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + 0, // min (optional) + 0, // max (optional) + 0, // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-ip-attribute.md new file mode 100644 index 00000000000..ba62dba1d7e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-ip-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createIpAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..a67f4526478 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -0,0 +1,31 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; +import io.appwrite.enums.RelationshipType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createRelationshipAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<RELATED_COLLECTION_ID>", // relatedCollectionId + RelationshipType.ONETOONE, // type + false, // twoWay (optional) + "", // key (optional) + "", // twoWayKey (optional) + RelationMutate.CASCADE, // onDelete (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-string-attribute.md new file mode 100644 index 00000000000..3286c7aa01b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-string-attribute.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createStringAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + 1, // size + false, // required + "<DEFAULT>", // default (optional) + false, // array (optional) + false, // encrypt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/create-url-attribute.md new file mode 100644 index 00000000000..d445d67e333 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create-url-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.createUrlAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "https://example.com", // default (optional) + false, // array (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/create.md b/docs/examples/1.7.x/server-kotlin/java/databases/create.md new file mode 100644 index 00000000000..31cd37e1693 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/create.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.create( + "<DATABASE_ID>", // databaseId + "<NAME>", // name + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/delete-attribute.md new file mode 100644 index 00000000000..236d492adb2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/delete-attribute.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.deleteAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.7.x/server-kotlin/java/databases/delete-collection.md new file mode 100644 index 00000000000..5da2a3d684d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/delete-collection.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.deleteCollection( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.7.x/server-kotlin/java/databases/delete-document.md new file mode 100644 index 00000000000..f6e6209f36b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/delete-document.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +databases.deleteDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/delete-documents.md b/docs/examples/1.7.x/server-kotlin/java/databases/delete-documents.md new file mode 100644 index 00000000000..e8394b1ff96 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/delete-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.deleteDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.7.x/server-kotlin/java/databases/delete-index.md new file mode 100644 index 00000000000..6f684357793 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/delete-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.deleteIndex( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/delete.md b/docs/examples/1.7.x/server-kotlin/java/databases/delete.md new file mode 100644 index 00000000000..b0824913835 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.delete( + "<DATABASE_ID>", // databaseId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/get-attribute.md new file mode 100644 index 00000000000..672f0b062e2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/get-attribute.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.getAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.7.x/server-kotlin/java/databases/get-collection.md new file mode 100644 index 00000000000..59401be370b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/get-collection.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.getCollection( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.7.x/server-kotlin/java/databases/get-document.md new file mode 100644 index 00000000000..2719073a7d3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/get-document.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +databases.getDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.7.x/server-kotlin/java/databases/get-index.md new file mode 100644 index 00000000000..61cfe84ee46 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/get-index.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.getIndex( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/get.md b/docs/examples/1.7.x/server-kotlin/java/databases/get.md new file mode 100644 index 00000000000..b0e3742149f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/get.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.get( + "<DATABASE_ID>", // databaseId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.7.x/server-kotlin/java/databases/list-attributes.md new file mode 100644 index 00000000000..9681831a35a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/list-attributes.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.listAttributes( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.7.x/server-kotlin/java/databases/list-collections.md new file mode 100644 index 00000000000..32534474e1e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/list-collections.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.listCollections( + "<DATABASE_ID>", // databaseId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.7.x/server-kotlin/java/databases/list-documents.md new file mode 100644 index 00000000000..36982c0eb08 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/list-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +databases.listDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.7.x/server-kotlin/java/databases/list-indexes.md new file mode 100644 index 00000000000..8c912bb36ca --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/list-indexes.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.listIndexes( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/list.md b/docs/examples/1.7.x/server-kotlin/java/databases/list.md new file mode 100644 index 00000000000..758b9f75fe1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/list.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.list( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..3c958510277 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateBooleanAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + false, // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-collection.md new file mode 100644 index 00000000000..6805c1149d7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-collection.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateCollection( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<NAME>", // name + listOf("read("any")"), // permissions (optional) + false, // documentSecurity (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..3f451b83f21 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateDatetimeAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-document.md new file mode 100644 index 00000000000..f7b05c96018 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-document.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +databases.updateDocument( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "<DOCUMENT_ID>", // documentId + mapOf( "a" to "b" ), // data (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-documents.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-documents.md new file mode 100644 index 00000000000..b4138b41d22 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-documents.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + mapOf( "a" to "b" ), // data (optional) + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-email-attribute.md new file mode 100644 index 00000000000..1ff12217ba3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-email-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateEmailAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "email@example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-enum-attribute.md new file mode 100644 index 00000000000..89606806d95 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-enum-attribute.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateEnumAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + listOf(), // elements + false, // required + "<DEFAULT>", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-float-attribute.md new file mode 100644 index 00000000000..0076987f856 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-float-attribute.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateFloatAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-integer-attribute.md new file mode 100644 index 00000000000..c39af22b362 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-integer-attribute.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateIntegerAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-ip-attribute.md new file mode 100644 index 00000000000..44b4da2abc4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-ip-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateIpAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..8af20e91a90 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateRelationshipAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-string-attribute.md new file mode 100644 index 00000000000..1f156f3dbbe --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-string-attribute.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateStringAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "<DEFAULT>", // default + 1, // size (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.7.x/server-kotlin/java/databases/update-url-attribute.md new file mode 100644 index 00000000000..959054ab489 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update-url-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateUrlAttribute( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + "", // key + false, // required + "https://example.com", // default + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/update.md b/docs/examples/1.7.x/server-kotlin/java/databases/update.md new file mode 100644 index 00000000000..9928dae6f63 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/update.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.update( + "<DATABASE_ID>", // databaseId + "<NAME>", // name + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/databases/upsert-documents.md b/docs/examples/1.7.x/server-kotlin/java/databases/upsert-documents.md new file mode 100644 index 00000000000..e2f2a46337c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/databases/upsert-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.upsertDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // documents (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/create-deployment.md new file mode 100644 index 00000000000..6e435f41fa2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create-deployment.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.models.InputFile; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.createDeployment( + "<FUNCTION_ID>", // functionId + InputFile.fromPath("file.png"), // code + false, // activate + "<ENTRYPOINT>", // entrypoint (optional) + "<COMMANDS>", // commands (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..6b9d9a131ab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create-duplicate-deployment.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.createDuplicateDeployment( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + "<BUILD_ID>", // buildId (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.7.x/server-kotlin/java/functions/create-execution.md new file mode 100644 index 00000000000..82d48fa55be --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create-execution.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Functions functions = new Functions(client); + +functions.createExecution( + "<FUNCTION_ID>", // functionId + "<BODY>", // body (optional) + false, // async (optional) + "<PATH>", // path (optional) + ExecutionMethod.GET, // method (optional) + mapOf( "a" to "b" ), // headers (optional) + "", // scheduledAt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create-template-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/create-template-deployment.md new file mode 100644 index 00000000000..53b5a9ae6a6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create-template-deployment.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.createTemplateDeployment( + "<FUNCTION_ID>", // functionId + "<REPOSITORY>", // repository + "<OWNER>", // owner + "<ROOT_DIRECTORY>", // rootDirectory + "<VERSION>", // version + false, // activate (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.7.x/server-kotlin/java/functions/create-variable.md new file mode 100644 index 00000000000..70764fbdc89 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create-variable.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.createVariable( + "<FUNCTION_ID>", // functionId + "<KEY>", // key + "<VALUE>", // value + false, // secret (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..9274cd88c7b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create-vcs-deployment.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; +import io.appwrite.enums.VCSDeploymentType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.createVcsDeployment( + "<FUNCTION_ID>", // functionId + VCSDeploymentType.BRANCH, // type + "<REFERENCE>", // reference + false, // activate (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/create.md b/docs/examples/1.7.x/server-kotlin/java/functions/create.md new file mode 100644 index 00000000000..71871287bbc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/create.md @@ -0,0 +1,41 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; +import io.appwrite.enums.Runtime; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.create( + "<FUNCTION_ID>", // functionId + "<NAME>", // name + .NODE_14_5, // runtime + listOf("any"), // execute (optional) + listOf(), // events (optional) + "", // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + "<ENTRYPOINT>", // entrypoint (optional) + "<COMMANDS>", // commands (optional) + listOf(), // scopes (optional) + "<INSTALLATION_ID>", // installationId (optional) + "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) + "<PROVIDER_BRANCH>", // providerBranch (optional) + false, // providerSilentMode (optional) + "<PROVIDER_ROOT_DIRECTORY>", // providerRootDirectory (optional) + "", // specification (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/delete-deployment.md new file mode 100644 index 00000000000..1a6279ff3f9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/delete-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.deleteDeployment( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/delete-execution.md b/docs/examples/1.7.x/server-kotlin/java/functions/delete-execution.md new file mode 100644 index 00000000000..68f81e8ee48 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/delete-execution.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.deleteExecution( + "<FUNCTION_ID>", // functionId + "<EXECUTION_ID>", // executionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.7.x/server-kotlin/java/functions/delete-variable.md new file mode 100644 index 00000000000..c881bdc8001 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/delete-variable.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.deleteVariable( + "<FUNCTION_ID>", // functionId + "<VARIABLE_ID>", // variableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/delete.md b/docs/examples/1.7.x/server-kotlin/java/functions/delete.md new file mode 100644 index 00000000000..255fc002fa0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.delete( + "<FUNCTION_ID>", // functionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/get-deployment-download.md b/docs/examples/1.7.x/server-kotlin/java/functions/get-deployment-download.md new file mode 100644 index 00000000000..d522b12caff --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/get-deployment-download.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.getDeploymentDownload( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + DeploymentDownloadType.SOURCE, // type (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/get-deployment.md new file mode 100644 index 00000000000..b3000272b4d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/get-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.getDeployment( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.7.x/server-kotlin/java/functions/get-execution.md new file mode 100644 index 00000000000..76e302fa821 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/get-execution.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Functions functions = new Functions(client); + +functions.getExecution( + "<FUNCTION_ID>", // functionId + "<EXECUTION_ID>", // executionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.7.x/server-kotlin/java/functions/get-variable.md new file mode 100644 index 00000000000..d54882b293d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/get-variable.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.getVariable( + "<FUNCTION_ID>", // functionId + "<VARIABLE_ID>", // variableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/get.md b/docs/examples/1.7.x/server-kotlin/java/functions/get.md new file mode 100644 index 00000000000..aa55b93e071 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/get.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.get( + "<FUNCTION_ID>", // functionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.7.x/server-kotlin/java/functions/list-deployments.md new file mode 100644 index 00000000000..16a10ca4a2c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/list-deployments.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.listDeployments( + "<FUNCTION_ID>", // functionId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.7.x/server-kotlin/java/functions/list-executions.md new file mode 100644 index 00000000000..25a9af80aa8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/list-executions.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Functions functions = new Functions(client); + +functions.listExecutions( + "<FUNCTION_ID>", // functionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.7.x/server-kotlin/java/functions/list-runtimes.md new file mode 100644 index 00000000000..304a90d0da3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/list-runtimes.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.listRuntimes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/list-specifications.md b/docs/examples/1.7.x/server-kotlin/java/functions/list-specifications.md new file mode 100644 index 00000000000..e6c9c091d76 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/list-specifications.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.listSpecifications(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.7.x/server-kotlin/java/functions/list-variables.md new file mode 100644 index 00000000000..98c9ff45274 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/list-variables.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.listVariables( + "<FUNCTION_ID>", // functionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/list.md b/docs/examples/1.7.x/server-kotlin/java/functions/list.md new file mode 100644 index 00000000000..a9a320660d9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/list.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.list( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/update-deployment-status.md b/docs/examples/1.7.x/server-kotlin/java/functions/update-deployment-status.md new file mode 100644 index 00000000000..8755fd93058 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/update-deployment-status.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.updateDeploymentStatus( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/update-function-deployment.md b/docs/examples/1.7.x/server-kotlin/java/functions/update-function-deployment.md new file mode 100644 index 00000000000..b88e87c1b98 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/update-function-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.updateFunctionDeployment( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.7.x/server-kotlin/java/functions/update-variable.md new file mode 100644 index 00000000000..3a2b2813321 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/update-variable.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.updateVariable( + "<FUNCTION_ID>", // functionId + "<VARIABLE_ID>", // variableId + "<KEY>", // key + "<VALUE>", // value (optional) + false, // secret (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/functions/update.md b/docs/examples/1.7.x/server-kotlin/java/functions/update.md new file mode 100644 index 00000000000..5956c57b730 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/functions/update.md @@ -0,0 +1,40 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.update( + "<FUNCTION_ID>", // functionId + "<NAME>", // name + .NODE_14_5, // runtime (optional) + listOf("any"), // execute (optional) + listOf(), // events (optional) + "", // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + "<ENTRYPOINT>", // entrypoint (optional) + "<COMMANDS>", // commands (optional) + listOf(), // scopes (optional) + "<INSTALLATION_ID>", // installationId (optional) + "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) + "<PROVIDER_BRANCH>", // providerBranch (optional) + false, // providerSilentMode (optional) + "<PROVIDER_ROOT_DIRECTORY>", // providerRootDirectory (optional) + "", // specification (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.7.x/server-kotlin/java/graphql/mutation.md new file mode 100644 index 00000000000..778892457b0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/graphql/mutation.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Graphql; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Graphql graphql = new Graphql(client); + +graphql.mutation( + mapOf( "a" to "b" ), // query + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/graphql/query.md b/docs/examples/1.7.x/server-kotlin/java/graphql/query.md new file mode 100644 index 00000000000..e109d523f85 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/graphql/query.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Graphql; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Graphql graphql = new Graphql(client); + +graphql.query( + mapOf( "a" to "b" ), // query + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.7.x/server-kotlin/java/health/get-antivirus.md new file mode 100644 index 00000000000..ca3abf71005 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-antivirus.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getAntivirus(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.7.x/server-kotlin/java/health/get-cache.md new file mode 100644 index 00000000000..24a584c04b4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-cache.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getCache(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-certificate.md b/docs/examples/1.7.x/server-kotlin/java/health/get-certificate.md new file mode 100644 index 00000000000..f4cb5a4e1eb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-certificate.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getCertificate( + "", // domain (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.7.x/server-kotlin/java/health/get-d-b.md new file mode 100644 index 00000000000..c7a7bef9032 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-d-b.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getDB(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-failed-jobs.md b/docs/examples/1.7.x/server-kotlin/java/health/get-failed-jobs.md new file mode 100644 index 00000000000..d2b81bd0bfa --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-failed-jobs.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; +import io.appwrite.enums.Name; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getFailedJobs( + .V1_DATABASE, // name + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.7.x/server-kotlin/java/health/get-pub-sub.md new file mode 100644 index 00000000000..70210c42967 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-pub-sub.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getPubSub(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-builds.md new file mode 100644 index 00000000000..2ca5d7f4e4d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-builds.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueBuilds( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-certificates.md new file mode 100644 index 00000000000..519817ae460 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-certificates.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueCertificates( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-databases.md new file mode 100644 index 00000000000..2f175668eba --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-databases.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueDatabases( + "<NAME>", // name (optional) + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-deletes.md new file mode 100644 index 00000000000..e65aa9a528f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-deletes.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueDeletes( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-functions.md new file mode 100644 index 00000000000..720f114acb7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-functions.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueFunctions( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-logs.md new file mode 100644 index 00000000000..09b0de4e63f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-logs.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueLogs( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-mails.md new file mode 100644 index 00000000000..b1ae357aefc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-mails.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueMails( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-messaging.md new file mode 100644 index 00000000000..61c0b8cad7e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-messaging.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueMessaging( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-migrations.md new file mode 100644 index 00000000000..0e7d669e7f1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-migrations.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueMigrations( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e2f8062fcc6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-stats-resources.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueStatsResources( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-usage.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-usage.md new file mode 100644 index 00000000000..bfda61a544e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-usage.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueUsage( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-webhooks.md new file mode 100644 index 00000000000..d9aed66db64 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-queue-webhooks.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueWebhooks( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.7.x/server-kotlin/java/health/get-storage-local.md new file mode 100644 index 00000000000..65367cc2524 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-storage-local.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getStorageLocal(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-storage.md b/docs/examples/1.7.x/server-kotlin/java/health/get-storage.md new file mode 100644 index 00000000000..3a0f0f8ed3d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-storage.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getStorage(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get-time.md b/docs/examples/1.7.x/server-kotlin/java/health/get-time.md new file mode 100644 index 00000000000..f0ba668ab8e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get-time.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getTime(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/health/get.md b/docs/examples/1.7.x/server-kotlin/java/health/get.md new file mode 100644 index 00000000000..87a7c0a32d7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/health/get.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.get(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/get.md b/docs/examples/1.7.x/server-kotlin/java/locale/get.md new file mode 100644 index 00000000000..2d5e0ac06d0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/get.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.get(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-codes.md new file mode 100644 index 00000000000..9f07d1dbf19 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-codes.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listCodes(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-continents.md new file mode 100644 index 00000000000..5d9e4b0fdb5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-continents.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listContinents(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-countries-e-u.md new file mode 100644 index 00000000000..232a0ef8cf7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-countries-e-u.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listCountriesEU(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-countries-phones.md new file mode 100644 index 00000000000..a4739a5b930 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-countries-phones.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listCountriesPhones(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-countries.md new file mode 100644 index 00000000000..5b8f250f3c7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-countries.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listCountries(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-currencies.md new file mode 100644 index 00000000000..adf1d787c11 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-currencies.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listCurrencies(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.7.x/server-kotlin/java/locale/list-languages.md new file mode 100644 index 00000000000..c92ea525f7b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/locale/list-languages.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Locale; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Locale locale = new Locale(client); + +locale.listLanguages(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-apns-provider.md new file mode 100644 index 00000000000..0f6618079f2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-apns-provider.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createApnsProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "<AUTH_KEY>", // authKey (optional) + "<AUTH_KEY_ID>", // authKeyId (optional) + "<TEAM_ID>", // teamId (optional) + "<BUNDLE_ID>", // bundleId (optional) + false, // sandbox (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-email.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-email.md new file mode 100644 index 00000000000..d6ab5ee1bfd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-email.md @@ -0,0 +1,34 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createEmail( + "<MESSAGE_ID>", // messageId + "<SUBJECT>", // subject + "<CONTENT>", // content + listOf(), // topics (optional) + listOf(), // users (optional) + listOf(), // targets (optional) + listOf(), // cc (optional) + listOf(), // bcc (optional) + listOf(), // attachments (optional) + false, // draft (optional) + false, // html (optional) + "", // scheduledAt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..636a1bdd39a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-fcm-provider.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createFcmProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + mapOf( "a" to "b" ), // serviceAccountJSON (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..272f9d2356d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-mailgun-provider.md @@ -0,0 +1,32 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createMailgunProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "<API_KEY>", // apiKey (optional) + "<DOMAIN>", // domain (optional) + false, // isEuRegion (optional) + "<FROM_NAME>", // fromName (optional) + "email@example.com", // fromEmail (optional) + "<REPLY_TO_NAME>", // replyToName (optional) + "email@example.com", // replyToEmail (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-msg91provider.md new file mode 100644 index 00000000000..21005293eab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-msg91provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createMsg91Provider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "<TEMPLATE_ID>", // templateId (optional) + "<SENDER_ID>", // senderId (optional) + "<AUTH_KEY>", // authKey (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-push.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-push.md new file mode 100644 index 00000000000..277ab9655cc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-push.md @@ -0,0 +1,41 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createPush( + "<MESSAGE_ID>", // messageId + "<TITLE>", // title (optional) + "<BODY>", // body (optional) + listOf(), // topics (optional) + listOf(), // users (optional) + listOf(), // targets (optional) + mapOf( "a" to "b" ), // data (optional) + "<ACTION>", // action (optional) + "[ID1:ID2]", // image (optional) + "<ICON>", // icon (optional) + "<SOUND>", // sound (optional) + "<COLOR>", // color (optional) + "<TAG>", // tag (optional) + 0, // badge (optional) + false, // draft (optional) + "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..84c5bf42f9c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-sendgrid-provider.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createSendgridProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "<API_KEY>", // apiKey (optional) + "<FROM_NAME>", // fromName (optional) + "email@example.com", // fromEmail (optional) + "<REPLY_TO_NAME>", // replyToName (optional) + "email@example.com", // replyToEmail (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-sms.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-sms.md new file mode 100644 index 00000000000..9e3e3bdf5d1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-sms.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createSms( + "<MESSAGE_ID>", // messageId + "<CONTENT>", // content + listOf(), // topics (optional) + listOf(), // users (optional) + listOf(), // targets (optional) + false, // draft (optional) + "", // scheduledAt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..ebd153c29c9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-smtp-provider.md @@ -0,0 +1,36 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createSmtpProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "<HOST>", // host + 1, // port (optional) + "<USERNAME>", // username (optional) + "<PASSWORD>", // password (optional) + SmtpEncryption.NONE, // encryption (optional) + false, // autoTLS (optional) + "<MAILER>", // mailer (optional) + "<FROM_NAME>", // fromName (optional) + "email@example.com", // fromEmail (optional) + "<REPLY_TO_NAME>", // replyToName (optional) + "email@example.com", // replyToEmail (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-subscriber.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-subscriber.md new file mode 100644 index 00000000000..1ccb8fe60c7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-subscriber.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Messaging messaging = new Messaging(client); + +messaging.createSubscriber( + "<TOPIC_ID>", // topicId + "<SUBSCRIBER_ID>", // subscriberId + "<TARGET_ID>", // targetId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..6b644994193 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-telesign-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createTelesignProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "+12065550100", // from (optional) + "<CUSTOMER_ID>", // customerId (optional) + "<API_KEY>", // apiKey (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..477d7d8c4b5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-textmagic-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createTextmagicProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "+12065550100", // from (optional) + "<USERNAME>", // username (optional) + "<API_KEY>", // apiKey (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-topic.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-topic.md new file mode 100644 index 00000000000..63a24b467d5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-topic.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createTopic( + "<TOPIC_ID>", // topicId + "<NAME>", // name + listOf("any"), // subscribe (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..8d1b4da9703 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-twilio-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createTwilioProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "+12065550100", // from (optional) + "<ACCOUNT_SID>", // accountSid (optional) + "<AUTH_TOKEN>", // authToken (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..db1e476db23 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/create-vonage-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.createVonageProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name + "+12065550100", // from (optional) + "<API_KEY>", // apiKey (optional) + "<API_SECRET>", // apiSecret (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/delete-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/delete-provider.md new file mode 100644 index 00000000000..b0fa837feb7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/delete-provider.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.deleteProvider( + "<PROVIDER_ID>", // providerId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-kotlin/java/messaging/delete-subscriber.md new file mode 100644 index 00000000000..a3635b9db75 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/delete-subscriber.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token + +Messaging messaging = new Messaging(client); + +messaging.deleteSubscriber( + "<TOPIC_ID>", // topicId + "<SUBSCRIBER_ID>", // subscriberId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/delete-topic.md b/docs/examples/1.7.x/server-kotlin/java/messaging/delete-topic.md new file mode 100644 index 00000000000..7b598b25f4b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/delete-topic.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.deleteTopic( + "<TOPIC_ID>", // topicId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/delete.md b/docs/examples/1.7.x/server-kotlin/java/messaging/delete.md new file mode 100644 index 00000000000..1395a392455 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.delete( + "<MESSAGE_ID>", // messageId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/get-message.md b/docs/examples/1.7.x/server-kotlin/java/messaging/get-message.md new file mode 100644 index 00000000000..3860ff23470 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/get-message.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.getMessage( + "<MESSAGE_ID>", // messageId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/get-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/get-provider.md new file mode 100644 index 00000000000..9717b90b7d0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/get-provider.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.getProvider( + "<PROVIDER_ID>", // providerId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/get-subscriber.md b/docs/examples/1.7.x/server-kotlin/java/messaging/get-subscriber.md new file mode 100644 index 00000000000..641a494b5c7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/get-subscriber.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.getSubscriber( + "<TOPIC_ID>", // topicId + "<SUBSCRIBER_ID>", // subscriberId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/get-topic.md b/docs/examples/1.7.x/server-kotlin/java/messaging/get-topic.md new file mode 100644 index 00000000000..c9f2eff74b6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/get-topic.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.getTopic( + "<TOPIC_ID>", // topicId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-message-logs.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-message-logs.md new file mode 100644 index 00000000000..0f94e46cd11 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-message-logs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listMessageLogs( + "<MESSAGE_ID>", // messageId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-messages.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-messages.md new file mode 100644 index 00000000000..006ba7c27f0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-messages.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listMessages( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-provider-logs.md new file mode 100644 index 00000000000..5f77f2d03d5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-provider-logs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listProviderLogs( + "<PROVIDER_ID>", // providerId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-providers.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-providers.md new file mode 100644 index 00000000000..b069dda04c3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-providers.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listProviders( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..b10e446a667 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-subscriber-logs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listSubscriberLogs( + "<SUBSCRIBER_ID>", // subscriberId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-subscribers.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-subscribers.md new file mode 100644 index 00000000000..52ca5b0d010 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-subscribers.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listSubscribers( + "<TOPIC_ID>", // topicId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-targets.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-targets.md new file mode 100644 index 00000000000..5b9f40e8739 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-targets.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listTargets( + "<MESSAGE_ID>", // messageId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-topic-logs.md new file mode 100644 index 00000000000..b2e9444419f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-topic-logs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listTopicLogs( + "<TOPIC_ID>", // topicId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/list-topics.md b/docs/examples/1.7.x/server-kotlin/java/messaging/list-topics.md new file mode 100644 index 00000000000..e6408a60e1e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/list-topics.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.listTopics( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-apns-provider.md new file mode 100644 index 00000000000..737a142495a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-apns-provider.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateApnsProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<AUTH_KEY>", // authKey (optional) + "<AUTH_KEY_ID>", // authKeyId (optional) + "<TEAM_ID>", // teamId (optional) + "<BUNDLE_ID>", // bundleId (optional) + false, // sandbox (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-email.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-email.md new file mode 100644 index 00000000000..56e9767861b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-email.md @@ -0,0 +1,34 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateEmail( + "<MESSAGE_ID>", // messageId + listOf(), // topics (optional) + listOf(), // users (optional) + listOf(), // targets (optional) + "<SUBJECT>", // subject (optional) + "<CONTENT>", // content (optional) + false, // draft (optional) + false, // html (optional) + listOf(), // cc (optional) + listOf(), // bcc (optional) + "", // scheduledAt (optional) + listOf(), // attachments (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..68c56ef18ef --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-fcm-provider.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateFcmProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + mapOf( "a" to "b" ), // serviceAccountJSON (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..5547ae85758 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-mailgun-provider.md @@ -0,0 +1,32 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateMailgunProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + "<API_KEY>", // apiKey (optional) + "<DOMAIN>", // domain (optional) + false, // isEuRegion (optional) + false, // enabled (optional) + "<FROM_NAME>", // fromName (optional) + "email@example.com", // fromEmail (optional) + "<REPLY_TO_NAME>", // replyToName (optional) + "<REPLY_TO_EMAIL>", // replyToEmail (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-msg91provider.md new file mode 100644 index 00000000000..d8e485629bc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-msg91provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateMsg91Provider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<TEMPLATE_ID>", // templateId (optional) + "<SENDER_ID>", // senderId (optional) + "<AUTH_KEY>", // authKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-push.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-push.md new file mode 100644 index 00000000000..b7038de6a40 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-push.md @@ -0,0 +1,41 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updatePush( + "<MESSAGE_ID>", // messageId + listOf(), // topics (optional) + listOf(), // users (optional) + listOf(), // targets (optional) + "<TITLE>", // title (optional) + "<BODY>", // body (optional) + mapOf( "a" to "b" ), // data (optional) + "<ACTION>", // action (optional) + "[ID1:ID2]", // image (optional) + "<ICON>", // icon (optional) + "<SOUND>", // sound (optional) + "<COLOR>", // color (optional) + "<TAG>", // tag (optional) + 0, // badge (optional) + false, // draft (optional) + "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..14a4e99f5be --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-sendgrid-provider.md @@ -0,0 +1,30 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateSendgridProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<API_KEY>", // apiKey (optional) + "<FROM_NAME>", // fromName (optional) + "email@example.com", // fromEmail (optional) + "<REPLY_TO_NAME>", // replyToName (optional) + "<REPLY_TO_EMAIL>", // replyToEmail (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-sms.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-sms.md new file mode 100644 index 00000000000..c55cfdfddba --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-sms.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateSms( + "<MESSAGE_ID>", // messageId + listOf(), // topics (optional) + listOf(), // users (optional) + listOf(), // targets (optional) + "<CONTENT>", // content (optional) + false, // draft (optional) + "", // scheduledAt (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..3f39661024a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-smtp-provider.md @@ -0,0 +1,36 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateSmtpProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + "<HOST>", // host (optional) + 1, // port (optional) + "<USERNAME>", // username (optional) + "<PASSWORD>", // password (optional) + SmtpEncryption.NONE, // encryption (optional) + false, // autoTLS (optional) + "<MAILER>", // mailer (optional) + "<FROM_NAME>", // fromName (optional) + "email@example.com", // fromEmail (optional) + "<REPLY_TO_NAME>", // replyToName (optional) + "<REPLY_TO_EMAIL>", // replyToEmail (optional) + false, // enabled (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..8181bf1c82c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-telesign-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateTelesignProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<CUSTOMER_ID>", // customerId (optional) + "<API_KEY>", // apiKey (optional) + "<FROM>", // from (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..bc156b7a31e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-textmagic-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateTextmagicProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<USERNAME>", // username (optional) + "<API_KEY>", // apiKey (optional) + "<FROM>", // from (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-topic.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-topic.md new file mode 100644 index 00000000000..be9c44dc234 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-topic.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateTopic( + "<TOPIC_ID>", // topicId + "<NAME>", // name (optional) + listOf("any"), // subscribe (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..ed58ee9a24d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-twilio-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateTwilioProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<ACCOUNT_SID>", // accountSid (optional) + "<AUTH_TOKEN>", // authToken (optional) + "<FROM>", // from (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-kotlin/java/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..d5bfe3610c9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/messaging/update-vonage-provider.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Messaging; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Messaging messaging = new Messaging(client); + +messaging.updateVonageProvider( + "<PROVIDER_ID>", // providerId + "<NAME>", // name (optional) + false, // enabled (optional) + "<API_KEY>", // apiKey (optional) + "<API_SECRET>", // apiSecret (optional) + "<FROM>", // from (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/create-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/create-deployment.md new file mode 100644 index 00000000000..f370f802ebc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/create-deployment.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.models.InputFile; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.createDeployment( + "<SITE_ID>", // siteId + InputFile.fromPath("file.png"), // code + false, // activate + "<INSTALL_COMMAND>", // installCommand (optional) + "<BUILD_COMMAND>", // buildCommand (optional) + "<OUTPUT_DIRECTORY>", // outputDirectory (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..35e43b89433 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/create-duplicate-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.createDuplicateDeployment( + "<SITE_ID>", // siteId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/create-template-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/create-template-deployment.md new file mode 100644 index 00000000000..63aba4a0676 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/create-template-deployment.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.createTemplateDeployment( + "<SITE_ID>", // siteId + "<REPOSITORY>", // repository + "<OWNER>", // owner + "<ROOT_DIRECTORY>", // rootDirectory + "<VERSION>", // version + false, // activate (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/create-variable.md b/docs/examples/1.7.x/server-kotlin/java/sites/create-variable.md new file mode 100644 index 00000000000..c77bec37966 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/create-variable.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.createVariable( + "<SITE_ID>", // siteId + "<KEY>", // key + "<VALUE>", // value + false, // secret (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..754eb264191 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/create-vcs-deployment.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; +import io.appwrite.enums.VCSDeploymentType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.createVcsDeployment( + "<SITE_ID>", // siteId + VCSDeploymentType.BRANCH, // type + "<REFERENCE>", // reference + false, // activate (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/create.md b/docs/examples/1.7.x/server-kotlin/java/sites/create.md new file mode 100644 index 00000000000..19664ec57bb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/create.md @@ -0,0 +1,42 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; +import io.appwrite.enums.Framework; +import io.appwrite.enums.BuildRuntime; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.create( + "<SITE_ID>", // siteId + "<NAME>", // name + .ANALOG, // framework + .NODE_14_5, // buildRuntime + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + "<INSTALL_COMMAND>", // installCommand (optional) + "<BUILD_COMMAND>", // buildCommand (optional) + "<OUTPUT_DIRECTORY>", // outputDirectory (optional) + .STATIC, // adapter (optional) + "<INSTALLATION_ID>", // installationId (optional) + "<FALLBACK_FILE>", // fallbackFile (optional) + "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) + "<PROVIDER_BRANCH>", // providerBranch (optional) + false, // providerSilentMode (optional) + "<PROVIDER_ROOT_DIRECTORY>", // providerRootDirectory (optional) + "", // specification (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/delete-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/delete-deployment.md new file mode 100644 index 00000000000..97c08ab1596 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/delete-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.deleteDeployment( + "<SITE_ID>", // siteId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/delete-log.md b/docs/examples/1.7.x/server-kotlin/java/sites/delete-log.md new file mode 100644 index 00000000000..d7189373b02 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/delete-log.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.deleteLog( + "<SITE_ID>", // siteId + "<LOG_ID>", // logId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/delete-variable.md b/docs/examples/1.7.x/server-kotlin/java/sites/delete-variable.md new file mode 100644 index 00000000000..4e2b3ab7d43 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/delete-variable.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.deleteVariable( + "<SITE_ID>", // siteId + "<VARIABLE_ID>", // variableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/delete.md b/docs/examples/1.7.x/server-kotlin/java/sites/delete.md new file mode 100644 index 00000000000..fd07bb23c8b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.delete( + "<SITE_ID>", // siteId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/get-deployment-download.md b/docs/examples/1.7.x/server-kotlin/java/sites/get-deployment-download.md new file mode 100644 index 00000000000..5875c7262f5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/get-deployment-download.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.getDeploymentDownload( + "<SITE_ID>", // siteId + "<DEPLOYMENT_ID>", // deploymentId + DeploymentDownloadType.SOURCE, // type (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/get-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/get-deployment.md new file mode 100644 index 00000000000..6af859ba9af --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/get-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.getDeployment( + "<SITE_ID>", // siteId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/get-log.md b/docs/examples/1.7.x/server-kotlin/java/sites/get-log.md new file mode 100644 index 00000000000..d33f2a658f8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/get-log.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.getLog( + "<SITE_ID>", // siteId + "<LOG_ID>", // logId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/get-variable.md b/docs/examples/1.7.x/server-kotlin/java/sites/get-variable.md new file mode 100644 index 00000000000..1c8df0c08ae --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/get-variable.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.getVariable( + "<SITE_ID>", // siteId + "<VARIABLE_ID>", // variableId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/get.md b/docs/examples/1.7.x/server-kotlin/java/sites/get.md new file mode 100644 index 00000000000..660cad3bdb1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/get.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.get( + "<SITE_ID>", // siteId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/list-deployments.md b/docs/examples/1.7.x/server-kotlin/java/sites/list-deployments.md new file mode 100644 index 00000000000..8bcec54efeb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/list-deployments.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.listDeployments( + "<SITE_ID>", // siteId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/list-frameworks.md b/docs/examples/1.7.x/server-kotlin/java/sites/list-frameworks.md new file mode 100644 index 00000000000..df597177dd1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/list-frameworks.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.listFrameworks(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/list-logs.md b/docs/examples/1.7.x/server-kotlin/java/sites/list-logs.md new file mode 100644 index 00000000000..3532882a8d3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/list-logs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.listLogs( + "<SITE_ID>", // siteId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/list-specifications.md b/docs/examples/1.7.x/server-kotlin/java/sites/list-specifications.md new file mode 100644 index 00000000000..caad7325cf8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/list-specifications.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.listSpecifications(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/list-variables.md b/docs/examples/1.7.x/server-kotlin/java/sites/list-variables.md new file mode 100644 index 00000000000..f2a38b7e606 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/list-variables.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.listVariables( + "<SITE_ID>", // siteId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/list.md b/docs/examples/1.7.x/server-kotlin/java/sites/list.md new file mode 100644 index 00000000000..39a1c06407c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/list.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.list( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/update-deployment-status.md b/docs/examples/1.7.x/server-kotlin/java/sites/update-deployment-status.md new file mode 100644 index 00000000000..8dc3041f76e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/update-deployment-status.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.updateDeploymentStatus( + "<SITE_ID>", // siteId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/update-site-deployment.md b/docs/examples/1.7.x/server-kotlin/java/sites/update-site-deployment.md new file mode 100644 index 00000000000..edbda7cf93f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/update-site-deployment.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.updateSiteDeployment( + "<SITE_ID>", // siteId + "<DEPLOYMENT_ID>", // deploymentId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/update-variable.md b/docs/examples/1.7.x/server-kotlin/java/sites/update-variable.md new file mode 100644 index 00000000000..9735ae34afe --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/update-variable.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.updateVariable( + "<SITE_ID>", // siteId + "<VARIABLE_ID>", // variableId + "<KEY>", // key + "<VALUE>", // value (optional) + false, // secret (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/sites/update.md b/docs/examples/1.7.x/server-kotlin/java/sites/update.md new file mode 100644 index 00000000000..9a8b577ce0d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/sites/update.md @@ -0,0 +1,41 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Sites; +import io.appwrite.enums.Framework; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Sites sites = new Sites(client); + +sites.update( + "<SITE_ID>", // siteId + "<NAME>", // name + .ANALOG, // framework + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + "<INSTALL_COMMAND>", // installCommand (optional) + "<BUILD_COMMAND>", // buildCommand (optional) + "<OUTPUT_DIRECTORY>", // outputDirectory (optional) + .NODE_14_5, // buildRuntime (optional) + .STATIC, // adapter (optional) + "<FALLBACK_FILE>", // fallbackFile (optional) + "<INSTALLATION_ID>", // installationId (optional) + "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) + "<PROVIDER_BRANCH>", // providerBranch (optional) + false, // providerSilentMode (optional) + "<PROVIDER_ROOT_DIRECTORY>", // providerRootDirectory (optional) + "", // specification (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.7.x/server-kotlin/java/storage/create-bucket.md new file mode 100644 index 00000000000..a3a33084206 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/create-bucket.md @@ -0,0 +1,32 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +storage.createBucket( + "<BUCKET_ID>", // bucketId + "<NAME>", // name + listOf("read("any")"), // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + listOf(), // allowedFileExtensions (optional) + .NONE, // compression (optional) + false, // encryption (optional) + false, // antivirus (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.7.x/server-kotlin/java/storage/create-file.md new file mode 100644 index 00000000000..583f8569a53 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/create-file.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.models.InputFile; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.createFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + InputFile.fromPath("file.png"), // file + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.7.x/server-kotlin/java/storage/delete-bucket.md new file mode 100644 index 00000000000..eb77754f924 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/delete-bucket.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +storage.deleteBucket( + "<BUCKET_ID>", // bucketId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.7.x/server-kotlin/java/storage/delete-file.md new file mode 100644 index 00000000000..8976fd198f0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/delete-file.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.deleteFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.7.x/server-kotlin/java/storage/get-bucket.md new file mode 100644 index 00000000000..a099f33dd81 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/get-bucket.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +storage.getBucket( + "<BUCKET_ID>", // bucketId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.7.x/server-kotlin/java/storage/get-file-download.md new file mode 100644 index 00000000000..edda2609b50 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/get-file-download.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.getFileDownload( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "<TOKEN>", // token (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.7.x/server-kotlin/java/storage/get-file-preview.md new file mode 100644 index 00000000000..1a0ab596bc5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/get-file-preview.md @@ -0,0 +1,36 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.getFilePreview( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + 0, // width (optional) + 0, // height (optional) + ImageGravity.CENTER, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + "", // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + "", // background (optional) + ImageFormat.JPG, // output (optional) + "<TOKEN>", // token (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.7.x/server-kotlin/java/storage/get-file-view.md new file mode 100644 index 00000000000..178e50776ce --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/get-file-view.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.getFileView( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "<TOKEN>", // token (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.7.x/server-kotlin/java/storage/get-file.md new file mode 100644 index 00000000000..7a04c80e9ea --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/get-file.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.getFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.7.x/server-kotlin/java/storage/list-buckets.md new file mode 100644 index 00000000000..9d85957803d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/list-buckets.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +storage.listBuckets( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.7.x/server-kotlin/java/storage/list-files.md new file mode 100644 index 00000000000..f002754813e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/list-files.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.listFiles( + "<BUCKET_ID>", // bucketId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.7.x/server-kotlin/java/storage/update-bucket.md new file mode 100644 index 00000000000..2d80e2648cd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/update-bucket.md @@ -0,0 +1,32 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Storage storage = new Storage(client); + +storage.updateBucket( + "<BUCKET_ID>", // bucketId + "<NAME>", // name + listOf("read("any")"), // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + listOf(), // allowedFileExtensions (optional) + .NONE, // compression (optional) + false, // encryption (optional) + false, // antivirus (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.7.x/server-kotlin/java/storage/update-file.md new file mode 100644 index 00000000000..7f325f91fb4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/storage/update-file.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Storage; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Storage storage = new Storage(client); + +storage.updateFile( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "<NAME>", // name (optional) + listOf("read("any")"), // permissions (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.7.x/server-kotlin/java/teams/create-membership.md new file mode 100644 index 00000000000..89e9d96ef62 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/create-membership.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.createMembership( + "<TEAM_ID>", // teamId + listOf(), // roles + "email@example.com", // email (optional) + "<USER_ID>", // userId (optional) + "+12065550100", // phone (optional) + "https://example.com", // url (optional) + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/create.md b/docs/examples/1.7.x/server-kotlin/java/teams/create.md new file mode 100644 index 00000000000..28cc3dada1d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/create.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.create( + "<TEAM_ID>", // teamId + "<NAME>", // name + listOf(), // roles (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.7.x/server-kotlin/java/teams/delete-membership.md new file mode 100644 index 00000000000..3b414be028f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/delete-membership.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.deleteMembership( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/delete.md b/docs/examples/1.7.x/server-kotlin/java/teams/delete.md new file mode 100644 index 00000000000..07f5c12e4cf --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.delete( + "<TEAM_ID>", // teamId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.7.x/server-kotlin/java/teams/get-membership.md new file mode 100644 index 00000000000..e7c1571af6f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/get-membership.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.getMembership( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.7.x/server-kotlin/java/teams/get-prefs.md new file mode 100644 index 00000000000..6d308148015 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/get-prefs.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.getPrefs( + "<TEAM_ID>", // teamId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/get.md b/docs/examples/1.7.x/server-kotlin/java/teams/get.md new file mode 100644 index 00000000000..a479e9aff20 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/get.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.get( + "<TEAM_ID>", // teamId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.7.x/server-kotlin/java/teams/list-memberships.md new file mode 100644 index 00000000000..96944820083 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/list-memberships.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.listMemberships( + "<TEAM_ID>", // teamId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/list.md b/docs/examples/1.7.x/server-kotlin/java/teams/list.md new file mode 100644 index 00000000000..d0855ba8417 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/list.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.list( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.7.x/server-kotlin/java/teams/update-membership-status.md new file mode 100644 index 00000000000..461cf4cbc37 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/update-membership-status.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.updateMembershipStatus( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + "<USER_ID>", // userId + "<SECRET>", // secret + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.7.x/server-kotlin/java/teams/update-membership.md new file mode 100644 index 00000000000..d4816c57f1f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/update-membership.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.updateMembership( + "<TEAM_ID>", // teamId + "<MEMBERSHIP_ID>", // membershipId + listOf(), // roles + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.7.x/server-kotlin/java/teams/update-name.md new file mode 100644 index 00000000000..f2f1b02d93c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/update-name.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.updateName( + "<TEAM_ID>", // teamId + "<NAME>", // name + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.7.x/server-kotlin/java/teams/update-prefs.md new file mode 100644 index 00000000000..2ef05222df8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/teams/update-prefs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Teams; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Teams teams = new Teams(client); + +teams.updatePrefs( + "<TEAM_ID>", // teamId + mapOf( "a" to "b" ), // prefs + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/tokens/create-file-token.md b/docs/examples/1.7.x/server-kotlin/java/tokens/create-file-token.md new file mode 100644 index 00000000000..6996641d405 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/tokens/create-file-token.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tokens; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +tokens.createFileToken( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + "", // expire (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/tokens/delete.md b/docs/examples/1.7.x/server-kotlin/java/tokens/delete.md new file mode 100644 index 00000000000..bf1874d2f8f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/tokens/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tokens; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +tokens.delete( + "<TOKEN_ID>", // tokenId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/tokens/get.md b/docs/examples/1.7.x/server-kotlin/java/tokens/get.md new file mode 100644 index 00000000000..c55563c2e1b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/tokens/get.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tokens; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +tokens.get( + "<TOKEN_ID>", // tokenId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/tokens/list.md b/docs/examples/1.7.x/server-kotlin/java/tokens/list.md new file mode 100644 index 00000000000..a59e9f5ee85 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/tokens/list.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tokens; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +tokens.list( + "<BUCKET_ID>", // bucketId + "<FILE_ID>", // fileId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/tokens/update.md b/docs/examples/1.7.x/server-kotlin/java/tokens/update.md new file mode 100644 index 00000000000..2a44f2d16e4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/tokens/update.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Tokens; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Tokens tokens = new Tokens(client); + +tokens.update( + "<TOKEN_ID>", // tokenId + "", // expire (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-argon2user.md new file mode 100644 index 00000000000..c78f236cec6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-argon2user.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createArgon2User( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-bcrypt-user.md new file mode 100644 index 00000000000..7b85f960548 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-bcrypt-user.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createBcryptUser( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-j-w-t.md b/docs/examples/1.7.x/server-kotlin/java/users/create-j-w-t.md new file mode 100644 index 00000000000..2b4d7e9c50e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-j-w-t.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createJWT( + "<USER_ID>", // userId + "<SESSION_ID>", // sessionId (optional) + 0, // duration (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-m-d5user.md new file mode 100644 index 00000000000..666e10792ef --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-m-d5user.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createMD5User( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/java/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..62afec2a1fb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-mfa-recovery-codes.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createMfaRecoveryCodes( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..048ba39ccab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createPHPassUser( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-s-h-a-user.md new file mode 100644 index 00000000000..ad729071c2d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-s-h-a-user.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createSHAUser( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + PasswordHash.SHA1, // passwordVersion (optional) + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..77a7d5fdb39 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createScryptModifiedUser( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + "<PASSWORD_SALT>", // passwordSalt + "<PASSWORD_SALT_SEPARATOR>", // passwordSaltSeparator + "<PASSWORD_SIGNER_KEY>", // passwordSignerKey + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.7.x/server-kotlin/java/users/create-scrypt-user.md new file mode 100644 index 00000000000..0e81237ecfb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-scrypt-user.md @@ -0,0 +1,31 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createScryptUser( + "<USER_ID>", // userId + "email@example.com", // email + "password", // password + "<PASSWORD_SALT>", // passwordSalt + 0, // passwordCpu + 0, // passwordMemory + 0, // passwordParallel + 0, // passwordLength + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-session.md b/docs/examples/1.7.x/server-kotlin/java/users/create-session.md new file mode 100644 index 00000000000..8d9ce03d8ea --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-session.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createSession( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-target.md b/docs/examples/1.7.x/server-kotlin/java/users/create-target.md new file mode 100644 index 00000000000..6681b170da2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-target.md @@ -0,0 +1,29 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; +import io.appwrite.enums.MessagingProviderType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createTarget( + "<USER_ID>", // userId + "<TARGET_ID>", // targetId + MessagingProviderType.EMAIL, // providerType + "<IDENTIFIER>", // identifier + "<PROVIDER_ID>", // providerId (optional) + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create-token.md b/docs/examples/1.7.x/server-kotlin/java/users/create-token.md new file mode 100644 index 00000000000..330b344b15d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create-token.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createToken( + "<USER_ID>", // userId + 4, // length (optional) + 60, // expire (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/create.md b/docs/examples/1.7.x/server-kotlin/java/users/create.md new file mode 100644 index 00000000000..95a72bf7e0a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/create.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.create( + "<USER_ID>", // userId + "email@example.com", // email (optional) + "+12065550100", // phone (optional) + "", // password (optional) + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.7.x/server-kotlin/java/users/delete-identity.md new file mode 100644 index 00000000000..40c410db47d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/delete-identity.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.deleteIdentity( + "<IDENTITY_ID>", // identityId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/java/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..7ed33d6d826 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/delete-mfa-authenticator.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; +import io.appwrite.enums.AuthenticatorType; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.deleteMfaAuthenticator( + "<USER_ID>", // userId + AuthenticatorType.TOTP, // type + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.7.x/server-kotlin/java/users/delete-session.md new file mode 100644 index 00000000000..0e0a52baf80 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/delete-session.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.deleteSession( + "<USER_ID>", // userId + "<SESSION_ID>", // sessionId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.7.x/server-kotlin/java/users/delete-sessions.md new file mode 100644 index 00000000000..6a3bbbf46fc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/delete-sessions.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.deleteSessions( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/delete-target.md b/docs/examples/1.7.x/server-kotlin/java/users/delete-target.md new file mode 100644 index 00000000000..e38ee1d57dd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/delete-target.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.deleteTarget( + "<USER_ID>", // userId + "<TARGET_ID>", // targetId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/delete.md b/docs/examples/1.7.x/server-kotlin/java/users/delete.md new file mode 100644 index 00000000000..d207f9af4bb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/delete.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.delete( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/java/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..940dafee903 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/get-mfa-recovery-codes.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.getMfaRecoveryCodes( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.7.x/server-kotlin/java/users/get-prefs.md new file mode 100644 index 00000000000..9ff3e4b3089 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/get-prefs.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.getPrefs( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/get-target.md b/docs/examples/1.7.x/server-kotlin/java/users/get-target.md new file mode 100644 index 00000000000..05c802835d4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/get-target.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.getTarget( + "<USER_ID>", // userId + "<TARGET_ID>", // targetId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/get.md b/docs/examples/1.7.x/server-kotlin/java/users/get.md new file mode 100644 index 00000000000..d8cd707c9c0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/get.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.get( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.7.x/server-kotlin/java/users/list-identities.md new file mode 100644 index 00000000000..e0fc9d122af --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list-identities.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.listIdentities( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.7.x/server-kotlin/java/users/list-logs.md new file mode 100644 index 00000000000..86c94ee3a4e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list-logs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.listLogs( + "<USER_ID>", // userId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.7.x/server-kotlin/java/users/list-memberships.md new file mode 100644 index 00000000000..d0cee132750 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list-memberships.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.listMemberships( + "<USER_ID>", // userId + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list-mfa-factors.md b/docs/examples/1.7.x/server-kotlin/java/users/list-mfa-factors.md new file mode 100644 index 00000000000..a377214d19b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list-mfa-factors.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.listMfaFactors( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.7.x/server-kotlin/java/users/list-sessions.md new file mode 100644 index 00000000000..7e13cb31c90 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list-sessions.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.listSessions( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list-targets.md b/docs/examples/1.7.x/server-kotlin/java/users/list-targets.md new file mode 100644 index 00000000000..efa754273f4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list-targets.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.listTargets( + "<USER_ID>", // userId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/list.md b/docs/examples/1.7.x/server-kotlin/java/users/list.md new file mode 100644 index 00000000000..d587eaf46b9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/list.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.list( + listOf(), // queries (optional) + "<SEARCH>", // search (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.7.x/server-kotlin/java/users/update-email-verification.md new file mode 100644 index 00000000000..a79c87b4d64 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-email-verification.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateEmailVerification( + "<USER_ID>", // userId + false, // emailVerification + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-email.md b/docs/examples/1.7.x/server-kotlin/java/users/update-email.md new file mode 100644 index 00000000000..24cdb00dff1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-email.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateEmail( + "<USER_ID>", // userId + "email@example.com", // email + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.7.x/server-kotlin/java/users/update-labels.md new file mode 100644 index 00000000000..379200a56b3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-labels.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateLabels( + "<USER_ID>", // userId + listOf(), // labels + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/java/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..439561012fa --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-mfa-recovery-codes.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateMfaRecoveryCodes( + "<USER_ID>", // userId + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-mfa.md b/docs/examples/1.7.x/server-kotlin/java/users/update-mfa.md new file mode 100644 index 00000000000..76a198f513e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-mfa.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateMfa( + "<USER_ID>", // userId + false, // mfa + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-name.md b/docs/examples/1.7.x/server-kotlin/java/users/update-name.md new file mode 100644 index 00000000000..b4f889cb6d4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-name.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateName( + "<USER_ID>", // userId + "<NAME>", // name + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-password.md b/docs/examples/1.7.x/server-kotlin/java/users/update-password.md new file mode 100644 index 00000000000..94e24da45d6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-password.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updatePassword( + "<USER_ID>", // userId + "", // password + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.7.x/server-kotlin/java/users/update-phone-verification.md new file mode 100644 index 00000000000..4a1d5a29003 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-phone-verification.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updatePhoneVerification( + "<USER_ID>", // userId + false, // phoneVerification + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.7.x/server-kotlin/java/users/update-phone.md new file mode 100644 index 00000000000..49477fad434 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-phone.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updatePhone( + "<USER_ID>", // userId + "+12065550100", // number + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.7.x/server-kotlin/java/users/update-prefs.md new file mode 100644 index 00000000000..c5a9677a20d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-prefs.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updatePrefs( + "<USER_ID>", // userId + mapOf( "a" to "b" ), // prefs + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-status.md b/docs/examples/1.7.x/server-kotlin/java/users/update-status.md new file mode 100644 index 00000000000..6e875b982f8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-status.md @@ -0,0 +1,24 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateStatus( + "<USER_ID>", // userId + false, // status + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/java/users/update-target.md b/docs/examples/1.7.x/server-kotlin/java/users/update-target.md new file mode 100644 index 00000000000..67b90bfbacd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/java/users/update-target.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.updateTarget( + "<USER_ID>", // userId + "<TARGET_ID>", // targetId + "<IDENTIFIER>", // identifier (optional) + "<PROVIDER_ID>", // providerId (optional) + "<NAME>", // name (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-anonymous-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-anonymous-session.md new file mode 100644 index 00000000000..0ddc3835dca --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createAnonymousSession() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-email-password-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-email-password-session.md new file mode 100644 index 00000000000..9c7af95e131 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-email-password-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createEmailPasswordSession( + email = "email@example.com", + password = "password" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-email-token.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-email-token.md new file mode 100644 index 00000000000..84acd78a9c2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-email-token.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createEmailToken( + userId = "<USER_ID>", + email = "email@example.com", + phrase = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-j-w-t.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-j-w-t.md new file mode 100644 index 00000000000..4c04aa1215f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-j-w-t.md @@ -0,0 +1,11 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createJWT() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..c1d8cba2cb2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createMagicURLToken( + userId = "<USER_ID>", + email = "email@example.com", + url = "https://example.com", // optional + phrase = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..803579da035 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticatorType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.createMfaAuthenticator( + type = AuthenticatorType.TOTP +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-challenge.md new file mode 100644 index 00000000000..a3fbe25d755 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticationFactor + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createMfaChallenge( + factor = AuthenticationFactor.EMAIL +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..c21a382fcc2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.createMfaRecoveryCodes() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-o-auth2token.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-o-auth2token.md new file mode 100644 index 00000000000..1a8c1188b09 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-o-auth2token.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.OAuthProvider + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +account.createOAuth2Token( + provider = OAuthProvider.AMAZON, + success = "https://example.com", // optional + failure = "https://example.com", // optional + scopes = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-phone-token.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-phone-token.md new file mode 100644 index 00000000000..be03e0659f0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-phone-token.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createPhoneToken( + userId = "<USER_ID>", + phone = "+12065550100" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-phone-verification.md new file mode 100644 index 00000000000..3ae45b39826 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.createPhoneVerification() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-recovery.md new file mode 100644 index 00000000000..949219cfcaf --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-recovery.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.createRecovery( + email = "email@example.com", + url = "https://example.com" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-session.md new file mode 100644 index 00000000000..5afb219ff0b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.createSession( + userId = "<USER_ID>", + secret = "<SECRET>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-verification.md new file mode 100644 index 00000000000..f3441c9bdd4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create-verification.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.createVerification( + url = "https://example.com" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/create.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/create.md new file mode 100644 index 00000000000..80640ba8303 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/create.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.create( + userId = "<USER_ID>", + email = "email@example.com", + password = "", + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-identity.md new file mode 100644 index 00000000000..f9a5ce0a129 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-identity.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.deleteIdentity( + identityId = "<IDENTITY_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..2068077f46c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticatorType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.deleteMfaAuthenticator( + type = AuthenticatorType.TOTP +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-session.md new file mode 100644 index 00000000000..31096ccc653 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.deleteSession( + sessionId = "<SESSION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-sessions.md new file mode 100644 index 00000000000..dc29fb8aac0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/delete-sessions.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.deleteSessions() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..027c2112304 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.getMfaRecoveryCodes() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/get-prefs.md new file mode 100644 index 00000000000..299abbd929b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/get-prefs.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.getPrefs() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/get-session.md new file mode 100644 index 00000000000..e40297e60ca --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/get-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.getSession( + sessionId = "<SESSION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/get.md new file mode 100644 index 00000000000..f65f4fd618f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/get.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.get() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-identities.md new file mode 100644 index 00000000000..32eb86cb436 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-identities.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.listIdentities( + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-logs.md new file mode 100644 index 00000000000..345b2f1f06c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-logs.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.listLogs( + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/list-mfa-factors.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-mfa-factors.md new file mode 100644 index 00000000000..ce47dcd752b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-mfa-factors.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.listMfaFactors() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-sessions.md new file mode 100644 index 00000000000..899260cd5b2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/list-sessions.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.listSessions() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-email.md new file mode 100644 index 00000000000..6ebe5e7ec9e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-email.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateEmail( + email = "email@example.com", + password = "password" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-m-f-a.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-m-f-a.md new file mode 100644 index 00000000000..e12e8e00e27 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-m-f-a.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateMFA( + mfa = false +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..d4fe7f4861c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.updateMagicURLSession( + userId = "<USER_ID>", + secret = "<SECRET>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..521d133f6fd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account +import io.appwrite.enums.AuthenticatorType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateMfaAuthenticator( + type = AuthenticatorType.TOTP, + otp = "<OTP>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-challenge.md new file mode 100644 index 00000000000..6b978b765ec --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-challenge.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateMfaChallenge( + challengeId = "<CHALLENGE_ID>", + otp = "<OTP>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..31da824bbf4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateMfaRecoveryCodes() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-name.md new file mode 100644 index 00000000000..ecb7a2bd2f1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-name.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateName( + name = "<NAME>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-password.md new file mode 100644 index 00000000000..159aa79aef5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-password.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updatePassword( + password = "", + oldPassword = "password" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone-session.md new file mode 100644 index 00000000000..1bcc4c09556 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +val account = Account(client) + +val response = account.updatePhoneSession( + userId = "<USER_ID>", + secret = "<SECRET>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone-verification.md new file mode 100644 index 00000000000..36a2d9c73bb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updatePhoneVerification( + userId = "<USER_ID>", + secret = "<SECRET>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone.md new file mode 100644 index 00000000000..1ee4cbd39b8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-phone.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updatePhone( + phone = "+12065550100", + password = "password" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-prefs.md new file mode 100644 index 00000000000..dafee7c0e51 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-prefs.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updatePrefs( + prefs = mapOf( "a" to "b" ) +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-recovery.md new file mode 100644 index 00000000000..e56381365d1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-recovery.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateRecovery( + userId = "<USER_ID>", + secret = "<SECRET>", + password = "" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-session.md new file mode 100644 index 00000000000..ab3730af0e0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateSession( + sessionId = "<SESSION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-status.md new file mode 100644 index 00000000000..021f6143c08 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-status.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateStatus() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-verification.md new file mode 100644 index 00000000000..64020934100 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/account/update-verification.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Account + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val account = Account(client) + +val response = account.updateVerification( + userId = "<USER_ID>", + secret = "<SECRET>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-browser.md new file mode 100644 index 00000000000..f289205ab0a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-browser.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars +import io.appwrite.enums.Browser + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getBrowser( + code = Browser.AVANT_BROWSER, + width = 0, // optional + height = 0, // optional + quality = -1 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-credit-card.md new file mode 100644 index 00000000000..1fd00a24bd9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars +import io.appwrite.enums.CreditCard + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getCreditCard( + code = CreditCard.AMERICAN_EXPRESS, + width = 0, // optional + height = 0, // optional + quality = -1 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-favicon.md new file mode 100644 index 00000000000..d1f5d9bfe6b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getFavicon( + url = "https://example.com" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-flag.md new file mode 100644 index 00000000000..a16aefcffd5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-flag.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars +import io.appwrite.enums.Flag + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getFlag( + code = Flag.AFGHANISTAN, + width = 0, // optional + height = 0, // optional + quality = -1 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-image.md new file mode 100644 index 00000000000..98b9c07e7fe --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-image.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getImage( + url = "https://example.com", + width = 0, // optional + height = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-initials.md new file mode 100644 index 00000000000..2aa165ccf8a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-initials.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getInitials( + name = "<NAME>", // optional + width = 0, // optional + height = 0, // optional + background = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-q-r.md new file mode 100644 index 00000000000..abcf488cbb0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Avatars + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val avatars = Avatars(client) + +val result = avatars.getQR( + text = "<TEXT>", + size = 1, // optional + margin = 0, // optional + download = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..b80bd9497a2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createBooleanAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = false, // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-collection.md new file mode 100644 index 00000000000..de9679f5597 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-collection.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createCollection( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + name = "<NAME>", + permissions = listOf("read("any")"), // optional + documentSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..2d730562a95 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createDatetimeAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-document.md new file mode 100644 index 00000000000..93da01eefac --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-document.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("<YOUR_API_KEY>") // Your secret API key + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +val databases = Databases(client) + +val response = databases.createDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", + data = mapOf( "a" to "b" ), + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-documents.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-documents.md new file mode 100644 index 00000000000..01692c62ad5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-documents.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documents = listOf() +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-email-attribute.md new file mode 100644 index 00000000000..2a5a9c2a60d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createEmailAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "email@example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-enum-attribute.md new file mode 100644 index 00000000000..d9decdeba9e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createEnumAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + elements = listOf(), + required = false, + default = "<DEFAULT>", // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-float-attribute.md new file mode 100644 index 00000000000..5ca86a66af3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createFloatAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-index.md new file mode 100644 index 00000000000..da777ac9065 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-index.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases +import io.appwrite.enums.IndexType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createIndex( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + type = IndexType.KEY, + attributes = listOf(), + orders = listOf(), // optional + lengths = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-integer-attribute.md new file mode 100644 index 00000000000..748d01a849d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createIntegerAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + min = 0, // optional + max = 0, // optional + default = 0, // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-ip-attribute.md new file mode 100644 index 00000000000..bfc610517a6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createIpAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..1bf610321a6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -0,0 +1,22 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases +import io.appwrite.enums.RelationshipType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createRelationshipAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + relatedCollectionId = "<RELATED_COLLECTION_ID>", + type = RelationshipType.ONETOONE, + twoWay = false, // optional + key = "", // optional + twoWayKey = "", // optional + onDelete = "cascade" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-string-attribute.md new file mode 100644 index 00000000000..333cb76763b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createStringAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + size = 1, + required = false, + default = "<DEFAULT>", // optional + array = false, // optional + encrypt = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-url-attribute.md new file mode 100644 index 00000000000..06057d46839 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.createUrlAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "https://example.com", // optional + array = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create.md new file mode 100644 index 00000000000..04c64801d2a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/create.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.create( + databaseId = "<DATABASE_ID>", + name = "<NAME>", + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-attribute.md new file mode 100644 index 00000000000..9a25155957d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.deleteAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-collection.md new file mode 100644 index 00000000000..c46ca086b92 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-collection.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.deleteCollection( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-document.md new file mode 100644 index 00000000000..a9eea6b648a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-document.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val databases = Databases(client) + +val response = databases.deleteDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-documents.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-documents.md new file mode 100644 index 00000000000..c4caa63aae9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.deleteDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-index.md new file mode 100644 index 00000000000..37c75dcfe5b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.deleteIndex( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete.md new file mode 100644 index 00000000000..07225698e22 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.delete( + databaseId = "<DATABASE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-attribute.md new file mode 100644 index 00000000000..a59facd7dbf --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-attribute.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.getAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-collection.md new file mode 100644 index 00000000000..7f6e578db19 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-collection.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.getCollection( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-document.md new file mode 100644 index 00000000000..d21a19869b2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-document.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val databases = Databases(client) + +val response = databases.getDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-index.md new file mode 100644 index 00000000000..39ac7af9fbe --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get-index.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.getIndex( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get.md new file mode 100644 index 00000000000..6ebb0c109c7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/get.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.get( + databaseId = "<DATABASE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-attributes.md new file mode 100644 index 00000000000..5ddb0a6feab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-attributes.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.listAttributes( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-collections.md new file mode 100644 index 00000000000..5340903927d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-collections.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.listCollections( + databaseId = "<DATABASE_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-documents.md new file mode 100644 index 00000000000..ed9cb3165dd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val databases = Databases(client) + +val response = databases.listDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-indexes.md new file mode 100644 index 00000000000..2ab2e6a1b21 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list-indexes.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.listIndexes( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list.md new file mode 100644 index 00000000000..cd61a0e714f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/list.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.list( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..4c9fd91d83e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateBooleanAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = false, + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-collection.md new file mode 100644 index 00000000000..bd42ba07f47 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-collection.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateCollection( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + name = "<NAME>", + permissions = listOf("read("any")"), // optional + documentSecurity = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..082ae1c05ae --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateDatetimeAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-document.md new file mode 100644 index 00000000000..4dd0349823e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-document.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val databases = Databases(client) + +val response = databases.updateDocument( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documentId = "<DOCUMENT_ID>", + data = mapOf( "a" to "b" ), // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-documents.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-documents.md new file mode 100644 index 00000000000..9d6c2b5ea8f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-documents.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + data = mapOf( "a" to "b" ), // optional + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-email-attribute.md new file mode 100644 index 00000000000..026bd6447fc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateEmailAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "email@example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-enum-attribute.md new file mode 100644 index 00000000000..e68a29c20a9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateEnumAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + elements = listOf(), + required = false, + default = "<DEFAULT>", + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-float-attribute.md new file mode 100644 index 00000000000..58b110743e2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateFloatAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-integer-attribute.md new file mode 100644 index 00000000000..a00dcf95a0f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateIntegerAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-ip-attribute.md new file mode 100644 index 00000000000..505e5ea18d3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateIpAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "", + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..001dd1a391f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateRelationshipAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + onDelete = "cascade", // optional + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-string-attribute.md new file mode 100644 index 00000000000..364a6b5b7fa --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateStringAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "<DEFAULT>", + size = 1, // optional + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-url-attribute.md new file mode 100644 index 00000000000..a628cc57f89 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateUrlAttribute( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + key = "", + required = false, + default = "https://example.com", + newKey = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update.md new file mode 100644 index 00000000000..05f832738a6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/update.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.update( + databaseId = "<DATABASE_ID>", + name = "<NAME>", + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/databases/upsert-documents.md b/docs/examples/1.7.x/server-kotlin/kotlin/databases/upsert-documents.md new file mode 100644 index 00000000000..7459b384a17 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/databases/upsert-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.upsertDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documents = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-deployment.md new file mode 100644 index 00000000000..ddc6e8b2073 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-deployment.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.models.InputFile +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.createDeployment( + functionId = "<FUNCTION_ID>", + code = InputFile.fromPath("file.png"), + activate = false, + entrypoint = "<ENTRYPOINT>", // optional + commands = "<COMMANDS>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..a3395f118f0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-duplicate-deployment.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.createDuplicateDeployment( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>", + buildId = "<BUILD_ID>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-execution.md new file mode 100644 index 00000000000..94bfa2310cd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-execution.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val functions = Functions(client) + +val response = functions.createExecution( + functionId = "<FUNCTION_ID>", + body = "<BODY>", // optional + async = false, // optional + path = "<PATH>", // optional + method = "GET", // optional + headers = mapOf( "a" to "b" ), // optional + scheduledAt = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-template-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-template-deployment.md new file mode 100644 index 00000000000..90c311ec7a0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-template-deployment.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.createTemplateDeployment( + functionId = "<FUNCTION_ID>", + repository = "<REPOSITORY>", + owner = "<OWNER>", + rootDirectory = "<ROOT_DIRECTORY>", + version = "<VERSION>", + activate = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-variable.md new file mode 100644 index 00000000000..061bc20534f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-variable.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.createVariable( + functionId = "<FUNCTION_ID>", + key = "<KEY>", + value = "<VALUE>", + secret = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..08bb5a30976 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create-vcs-deployment.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions +import io.appwrite.enums.VCSDeploymentType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.createVcsDeployment( + functionId = "<FUNCTION_ID>", + type = VCSDeploymentType.BRANCH, + reference = "<REFERENCE>", + activate = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create.md new file mode 100644 index 00000000000..c0ea4de2015 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/create.md @@ -0,0 +1,32 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions +import io.appwrite.enums.Runtime + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.create( + functionId = "<FUNCTION_ID>", + name = "<NAME>", + runtime = .NODE_14_5, + execute = listOf("any"), // optional + events = listOf(), // optional + schedule = "", // optional + timeout = 1, // optional + enabled = false, // optional + logging = false, // optional + entrypoint = "<ENTRYPOINT>", // optional + commands = "<COMMANDS>", // optional + scopes = listOf(), // optional + installationId = "<INSTALLATION_ID>", // optional + providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch = "<PROVIDER_BRANCH>", // optional + providerSilentMode = false, // optional + providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>", // optional + specification = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-deployment.md new file mode 100644 index 00000000000..937fc961da4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.deleteDeployment( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-execution.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-execution.md new file mode 100644 index 00000000000..95994f822ab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-execution.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.deleteExecution( + functionId = "<FUNCTION_ID>", + executionId = "<EXECUTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-variable.md new file mode 100644 index 00000000000..e1793675c94 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete-variable.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.deleteVariable( + functionId = "<FUNCTION_ID>", + variableId = "<VARIABLE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete.md new file mode 100644 index 00000000000..96517447677 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.delete( + functionId = "<FUNCTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-deployment-download.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-deployment-download.md new file mode 100644 index 00000000000..634cfae3b4d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-deployment-download.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val result = functions.getDeploymentDownload( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>", + type = "source" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-deployment.md new file mode 100644 index 00000000000..eba4abb6df4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.getDeployment( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-execution.md new file mode 100644 index 00000000000..480dbb76bad --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-execution.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val functions = Functions(client) + +val response = functions.getExecution( + functionId = "<FUNCTION_ID>", + executionId = "<EXECUTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-variable.md new file mode 100644 index 00000000000..95359ef8fc7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get-variable.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.getVariable( + functionId = "<FUNCTION_ID>", + variableId = "<VARIABLE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get.md new file mode 100644 index 00000000000..162fa224977 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/get.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.get( + functionId = "<FUNCTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-deployments.md new file mode 100644 index 00000000000..9318442afa2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-deployments.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.listDeployments( + functionId = "<FUNCTION_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-executions.md new file mode 100644 index 00000000000..926719cda87 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-executions.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val functions = Functions(client) + +val response = functions.listExecutions( + functionId = "<FUNCTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-runtimes.md new file mode 100644 index 00000000000..5b3673b84db --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.listRuntimes() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-specifications.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-specifications.md new file mode 100644 index 00000000000..0b2fb46a4be --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-specifications.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.listSpecifications() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-variables.md new file mode 100644 index 00000000000..7f576e89573 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list-variables.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.listVariables( + functionId = "<FUNCTION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list.md new file mode 100644 index 00000000000..b10fdff53ac --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/list.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.list( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-deployment-status.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-deployment-status.md new file mode 100644 index 00000000000..0e6e9c0abe0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-deployment-status.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.updateDeploymentStatus( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-function-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-function-deployment.md new file mode 100644 index 00000000000..a975e07efeb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-function-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.updateFunctionDeployment( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-variable.md new file mode 100644 index 00000000000..106b340eb5c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update-variable.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.updateVariable( + functionId = "<FUNCTION_ID>", + variableId = "<VARIABLE_ID>", + key = "<KEY>", + value = "<VALUE>", // optional + secret = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update.md new file mode 100644 index 00000000000..7f0b33ebd7a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/functions/update.md @@ -0,0 +1,31 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Functions + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val functions = Functions(client) + +val response = functions.update( + functionId = "<FUNCTION_ID>", + name = "<NAME>", + runtime = "node-14.5", // optional + execute = listOf("any"), // optional + events = listOf(), // optional + schedule = "", // optional + timeout = 1, // optional + enabled = false, // optional + logging = false, // optional + entrypoint = "<ENTRYPOINT>", // optional + commands = "<COMMANDS>", // optional + scopes = listOf(), // optional + installationId = "<INSTALLATION_ID>", // optional + providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch = "<PROVIDER_BRANCH>", // optional + providerSilentMode = false, // optional + providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>", // optional + specification = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.7.x/server-kotlin/kotlin/graphql/mutation.md new file mode 100644 index 00000000000..98081ab06b2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/graphql/mutation.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Graphql + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val graphql = Graphql(client) + +val response = graphql.mutation( + query = mapOf( "a" to "b" ) +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.7.x/server-kotlin/kotlin/graphql/query.md new file mode 100644 index 00000000000..dec8dd350cb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/graphql/query.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Graphql + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val graphql = Graphql(client) + +val response = graphql.query( + query = mapOf( "a" to "b" ) +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-antivirus.md new file mode 100644 index 00000000000..869b4c48044 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-antivirus.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getAntivirus() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-cache.md new file mode 100644 index 00000000000..8b72ec414f9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-cache.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getCache() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-certificate.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-certificate.md new file mode 100644 index 00000000000..74bf6187040 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-certificate.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getCertificate( + domain = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-d-b.md new file mode 100644 index 00000000000..a55a1146f4f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-d-b.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getDB() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-failed-jobs.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-failed-jobs.md new file mode 100644 index 00000000000..027df127cc7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-failed-jobs.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health +import io.appwrite.enums.Name + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getFailedJobs( + name = .V1_DATABASE, + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-pub-sub.md new file mode 100644 index 00000000000..53c38202329 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getPubSub() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-builds.md new file mode 100644 index 00000000000..371aad90f8f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueBuilds( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-certificates.md new file mode 100644 index 00000000000..5c6adeecb53 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueCertificates( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-databases.md new file mode 100644 index 00000000000..3a3405830d2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueDatabases( + name = "<NAME>", // optional + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-deletes.md new file mode 100644 index 00000000000..5d0b8a33814 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueDeletes( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-functions.md new file mode 100644 index 00000000000..7a42b61ba51 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueFunctions( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-logs.md new file mode 100644 index 00000000000..151025bfb64 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueLogs( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-mails.md new file mode 100644 index 00000000000..f5a905dd735 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueMails( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-messaging.md new file mode 100644 index 00000000000..4a837928ebc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueMessaging( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-migrations.md new file mode 100644 index 00000000000..853d294ed12 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueMigrations( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..6a76f528e27 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueStatsResources( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-usage.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-usage.md new file mode 100644 index 00000000000..e344b9eddc9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-usage.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueUsage( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-webhooks.md new file mode 100644 index 00000000000..f5ffc58d8d0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueWebhooks( + threshold = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-storage-local.md new file mode 100644 index 00000000000..32a21aea0a3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-storage-local.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getStorageLocal() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-storage.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-storage.md new file mode 100644 index 00000000000..8af609aad90 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-storage.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getStorage() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-time.md new file mode 100644 index 00000000000..8054ed7c697 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get-time.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getTime() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/health/get.md new file mode 100644 index 00000000000..0845320bb5e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/health/get.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.get() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/get.md new file mode 100644 index 00000000000..6840259c27a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/get.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.get() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-codes.md new file mode 100644 index 00000000000..fd0c4e413e7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-codes.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listCodes() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-continents.md new file mode 100644 index 00000000000..699d599f569 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-continents.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listContinents() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries-e-u.md new file mode 100644 index 00000000000..13e86f30641 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listCountriesEU() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries-phones.md new file mode 100644 index 00000000000..b660ccf4332 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listCountriesPhones() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries.md new file mode 100644 index 00000000000..3457ceb4c52 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-countries.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listCountries() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-currencies.md new file mode 100644 index 00000000000..80b2cc7e52a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-currencies.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listCurrencies() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-languages.md new file mode 100644 index 00000000000..b36c1389a53 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/locale/list-languages.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Locale + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val locale = Locale(client) + +val response = locale.listLanguages() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-apns-provider.md new file mode 100644 index 00000000000..a19cbe2725a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-apns-provider.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createApnsProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + authKey = "<AUTH_KEY>", // optional + authKeyId = "<AUTH_KEY_ID>", // optional + teamId = "<TEAM_ID>", // optional + bundleId = "<BUNDLE_ID>", // optional + sandbox = false, // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-email.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-email.md new file mode 100644 index 00000000000..f0f41e9e531 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-email.md @@ -0,0 +1,25 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createEmail( + messageId = "<MESSAGE_ID>", + subject = "<SUBJECT>", + content = "<CONTENT>", + topics = listOf(), // optional + users = listOf(), // optional + targets = listOf(), // optional + cc = listOf(), // optional + bcc = listOf(), // optional + attachments = listOf(), // optional + draft = false, // optional + html = false, // optional + scheduledAt = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..c1a077ca5c3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-fcm-provider.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createFcmProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + serviceAccountJSON = mapOf( "a" to "b" ), // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..d205171dfe4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md @@ -0,0 +1,23 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createMailgunProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + apiKey = "<API_KEY>", // optional + domain = "<DOMAIN>", // optional + isEuRegion = false, // optional + fromName = "<FROM_NAME>", // optional + fromEmail = "email@example.com", // optional + replyToName = "<REPLY_TO_NAME>", // optional + replyToEmail = "email@example.com", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-msg91provider.md new file mode 100644 index 00000000000..5ea3d223e90 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-msg91provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createMsg91Provider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + templateId = "<TEMPLATE_ID>", // optional + senderId = "<SENDER_ID>", // optional + authKey = "<AUTH_KEY>", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-push.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-push.md new file mode 100644 index 00000000000..5b07f5355bd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-push.md @@ -0,0 +1,32 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createPush( + messageId = "<MESSAGE_ID>", + title = "<TITLE>", // optional + body = "<BODY>", // optional + topics = listOf(), // optional + users = listOf(), // optional + targets = listOf(), // optional + data = mapOf( "a" to "b" ), // optional + action = "<ACTION>", // optional + image = "[ID1:ID2]", // optional + icon = "<ICON>", // optional + sound = "<SOUND>", // optional + color = "<COLOR>", // optional + tag = "<TAG>", // optional + badge = 0, // optional + draft = false, // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..e96a052d5a7 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createSendgridProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + apiKey = "<API_KEY>", // optional + fromName = "<FROM_NAME>", // optional + fromEmail = "email@example.com", // optional + replyToName = "<REPLY_TO_NAME>", // optional + replyToEmail = "email@example.com", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-sms.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-sms.md new file mode 100644 index 00000000000..49185290c34 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-sms.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createSms( + messageId = "<MESSAGE_ID>", + content = "<CONTENT>", + topics = listOf(), // optional + users = listOf(), // optional + targets = listOf(), // optional + draft = false, // optional + scheduledAt = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..ae3b6678e4e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -0,0 +1,27 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createSmtpProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + host = "<HOST>", + port = 1, // optional + username = "<USERNAME>", // optional + password = "<PASSWORD>", // optional + encryption = "none", // optional + autoTLS = false, // optional + mailer = "<MAILER>", // optional + fromName = "<FROM_NAME>", // optional + fromEmail = "email@example.com", // optional + replyToName = "<REPLY_TO_NAME>", // optional + replyToEmail = "email@example.com", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-subscriber.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-subscriber.md new file mode 100644 index 00000000000..44e3a72a1d5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-subscriber.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +val messaging = Messaging(client) + +val response = messaging.createSubscriber( + topicId = "<TOPIC_ID>", + subscriberId = "<SUBSCRIBER_ID>", + targetId = "<TARGET_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..cddd6d801a0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-telesign-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createTelesignProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + from = "+12065550100", // optional + customerId = "<CUSTOMER_ID>", // optional + apiKey = "<API_KEY>", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..12eb62d957e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createTextmagicProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + from = "+12065550100", // optional + username = "<USERNAME>", // optional + apiKey = "<API_KEY>", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-topic.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-topic.md new file mode 100644 index 00000000000..570be33e41c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-topic.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createTopic( + topicId = "<TOPIC_ID>", + name = "<NAME>", + subscribe = listOf("any") // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..c05b835d521 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-twilio-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createTwilioProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + from = "+12065550100", // optional + accountSid = "<ACCOUNT_SID>", // optional + authToken = "<AUTH_TOKEN>", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..7e049d8313b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/create-vonage-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.createVonageProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", + from = "+12065550100", // optional + apiKey = "<API_KEY>", // optional + apiSecret = "<API_SECRET>", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-provider.md new file mode 100644 index 00000000000..4989da8cd30 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-provider.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.deleteProvider( + providerId = "<PROVIDER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-subscriber.md new file mode 100644 index 00000000000..0f99f251a31 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-subscriber.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +val messaging = Messaging(client) + +val response = messaging.deleteSubscriber( + topicId = "<TOPIC_ID>", + subscriberId = "<SUBSCRIBER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-topic.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-topic.md new file mode 100644 index 00000000000..8a52c9f9a58 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete-topic.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.deleteTopic( + topicId = "<TOPIC_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete.md new file mode 100644 index 00000000000..7e4ec51c93a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.delete( + messageId = "<MESSAGE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-message.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-message.md new file mode 100644 index 00000000000..710d356113a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-message.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.getMessage( + messageId = "<MESSAGE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-provider.md new file mode 100644 index 00000000000..c678d4d984c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-provider.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.getProvider( + providerId = "<PROVIDER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-subscriber.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-subscriber.md new file mode 100644 index 00000000000..59b335a2e6c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-subscriber.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.getSubscriber( + topicId = "<TOPIC_ID>", + subscriberId = "<SUBSCRIBER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-topic.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-topic.md new file mode 100644 index 00000000000..c189898e95b --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/get-topic.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.getTopic( + topicId = "<TOPIC_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-message-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-message-logs.md new file mode 100644 index 00000000000..e1463f8911e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-message-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listMessageLogs( + messageId = "<MESSAGE_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-messages.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-messages.md new file mode 100644 index 00000000000..618f8c493ee --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-messages.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listMessages( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-provider-logs.md new file mode 100644 index 00000000000..ab0a9f12602 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-provider-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listProviderLogs( + providerId = "<PROVIDER_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-providers.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-providers.md new file mode 100644 index 00000000000..34c70a9c86a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-providers.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listProviders( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..8a82af8f703 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listSubscriberLogs( + subscriberId = "<SUBSCRIBER_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-subscribers.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-subscribers.md new file mode 100644 index 00000000000..acf5249900c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-subscribers.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listSubscribers( + topicId = "<TOPIC_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-targets.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-targets.md new file mode 100644 index 00000000000..ad500f0e382 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-targets.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listTargets( + messageId = "<MESSAGE_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-topic-logs.md new file mode 100644 index 00000000000..683b4180325 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-topic-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listTopicLogs( + topicId = "<TOPIC_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-topics.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-topics.md new file mode 100644 index 00000000000..125c6ffb822 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/list-topics.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.listTopics( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-apns-provider.md new file mode 100644 index 00000000000..d0d5a07848a --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-apns-provider.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateApnsProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + authKey = "<AUTH_KEY>", // optional + authKeyId = "<AUTH_KEY_ID>", // optional + teamId = "<TEAM_ID>", // optional + bundleId = "<BUNDLE_ID>", // optional + sandbox = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-email.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-email.md new file mode 100644 index 00000000000..cd74bb4290d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-email.md @@ -0,0 +1,25 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateEmail( + messageId = "<MESSAGE_ID>", + topics = listOf(), // optional + users = listOf(), // optional + targets = listOf(), // optional + subject = "<SUBJECT>", // optional + content = "<CONTENT>", // optional + draft = false, // optional + html = false, // optional + cc = listOf(), // optional + bcc = listOf(), // optional + scheduledAt = "", // optional + attachments = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..477e7188d89 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-fcm-provider.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateFcmProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + serviceAccountJSON = mapOf( "a" to "b" ) // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..4bec8d2a44d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md @@ -0,0 +1,23 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateMailgunProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + apiKey = "<API_KEY>", // optional + domain = "<DOMAIN>", // optional + isEuRegion = false, // optional + enabled = false, // optional + fromName = "<FROM_NAME>", // optional + fromEmail = "email@example.com", // optional + replyToName = "<REPLY_TO_NAME>", // optional + replyToEmail = "<REPLY_TO_EMAIL>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-msg91provider.md new file mode 100644 index 00000000000..3abaca75bb5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-msg91provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateMsg91Provider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + templateId = "<TEMPLATE_ID>", // optional + senderId = "<SENDER_ID>", // optional + authKey = "<AUTH_KEY>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-push.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-push.md new file mode 100644 index 00000000000..710a37e5184 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-push.md @@ -0,0 +1,32 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updatePush( + messageId = "<MESSAGE_ID>", + topics = listOf(), // optional + users = listOf(), // optional + targets = listOf(), // optional + title = "<TITLE>", // optional + body = "<BODY>", // optional + data = mapOf( "a" to "b" ), // optional + action = "<ACTION>", // optional + image = "[ID1:ID2]", // optional + icon = "<ICON>", // optional + sound = "<SOUND>", // optional + color = "<COLOR>", // optional + tag = "<TAG>", // optional + badge = 0, // optional + draft = false, // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..962aa694e61 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md @@ -0,0 +1,21 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateSendgridProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + apiKey = "<API_KEY>", // optional + fromName = "<FROM_NAME>", // optional + fromEmail = "email@example.com", // optional + replyToName = "<REPLY_TO_NAME>", // optional + replyToEmail = "<REPLY_TO_EMAIL>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-sms.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-sms.md new file mode 100644 index 00000000000..3d08b8a16c3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-sms.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateSms( + messageId = "<MESSAGE_ID>", + topics = listOf(), // optional + users = listOf(), // optional + targets = listOf(), // optional + content = "<CONTENT>", // optional + draft = false, // optional + scheduledAt = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..cb745865ec0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -0,0 +1,27 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateSmtpProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + host = "<HOST>", // optional + port = 1, // optional + username = "<USERNAME>", // optional + password = "<PASSWORD>", // optional + encryption = "none", // optional + autoTLS = false, // optional + mailer = "<MAILER>", // optional + fromName = "<FROM_NAME>", // optional + fromEmail = "email@example.com", // optional + replyToName = "<REPLY_TO_NAME>", // optional + replyToEmail = "<REPLY_TO_EMAIL>", // optional + enabled = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..83fb11a8568 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-telesign-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateTelesignProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + customerId = "<CUSTOMER_ID>", // optional + apiKey = "<API_KEY>", // optional + from = "<FROM>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..1e2ee1e2c8f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateTextmagicProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + username = "<USERNAME>", // optional + apiKey = "<API_KEY>", // optional + from = "<FROM>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-topic.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-topic.md new file mode 100644 index 00000000000..0991fd0ee46 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-topic.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateTopic( + topicId = "<TOPIC_ID>", + name = "<NAME>", // optional + subscribe = listOf("any") // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..1c86f9e853e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-twilio-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateTwilioProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + accountSid = "<ACCOUNT_SID>", // optional + authToken = "<AUTH_TOKEN>", // optional + from = "<FROM>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..bf0ee2b75cd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/messaging/update-vonage-provider.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Messaging + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val messaging = Messaging(client) + +val response = messaging.updateVonageProvider( + providerId = "<PROVIDER_ID>", + name = "<NAME>", // optional + enabled = false, // optional + apiKey = "<API_KEY>", // optional + apiSecret = "<API_SECRET>", // optional + from = "<FROM>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-deployment.md new file mode 100644 index 00000000000..ba2c24dd6b1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-deployment.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.models.InputFile +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.createDeployment( + siteId = "<SITE_ID>", + code = InputFile.fromPath("file.png"), + activate = false, + installCommand = "<INSTALL_COMMAND>", // optional + buildCommand = "<BUILD_COMMAND>", // optional + outputDirectory = "<OUTPUT_DIRECTORY>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..06a3ce84673 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-duplicate-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.createDuplicateDeployment( + siteId = "<SITE_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-template-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-template-deployment.md new file mode 100644 index 00000000000..bf246be089d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-template-deployment.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.createTemplateDeployment( + siteId = "<SITE_ID>", + repository = "<REPOSITORY>", + owner = "<OWNER>", + rootDirectory = "<ROOT_DIRECTORY>", + version = "<VERSION>", + activate = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-variable.md new file mode 100644 index 00000000000..6eb466682f8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-variable.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.createVariable( + siteId = "<SITE_ID>", + key = "<KEY>", + value = "<VALUE>", + secret = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..141cf3e6585 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create-vcs-deployment.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites +import io.appwrite.enums.VCSDeploymentType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.createVcsDeployment( + siteId = "<SITE_ID>", + type = VCSDeploymentType.BRANCH, + reference = "<REFERENCE>", + activate = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/create.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create.md new file mode 100644 index 00000000000..a5e9719fafc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/create.md @@ -0,0 +1,33 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites +import io.appwrite.enums.Framework +import io.appwrite.enums.BuildRuntime + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.create( + siteId = "<SITE_ID>", + name = "<NAME>", + framework = .ANALOG, + buildRuntime = .NODE_14_5, + enabled = false, // optional + logging = false, // optional + timeout = 1, // optional + installCommand = "<INSTALL_COMMAND>", // optional + buildCommand = "<BUILD_COMMAND>", // optional + outputDirectory = "<OUTPUT_DIRECTORY>", // optional + adapter = "static", // optional + installationId = "<INSTALLATION_ID>", // optional + fallbackFile = "<FALLBACK_FILE>", // optional + providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch = "<PROVIDER_BRANCH>", // optional + providerSilentMode = false, // optional + providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>", // optional + specification = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-deployment.md new file mode 100644 index 00000000000..6d739183f16 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.deleteDeployment( + siteId = "<SITE_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-log.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-log.md new file mode 100644 index 00000000000..c7d7b778248 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-log.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.deleteLog( + siteId = "<SITE_ID>", + logId = "<LOG_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-variable.md new file mode 100644 index 00000000000..7859a8a8521 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete-variable.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.deleteVariable( + siteId = "<SITE_ID>", + variableId = "<VARIABLE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete.md new file mode 100644 index 00000000000..369b6144c31 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.delete( + siteId = "<SITE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-deployment-download.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-deployment-download.md new file mode 100644 index 00000000000..84324762cc4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-deployment-download.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val result = sites.getDeploymentDownload( + siteId = "<SITE_ID>", + deploymentId = "<DEPLOYMENT_ID>", + type = "source" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-deployment.md new file mode 100644 index 00000000000..f2a33a409ee --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.getDeployment( + siteId = "<SITE_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-log.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-log.md new file mode 100644 index 00000000000..ff46f77d12d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-log.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.getLog( + siteId = "<SITE_ID>", + logId = "<LOG_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-variable.md new file mode 100644 index 00000000000..ccab6666078 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get-variable.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.getVariable( + siteId = "<SITE_ID>", + variableId = "<VARIABLE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get.md new file mode 100644 index 00000000000..7ced974ede5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/get.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.get( + siteId = "<SITE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-deployments.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-deployments.md new file mode 100644 index 00000000000..6bc29ccd0e0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-deployments.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.listDeployments( + siteId = "<SITE_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-frameworks.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-frameworks.md new file mode 100644 index 00000000000..cf02b75bc26 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-frameworks.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.listFrameworks() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-logs.md new file mode 100644 index 00000000000..d7979ded39f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.listLogs( + siteId = "<SITE_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-specifications.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-specifications.md new file mode 100644 index 00000000000..56e864059af --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-specifications.md @@ -0,0 +1,12 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.listSpecifications() diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-variables.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-variables.md new file mode 100644 index 00000000000..70ec49799bd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list-variables.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.listVariables( + siteId = "<SITE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/list.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list.md new file mode 100644 index 00000000000..26e965177d2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/list.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.list( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-deployment-status.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-deployment-status.md new file mode 100644 index 00000000000..585fc324ed6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-deployment-status.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.updateDeploymentStatus( + siteId = "<SITE_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-site-deployment.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-site-deployment.md new file mode 100644 index 00000000000..fb9bb726f88 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-site-deployment.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.updateSiteDeployment( + siteId = "<SITE_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-variable.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-variable.md new file mode 100644 index 00000000000..b32c27809aa --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update-variable.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.updateVariable( + siteId = "<SITE_ID>", + variableId = "<VARIABLE_ID>", + key = "<KEY>", + value = "<VALUE>", // optional + secret = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/sites/update.md b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update.md new file mode 100644 index 00000000000..4b4a938d951 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/sites/update.md @@ -0,0 +1,32 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Sites +import io.appwrite.enums.Framework + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val sites = Sites(client) + +val response = sites.update( + siteId = "<SITE_ID>", + name = "<NAME>", + framework = .ANALOG, + enabled = false, // optional + logging = false, // optional + timeout = 1, // optional + installCommand = "<INSTALL_COMMAND>", // optional + buildCommand = "<BUILD_COMMAND>", // optional + outputDirectory = "<OUTPUT_DIRECTORY>", // optional + buildRuntime = "node-14.5", // optional + adapter = "static", // optional + fallbackFile = "<FALLBACK_FILE>", // optional + installationId = "<INSTALLATION_ID>", // optional + providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch = "<PROVIDER_BRANCH>", // optional + providerSilentMode = false, // optional + providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>", // optional + specification = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/create-bucket.md new file mode 100644 index 00000000000..0bca8278728 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/create-bucket.md @@ -0,0 +1,23 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val storage = Storage(client) + +val response = storage.createBucket( + bucketId = "<BUCKET_ID>", + name = "<NAME>", + permissions = listOf("read("any")"), // optional + fileSecurity = false, // optional + enabled = false, // optional + maximumFileSize = 1, // optional + allowedFileExtensions = listOf(), // optional + compression = "none", // optional + encryption = false, // optional + antivirus = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/create-file.md new file mode 100644 index 00000000000..b22b32a6653 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/create-file.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.models.InputFile +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val response = storage.createFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + file = InputFile.fromPath("file.png"), + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/delete-bucket.md new file mode 100644 index 00000000000..4a0904ec636 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val storage = Storage(client) + +val response = storage.deleteBucket( + bucketId = "<BUCKET_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/delete-file.md new file mode 100644 index 00000000000..cf5e285db35 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/delete-file.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val response = storage.deleteFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-bucket.md new file mode 100644 index 00000000000..e2a6a8f527c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-bucket.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val storage = Storage(client) + +val response = storage.getBucket( + bucketId = "<BUCKET_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-download.md new file mode 100644 index 00000000000..c14c966b8b9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-download.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val result = storage.getFileDownload( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + token = "<TOKEN>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-preview.md new file mode 100644 index 00000000000..45122de2f86 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -0,0 +1,27 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val result = storage.getFilePreview( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + width = 0, // optional + height = 0, // optional + gravity = "center", // optional + quality = -1, // optional + borderWidth = 0, // optional + borderColor = "", // optional + borderRadius = 0, // optional + opacity = 0, // optional + rotation = -360, // optional + background = "", // optional + output = "jpg", // optional + token = "<TOKEN>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-view.md new file mode 100644 index 00000000000..fec1ec71629 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file-view.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val result = storage.getFileView( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + token = "<TOKEN>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file.md new file mode 100644 index 00000000000..a807177dcec --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/get-file.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val response = storage.getFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/list-buckets.md new file mode 100644 index 00000000000..a8a066dc9f8 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/list-buckets.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val storage = Storage(client) + +val response = storage.listBuckets( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/list-files.md new file mode 100644 index 00000000000..cb9a7767757 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/list-files.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val response = storage.listFiles( + bucketId = "<BUCKET_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/update-bucket.md new file mode 100644 index 00000000000..d475a6e5ed3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/update-bucket.md @@ -0,0 +1,23 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val storage = Storage(client) + +val response = storage.updateBucket( + bucketId = "<BUCKET_ID>", + name = "<NAME>", + permissions = listOf("read("any")"), // optional + fileSecurity = false, // optional + enabled = false, // optional + maximumFileSize = 1, // optional + allowedFileExtensions = listOf(), // optional + compression = "none", // optional + encryption = false, // optional + antivirus = false // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.7.x/server-kotlin/kotlin/storage/update-file.md new file mode 100644 index 00000000000..e82ea8125cc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/storage/update-file.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Storage + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val storage = Storage(client) + +val response = storage.updateFile( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + name = "<NAME>", // optional + permissions = listOf("read("any")") // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/create-membership.md new file mode 100644 index 00000000000..33eb16568ec --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/create-membership.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.createMembership( + teamId = "<TEAM_ID>", + roles = listOf(), + email = "email@example.com", // optional + userId = "<USER_ID>", // optional + phone = "+12065550100", // optional + url = "https://example.com", // optional + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/create.md new file mode 100644 index 00000000000..6ec7e533d2d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/create.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.create( + teamId = "<TEAM_ID>", + name = "<NAME>", + roles = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/delete-membership.md new file mode 100644 index 00000000000..48c924f37b4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/delete-membership.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.deleteMembership( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/delete.md new file mode 100644 index 00000000000..4b70ff2f188 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.delete( + teamId = "<TEAM_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/get-membership.md new file mode 100644 index 00000000000..a636c217dab --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/get-membership.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.getMembership( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/get-prefs.md new file mode 100644 index 00000000000..2b73432d6c0 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/get-prefs.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.getPrefs( + teamId = "<TEAM_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/get.md new file mode 100644 index 00000000000..72b667776f6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/get.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.get( + teamId = "<TEAM_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/list-memberships.md new file mode 100644 index 00000000000..287087394e2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/list-memberships.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.listMemberships( + teamId = "<TEAM_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/list.md new file mode 100644 index 00000000000..ee3e3e43b4c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/list.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.list( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-membership-status.md new file mode 100644 index 00000000000..b7a0d51ec51 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.updateMembershipStatus( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>", + userId = "<USER_ID>", + secret = "<SECRET>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-membership.md new file mode 100644 index 00000000000..7a4377fb4de --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-membership.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.updateMembership( + teamId = "<TEAM_ID>", + membershipId = "<MEMBERSHIP_ID>", + roles = listOf() +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-name.md new file mode 100644 index 00000000000..2f13d7c4608 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-name.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.updateName( + teamId = "<TEAM_ID>", + name = "<NAME>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-prefs.md new file mode 100644 index 00000000000..62c7f01ca5d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/teams/update-prefs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Teams + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val teams = Teams(client) + +val response = teams.updatePrefs( + teamId = "<TEAM_ID>", + prefs = mapOf( "a" to "b" ) +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/tokens/create-file-token.md b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/create-file-token.md new file mode 100644 index 00000000000..63d8fc301be --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/create-file-token.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tokens + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tokens = Tokens(client) + +val response = tokens.createFileToken( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + expire = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/tokens/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/delete.md new file mode 100644 index 00000000000..1831bc6a875 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tokens + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tokens = Tokens(client) + +val response = tokens.delete( + tokenId = "<TOKEN_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/tokens/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/get.md new file mode 100644 index 00000000000..70a47c2349c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/get.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tokens + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tokens = Tokens(client) + +val response = tokens.get( + tokenId = "<TOKEN_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/tokens/list.md b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/list.md new file mode 100644 index 00000000000..697579065c4 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/list.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tokens + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tokens = Tokens(client) + +val response = tokens.list( + bucketId = "<BUCKET_ID>", + fileId = "<FILE_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/tokens/update.md b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/update.md new file mode 100644 index 00000000000..045ddaae4ae --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/tokens/update.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Tokens + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val tokens = Tokens(client) + +val response = tokens.update( + tokenId = "<TOKEN_ID>", + expire = "" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-argon2user.md new file mode 100644 index 00000000000..27008a0415e --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-argon2user.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createArgon2User( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-bcrypt-user.md new file mode 100644 index 00000000000..c7231307cfc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createBcryptUser( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-j-w-t.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-j-w-t.md new file mode 100644 index 00000000000..a556a901c53 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-j-w-t.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createJWT( + userId = "<USER_ID>", + sessionId = "<SESSION_ID>", // optional + duration = 0 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-m-d5user.md new file mode 100644 index 00000000000..27b985920c9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createMD5User( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..2d1dbf0a1df --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createMfaRecoveryCodes( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..5441e49e6c2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createPHPassUser( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-s-h-a-user.md new file mode 100644 index 00000000000..17a157b2cd1 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createSHAUser( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + passwordVersion = "sha1", // optional + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..814883cae56 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createScryptModifiedUser( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + passwordSalt = "<PASSWORD_SALT>", + passwordSaltSeparator = "<PASSWORD_SALT_SEPARATOR>", + passwordSignerKey = "<PASSWORD_SIGNER_KEY>", + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-scrypt-user.md new file mode 100644 index 00000000000..619525a7992 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -0,0 +1,22 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createScryptUser( + userId = "<USER_ID>", + email = "email@example.com", + password = "password", + passwordSalt = "<PASSWORD_SALT>", + passwordCpu = 0, + passwordMemory = 0, + passwordParallel = 0, + passwordLength = 0, + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-session.md new file mode 100644 index 00000000000..a67e6051213 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-session.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createSession( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-target.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-target.md new file mode 100644 index 00000000000..139c6ff0499 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-target.md @@ -0,0 +1,20 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users +import io.appwrite.enums.MessagingProviderType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createTarget( + userId = "<USER_ID>", + targetId = "<TARGET_ID>", + providerType = MessagingProviderType.EMAIL, + identifier = "<IDENTIFIER>", + providerId = "<PROVIDER_ID>", // optional + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create-token.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-token.md new file mode 100644 index 00000000000..43492f47473 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create-token.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createToken( + userId = "<USER_ID>", + length = 4, // optional + expire = 60 // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/create.md new file mode 100644 index 00000000000..27ae85ae6eb --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/create.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.create( + userId = "<USER_ID>", + email = "email@example.com", // optional + phone = "+12065550100", // optional + password = "", // optional + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-identity.md new file mode 100644 index 00000000000..37b4ed2e71d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-identity.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.deleteIdentity( + identityId = "<IDENTITY_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..22085b2f725 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users +import io.appwrite.enums.AuthenticatorType + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.deleteMfaAuthenticator( + userId = "<USER_ID>", + type = AuthenticatorType.TOTP +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-session.md new file mode 100644 index 00000000000..e9e3c7c55e6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-session.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.deleteSession( + userId = "<USER_ID>", + sessionId = "<SESSION_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-sessions.md new file mode 100644 index 00000000000..6288e1bc049 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-sessions.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.deleteSessions( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-target.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-target.md new file mode 100644 index 00000000000..f93be0677a2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete-target.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.deleteTarget( + userId = "<USER_ID>", + targetId = "<TARGET_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete.md new file mode 100644 index 00000000000..b938ac70d18 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/delete.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.delete( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..e0c45dc2581 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.getMfaRecoveryCodes( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/get-prefs.md new file mode 100644 index 00000000000..927a4a43a19 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/get-prefs.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.getPrefs( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/get-target.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/get-target.md new file mode 100644 index 00000000000..556349c6844 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/get-target.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.getTarget( + userId = "<USER_ID>", + targetId = "<TARGET_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/get.md new file mode 100644 index 00000000000..70f0ee9d5fa --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/get.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.get( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-identities.md new file mode 100644 index 00000000000..1ac0e5b887f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-identities.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.listIdentities( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-logs.md new file mode 100644 index 00000000000..a263293a7a6 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.listLogs( + userId = "<USER_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-memberships.md new file mode 100644 index 00000000000..7df13df4e2c --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-memberships.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.listMemberships( + userId = "<USER_ID>", + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list-mfa-factors.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-mfa-factors.md new file mode 100644 index 00000000000..4eb6721ce51 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-mfa-factors.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.listMfaFactors( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-sessions.md new file mode 100644 index 00000000000..4ff34dd53ed --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-sessions.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.listSessions( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list-targets.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-targets.md new file mode 100644 index 00000000000..0824acfd9e5 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list-targets.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.listTargets( + userId = "<USER_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/list.md new file mode 100644 index 00000000000..23dd217a6cc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/list.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.list( + queries = listOf(), // optional + search = "<SEARCH>" // optional +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-email-verification.md new file mode 100644 index 00000000000..ebf2232f3e3 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-email-verification.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateEmailVerification( + userId = "<USER_ID>", + emailVerification = false +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-email.md new file mode 100644 index 00000000000..a617705dbb2 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-email.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateEmail( + userId = "<USER_ID>", + email = "email@example.com" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-labels.md new file mode 100644 index 00000000000..86f536f7281 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-labels.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateLabels( + userId = "<USER_ID>", + labels = listOf() +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..74602c0f7e9 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateMfaRecoveryCodes( + userId = "<USER_ID>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-mfa.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-mfa.md new file mode 100644 index 00000000000..0148d582b8f --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-mfa.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateMfa( + userId = "<USER_ID>", + mfa = false +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-name.md new file mode 100644 index 00000000000..fedfce36bdc --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-name.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateName( + userId = "<USER_ID>", + name = "<NAME>" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-password.md new file mode 100644 index 00000000000..4a0ad576e18 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-password.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updatePassword( + userId = "<USER_ID>", + password = "" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-phone-verification.md new file mode 100644 index 00000000000..6520ef4c956 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updatePhoneVerification( + userId = "<USER_ID>", + phoneVerification = false +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-phone.md new file mode 100644 index 00000000000..7261f95db53 --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-phone.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updatePhone( + userId = "<USER_ID>", + number = "+12065550100" +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-prefs.md new file mode 100644 index 00000000000..451f4ff4c6d --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-prefs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updatePrefs( + userId = "<USER_ID>", + prefs = mapOf( "a" to "b" ) +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-status.md new file mode 100644 index 00000000000..a69ae30dbcd --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-status.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateStatus( + userId = "<USER_ID>", + status = false +) diff --git a/docs/examples/1.7.x/server-kotlin/kotlin/users/update-target.md b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-target.md new file mode 100644 index 00000000000..a18fc63bcbf --- /dev/null +++ b/docs/examples/1.7.x/server-kotlin/kotlin/users/update-target.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.updateTarget( + userId = "<USER_ID>", + targetId = "<TARGET_ID>", + identifier = "<IDENTIFIER>", // optional + providerId = "<PROVIDER_ID>", // optional + name = "<NAME>" // optional +) diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..d8590b03cb8 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-anonymous-session.md @@ -0,0 +1,9 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createAnonymousSession(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..6c940f54355 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-email-password-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createEmailPasswordSession( + 'email@example.com', // email + 'password' // password +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-email-token.md new file mode 100644 index 00000000000..b6be71d45c9 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-email-token.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createEmailToken( + '<USER_ID>', // userId + 'email@example.com', // email + false // phrase (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..2273646635f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-j-w-t.md @@ -0,0 +1,9 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createJWT(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..6dbdc3d9fb6 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createMagicURLToken( + '<USER_ID>', // userId + 'email@example.com', // email + 'https://example.com', // url (optional) + false // phrase (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..e52658b5339 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-authenticator.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.createMfaAuthenticator( + sdk.AuthenticatorType.Totp // type +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..79d5e89eeda --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -0,0 +1,11 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createMfaChallenge( + sdk.AuthenticationFactor.Email // factor +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..42b3c8c6f53 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.createMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..adae095105d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-o-auth2token.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createOAuth2Token( + sdk.OAuthProvider.Amazon, // provider + 'https://example.com', // success (optional) + 'https://example.com', // failure (optional) + [] // scopes (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-phone-token.md new file mode 100644 index 00000000000..aca0bd2d8a5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-phone-token.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createPhoneToken( + '<USER_ID>', // userId + '+12065550100' // phone +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..f7c87f0675b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-phone-verification.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.createPhoneVerification(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-recovery.md new file mode 100644 index 00000000000..660942affb6 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.createRecovery( + 'email@example.com', // email + 'https://example.com' // url +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-session.md new file mode 100644 index 00000000000..8c6b910089d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.createSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.7.x/server-nodejs/examples/account/create-verification.md new file mode 100644 index 00000000000..1f1db27e8ae --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create-verification.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.createVerification( + 'https://example.com' // url +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/create.md b/docs/examples/1.7.x/server-nodejs/examples/account/create.md new file mode 100644 index 00000000000..85e3d2fccaa --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/create.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.create( + '<USER_ID>', // userId + 'email@example.com', // email + '', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.7.x/server-nodejs/examples/account/delete-identity.md new file mode 100644 index 00000000000..0424ab247e4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/delete-identity.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.deleteIdentity( + '<IDENTITY_ID>' // identityId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-nodejs/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..5979c3a6d7e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.deleteMfaAuthenticator( + sdk.AuthenticatorType.Totp // type +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/delete-session.md new file mode 100644 index 00000000000..4276ccad245 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/delete-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.deleteSession( + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-nodejs/examples/account/delete-sessions.md new file mode 100644 index 00000000000..884c0e0ebce --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/delete-sessions.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.deleteSessions(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-nodejs/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..27f902424ed --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.getMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.7.x/server-nodejs/examples/account/get-prefs.md new file mode 100644 index 00000000000..d0d7d31aaf5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/get-prefs.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.getPrefs(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/get-session.md new file mode 100644 index 00000000000..63b6f0893a4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/get-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.getSession( + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/get.md b/docs/examples/1.7.x/server-nodejs/examples/account/get.md new file mode 100644 index 00000000000..6ebb605ae8e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/get.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.get(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.7.x/server-nodejs/examples/account/list-identities.md new file mode 100644 index 00000000000..c49894c8c0b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/list-identities.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.listIdentities( + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.7.x/server-nodejs/examples/account/list-logs.md new file mode 100644 index 00000000000..4260a72e30e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/list-logs.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.listLogs( + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-nodejs/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..a993e31aa81 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/list-mfa-factors.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.listMfaFactors(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.7.x/server-nodejs/examples/account/list-sessions.md new file mode 100644 index 00000000000..33fb527415c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/list-sessions.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.listSessions(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-email.md new file mode 100644 index 00000000000..6111f0e52a6 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-email.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateEmail( + 'email@example.com', // email + 'password' // password +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..58629cda3bd --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-m-f-a.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateMFA( + false // mfa +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..3e059d88d96 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.updateMagicURLSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..7b24dc87121 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-authenticator.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateMfaAuthenticator( + sdk.AuthenticatorType.Totp, // type + '<OTP>' // otp +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..4d309991298 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-challenge.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateMfaChallenge( + '<CHALLENGE_ID>', // challengeId + '<OTP>' // otp +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..9db82175c96 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-name.md new file mode 100644 index 00000000000..f47d215288b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-name.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateName( + '<NAME>' // name +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-password.md new file mode 100644 index 00000000000..aa9d67aede3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-password.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updatePassword( + '', // password + 'password' // oldPassword (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-phone-session.md new file mode 100644 index 00000000000..c208714a373 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-phone-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const account = new sdk.Account(client); + +const result = await account.updatePhoneSession( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..116d171c92a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-phone-verification.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updatePhoneVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-phone.md new file mode 100644 index 00000000000..c6c02fde9ab --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-phone.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updatePhone( + '+12065550100', // phone + 'password' // password +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-prefs.md new file mode 100644 index 00000000000..ee8b0426938 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-prefs.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updatePrefs( + {} // prefs +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-recovery.md new file mode 100644 index 00000000000..bd4a87c3a90 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateRecovery( + '<USER_ID>', // userId + '<SECRET>', // secret + '' // password +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-session.md new file mode 100644 index 00000000000..be80c857504 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateSession( + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-status.md new file mode 100644 index 00000000000..1b70af53780 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-status.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateStatus(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.7.x/server-nodejs/examples/account/update-verification.md new file mode 100644 index 00000000000..0abb562a95c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/account/update-verification.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const account = new sdk.Account(client); + +const result = await account.updateVerification( + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-browser.md new file mode 100644 index 00000000000..1cc825d9171 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-browser.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getBrowser( + sdk.Browser.AvantBrowser, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..7d62a960338 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-credit-card.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getCreditCard( + sdk.CreditCard.AmericanExpress, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..6056354e9e5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-favicon.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getFavicon( + 'https://example.com' // url +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-flag.md new file mode 100644 index 00000000000..a62f56dd473 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-flag.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getFlag( + sdk.Flag.Afghanistan, // code + 0, // width (optional) + 0, // height (optional) + -1 // quality (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-image.md new file mode 100644 index 00000000000..7dac2423ba4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-image.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getImage( + 'https://example.com', // url + 0, // width (optional) + 0 // height (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-initials.md new file mode 100644 index 00000000000..2cd45bfac8b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-initials.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getInitials( + '<NAME>', // name (optional) + 0, // width (optional) + 0, // height (optional) + '' // background (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..cfd649ea33c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/avatars/get-q-r.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const avatars = new sdk.Avatars(client); + +const result = await avatars.getQR( + '<TEXT>', // text + 1, // size (optional) + 0, // margin (optional) + false // download (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..b6239698a50 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createBooleanAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + false, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-collection.md new file mode 100644 index 00000000000..fc5c798385f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-collection.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // documentSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..4c7328ce4bb --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createDatetimeAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-document.md new file mode 100644 index 00000000000..44cfc3c1994 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-document.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setSession('') // The user session to authenticate with + .setKey('<YOUR_API_KEY>') // Your secret API key + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const databases = new sdk.Databases(client); + +const result = await databases.createDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-documents.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-documents.md new file mode 100644 index 00000000000..1b2088221b8 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-documents.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..47b27508cdd --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-email-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createEmailAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'email@example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..61c1d77f2c3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createEnumAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + [], // elements + false, // required + '<DEFAULT>', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..3e605001e6a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-float-attribute.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createFloatAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-index.md new file mode 100644 index 00000000000..ed03322cbde --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-index.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createIndex( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + sdk.IndexType.Key, // type + [], // attributes + [], // orders (optional) + [] // lengths (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..ce62624001d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createIntegerAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // min (optional) + null, // max (optional) + null, // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..e3bbffe2273 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createIpAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..bb77bc00c39 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createRelationshipAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<RELATED_COLLECTION_ID>', // relatedCollectionId + sdk.RelationshipType.OneToOne, // type + false, // twoWay (optional) + '', // key (optional) + '', // twoWayKey (optional) + sdk.RelationMutate.Cascade // onDelete (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..94793e86db6 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-string-attribute.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createStringAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + 1, // size + false, // required + '<DEFAULT>', // default (optional) + false, // array (optional) + false // encrypt (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..6b6b1daaa08 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create-url-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createUrlAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'https://example.com', // default (optional) + false // array (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/create.md b/docs/examples/1.7.x/server-nodejs/examples/databases/create.md new file mode 100644 index 00000000000..c1fd4eca43f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/create.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.create( + '<DATABASE_ID>', // databaseId + '<NAME>', // name + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..8291fc095e5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-attribute.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.deleteAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-collection.md new file mode 100644 index 00000000000..9551c558fbc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-collection.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.deleteCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>' // collectionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-document.md new file mode 100644 index 00000000000..526f00eb3a1 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-document.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new sdk.Databases(client); + +const result = await databases.deleteDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>' // documentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-documents.md new file mode 100644 index 00000000000..01814e50528 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.deleteDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-index.md new file mode 100644 index 00000000000..90353ea44e2 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/delete-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.deleteIndex( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.7.x/server-nodejs/examples/databases/delete.md new file mode 100644 index 00000000000..65179d2b2a1 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.delete( + '<DATABASE_ID>' // databaseId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/get-attribute.md new file mode 100644 index 00000000000..8757265edb4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/get-attribute.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.getAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.7.x/server-nodejs/examples/databases/get-collection.md new file mode 100644 index 00000000000..79c5674985e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/get-collection.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.getCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>' // collectionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.7.x/server-nodejs/examples/databases/get-document.md new file mode 100644 index 00000000000..eee515bf366 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/get-document.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new sdk.Databases(client); + +const result = await databases.getDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.7.x/server-nodejs/examples/databases/get-index.md new file mode 100644 index 00000000000..a4b3a45eb86 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/get-index.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.getIndex( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '' // key +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/get.md b/docs/examples/1.7.x/server-nodejs/examples/databases/get.md new file mode 100644 index 00000000000..a8e80846739 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/get.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.get( + '<DATABASE_ID>' // databaseId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-nodejs/examples/databases/list-attributes.md new file mode 100644 index 00000000000..e7b48fb9f06 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/list-attributes.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.listAttributes( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.7.x/server-nodejs/examples/databases/list-collections.md new file mode 100644 index 00000000000..bc31eadf9b9 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/list-collections.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.listCollections( + '<DATABASE_ID>', // databaseId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.7.x/server-nodejs/examples/databases/list-documents.md new file mode 100644 index 00000000000..d2514850d80 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/list-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new sdk.Databases(client); + +const result = await databases.listDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-nodejs/examples/databases/list-indexes.md new file mode 100644 index 00000000000..86c6c26ec68 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/list-indexes.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.listIndexes( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/list.md b/docs/examples/1.7.x/server-nodejs/examples/databases/list.md new file mode 100644 index 00000000000..06fe6a8462c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/list.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..d0d551c3fdd --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateBooleanAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + false, // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-collection.md new file mode 100644 index 00000000000..2618fc735e2 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-collection.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateCollection( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // documentSecurity (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..d2378f93caf --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateDatetimeAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-document.md new file mode 100644 index 00000000000..96468037e78 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-document.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new sdk.Databases(client); + +const result = await databases.updateDocument( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '<DOCUMENT_ID>', // documentId + {}, // data (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-documents.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-documents.md new file mode 100644 index 00000000000..62b2271bae0 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..8b7afbebb54 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-email-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateEmailAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'email@example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..f328132519e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateEnumAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + [], // elements + false, // required + '<DEFAULT>', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..abb93c28faf --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-float-attribute.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateFloatAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..e126f31fd86 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateIntegerAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..1c8ac79dd80 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateIpAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..1a7a26cc92d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateRelationshipAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..0e0656ef10d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-string-attribute.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateStringAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..4a2aca0fe98 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update-url-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateUrlAttribute( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + '', // key + false, // required + 'https://example.com', // default + '' // newKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/update.md b/docs/examples/1.7.x/server-nodejs/examples/databases/update.md new file mode 100644 index 00000000000..9c69bfd2cee --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/update.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.update( + '<DATABASE_ID>', // databaseId + '<NAME>', // name + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-nodejs/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..5b4795627d4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.upsertDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create-deployment.md new file mode 100644 index 00000000000..5ede9549073 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create-deployment.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); +const fs = require('fs'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.createDeployment( + '<FUNCTION_ID>', // functionId + InputFile.fromPath('/path/to/file', 'filename'), // code + false, // activate + '<ENTRYPOINT>', // entrypoint (optional) + '<COMMANDS>' // commands (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..33f77ffd39b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.createDuplicateDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>', // deploymentId + '<BUILD_ID>' // buildId (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create-execution.md new file mode 100644 index 00000000000..3c89030ca61 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create-execution.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const functions = new sdk.Functions(client); + +const result = await functions.createExecution( + '<FUNCTION_ID>', // functionId + '<BODY>', // body (optional) + false, // async (optional) + '<PATH>', // path (optional) + sdk.ExecutionMethod.GET, // method (optional) + {}, // headers (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..eef7148f940 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create-template-deployment.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.createTemplateDeployment( + '<FUNCTION_ID>', // functionId + '<REPOSITORY>', // repository + '<OWNER>', // owner + '<ROOT_DIRECTORY>', // rootDirectory + '<VERSION>', // version + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create-variable.md new file mode 100644 index 00000000000..5e75d19bf4f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create-variable.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.createVariable( + '<FUNCTION_ID>', // functionId + '<KEY>', // key + '<VALUE>', // value + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..ba1067f579a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create-vcs-deployment.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.createVcsDeployment( + '<FUNCTION_ID>', // functionId + sdk.VCSDeploymentType.Branch, // type + '<REFERENCE>', // reference + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/create.md b/docs/examples/1.7.x/server-nodejs/examples/functions/create.md new file mode 100644 index 00000000000..646e2e5b4d2 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/create.md @@ -0,0 +1,29 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.create( + '<FUNCTION_ID>', // functionId + '<NAME>', // name + sdk..Node145, // runtime + ["any"], // execute (optional) + [], // events (optional) + '', // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + '<ENTRYPOINT>', // entrypoint (optional) + '<COMMANDS>', // commands (optional) + [], // scopes (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..f6768ec7397 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/delete-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.deleteDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-nodejs/examples/functions/delete-execution.md new file mode 100644 index 00000000000..c3e77a68600 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-nodejs/examples/functions/delete-variable.md new file mode 100644 index 00000000000..7840b1d562d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/delete-variable.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.deleteVariable( + '<FUNCTION_ID>', // functionId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.7.x/server-nodejs/examples/functions/delete.md new file mode 100644 index 00000000000..a2e0a23a2bf --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.delete( + '<FUNCTION_ID>' // functionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-nodejs/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..5ba10353929 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/get-deployment-download.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.getDeploymentDownload( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>', // deploymentId + sdk.DeploymentDownloadType.Source // type (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/get-deployment.md new file mode 100644 index 00000000000..6a55534af4a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/get-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.getDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.7.x/server-nodejs/examples/functions/get-execution.md new file mode 100644 index 00000000000..b9fed557991 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/get-execution.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const functions = new sdk.Functions(client); + +const result = await functions.getExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.7.x/server-nodejs/examples/functions/get-variable.md new file mode 100644 index 00000000000..3b6135f7dcc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/get-variable.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.getVariable( + '<FUNCTION_ID>', // functionId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/get.md b/docs/examples/1.7.x/server-nodejs/examples/functions/get.md new file mode 100644 index 00000000000..b88609252e3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/get.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.get( + '<FUNCTION_ID>' // functionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-nodejs/examples/functions/list-deployments.md new file mode 100644 index 00000000000..731d1c46cfc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/list-deployments.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.listDeployments( + '<FUNCTION_ID>', // functionId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.7.x/server-nodejs/examples/functions/list-executions.md new file mode 100644 index 00000000000..24d3e54ef39 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/list-executions.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const functions = new sdk.Functions(client); + +const result = await functions.listExecutions( + '<FUNCTION_ID>', // functionId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-nodejs/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..a0f83b2273a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/list-runtimes.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.listRuntimes(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-nodejs/examples/functions/list-specifications.md new file mode 100644 index 00000000000..f918c44053c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/list-specifications.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.listSpecifications(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.7.x/server-nodejs/examples/functions/list-variables.md new file mode 100644 index 00000000000..4220918fa62 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/list-variables.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.listVariables( + '<FUNCTION_ID>' // functionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/list.md b/docs/examples/1.7.x/server-nodejs/examples/functions/list.md new file mode 100644 index 00000000000..af5082c25e8 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/list.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-nodejs/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..e7ce4a815ce --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/update-deployment-status.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.updateDeploymentStatus( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..feef831e5c4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/update-function-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.updateFunctionDeployment( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.7.x/server-nodejs/examples/functions/update-variable.md new file mode 100644 index 00000000000..d9a7ac7e0b5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/update-variable.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.updateVariable( + '<FUNCTION_ID>', // functionId + '<VARIABLE_ID>', // variableId + '<KEY>', // key + '<VALUE>', // value (optional) + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/functions/update.md b/docs/examples/1.7.x/server-nodejs/examples/functions/update.md new file mode 100644 index 00000000000..b6de177cffa --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/functions/update.md @@ -0,0 +1,29 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.update( + '<FUNCTION_ID>', // functionId + '<NAME>', // name + sdk..Node145, // runtime (optional) + ["any"], // execute (optional) + [], // events (optional) + '', // schedule (optional) + 1, // timeout (optional) + false, // enabled (optional) + false, // logging (optional) + '<ENTRYPOINT>', // entrypoint (optional) + '<COMMANDS>', // commands (optional) + [], // scopes (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.7.x/server-nodejs/examples/graphql/mutation.md new file mode 100644 index 00000000000..8031a5285a4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/graphql/mutation.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const graphql = new sdk.Graphql(client); + +const result = await graphql.mutation( + {} // query +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.7.x/server-nodejs/examples/graphql/query.md new file mode 100644 index 00000000000..15456754cbb --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/graphql/query.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const graphql = new sdk.Graphql(client); + +const result = await graphql.query( + {} // query +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-antivirus.md new file mode 100644 index 00000000000..9efa2d803c0 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-antivirus.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getAntivirus(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-cache.md new file mode 100644 index 00000000000..014340123d4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-cache.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getCache(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-certificate.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-certificate.md new file mode 100644 index 00000000000..ec9129344c8 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-certificate.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getCertificate( + '' // domain (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-d-b.md new file mode 100644 index 00000000000..0d86d08d1c5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-d-b.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getDB(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..d88b7f2bfd1 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-failed-jobs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getFailedJobs( + sdk..V1Database, // name + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..b5b97374d5b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-pub-sub.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getPubSub(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..929f9769fbb --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-builds.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueBuilds( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..33e71ecac69 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-certificates.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueCertificates( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..ca409c1ba52 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-databases.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueDatabases( + '<NAME>', // name (optional) + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..9f2d6f8cf50 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-deletes.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueDeletes( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..0392db1079c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-functions.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueFunctions( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..a71ff133978 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-logs.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueLogs( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..8c45c1a1943 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-mails.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueMails( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..46160a0e885 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-messaging.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueMessaging( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..5f8d262e301 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-migrations.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueMigrations( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..1b16e6d5b8f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..2a20620cd26 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-usage.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueUsage( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..acc2098365d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueWebhooks( + null // threshold (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-storage-local.md new file mode 100644 index 00000000000..0ea8e0e27f4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-storage-local.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getStorageLocal(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-storage.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-storage.md new file mode 100644 index 00000000000..d199800559c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-storage.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getStorage(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.7.x/server-nodejs/examples/health/get-time.md new file mode 100644 index 00000000000..cd4f42e33e4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get-time.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getTime(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/health/get.md b/docs/examples/1.7.x/server-nodejs/examples/health/get.md new file mode 100644 index 00000000000..e10c4e28f52 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/health/get.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.get(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/get.md b/docs/examples/1.7.x/server-nodejs/examples/locale/get.md new file mode 100644 index 00000000000..d57eb8f241a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/get.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.get(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-codes.md new file mode 100644 index 00000000000..280d14ae6ed --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-codes.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listCodes(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-continents.md new file mode 100644 index 00000000000..d04d6d6a476 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-continents.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listContinents(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..6e41074b613 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listCountriesEU(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..9621e9cbfca --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries-phones.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listCountriesPhones(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries.md new file mode 100644 index 00000000000..a81b1581f39 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-countries.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listCountries(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-currencies.md new file mode 100644 index 00000000000..a585fd33ae6 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-currencies.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listCurrencies(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.7.x/server-nodejs/examples/locale/list-languages.md new file mode 100644 index 00000000000..aea0fadf896 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/locale/list-languages.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const locale = new sdk.Locale(client); + +const result = await locale.listLanguages(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..a28309023a9 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-apns-provider.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createApnsProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<AUTH_KEY>', // authKey (optional) + '<AUTH_KEY_ID>', // authKeyId (optional) + '<TEAM_ID>', // teamId (optional) + '<BUNDLE_ID>', // bundleId (optional) + false, // sandbox (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-email.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-email.md new file mode 100644 index 00000000000..b4b1f6622aa --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-email.md @@ -0,0 +1,23 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createEmail( + '<MESSAGE_ID>', // messageId + '<SUBJECT>', // subject + '<CONTENT>', // content + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + [], // cc (optional) + [], // bcc (optional) + [], // attachments (optional) + false, // draft (optional) + false, // html (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..a8af6ba12cc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-fcm-provider.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createFcmProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + {}, // serviceAccountJSON (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..ee49f64f7c7 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,21 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createMailgunProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<API_KEY>', // apiKey (optional) + '<DOMAIN>', // domain (optional) + false, // isEuRegion (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..e7075dc3b8d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-msg91provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createMsg91Provider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<TEMPLATE_ID>', // templateId (optional) + '<SENDER_ID>', // senderId (optional) + '<AUTH_KEY>', // authKey (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-push.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-push.md new file mode 100644 index 00000000000..bd89f761fb5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-push.md @@ -0,0 +1,30 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createPush( + '<MESSAGE_ID>', // messageId + '<TITLE>', // title (optional) + '<BODY>', // body (optional) + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + {}, // data (optional) + '<ACTION>', // action (optional) + '[ID1:ID2]', // image (optional) + '<ICON>', // icon (optional) + '<SOUND>', // sound (optional) + '<COLOR>', // color (optional) + '<TAG>', // tag (optional) + null, // badge (optional) + false, // draft (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..8cde02e80c3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createSendgridProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<API_KEY>', // apiKey (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-sms.md new file mode 100644 index 00000000000..226f47c8d48 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-sms.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createSms( + '<MESSAGE_ID>', // messageId + '<CONTENT>', // content + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + false, // draft (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..50a8d202c5e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-smtp-provider.md @@ -0,0 +1,25 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createSmtpProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '<HOST>', // host + 1, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + sdk.SmtpEncryption.None, // encryption (optional) + false, // autoTLS (optional) + '<MAILER>', // mailer (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + 'email@example.com', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..9874d072b89 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-subscriber.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>', // subscriberId + '<TARGET_ID>' // targetId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..b8771721632 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-telesign-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createTelesignProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<CUSTOMER_ID>', // customerId (optional) + '<API_KEY>', // apiKey (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..b40d5ee4e75 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createTextmagicProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<USERNAME>', // username (optional) + '<API_KEY>', // apiKey (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-topic.md new file mode 100644 index 00000000000..35c93eadca0 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-topic.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createTopic( + '<TOPIC_ID>', // topicId + '<NAME>', // name + ["any"] // subscribe (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..4dcb9a841d2 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-twilio-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createTwilioProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<ACCOUNT_SID>', // accountSid (optional) + '<AUTH_TOKEN>', // authToken (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..493cd2b6602 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/create-vonage-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.createVonageProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name + '+12065550100', // from (optional) + '<API_KEY>', // apiKey (optional) + '<API_SECRET>', // apiSecret (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..23b474f787d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-provider.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.deleteProvider( + '<PROVIDER_ID>' // providerId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..1f5e21af933 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-subscriber.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +const messaging = new sdk.Messaging(client); + +const result = await messaging.deleteSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..af39f73491c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete-topic.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.deleteTopic( + '<TOPIC_ID>' // topicId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/delete.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete.md new file mode 100644 index 00000000000..fd49104a496 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.delete( + '<MESSAGE_ID>' // messageId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/get-message.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-message.md new file mode 100644 index 00000000000..f83ab51c231 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-message.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.getMessage( + '<MESSAGE_ID>' // messageId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-provider.md new file mode 100644 index 00000000000..2f52698bfc9 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-provider.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.getProvider( + '<PROVIDER_ID>' // providerId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..5132f1772a5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-subscriber.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.getSubscriber( + '<TOPIC_ID>', // topicId + '<SUBSCRIBER_ID>' // subscriberId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-topic.md new file mode 100644 index 00000000000..98e38383d4e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/get-topic.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.getTopic( + '<TOPIC_ID>' // topicId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..56e1288af7b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-message-logs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listMessageLogs( + '<MESSAGE_ID>', // messageId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-messages.md new file mode 100644 index 00000000000..db0785ece85 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-messages.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listMessages( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..6cb2a01df48 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-provider-logs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listProviderLogs( + '<PROVIDER_ID>', // providerId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-providers.md new file mode 100644 index 00000000000..aefb41d15ab --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-providers.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listProviders( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..8d46a085787 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listSubscriberLogs( + '<SUBSCRIBER_ID>', // subscriberId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..167b48e978e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-subscribers.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listSubscribers( + '<TOPIC_ID>', // topicId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-targets.md new file mode 100644 index 00000000000..971285d87cc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-targets.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listTargets( + '<MESSAGE_ID>', // messageId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..39e82954d1f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-topic-logs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listTopicLogs( + '<TOPIC_ID>', // topicId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-topics.md new file mode 100644 index 00000000000..6fd94bba42e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/list-topics.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.listTopics( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..e782b8c3f7b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-apns-provider.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateApnsProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<AUTH_KEY>', // authKey (optional) + '<AUTH_KEY_ID>', // authKeyId (optional) + '<TEAM_ID>', // teamId (optional) + '<BUNDLE_ID>', // bundleId (optional) + false // sandbox (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-email.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-email.md new file mode 100644 index 00000000000..2ea2941efd7 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-email.md @@ -0,0 +1,23 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateEmail( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<SUBJECT>', // subject (optional) + '<CONTENT>', // content (optional) + false, // draft (optional) + false, // html (optional) + [], // cc (optional) + [], // bcc (optional) + '', // scheduledAt (optional) + [] // attachments (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..9184f283d08 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-fcm-provider.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateFcmProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + {} // serviceAccountJSON (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..a1ac18fd602 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,21 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateMailgunProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + '<API_KEY>', // apiKey (optional) + '<DOMAIN>', // domain (optional) + false, // isEuRegion (optional) + false, // enabled (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>' // replyToEmail (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..c66b91f8c0c --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-msg91provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateMsg91Provider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<TEMPLATE_ID>', // templateId (optional) + '<SENDER_ID>', // senderId (optional) + '<AUTH_KEY>' // authKey (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-push.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-push.md new file mode 100644 index 00000000000..db52bee3734 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-push.md @@ -0,0 +1,30 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updatePush( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<TITLE>', // title (optional) + '<BODY>', // body (optional) + {}, // data (optional) + '<ACTION>', // action (optional) + '[ID1:ID2]', // image (optional) + '<ICON>', // icon (optional) + '<SOUND>', // sound (optional) + '<COLOR>', // color (optional) + '<TAG>', // tag (optional) + null, // badge (optional) + false, // draft (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..8420a2fac29 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,19 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateSendgridProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<API_KEY>', // apiKey (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>' // replyToEmail (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-sms.md new file mode 100644 index 00000000000..98ee6feb236 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-sms.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateSms( + '<MESSAGE_ID>', // messageId + [], // topics (optional) + [], // users (optional) + [], // targets (optional) + '<CONTENT>', // content (optional) + false, // draft (optional) + '' // scheduledAt (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..0bbe4cd2cbd --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-smtp-provider.md @@ -0,0 +1,25 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateSmtpProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + '<HOST>', // host (optional) + 1, // port (optional) + '<USERNAME>', // username (optional) + '<PASSWORD>', // password (optional) + sdk.SmtpEncryption.None, // encryption (optional) + false, // autoTLS (optional) + '<MAILER>', // mailer (optional) + '<FROM_NAME>', // fromName (optional) + 'email@example.com', // fromEmail (optional) + '<REPLY_TO_NAME>', // replyToName (optional) + '<REPLY_TO_EMAIL>', // replyToEmail (optional) + false // enabled (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..2f23a3b11f0 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-telesign-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateTelesignProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<CUSTOMER_ID>', // customerId (optional) + '<API_KEY>', // apiKey (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..6fb6c82e8f0 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateTextmagicProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<USERNAME>', // username (optional) + '<API_KEY>', // apiKey (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-topic.md new file mode 100644 index 00000000000..63309700779 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-topic.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateTopic( + '<TOPIC_ID>', // topicId + '<NAME>', // name (optional) + ["any"] // subscribe (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..e4667f56ae2 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-twilio-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateTwilioProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<ACCOUNT_SID>', // accountSid (optional) + '<AUTH_TOKEN>', // authToken (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..b95398b4ea5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/messaging/update-vonage-provider.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const messaging = new sdk.Messaging(client); + +const result = await messaging.updateVonageProvider( + '<PROVIDER_ID>', // providerId + '<NAME>', // name (optional) + false, // enabled (optional) + '<API_KEY>', // apiKey (optional) + '<API_SECRET>', // apiSecret (optional) + '<FROM>' // from (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/create-deployment.md new file mode 100644 index 00000000000..010da729ed4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/create-deployment.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); +const fs = require('fs'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.createDeployment( + '<SITE_ID>', // siteId + InputFile.fromPath('/path/to/file', 'filename'), // code + false, // activate + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>' // outputDirectory (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..3ce35ff559b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.createDuplicateDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..aebc2b8f4db --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/create-template-deployment.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.createTemplateDeployment( + '<SITE_ID>', // siteId + '<REPOSITORY>', // repository + '<OWNER>', // owner + '<ROOT_DIRECTORY>', // rootDirectory + '<VERSION>', // version + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/create-variable.md b/docs/examples/1.7.x/server-nodejs/examples/sites/create-variable.md new file mode 100644 index 00000000000..59a51eea765 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/create-variable.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.createVariable( + '<SITE_ID>', // siteId + '<KEY>', // key + '<VALUE>', // value + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..4bd849777b5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/create-vcs-deployment.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.createVcsDeployment( + '<SITE_ID>', // siteId + sdk.VCSDeploymentType.Branch, // type + '<REFERENCE>', // reference + false // activate (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/create.md b/docs/examples/1.7.x/server-nodejs/examples/sites/create.md new file mode 100644 index 00000000000..ad680592c20 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/create.md @@ -0,0 +1,29 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.create( + '<SITE_ID>', // siteId + '<NAME>', // name + sdk..Analog, // framework + sdk..Node145, // buildRuntime + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>', // outputDirectory (optional) + sdk..Static, // adapter (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<FALLBACK_FILE>', // fallbackFile (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..c04a5c38d76 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/delete-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.deleteDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/delete-log.md b/docs/examples/1.7.x/server-nodejs/examples/sites/delete-log.md new file mode 100644 index 00000000000..88e58a5f629 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/delete-log.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.deleteLog( + '<SITE_ID>', // siteId + '<LOG_ID>' // logId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-nodejs/examples/sites/delete-variable.md new file mode 100644 index 00000000000..abc7e3ac47b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/delete-variable.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.deleteVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/delete.md b/docs/examples/1.7.x/server-nodejs/examples/sites/delete.md new file mode 100644 index 00000000000..87fd7d23bec --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.delete( + '<SITE_ID>' // siteId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-nodejs/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..414d50d4f84 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/get-deployment-download.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.getDeploymentDownload( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>', // deploymentId + sdk.DeploymentDownloadType.Source // type (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/get-deployment.md new file mode 100644 index 00000000000..3f06b1ab07b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/get-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.getDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/get-log.md b/docs/examples/1.7.x/server-nodejs/examples/sites/get-log.md new file mode 100644 index 00000000000..4318882c953 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/get-log.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.getLog( + '<SITE_ID>', // siteId + '<LOG_ID>' // logId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/get-variable.md b/docs/examples/1.7.x/server-nodejs/examples/sites/get-variable.md new file mode 100644 index 00000000000..287336fd453 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/get-variable.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.getVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>' // variableId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/get.md b/docs/examples/1.7.x/server-nodejs/examples/sites/get.md new file mode 100644 index 00000000000..d382efa2c8a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/get.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.get( + '<SITE_ID>' // siteId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-nodejs/examples/sites/list-deployments.md new file mode 100644 index 00000000000..dce44ed134d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/list-deployments.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.listDeployments( + '<SITE_ID>', // siteId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-nodejs/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..0376e4b552f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/list-frameworks.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.listFrameworks(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/list-logs.md b/docs/examples/1.7.x/server-nodejs/examples/sites/list-logs.md new file mode 100644 index 00000000000..faaf3d35420 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/list-logs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.listLogs( + '<SITE_ID>', // siteId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-nodejs/examples/sites/list-specifications.md new file mode 100644 index 00000000000..24ec74c4aaf --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/list-specifications.md @@ -0,0 +1,10 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.listSpecifications(); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/list-variables.md b/docs/examples/1.7.x/server-nodejs/examples/sites/list-variables.md new file mode 100644 index 00000000000..948e977abc5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/list-variables.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.listVariables( + '<SITE_ID>' // siteId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/list.md b/docs/examples/1.7.x/server-nodejs/examples/sites/list.md new file mode 100644 index 00000000000..184f4f3fc44 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/list.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-nodejs/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..77564245232 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/update-deployment-status.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.updateDeploymentStatus( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-nodejs/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..bfbc0f35146 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/update-site-deployment.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.updateSiteDeployment( + '<SITE_ID>', // siteId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/update-variable.md b/docs/examples/1.7.x/server-nodejs/examples/sites/update-variable.md new file mode 100644 index 00000000000..c790ca10ebc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/update-variable.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.updateVariable( + '<SITE_ID>', // siteId + '<VARIABLE_ID>', // variableId + '<KEY>', // key + '<VALUE>', // value (optional) + false // secret (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/sites/update.md b/docs/examples/1.7.x/server-nodejs/examples/sites/update.md new file mode 100644 index 00000000000..e801aed187d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/sites/update.md @@ -0,0 +1,29 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const sites = new sdk.Sites(client); + +const result = await sites.update( + '<SITE_ID>', // siteId + '<NAME>', // name + sdk..Analog, // framework + false, // enabled (optional) + false, // logging (optional) + 1, // timeout (optional) + '<INSTALL_COMMAND>', // installCommand (optional) + '<BUILD_COMMAND>', // buildCommand (optional) + '<OUTPUT_DIRECTORY>', // outputDirectory (optional) + sdk..Node145, // buildRuntime (optional) + sdk..Static, // adapter (optional) + '<FALLBACK_FILE>', // fallbackFile (optional) + '<INSTALLATION_ID>', // installationId (optional) + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) + '<PROVIDER_BRANCH>', // providerBranch (optional) + false, // providerSilentMode (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-nodejs/examples/storage/create-bucket.md new file mode 100644 index 00000000000..fc318f169d5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/create-bucket.md @@ -0,0 +1,21 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new sdk.Storage(client); + +const result = await storage.createBucket( + '<BUCKET_ID>', // bucketId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + [], // allowedFileExtensions (optional) + sdk..None, // compression (optional) + false, // encryption (optional) + false // antivirus (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.7.x/server-nodejs/examples/storage/create-file.md new file mode 100644 index 00000000000..b84d9ac6535 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/create-file.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); +const fs = require('fs'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.createFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + InputFile.fromPath('/path/to/file', 'filename'), // file + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-nodejs/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..c2067efda2b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/delete-bucket.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new sdk.Storage(client); + +const result = await storage.deleteBucket( + '<BUCKET_ID>' // bucketId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.7.x/server-nodejs/examples/storage/delete-file.md new file mode 100644 index 00000000000..4d2e7128cd8 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/delete-file.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.deleteFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-nodejs/examples/storage/get-bucket.md new file mode 100644 index 00000000000..c8a0b1c55df --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/get-bucket.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new sdk.Storage(client); + +const result = await storage.getBucket( + '<BUCKET_ID>' // bucketId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-download.md new file mode 100644 index 00000000000..6935bede48f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-download.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.getFileDownload( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..fe24419c524 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-preview.md @@ -0,0 +1,25 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.getFilePreview( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + 0, // width (optional) + 0, // height (optional) + sdk.ImageGravity.Center, // gravity (optional) + -1, // quality (optional) + 0, // borderWidth (optional) + '', // borderColor (optional) + 0, // borderRadius (optional) + 0, // opacity (optional) + -360, // rotation (optional) + '', // background (optional) + sdk.ImageFormat.Jpg, // output (optional) + '<TOKEN>' // token (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-view.md new file mode 100644 index 00000000000..9493cfb0a38 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file-view.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.getFileView( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<TOKEN>' // token (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file.md new file mode 100644 index 00000000000..1a6b500013a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/get-file.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.getFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>' // fileId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-nodejs/examples/storage/list-buckets.md new file mode 100644 index 00000000000..3c4d4b14f74 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/list-buckets.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new sdk.Storage(client); + +const result = await storage.listBuckets( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.7.x/server-nodejs/examples/storage/list-files.md new file mode 100644 index 00000000000..fb595efc05b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/list-files.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.listFiles( + '<BUCKET_ID>', // bucketId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-nodejs/examples/storage/update-bucket.md new file mode 100644 index 00000000000..24e4872d8de --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/update-bucket.md @@ -0,0 +1,21 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const storage = new sdk.Storage(client); + +const result = await storage.updateBucket( + '<BUCKET_ID>', // bucketId + '<NAME>', // name + ["read("any")"], // permissions (optional) + false, // fileSecurity (optional) + false, // enabled (optional) + 1, // maximumFileSize (optional) + [], // allowedFileExtensions (optional) + sdk..None, // compression (optional) + false, // encryption (optional) + false // antivirus (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.7.x/server-nodejs/examples/storage/update-file.md new file mode 100644 index 00000000000..7eed687cf51 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/storage/update-file.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const storage = new sdk.Storage(client); + +const result = await storage.updateFile( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '<NAME>', // name (optional) + ["read("any")"] // permissions (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.7.x/server-nodejs/examples/teams/create-membership.md new file mode 100644 index 00000000000..7994423be04 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/create-membership.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.createMembership( + '<TEAM_ID>', // teamId + [], // roles + 'email@example.com', // email (optional) + '<USER_ID>', // userId (optional) + '+12065550100', // phone (optional) + 'https://example.com', // url (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/create.md b/docs/examples/1.7.x/server-nodejs/examples/teams/create.md new file mode 100644 index 00000000000..94de494bf0a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/create.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.create( + '<TEAM_ID>', // teamId + '<NAME>', // name + [] // roles (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-nodejs/examples/teams/delete-membership.md new file mode 100644 index 00000000000..5264af7f134 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/delete-membership.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.deleteMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.7.x/server-nodejs/examples/teams/delete.md new file mode 100644 index 00000000000..151bfb3f70d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.delete( + '<TEAM_ID>' // teamId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.7.x/server-nodejs/examples/teams/get-membership.md new file mode 100644 index 00000000000..a8e9fc73112 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/get-membership.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.getMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>' // membershipId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-nodejs/examples/teams/get-prefs.md new file mode 100644 index 00000000000..18afdaa67ba --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/get-prefs.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.getPrefs( + '<TEAM_ID>' // teamId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/get.md b/docs/examples/1.7.x/server-nodejs/examples/teams/get.md new file mode 100644 index 00000000000..8afc800aa96 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/get.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.get( + '<TEAM_ID>' // teamId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-nodejs/examples/teams/list-memberships.md new file mode 100644 index 00000000000..4fead97b8f0 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/list-memberships.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.listMemberships( + '<TEAM_ID>', // teamId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/list.md b/docs/examples/1.7.x/server-nodejs/examples/teams/list.md new file mode 100644 index 00000000000..17fe5852244 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/list.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-nodejs/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..74fd9580fe3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/update-membership-status.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.updateMembershipStatus( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + '<USER_ID>', // userId + '<SECRET>' // secret +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.7.x/server-nodejs/examples/teams/update-membership.md new file mode 100644 index 00000000000..649630ded9b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/update-membership.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.updateMembership( + '<TEAM_ID>', // teamId + '<MEMBERSHIP_ID>', // membershipId + [] // roles +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.7.x/server-nodejs/examples/teams/update-name.md new file mode 100644 index 00000000000..571f7ce399e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/update-name.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.updateName( + '<TEAM_ID>', // teamId + '<NAME>' // name +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-nodejs/examples/teams/update-prefs.md new file mode 100644 index 00000000000..b054694df5d --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/teams/update-prefs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const teams = new sdk.Teams(client); + +const result = await teams.updatePrefs( + '<TEAM_ID>', // teamId + {} // prefs +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-nodejs/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..d1409c4a991 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/tokens/create-file-token.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new sdk.Tokens(client); + +const result = await tokens.createFileToken( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + '' // expire (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/tokens/delete.md b/docs/examples/1.7.x/server-nodejs/examples/tokens/delete.md new file mode 100644 index 00000000000..1249839f655 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/tokens/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new sdk.Tokens(client); + +const result = await tokens.delete( + '<TOKEN_ID>' // tokenId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/tokens/get.md b/docs/examples/1.7.x/server-nodejs/examples/tokens/get.md new file mode 100644 index 00000000000..efb2b8c1b47 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/tokens/get.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new sdk.Tokens(client); + +const result = await tokens.get( + '<TOKEN_ID>' // tokenId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/tokens/list.md b/docs/examples/1.7.x/server-nodejs/examples/tokens/list.md new file mode 100644 index 00000000000..8b708f270f9 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/tokens/list.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new sdk.Tokens(client); + +const result = await tokens.list( + '<BUCKET_ID>', // bucketId + '<FILE_ID>', // fileId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/tokens/update.md b/docs/examples/1.7.x/server-nodejs/examples/tokens/update.md new file mode 100644 index 00000000000..ebf5aa9bf8f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/tokens/update.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const tokens = new sdk.Tokens(client); + +const result = await tokens.update( + '<TOKEN_ID>', // tokenId + '' // expire (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-argon2user.md new file mode 100644 index 00000000000..dce3646a48e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-argon2user.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createArgon2User( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..d010676d299 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createBcryptUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..a2c9b590561 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..954374c37d3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-m-d5user.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createMD5User( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..8b2ed93b237 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createMfaRecoveryCodes( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..eca31fe659e --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createPHPassUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..e7d8588fca7 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createSHAUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + sdk.PasswordHash.Sha1, // passwordVersion (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..831107b5694 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,18 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createScryptModifiedUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<PASSWORD_SALT>', // passwordSalt + '<PASSWORD_SALT_SEPARATOR>', // passwordSaltSeparator + '<PASSWORD_SIGNER_KEY>', // passwordSignerKey + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..2c2da7e0554 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-scrypt-user.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createScryptUser( + '<USER_ID>', // userId + 'email@example.com', // email + 'password', // password + '<PASSWORD_SALT>', // passwordSalt + null, // passwordCpu + null, // passwordMemory + null, // passwordParallel + null, // passwordLength + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-session.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-session.md new file mode 100644 index 00000000000..9d8cc03ba0f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-session.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createSession( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-target.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-target.md new file mode 100644 index 00000000000..7b9e6b03472 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-target.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createTarget( + '<USER_ID>', // userId + '<TARGET_ID>', // targetId + sdk.MessagingProviderType.Email, // providerType + '<IDENTIFIER>', // identifier + '<PROVIDER_ID>', // providerId (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create-token.md b/docs/examples/1.7.x/server-nodejs/examples/users/create-token.md new file mode 100644 index 00000000000..de7d866e8c3 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create-token.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createToken( + '<USER_ID>', // userId + 4, // length (optional) + 60 // expire (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/create.md b/docs/examples/1.7.x/server-nodejs/examples/users/create.md new file mode 100644 index 00000000000..025c15ada10 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/create.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.create( + '<USER_ID>', // userId + 'email@example.com', // email (optional) + '+12065550100', // phone (optional) + '', // password (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.7.x/server-nodejs/examples/users/delete-identity.md new file mode 100644 index 00000000000..4c92f27d253 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/delete-identity.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.deleteIdentity( + '<IDENTITY_ID>' // identityId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-nodejs/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..456242e22da --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.deleteMfaAuthenticator( + '<USER_ID>', // userId + sdk.AuthenticatorType.Totp // type +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.7.x/server-nodejs/examples/users/delete-session.md new file mode 100644 index 00000000000..3f08370f3b5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/delete-session.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.deleteSession( + '<USER_ID>', // userId + '<SESSION_ID>' // sessionId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-nodejs/examples/users/delete-sessions.md new file mode 100644 index 00000000000..48714a0db1b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/delete-sessions.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.deleteSessions( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/delete-target.md b/docs/examples/1.7.x/server-nodejs/examples/users/delete-target.md new file mode 100644 index 00000000000..ba7e6afd9ce --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/delete-target.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.deleteTarget( + '<USER_ID>', // userId + '<TARGET_ID>' // targetId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/delete.md b/docs/examples/1.7.x/server-nodejs/examples/users/delete.md new file mode 100644 index 00000000000..8fdd9e90b8a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/delete.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.delete( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-nodejs/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..233c3375eca --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.getMfaRecoveryCodes( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.7.x/server-nodejs/examples/users/get-prefs.md new file mode 100644 index 00000000000..61933872e4b --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/get-prefs.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.getPrefs( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/get-target.md b/docs/examples/1.7.x/server-nodejs/examples/users/get-target.md new file mode 100644 index 00000000000..00dc1f118b1 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/get-target.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.getTarget( + '<USER_ID>', // userId + '<TARGET_ID>' // targetId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/get.md b/docs/examples/1.7.x/server-nodejs/examples/users/get.md new file mode 100644 index 00000000000..640aa6315c5 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/get.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.get( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.7.x/server-nodejs/examples/users/list-identities.md new file mode 100644 index 00000000000..819b1688efe --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list-identities.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.listIdentities( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.7.x/server-nodejs/examples/users/list-logs.md new file mode 100644 index 00000000000..c1155d55e25 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list-logs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.listLogs( + '<USER_ID>', // userId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.7.x/server-nodejs/examples/users/list-memberships.md new file mode 100644 index 00000000000..bbe4ed37111 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list-memberships.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.listMemberships( + '<USER_ID>', // userId + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-nodejs/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..8bffa288343 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list-mfa-factors.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.listMfaFactors( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.7.x/server-nodejs/examples/users/list-sessions.md new file mode 100644 index 00000000000..51ba0814c49 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list-sessions.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.listSessions( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list-targets.md b/docs/examples/1.7.x/server-nodejs/examples/users/list-targets.md new file mode 100644 index 00000000000..d991dcca73a --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list-targets.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.listTargets( + '<USER_ID>', // userId + [] // queries (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/list.md b/docs/examples/1.7.x/server-nodejs/examples/users/list.md new file mode 100644 index 00000000000..2bf765bea29 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/list.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.list( + [], // queries (optional) + '<SEARCH>' // search (optional) +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-email-verification.md new file mode 100644 index 00000000000..9dac2d0e548 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-email-verification.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateEmailVerification( + '<USER_ID>', // userId + false // emailVerification +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-email.md new file mode 100644 index 00000000000..0a8b1aa7af4 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-email.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateEmail( + '<USER_ID>', // userId + 'email@example.com' // email +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-labels.md new file mode 100644 index 00000000000..db9e8778adc --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-labels.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateLabels( + '<USER_ID>', // userId + [] // labels +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..9d470853703 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateMfaRecoveryCodes( + '<USER_ID>' // userId +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-mfa.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-mfa.md new file mode 100644 index 00000000000..b4acc79938f --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-mfa.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateMfa( + '<USER_ID>', // userId + false // mfa +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-name.md new file mode 100644 index 00000000000..581e57b7556 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-name.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateName( + '<USER_ID>', // userId + '<NAME>' // name +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-password.md new file mode 100644 index 00000000000..f4af49d67e1 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-password.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updatePassword( + '<USER_ID>', // userId + '' // password +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..ecbe7591dff --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-phone-verification.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updatePhoneVerification( + '<USER_ID>', // userId + false // phoneVerification +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-phone.md new file mode 100644 index 00000000000..45e5a6582aa --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-phone.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updatePhone( + '<USER_ID>', // userId + '+12065550100' // number +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-prefs.md new file mode 100644 index 00000000000..bb7eff8d6bd --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-prefs.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updatePrefs( + '<USER_ID>', // userId + {} // prefs +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-status.md new file mode 100644 index 00000000000..57f64ce9426 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-status.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateStatus( + '<USER_ID>', // userId + false // status +); diff --git a/docs/examples/1.7.x/server-nodejs/examples/users/update-target.md b/docs/examples/1.7.x/server-nodejs/examples/users/update-target.md new file mode 100644 index 00000000000..c6e4d9a1b00 --- /dev/null +++ b/docs/examples/1.7.x/server-nodejs/examples/users/update-target.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.updateTarget( + '<USER_ID>', // userId + '<TARGET_ID>', // targetId + '<IDENTIFIER>', // identifier (optional) + '<PROVIDER_ID>', // providerId (optional) + '<NAME>' // name (optional) +); diff --git a/docs/examples/1.7.x/server-php/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-php/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..b3e811e18d9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-anonymous-session.md @@ -0,0 +1,12 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createAnonymousSession(); diff --git a/docs/examples/1.7.x/server-php/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-php/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..827b1292c54 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-email-password-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createEmailPasswordSession( + email: 'email@example.com', + password: 'password' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-email-token.md b/docs/examples/1.7.x/server-php/examples/account/create-email-token.md new file mode 100644 index 00000000000..b2c553291b0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-email-token.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createEmailToken( + userId: '<USER_ID>', + email: 'email@example.com', + phrase: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-php/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..3dc486502db --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-j-w-t.md @@ -0,0 +1,12 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createJWT(); diff --git a/docs/examples/1.7.x/server-php/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-php/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..639b1997569 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createMagicURLToken( + userId: '<USER_ID>', + email: 'email@example.com', + url: 'https://example.com', // optional + phrase: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-php/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..da3b4634e0c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-mfa-authenticator.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; +use Appwrite\Enums\AuthenticatorType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->createMfaAuthenticator( + type: AuthenticatorType::TOTP() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-php/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..faa679fdf1d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-mfa-challenge.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; +use Appwrite\Enums\AuthenticationFactor; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createMfaChallenge( + factor: AuthenticationFactor::EMAIL() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-php/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..223c95be973 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->createMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-php/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-php/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..1f91db79fd9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-o-auth2token.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; +use Appwrite\Enums\OAuthProvider; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createOAuth2Token( + provider: OAuthProvider::AMAZON(), + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-php/examples/account/create-phone-token.md new file mode 100644 index 00000000000..93c185479ed --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-phone-token.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createPhoneToken( + userId: '<USER_ID>', + phone: '+12065550100' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-php/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..a152667313d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-phone-verification.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->createPhoneVerification(); diff --git a/docs/examples/1.7.x/server-php/examples/account/create-recovery.md b/docs/examples/1.7.x/server-php/examples/account/create-recovery.md new file mode 100644 index 00000000000..c15e41d545c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-recovery.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->createRecovery( + email: 'email@example.com', + url: 'https://example.com' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-session.md b/docs/examples/1.7.x/server-php/examples/account/create-session.md new file mode 100644 index 00000000000..2ff630a2c27 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->createSession( + userId: '<USER_ID>', + secret: '<SECRET>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create-verification.md b/docs/examples/1.7.x/server-php/examples/account/create-verification.md new file mode 100644 index 00000000000..4628175fab8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create-verification.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->createVerification( + url: 'https://example.com' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/create.md b/docs/examples/1.7.x/server-php/examples/account/create.md new file mode 100644 index 00000000000..f92155b6ab5 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/create.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->create( + userId: '<USER_ID>', + email: 'email@example.com', + password: '', + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/delete-identity.md b/docs/examples/1.7.x/server-php/examples/account/delete-identity.md new file mode 100644 index 00000000000..fd66d3ae24b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/delete-identity.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->deleteIdentity( + identityId: '<IDENTITY_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-php/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..42806f8358f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; +use Appwrite\Enums\AuthenticatorType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->deleteMfaAuthenticator( + type: AuthenticatorType::TOTP() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/delete-session.md b/docs/examples/1.7.x/server-php/examples/account/delete-session.md new file mode 100644 index 00000000000..9233ae14e8a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/delete-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->deleteSession( + sessionId: '<SESSION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-php/examples/account/delete-sessions.md new file mode 100644 index 00000000000..557fd6d3aae --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/delete-sessions.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->deleteSessions(); diff --git a/docs/examples/1.7.x/server-php/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-php/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..bafd6d85207 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->getMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-php/examples/account/get-prefs.md b/docs/examples/1.7.x/server-php/examples/account/get-prefs.md new file mode 100644 index 00000000000..c7077affe08 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/get-prefs.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->getPrefs(); diff --git a/docs/examples/1.7.x/server-php/examples/account/get-session.md b/docs/examples/1.7.x/server-php/examples/account/get-session.md new file mode 100644 index 00000000000..be2671348ec --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/get-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->getSession( + sessionId: '<SESSION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/get.md b/docs/examples/1.7.x/server-php/examples/account/get.md new file mode 100644 index 00000000000..30cb7b2af58 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/get.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->get(); diff --git a/docs/examples/1.7.x/server-php/examples/account/list-identities.md b/docs/examples/1.7.x/server-php/examples/account/list-identities.md new file mode 100644 index 00000000000..a7d0a85c660 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/list-identities.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->listIdentities( + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/list-logs.md b/docs/examples/1.7.x/server-php/examples/account/list-logs.md new file mode 100644 index 00000000000..cc7a173d2e0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/list-logs.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->listLogs( + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-php/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..6756573cdb4 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/list-mfa-factors.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->listMfaFactors(); diff --git a/docs/examples/1.7.x/server-php/examples/account/list-sessions.md b/docs/examples/1.7.x/server-php/examples/account/list-sessions.md new file mode 100644 index 00000000000..7f9749f7be6 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/list-sessions.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->listSessions(); diff --git a/docs/examples/1.7.x/server-php/examples/account/update-email.md b/docs/examples/1.7.x/server-php/examples/account/update-email.md new file mode 100644 index 00000000000..c7c0d485eae --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-email.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateEmail( + email: 'email@example.com', + password: 'password' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-php/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..a1978e63ac3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-m-f-a.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateMFA( + mfa: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-php/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..fc42cbe6d1d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->updateMagicURLSession( + userId: '<USER_ID>', + secret: '<SECRET>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-php/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..6a09d95a101 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-mfa-authenticator.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; +use Appwrite\Enums\AuthenticatorType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateMfaAuthenticator( + type: AuthenticatorType::TOTP(), + otp: '<OTP>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-php/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..03ace31144b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-mfa-challenge.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateMfaChallenge( + challengeId: '<CHALLENGE_ID>', + otp: '<OTP>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-php/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..c7ec6cb2b27 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateMfaRecoveryCodes(); diff --git a/docs/examples/1.7.x/server-php/examples/account/update-name.md b/docs/examples/1.7.x/server-php/examples/account/update-name.md new file mode 100644 index 00000000000..2603b6e68b4 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-name.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateName( + name: '<NAME>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-password.md b/docs/examples/1.7.x/server-php/examples/account/update-password.md new file mode 100644 index 00000000000..c5101381e4e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-password.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updatePassword( + password: '', + oldPassword: 'password' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-php/examples/account/update-phone-session.md new file mode 100644 index 00000000000..12d71c2fcd1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-phone-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + +$account = new Account($client); + +$result = $account->updatePhoneSession( + userId: '<USER_ID>', + secret: '<SECRET>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-php/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..df59922996d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-phone-verification.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updatePhoneVerification( + userId: '<USER_ID>', + secret: '<SECRET>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-phone.md b/docs/examples/1.7.x/server-php/examples/account/update-phone.md new file mode 100644 index 00000000000..853cb62fce4 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-phone.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updatePhone( + phone: '+12065550100', + password: 'password' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-prefs.md b/docs/examples/1.7.x/server-php/examples/account/update-prefs.md new file mode 100644 index 00000000000..698da0fd8a5 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-prefs.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updatePrefs( + prefs: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-recovery.md b/docs/examples/1.7.x/server-php/examples/account/update-recovery.md new file mode 100644 index 00000000000..63518b00297 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-recovery.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateRecovery( + userId: '<USER_ID>', + secret: '<SECRET>', + password: '' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-session.md b/docs/examples/1.7.x/server-php/examples/account/update-session.md new file mode 100644 index 00000000000..11cb4c7d980 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateSession( + sessionId: '<SESSION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/account/update-status.md b/docs/examples/1.7.x/server-php/examples/account/update-status.md new file mode 100644 index 00000000000..7c8075e5c7e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-status.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateStatus(); diff --git a/docs/examples/1.7.x/server-php/examples/account/update-verification.md b/docs/examples/1.7.x/server-php/examples/account/update-verification.md new file mode 100644 index 00000000000..60ec0b3196a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/account/update-verification.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Account; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$account = new Account($client); + +$result = $account->updateVerification( + userId: '<USER_ID>', + secret: '<SECRET>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-php/examples/avatars/get-browser.md new file mode 100644 index 00000000000..2449c26032f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-browser.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; +use Appwrite\Enums\Browser; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getBrowser( + code: Browser::AVANTBROWSER(), + width: 0, // optional + height: 0, // optional + quality: -1 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-php/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..123b345a436 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-credit-card.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; +use Appwrite\Enums\CreditCard; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getCreditCard( + code: CreditCard::AMERICANEXPRESS(), + width: 0, // optional + height: 0, // optional + quality: -1 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-php/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..1e671864c84 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-favicon.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getFavicon( + url: 'https://example.com' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-php/examples/avatars/get-flag.md new file mode 100644 index 00000000000..5b7d8babc77 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-flag.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; +use Appwrite\Enums\Flag; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getFlag( + code: Flag::AFGHANISTAN(), + width: 0, // optional + height: 0, // optional + quality: -1 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-image.md b/docs/examples/1.7.x/server-php/examples/avatars/get-image.md new file mode 100644 index 00000000000..e1555453ec1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-image.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getImage( + url: 'https://example.com', + width: 0, // optional + height: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-php/examples/avatars/get-initials.md new file mode 100644 index 00000000000..d84e23a157b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-initials.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getInitials( + name: '<NAME>', // optional + width: 0, // optional + height: 0, // optional + background: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-php/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..0d5936af6b7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/avatars/get-q-r.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Avatars; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$avatars = new Avatars($client); + +$result = $avatars->getQR( + text: '<TEXT>', + size: 1, // optional + margin: 0, // optional + download: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..805d0221949 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-boolean-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createBooleanAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: false, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-collection.md b/docs/examples/1.7.x/server-php/examples/databases/create-collection.md new file mode 100644 index 00000000000..700d97177ba --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-collection.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + name: '<NAME>', + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..dd2fcecc80e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-datetime-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createDatetimeAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-document.md b/docs/examples/1.7.x/server-php/examples/databases/create-document.md new file mode 100644 index 00000000000..8726b37719e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-document.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setSession('') // The user session to authenticate with + ->setKey('<YOUR_API_KEY>') // Your secret API key + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +$databases = new Databases($client); + +$result = $databases->createDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + data: [], + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-documents.md b/docs/examples/1.7.x/server-php/examples/databases/create-documents.md new file mode 100644 index 00000000000..96008e2495e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-documents.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..1274a4b9e1f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-email-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createEmailAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: 'email@example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..9abf2dfa1b6 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-enum-attribute.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createEnumAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + elements: [], + required: false, + default: '<DEFAULT>', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..e6eecb52980 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-float-attribute.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createFloatAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-index.md b/docs/examples/1.7.x/server-php/examples/databases/create-index.md new file mode 100644 index 00000000000..9e8a221e136 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-index.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; +use Appwrite\Enums\IndexType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createIndex( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + type: IndexType::KEY(), + attributes: [], + orders: [], // optional + lengths: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..1dbeefa5476 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-integer-attribute.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createIntegerAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..f42717caa46 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-ip-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createIpAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..caccd360318 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-relationship-attribute.md @@ -0,0 +1,23 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; +use Appwrite\Enums\RelationshipType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createRelationshipAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + relatedCollectionId: '<RELATED_COLLECTION_ID>', + type: RelationshipType::ONETOONE(), + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate::CASCADE() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..5a4f72b6c83 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-string-attribute.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createStringAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + size: 1, + required: false, + default: '<DEFAULT>', // optional + array: false, // optional + encrypt: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..6b9bc800e59 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create-url-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createUrlAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: 'https://example.com', // optional + array: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/create.md b/docs/examples/1.7.x/server-php/examples/databases/create.md new file mode 100644 index 00000000000..73c618874a2 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/create.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->create( + databaseId: '<DATABASE_ID>', + name: '<NAME>', + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..71b71626555 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/delete-attribute.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->deleteAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-php/examples/databases/delete-collection.md new file mode 100644 index 00000000000..4e98dfdb4e0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/delete-collection.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->deleteCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/delete-document.md b/docs/examples/1.7.x/server-php/examples/databases/delete-document.md new file mode 100644 index 00000000000..def7f24569f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/delete-document.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$databases = new Databases($client); + +$result = $databases->deleteDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-php/examples/databases/delete-documents.md new file mode 100644 index 00000000000..3552d85317e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/delete-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->deleteDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/delete-index.md b/docs/examples/1.7.x/server-php/examples/databases/delete-index.md new file mode 100644 index 00000000000..79e476b6d04 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/delete-index.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->deleteIndex( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/delete.md b/docs/examples/1.7.x/server-php/examples/databases/delete.md new file mode 100644 index 00000000000..c796b7c4063 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->delete( + databaseId: '<DATABASE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/get-attribute.md new file mode 100644 index 00000000000..ba82db4065d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/get-attribute.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->getAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/get-collection.md b/docs/examples/1.7.x/server-php/examples/databases/get-collection.md new file mode 100644 index 00000000000..ecddab053de --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/get-collection.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->getCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/get-document.md b/docs/examples/1.7.x/server-php/examples/databases/get-document.md new file mode 100644 index 00000000000..a3204c50a74 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/get-document.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$databases = new Databases($client); + +$result = $databases->getDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/get-index.md b/docs/examples/1.7.x/server-php/examples/databases/get-index.md new file mode 100644 index 00000000000..e9c63076715 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/get-index.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->getIndex( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/get.md b/docs/examples/1.7.x/server-php/examples/databases/get.md new file mode 100644 index 00000000000..9aa6395587f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/get.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->get( + databaseId: '<DATABASE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-php/examples/databases/list-attributes.md new file mode 100644 index 00000000000..3105fc419c5 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/list-attributes.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->listAttributes( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/list-collections.md b/docs/examples/1.7.x/server-php/examples/databases/list-collections.md new file mode 100644 index 00000000000..533b26a0554 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/list-collections.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->listCollections( + databaseId: '<DATABASE_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/list-documents.md b/docs/examples/1.7.x/server-php/examples/databases/list-documents.md new file mode 100644 index 00000000000..07183ac8bf6 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/list-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$databases = new Databases($client); + +$result = $databases->listDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-php/examples/databases/list-indexes.md new file mode 100644 index 00000000000..65b45dae807 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/list-indexes.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->listIndexes( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/list.md b/docs/examples/1.7.x/server-php/examples/databases/list.md new file mode 100644 index 00000000000..6bba74da59b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/list.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->list( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..2e4bee72fe1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-boolean-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateBooleanAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: false, + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-collection.md b/docs/examples/1.7.x/server-php/examples/databases/update-collection.md new file mode 100644 index 00000000000..dd030c07923 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-collection.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateCollection( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + name: '<NAME>', + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..b1a03ec0280 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-datetime-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateDatetimeAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-document.md b/docs/examples/1.7.x/server-php/examples/databases/update-document.md new file mode 100644 index 00000000000..f1c8a346808 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-document.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$databases = new Databases($client); + +$result = $databases->updateDocument( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documentId: '<DOCUMENT_ID>', + data: [], // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-documents.md b/docs/examples/1.7.x/server-php/examples/databases/update-documents.md new file mode 100644 index 00000000000..51b4e18bc26 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-documents.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + data: [], // optional + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..dc9865f81a0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-email-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateEmailAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: 'email@example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..f7cd0b7b836 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-enum-attribute.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateEnumAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + elements: [], + required: false, + default: '<DEFAULT>', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..51f6ec92399 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-float-attribute.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateFloatAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..bdbd96ca120 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-integer-attribute.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateIntegerAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..130cd0cc9fd --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-ip-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateIpAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..01783cf3bfb --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-relationship-attribute.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateRelationshipAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..e0c8f992eae --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-string-attribute.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateStringAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: '<DEFAULT>', + size: 1, // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-php/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..c2004638945 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update-url-attribute.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateUrlAttribute( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + key: '', + required: false, + default: 'https://example.com', + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/update.md b/docs/examples/1.7.x/server-php/examples/databases/update.md new file mode 100644 index 00000000000..9b0b0789caf --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/update.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->update( + databaseId: '<DATABASE_ID>', + name: '<NAME>', + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-php/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..7b9459e8f42 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/databases/upsert-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->upsertDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/create-deployment.md new file mode 100644 index 00000000000..7e48b89ca71 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create-deployment.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\InputFile; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->createDeployment( + functionId: '<FUNCTION_ID>', + code: InputFile::withPath('file.png'), + activate: false, + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..a898762cb8b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->createDuplicateDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', + buildId: '<BUILD_ID>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create-execution.md b/docs/examples/1.7.x/server-php/examples/functions/create-execution.md new file mode 100644 index 00000000000..9aeb976cf3c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create-execution.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$functions = new Functions($client); + +$result = $functions->createExecution( + functionId: '<FUNCTION_ID>', + body: '<BODY>', // optional + async: false, // optional + path: '<PATH>', // optional + method: ExecutionMethod::GET(), // optional + headers: [], // optional + scheduledAt: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..9d22bdc1b4a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create-template-deployment.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->createTemplateDeployment( + functionId: '<FUNCTION_ID>', + repository: '<REPOSITORY>', + owner: '<OWNER>', + rootDirectory: '<ROOT_DIRECTORY>', + version: '<VERSION>', + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create-variable.md b/docs/examples/1.7.x/server-php/examples/functions/create-variable.md new file mode 100644 index 00000000000..ec470d5457f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create-variable.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->createVariable( + functionId: '<FUNCTION_ID>', + key: '<KEY>', + value: '<VALUE>', + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..bb4622e67aa --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create-vcs-deployment.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; +use Appwrite\Enums\VCSDeploymentType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->createVcsDeployment( + functionId: '<FUNCTION_ID>', + type: VCSDeploymentType::BRANCH(), + reference: '<REFERENCE>', + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/create.md b/docs/examples/1.7.x/server-php/examples/functions/create.md new file mode 100644 index 00000000000..3d37b8068ec --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/create.md @@ -0,0 +1,33 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; +use Appwrite\Enums\; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->create( + functionId: '<FUNCTION_ID>', + name: '<NAME>', + runtime: ::NODE145(), + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>', // optional + scopes: [], // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..20285d76109 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/delete-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->deleteDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-php/examples/functions/delete-execution.md new file mode 100644 index 00000000000..e55a8b18922 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/delete-execution.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->deleteExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-php/examples/functions/delete-variable.md new file mode 100644 index 00000000000..e1fb391d79f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/delete-variable.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->deleteVariable( + functionId: '<FUNCTION_ID>', + variableId: '<VARIABLE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/delete.md b/docs/examples/1.7.x/server-php/examples/functions/delete.md new file mode 100644 index 00000000000..9f87f5c9f01 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->delete( + functionId: '<FUNCTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-php/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..7b3e18751e9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/get-deployment-download.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->getDeploymentDownload( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', + type: DeploymentDownloadType::SOURCE() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/get-deployment.md new file mode 100644 index 00000000000..945933b2ade --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/get-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->getDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/get-execution.md b/docs/examples/1.7.x/server-php/examples/functions/get-execution.md new file mode 100644 index 00000000000..7dfeeed0c0d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/get-execution.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$functions = new Functions($client); + +$result = $functions->getExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/get-variable.md b/docs/examples/1.7.x/server-php/examples/functions/get-variable.md new file mode 100644 index 00000000000..4c8d3d6b535 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/get-variable.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->getVariable( + functionId: '<FUNCTION_ID>', + variableId: '<VARIABLE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/get.md b/docs/examples/1.7.x/server-php/examples/functions/get.md new file mode 100644 index 00000000000..ca2160f6c9b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/get.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->get( + functionId: '<FUNCTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-php/examples/functions/list-deployments.md new file mode 100644 index 00000000000..7bbaa0ed3eb --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/list-deployments.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->listDeployments( + functionId: '<FUNCTION_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/list-executions.md b/docs/examples/1.7.x/server-php/examples/functions/list-executions.md new file mode 100644 index 00000000000..77a8ba7223f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/list-executions.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$functions = new Functions($client); + +$result = $functions->listExecutions( + functionId: '<FUNCTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-php/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..6c77c42678c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/list-runtimes.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->listRuntimes(); diff --git a/docs/examples/1.7.x/server-php/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-php/examples/functions/list-specifications.md new file mode 100644 index 00000000000..eec5c33c9df --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/list-specifications.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->listSpecifications(); diff --git a/docs/examples/1.7.x/server-php/examples/functions/list-variables.md b/docs/examples/1.7.x/server-php/examples/functions/list-variables.md new file mode 100644 index 00000000000..f85e85490c9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/list-variables.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->listVariables( + functionId: '<FUNCTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/list.md b/docs/examples/1.7.x/server-php/examples/functions/list.md new file mode 100644 index 00000000000..de914afc58c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/list.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->list( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-php/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..de36d4e8ce1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/update-deployment-status.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->updateDeploymentStatus( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-php/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..38ba026ba10 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/update-function-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->updateFunctionDeployment( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/update-variable.md b/docs/examples/1.7.x/server-php/examples/functions/update-variable.md new file mode 100644 index 00000000000..b15597a6222 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/update-variable.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->updateVariable( + functionId: '<FUNCTION_ID>', + variableId: '<VARIABLE_ID>', + key: '<KEY>', + value: '<VALUE>', // optional + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/functions/update.md b/docs/examples/1.7.x/server-php/examples/functions/update.md new file mode 100644 index 00000000000..ea8d863ae52 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/functions/update.md @@ -0,0 +1,32 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->update( + functionId: '<FUNCTION_ID>', + name: '<NAME>', + runtime: ::NODE145(), // optional + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>', // optional + scopes: [], // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/graphql/mutation.md b/docs/examples/1.7.x/server-php/examples/graphql/mutation.md new file mode 100644 index 00000000000..c349bc2dbde --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/graphql/mutation.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Graphql; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$graphql = new Graphql($client); + +$result = $graphql->mutation( + query: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/graphql/query.md b/docs/examples/1.7.x/server-php/examples/graphql/query.md new file mode 100644 index 00000000000..e6e277c27b3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/graphql/query.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Graphql; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$graphql = new Graphql($client); + +$result = $graphql->query( + query: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-php/examples/health/get-antivirus.md new file mode 100644 index 00000000000..47210646dfa --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-antivirus.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getAntivirus(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get-cache.md b/docs/examples/1.7.x/server-php/examples/health/get-cache.md new file mode 100644 index 00000000000..2e81dae328b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-cache.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getCache(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get-certificate.md b/docs/examples/1.7.x/server-php/examples/health/get-certificate.md new file mode 100644 index 00000000000..408581beac8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-certificate.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getCertificate( + domain: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-d-b.md b/docs/examples/1.7.x/server-php/examples/health/get-d-b.md new file mode 100644 index 00000000000..cfec70e6044 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-d-b.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getDB(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-php/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..02959db3b5f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-failed-jobs.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; +use Appwrite\Enums\; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getFailedJobs( + name: ::V1DATABASE(), + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-php/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..1c346caab62 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-pub-sub.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getPubSub(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..8c1f77433b0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-builds.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueBuilds( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..92fb79a98ce --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-certificates.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueCertificates( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..745b4694349 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-databases.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueDatabases( + name: '<NAME>', // optional + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..d3952685c4d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-deletes.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueDeletes( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..1a5bea2b4cf --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-functions.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueFunctions( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..cf5e3b9d832 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-logs.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueLogs( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..132dfa68aa0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-mails.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueMails( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..fd5fdb1ede2 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-messaging.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueMessaging( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..68110189e54 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-migrations.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueMigrations( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..d0bd6c054e8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-stats-resources.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueStatsResources( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..627a85c845e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-usage.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueUsage( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-php/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..d6ccd7cd83a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-queue-webhooks.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueWebhooks( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-php/examples/health/get-storage-local.md new file mode 100644 index 00000000000..041d24954cb --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-storage-local.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getStorageLocal(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get-storage.md b/docs/examples/1.7.x/server-php/examples/health/get-storage.md new file mode 100644 index 00000000000..377416ed133 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-storage.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getStorage(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get-time.md b/docs/examples/1.7.x/server-php/examples/health/get-time.md new file mode 100644 index 00000000000..aa2699349d6 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get-time.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getTime(); diff --git a/docs/examples/1.7.x/server-php/examples/health/get.md b/docs/examples/1.7.x/server-php/examples/health/get.md new file mode 100644 index 00000000000..fec3e3f4852 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/health/get.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->get(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/get.md b/docs/examples/1.7.x/server-php/examples/locale/get.md new file mode 100644 index 00000000000..ef4c0432dd2 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/get.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->get(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-codes.md b/docs/examples/1.7.x/server-php/examples/locale/list-codes.md new file mode 100644 index 00000000000..273fad08399 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-codes.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listCodes(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-continents.md b/docs/examples/1.7.x/server-php/examples/locale/list-continents.md new file mode 100644 index 00000000000..e8c7ca46df7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-continents.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listContinents(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-php/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..c5dd1d2ad6f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-countries-e-u.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listCountriesEU(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-php/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..7585c1071e7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-countries-phones.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listCountriesPhones(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-countries.md b/docs/examples/1.7.x/server-php/examples/locale/list-countries.md new file mode 100644 index 00000000000..63a2e0b5f7d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-countries.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listCountries(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-php/examples/locale/list-currencies.md new file mode 100644 index 00000000000..d385018e7dc --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-currencies.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listCurrencies(); diff --git a/docs/examples/1.7.x/server-php/examples/locale/list-languages.md b/docs/examples/1.7.x/server-php/examples/locale/list-languages.md new file mode 100644 index 00000000000..f0ca4d4f043 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/locale/list-languages.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Locale; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$locale = new Locale($client); + +$result = $locale->listLanguages(); diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..da13d172313 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-apns-provider.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createApnsProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false, // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-email.md b/docs/examples/1.7.x/server-php/examples/messaging/create-email.md new file mode 100644 index 00000000000..9de24873bfc --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-email.md @@ -0,0 +1,26 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createEmail( + messageId: '<MESSAGE_ID>', + subject: '<SUBJECT>', + content: '<CONTENT>', + topics: [], // optional + users: [], // optional + targets: [], // optional + cc: [], // optional + bcc: [], // optional + attachments: [], // optional + draft: false, // optional + html: false, // optional + scheduledAt: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..baf72a1df40 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-fcm-provider.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createFcmProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + serviceAccountJSON: [], // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..6c62ee88376 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,24 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createMailgunProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..1eb954a2c67 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-msg91provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createMsg91Provider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-push.md b/docs/examples/1.7.x/server-php/examples/messaging/create-push.md new file mode 100644 index 00000000000..46aeeb3b8b8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-push.md @@ -0,0 +1,33 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createPush( + messageId: '<MESSAGE_ID>', + title: '<TITLE>', // optional + body: '<BODY>', // optional + topics: [], // optional + users: [], // optional + targets: [], // optional + data: [], // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..892d856305d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createSendgridProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-php/examples/messaging/create-sms.md new file mode 100644 index 00000000000..1e2d9ac765e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-sms.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createSms( + messageId: '<MESSAGE_ID>', + content: '<CONTENT>', + topics: [], // optional + users: [], // optional + targets: [], // optional + draft: false, // optional + scheduledAt: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..4dcfb3a0880 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-smtp-provider.md @@ -0,0 +1,28 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createSmtpProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + host: '<HOST>', + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: SmtpEncryption::NONE(), // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-php/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..3516fa3d6a3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-subscriber.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +$messaging = new Messaging($client); + +$result = $messaging->createSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>', + targetId: '<TARGET_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..9006918029d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-telesign-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createTelesignProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..5215d526423 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createTextmagicProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-php/examples/messaging/create-topic.md new file mode 100644 index 00000000000..e94141cc73e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-topic.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createTopic( + topicId: '<TOPIC_ID>', + name: '<NAME>', + subscribe: ["any"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..c3568286400 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-twilio-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createTwilioProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..adeacbc45e1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/create-vonage-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->createVonageProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..f37d18b4fdd --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/delete-provider.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->deleteProvider( + providerId: '<PROVIDER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-php/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..f7a84259202 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/delete-subscriber.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token + +$messaging = new Messaging($client); + +$result = $messaging->deleteSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-php/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..2ec899b1d65 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/delete-topic.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->deleteTopic( + topicId: '<TOPIC_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/delete.md b/docs/examples/1.7.x/server-php/examples/messaging/delete.md new file mode 100644 index 00000000000..5781838bdce --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->delete( + messageId: '<MESSAGE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/get-message.md b/docs/examples/1.7.x/server-php/examples/messaging/get-message.md new file mode 100644 index 00000000000..cf922219c77 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/get-message.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->getMessage( + messageId: '<MESSAGE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/get-provider.md new file mode 100644 index 00000000000..d19f5c65e52 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/get-provider.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->getProvider( + providerId: '<PROVIDER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-php/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..e2a0d7ef35f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/get-subscriber.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->getSubscriber( + topicId: '<TOPIC_ID>', + subscriberId: '<SUBSCRIBER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-php/examples/messaging/get-topic.md new file mode 100644 index 00000000000..fc06cbbc95c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/get-topic.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->getTopic( + topicId: '<TOPIC_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-php/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..03231375f80 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-message-logs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listMessageLogs( + messageId: '<MESSAGE_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-php/examples/messaging/list-messages.md new file mode 100644 index 00000000000..965fe08fc7c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-messages.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listMessages( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-php/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..761bb966d64 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-provider-logs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listProviderLogs( + providerId: '<PROVIDER_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-php/examples/messaging/list-providers.md new file mode 100644 index 00000000000..614e9c58f1c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-providers.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listProviders( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-php/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..c710575a467 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listSubscriberLogs( + subscriberId: '<SUBSCRIBER_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-php/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..d2625cd5550 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-subscribers.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listSubscribers( + topicId: '<TOPIC_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-php/examples/messaging/list-targets.md new file mode 100644 index 00000000000..1112d28003d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-targets.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listTargets( + messageId: '<MESSAGE_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-php/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..3bbb35a006c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-topic-logs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listTopicLogs( + topicId: '<TOPIC_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-php/examples/messaging/list-topics.md new file mode 100644 index 00000000000..debb363133a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/list-topics.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->listTopics( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..724453b9b1b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-apns-provider.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateApnsProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-email.md b/docs/examples/1.7.x/server-php/examples/messaging/update-email.md new file mode 100644 index 00000000000..dd0f645af66 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-email.md @@ -0,0 +1,26 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateEmail( + messageId: '<MESSAGE_ID>', + topics: [], // optional + users: [], // optional + targets: [], // optional + subject: '<SUBJECT>', // optional + content: '<CONTENT>', // optional + draft: false, // optional + html: false, // optional + cc: [], // optional + bcc: [], // optional + scheduledAt: '', // optional + attachments: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..36672f4b65f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-fcm-provider.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateFcmProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + serviceAccountJSON: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..c99ebc7d73b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,24 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateMailgunProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + enabled: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..f6f557cce48 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-msg91provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateMsg91Provider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-push.md b/docs/examples/1.7.x/server-php/examples/messaging/update-push.md new file mode 100644 index 00000000000..e1df0b91322 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-push.md @@ -0,0 +1,33 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updatePush( + messageId: '<MESSAGE_ID>', + topics: [], // optional + users: [], // optional + targets: [], // optional + title: '<TITLE>', // optional + body: '<BODY>', // optional + data: [], // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..b8473c16a3f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,22 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateSendgridProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-php/examples/messaging/update-sms.md new file mode 100644 index 00000000000..730da4178a3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-sms.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateSms( + messageId: '<MESSAGE_ID>', + topics: [], // optional + users: [], // optional + targets: [], // optional + content: '<CONTENT>', // optional + draft: false, // optional + scheduledAt: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..a16a630283a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-smtp-provider.md @@ -0,0 +1,28 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateSmtpProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + host: '<HOST>', // optional + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: SmtpEncryption::NONE(), // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>', // optional + enabled: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..29a54bfaed3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-telesign-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateTelesignProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..e6a1ed1a1e1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateTextmagicProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-php/examples/messaging/update-topic.md new file mode 100644 index 00000000000..b1f9a32ec52 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-topic.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateTopic( + topicId: '<TOPIC_ID>', + name: '<NAME>', // optional + subscribe: ["any"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..def821adc4a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-twilio-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateTwilioProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + from: '<FROM>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-php/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..0841e284eb7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/messaging/update-vonage-provider.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Messaging; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$messaging = new Messaging($client); + +$result = $messaging->updateVonageProvider( + providerId: '<PROVIDER_ID>', + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + from: '<FROM>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/create-deployment.md new file mode 100644 index 00000000000..30770b78718 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/create-deployment.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\InputFile; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->createDeployment( + siteId: '<SITE_ID>', + code: InputFile::withPath('file.png'), + activate: false, + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..84f65cd025f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->createDuplicateDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..f2d1f3cd8be --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/create-template-deployment.md @@ -0,0 +1,20 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->createTemplateDeployment( + siteId: '<SITE_ID>', + repository: '<REPOSITORY>', + owner: '<OWNER>', + rootDirectory: '<ROOT_DIRECTORY>', + version: '<VERSION>', + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/create-variable.md b/docs/examples/1.7.x/server-php/examples/sites/create-variable.md new file mode 100644 index 00000000000..3097e193052 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/create-variable.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->createVariable( + siteId: '<SITE_ID>', + key: '<KEY>', + value: '<VALUE>', + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..7f63dffdf8d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/create-vcs-deployment.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; +use Appwrite\Enums\VCSDeploymentType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->createVcsDeployment( + siteId: '<SITE_ID>', + type: VCSDeploymentType::BRANCH(), + reference: '<REFERENCE>', + activate: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/create.md b/docs/examples/1.7.x/server-php/examples/sites/create.md new file mode 100644 index 00000000000..4a1c3a4fcbe --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/create.md @@ -0,0 +1,34 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; +use Appwrite\Enums\; +use Appwrite\Enums\; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->create( + siteId: '<SITE_ID>', + name: '<NAME>', + framework: ::ANALOG(), + buildRuntime: ::NODE145(), + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + adapter: ::STATIC(), // optional + installationId: '<INSTALLATION_ID>', // optional + fallbackFile: '<FALLBACK_FILE>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..4e24748c378 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/delete-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->deleteDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/delete-log.md b/docs/examples/1.7.x/server-php/examples/sites/delete-log.md new file mode 100644 index 00000000000..b6e30643f6d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/delete-log.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->deleteLog( + siteId: '<SITE_ID>', + logId: '<LOG_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-php/examples/sites/delete-variable.md new file mode 100644 index 00000000000..663254303ae --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/delete-variable.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->deleteVariable( + siteId: '<SITE_ID>', + variableId: '<VARIABLE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/delete.md b/docs/examples/1.7.x/server-php/examples/sites/delete.md new file mode 100644 index 00000000000..8e6363aa352 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->delete( + siteId: '<SITE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-php/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..91c6b6e52a7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/get-deployment-download.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->getDeploymentDownload( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>', + type: DeploymentDownloadType::SOURCE() // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/get-deployment.md new file mode 100644 index 00000000000..19525d92746 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/get-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->getDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/get-log.md b/docs/examples/1.7.x/server-php/examples/sites/get-log.md new file mode 100644 index 00000000000..5ceb2b9110e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/get-log.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->getLog( + siteId: '<SITE_ID>', + logId: '<LOG_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/get-variable.md b/docs/examples/1.7.x/server-php/examples/sites/get-variable.md new file mode 100644 index 00000000000..0cab412b2ec --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/get-variable.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->getVariable( + siteId: '<SITE_ID>', + variableId: '<VARIABLE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/get.md b/docs/examples/1.7.x/server-php/examples/sites/get.md new file mode 100644 index 00000000000..e5ec061badd --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/get.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->get( + siteId: '<SITE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-php/examples/sites/list-deployments.md new file mode 100644 index 00000000000..4d687ec59e9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/list-deployments.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->listDeployments( + siteId: '<SITE_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-php/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..87df92d9ee1 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/list-frameworks.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->listFrameworks(); diff --git a/docs/examples/1.7.x/server-php/examples/sites/list-logs.md b/docs/examples/1.7.x/server-php/examples/sites/list-logs.md new file mode 100644 index 00000000000..5674e98f5e4 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/list-logs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->listLogs( + siteId: '<SITE_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-php/examples/sites/list-specifications.md new file mode 100644 index 00000000000..42dae1b7999 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/list-specifications.md @@ -0,0 +1,13 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->listSpecifications(); diff --git a/docs/examples/1.7.x/server-php/examples/sites/list-variables.md b/docs/examples/1.7.x/server-php/examples/sites/list-variables.md new file mode 100644 index 00000000000..36aad640fe7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/list-variables.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->listVariables( + siteId: '<SITE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/list.md b/docs/examples/1.7.x/server-php/examples/sites/list.md new file mode 100644 index 00000000000..4e16c690bc9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/list.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->list( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-php/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..2714b3570f9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/update-deployment-status.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->updateDeploymentStatus( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-php/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..6e2614cb414 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/update-site-deployment.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->updateSiteDeployment( + siteId: '<SITE_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/update-variable.md b/docs/examples/1.7.x/server-php/examples/sites/update-variable.md new file mode 100644 index 00000000000..84bafe28c48 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/update-variable.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->updateVariable( + siteId: '<SITE_ID>', + variableId: '<VARIABLE_ID>', + key: '<KEY>', + value: '<VALUE>', // optional + secret: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/sites/update.md b/docs/examples/1.7.x/server-php/examples/sites/update.md new file mode 100644 index 00000000000..f2ca54a9878 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/sites/update.md @@ -0,0 +1,33 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Sites; +use Appwrite\Enums\; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$sites = new Sites($client); + +$result = $sites->update( + siteId: '<SITE_ID>', + name: '<NAME>', + framework: ::ANALOG(), + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + buildRuntime: ::NODE145(), // optional + adapter: ::STATIC(), // optional + fallbackFile: '<FALLBACK_FILE>', // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-php/examples/storage/create-bucket.md new file mode 100644 index 00000000000..cd17ffedac0 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/create-bucket.md @@ -0,0 +1,24 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$storage = new Storage($client); + +$result = $storage->createBucket( + bucketId: '<BUCKET_ID>', + name: '<NAME>', + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: ::NONE(), // optional + encryption: false, // optional + antivirus: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/create-file.md b/docs/examples/1.7.x/server-php/examples/storage/create-file.md new file mode 100644 index 00000000000..2d133059841 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/create-file.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\InputFile; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->createFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + file: InputFile::withPath('file.png'), + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-php/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..50adf35b6b5 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/delete-bucket.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$storage = new Storage($client); + +$result = $storage->deleteBucket( + bucketId: '<BUCKET_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/delete-file.md b/docs/examples/1.7.x/server-php/examples/storage/delete-file.md new file mode 100644 index 00000000000..d4c45eb66a5 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/delete-file.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->deleteFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-php/examples/storage/get-bucket.md new file mode 100644 index 00000000000..e62c43d2d36 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/get-bucket.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$storage = new Storage($client); + +$result = $storage->getBucket( + bucketId: '<BUCKET_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-php/examples/storage/get-file-download.md new file mode 100644 index 00000000000..defefa5948e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/get-file-download.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->getFileDownload( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + token: '<TOKEN>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-php/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..0b65fc326a9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/get-file-preview.md @@ -0,0 +1,28 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->getFilePreview( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + width: 0, // optional + height: 0, // optional + gravity: ImageGravity::CENTER(), // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: ImageFormat::JPG(), // optional + token: '<TOKEN>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-php/examples/storage/get-file-view.md new file mode 100644 index 00000000000..dfc84ca1026 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/get-file-view.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->getFileView( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + token: '<TOKEN>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/get-file.md b/docs/examples/1.7.x/server-php/examples/storage/get-file.md new file mode 100644 index 00000000000..6964144801a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/get-file.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->getFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-php/examples/storage/list-buckets.md new file mode 100644 index 00000000000..a4538c6f3ab --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/list-buckets.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$storage = new Storage($client); + +$result = $storage->listBuckets( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/list-files.md b/docs/examples/1.7.x/server-php/examples/storage/list-files.md new file mode 100644 index 00000000000..ede0e7c9795 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/list-files.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->listFiles( + bucketId: '<BUCKET_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-php/examples/storage/update-bucket.md new file mode 100644 index 00000000000..1517e366219 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/update-bucket.md @@ -0,0 +1,24 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$storage = new Storage($client); + +$result = $storage->updateBucket( + bucketId: '<BUCKET_ID>', + name: '<NAME>', + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: ::NONE(), // optional + encryption: false, // optional + antivirus: false // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/storage/update-file.md b/docs/examples/1.7.x/server-php/examples/storage/update-file.md new file mode 100644 index 00000000000..7b467acfe3f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/storage/update-file.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Storage; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$storage = new Storage($client); + +$result = $storage->updateFile( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + name: '<NAME>', // optional + permissions: ["read("any")"] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/create-membership.md b/docs/examples/1.7.x/server-php/examples/teams/create-membership.md new file mode 100644 index 00000000000..285368f9ddc --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/create-membership.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->createMembership( + teamId: '<TEAM_ID>', + roles: [], + email: 'email@example.com', // optional + userId: '<USER_ID>', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/create.md b/docs/examples/1.7.x/server-php/examples/teams/create.md new file mode 100644 index 00000000000..643fa0eb110 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/create.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->create( + teamId: '<TEAM_ID>', + name: '<NAME>', + roles: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-php/examples/teams/delete-membership.md new file mode 100644 index 00000000000..579b790c556 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/delete-membership.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->deleteMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/delete.md b/docs/examples/1.7.x/server-php/examples/teams/delete.md new file mode 100644 index 00000000000..9db4e7e9a7c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->delete( + teamId: '<TEAM_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/get-membership.md b/docs/examples/1.7.x/server-php/examples/teams/get-membership.md new file mode 100644 index 00000000000..bd6cbe8b42c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/get-membership.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->getMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-php/examples/teams/get-prefs.md new file mode 100644 index 00000000000..fbade4fc2fb --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/get-prefs.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->getPrefs( + teamId: '<TEAM_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/get.md b/docs/examples/1.7.x/server-php/examples/teams/get.md new file mode 100644 index 00000000000..0dafa8a5d38 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/get.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->get( + teamId: '<TEAM_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-php/examples/teams/list-memberships.md new file mode 100644 index 00000000000..817ea7fefc3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/list-memberships.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->listMemberships( + teamId: '<TEAM_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/list.md b/docs/examples/1.7.x/server-php/examples/teams/list.md new file mode 100644 index 00000000000..99d9895fe5f --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/list.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->list( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-php/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..5dbfd4cb0f8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/update-membership-status.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->updateMembershipStatus( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', + userId: '<USER_ID>', + secret: '<SECRET>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/update-membership.md b/docs/examples/1.7.x/server-php/examples/teams/update-membership.md new file mode 100644 index 00000000000..10f135b01ff --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/update-membership.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->updateMembership( + teamId: '<TEAM_ID>', + membershipId: '<MEMBERSHIP_ID>', + roles: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/update-name.md b/docs/examples/1.7.x/server-php/examples/teams/update-name.md new file mode 100644 index 00000000000..bc13d924e41 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/update-name.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->updateName( + teamId: '<TEAM_ID>', + name: '<NAME>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-php/examples/teams/update-prefs.md new file mode 100644 index 00000000000..bd8d9de32f4 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/teams/update-prefs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Teams; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$teams = new Teams($client); + +$result = $teams->updatePrefs( + teamId: '<TEAM_ID>', + prefs: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-php/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..e4f230217a9 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/tokens/create-file-token.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Tokens; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tokens = new Tokens($client); + +$result = $tokens->createFileToken( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + expire: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/tokens/delete.md b/docs/examples/1.7.x/server-php/examples/tokens/delete.md new file mode 100644 index 00000000000..278be90b12d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/tokens/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Tokens; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tokens = new Tokens($client); + +$result = $tokens->delete( + tokenId: '<TOKEN_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/tokens/get.md b/docs/examples/1.7.x/server-php/examples/tokens/get.md new file mode 100644 index 00000000000..e7b4e1081b2 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/tokens/get.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Tokens; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tokens = new Tokens($client); + +$result = $tokens->get( + tokenId: '<TOKEN_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/tokens/list.md b/docs/examples/1.7.x/server-php/examples/tokens/list.md new file mode 100644 index 00000000000..b89420bed1d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/tokens/list.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Tokens; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tokens = new Tokens($client); + +$result = $tokens->list( + bucketId: '<BUCKET_ID>', + fileId: '<FILE_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/tokens/update.md b/docs/examples/1.7.x/server-php/examples/tokens/update.md new file mode 100644 index 00000000000..ea95322a432 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/tokens/update.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Tokens; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$tokens = new Tokens($client); + +$result = $tokens->update( + tokenId: '<TOKEN_ID>', + expire: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-php/examples/users/create-argon2user.md new file mode 100644 index 00000000000..a9166ef3b01 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-argon2user.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createArgon2User( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-php/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..c9fd81e43a3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-bcrypt-user.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createBcryptUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-php/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..1c1c6d40bdb --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-j-w-t.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createJWT( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', // optional + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-php/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..696cbbeb57d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-m-d5user.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createMD5User( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-php/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..372fb1bc6a3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createMfaRecoveryCodes( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-php/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..d56c4651f6e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-p-h-pass-user.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createPHPassUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-php/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..0b9a27ed8eb --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-s-h-a-user.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createSHAUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + passwordVersion: PasswordHash::SHA1(), // optional + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-php/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..f579efb5f2e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createScryptModifiedUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + passwordSalt: '<PASSWORD_SALT>', + passwordSaltSeparator: '<PASSWORD_SALT_SEPARATOR>', + passwordSignerKey: '<PASSWORD_SIGNER_KEY>', + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-php/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..b406b9404a8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-scrypt-user.md @@ -0,0 +1,23 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createScryptUser( + userId: '<USER_ID>', + email: 'email@example.com', + password: 'password', + passwordSalt: '<PASSWORD_SALT>', + passwordCpu: null, + passwordMemory: null, + passwordParallel: null, + passwordLength: null, + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-session.md b/docs/examples/1.7.x/server-php/examples/users/create-session.md new file mode 100644 index 00000000000..1589315f92e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-session.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createSession( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-target.md b/docs/examples/1.7.x/server-php/examples/users/create-target.md new file mode 100644 index 00000000000..57946a440ff --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-target.md @@ -0,0 +1,21 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; +use Appwrite\Enums\MessagingProviderType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>', + providerType: MessagingProviderType::EMAIL(), + identifier: '<IDENTIFIER>', + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create-token.md b/docs/examples/1.7.x/server-php/examples/users/create-token.md new file mode 100644 index 00000000000..1b92f5171d8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create-token.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createToken( + userId: '<USER_ID>', + length: 4, // optional + expire: 60 // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/create.md b/docs/examples/1.7.x/server-php/examples/users/create.md new file mode 100644 index 00000000000..595f24fbce3 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/create.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->create( + userId: '<USER_ID>', + email: 'email@example.com', // optional + phone: '+12065550100', // optional + password: '', // optional + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/delete-identity.md b/docs/examples/1.7.x/server-php/examples/users/delete-identity.md new file mode 100644 index 00000000000..26b71eead23 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/delete-identity.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->deleteIdentity( + identityId: '<IDENTITY_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-php/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..8ef12795895 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; +use Appwrite\Enums\AuthenticatorType; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->deleteMfaAuthenticator( + userId: '<USER_ID>', + type: AuthenticatorType::TOTP() +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/delete-session.md b/docs/examples/1.7.x/server-php/examples/users/delete-session.md new file mode 100644 index 00000000000..493cf53d2f8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/delete-session.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->deleteSession( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-php/examples/users/delete-sessions.md new file mode 100644 index 00000000000..cd6d11e1d7a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/delete-sessions.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->deleteSessions( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/delete-target.md b/docs/examples/1.7.x/server-php/examples/users/delete-target.md new file mode 100644 index 00000000000..0d85d3e4dfa --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/delete-target.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->deleteTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/delete.md b/docs/examples/1.7.x/server-php/examples/users/delete.md new file mode 100644 index 00000000000..883156ecd69 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/delete.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->delete( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-php/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..db090fb245b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->getMfaRecoveryCodes( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/get-prefs.md b/docs/examples/1.7.x/server-php/examples/users/get-prefs.md new file mode 100644 index 00000000000..5e99e14b523 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/get-prefs.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->getPrefs( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/get-target.md b/docs/examples/1.7.x/server-php/examples/users/get-target.md new file mode 100644 index 00000000000..31baf3c852c --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/get-target.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->getTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/get.md b/docs/examples/1.7.x/server-php/examples/users/get.md new file mode 100644 index 00000000000..0ce39ae6e52 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/get.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->get( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list-identities.md b/docs/examples/1.7.x/server-php/examples/users/list-identities.md new file mode 100644 index 00000000000..fd15b7b51a4 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list-identities.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->listIdentities( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list-logs.md b/docs/examples/1.7.x/server-php/examples/users/list-logs.md new file mode 100644 index 00000000000..7aea2dc59a7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list-logs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->listLogs( + userId: '<USER_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list-memberships.md b/docs/examples/1.7.x/server-php/examples/users/list-memberships.md new file mode 100644 index 00000000000..53c4b1b9cca --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list-memberships.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->listMemberships( + userId: '<USER_ID>', + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-php/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..6a0088c9bd7 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list-mfa-factors.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->listMfaFactors( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list-sessions.md b/docs/examples/1.7.x/server-php/examples/users/list-sessions.md new file mode 100644 index 00000000000..bdbd0e5e51e --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list-sessions.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->listSessions( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list-targets.md b/docs/examples/1.7.x/server-php/examples/users/list-targets.md new file mode 100644 index 00000000000..005d51a5318 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list-targets.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->listTargets( + userId: '<USER_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/list.md b/docs/examples/1.7.x/server-php/examples/users/list.md new file mode 100644 index 00000000000..04217363f01 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/list.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->list( + queries: [], // optional + search: '<SEARCH>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-php/examples/users/update-email-verification.md new file mode 100644 index 00000000000..636f1d2404d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-email-verification.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateEmailVerification( + userId: '<USER_ID>', + emailVerification: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-email.md b/docs/examples/1.7.x/server-php/examples/users/update-email.md new file mode 100644 index 00000000000..21ec88b3348 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-email.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateEmail( + userId: '<USER_ID>', + email: 'email@example.com' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-labels.md b/docs/examples/1.7.x/server-php/examples/users/update-labels.md new file mode 100644 index 00000000000..7d4ae5de503 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-labels.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateLabels( + userId: '<USER_ID>', + labels: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-php/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..75214de880a --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateMfaRecoveryCodes( + userId: '<USER_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-mfa.md b/docs/examples/1.7.x/server-php/examples/users/update-mfa.md new file mode 100644 index 00000000000..3eda496f1fd --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-mfa.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateMfa( + userId: '<USER_ID>', + mfa: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-name.md b/docs/examples/1.7.x/server-php/examples/users/update-name.md new file mode 100644 index 00000000000..09bb07cdd7b --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-name.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateName( + userId: '<USER_ID>', + name: '<NAME>' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-password.md b/docs/examples/1.7.x/server-php/examples/users/update-password.md new file mode 100644 index 00000000000..6d58605d5c8 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-password.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updatePassword( + userId: '<USER_ID>', + password: '' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-php/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..019fb3f1484 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-phone-verification.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updatePhoneVerification( + userId: '<USER_ID>', + phoneVerification: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-phone.md b/docs/examples/1.7.x/server-php/examples/users/update-phone.md new file mode 100644 index 00000000000..13bd41bfa8d --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-phone.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updatePhone( + userId: '<USER_ID>', + number: '+12065550100' +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-prefs.md b/docs/examples/1.7.x/server-php/examples/users/update-prefs.md new file mode 100644 index 00000000000..94912392711 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-prefs.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updatePrefs( + userId: '<USER_ID>', + prefs: [] +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-status.md b/docs/examples/1.7.x/server-php/examples/users/update-status.md new file mode 100644 index 00000000000..f29dc95e2fd --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-status.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateStatus( + userId: '<USER_ID>', + status: false +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-php/examples/users/update-target.md b/docs/examples/1.7.x/server-php/examples/users/update-target.md new file mode 100644 index 00000000000..00ad27b9a74 --- /dev/null +++ b/docs/examples/1.7.x/server-php/examples/users/update-target.md @@ -0,0 +1,19 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->updateTarget( + userId: '<USER_ID>', + targetId: '<TARGET_ID>', + identifier: '<IDENTIFIER>', // optional + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional +); \ No newline at end of file diff --git a/docs/examples/1.7.x/server-python/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-python/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..c3b7a87d270 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-anonymous-session.md @@ -0,0 +1,10 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_anonymous_session() diff --git a/docs/examples/1.7.x/server-python/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-python/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..e831821a6cc --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-email-password-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_email_password_session( + email = 'email@example.com', + password = 'password' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-email-token.md b/docs/examples/1.7.x/server-python/examples/account/create-email-token.md new file mode 100644 index 00000000000..7ff4f6b8a9f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-email-token.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_email_token( + user_id = '<USER_ID>', + email = 'email@example.com', + phrase = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-python/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..172f45f9965 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-j-w-t.md @@ -0,0 +1,10 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_jwt() diff --git a/docs/examples/1.7.x/server-python/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-python/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..14e76ed4d30 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_magic_url_token( + user_id = '<USER_ID>', + email = 'email@example.com', + url = 'https://example.com', # optional + phrase = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-python/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..70cee1d60c6 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-mfa-authenticator.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account +from appwrite.enums import AuthenticatorType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.create_mfa_authenticator( + type = AuthenticatorType.TOTP +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-python/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..abd746c605e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-mfa-challenge.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account +from appwrite.enums import AuthenticationFactor + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_mfa_challenge( + factor = AuthenticationFactor.EMAIL +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-python/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..69aaa6091fb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.create_mfa_recovery_codes() diff --git a/docs/examples/1.7.x/server-python/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-python/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..2dc171bb314 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-o-auth2token.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.account import Account +from appwrite.enums import OAuthProvider + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_o_auth2_token( + provider = OAuthProvider.AMAZON, + success = 'https://example.com', # optional + failure = 'https://example.com', # optional + scopes = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-python/examples/account/create-phone-token.md new file mode 100644 index 00000000000..06c2b204145 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-phone-token.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_phone_token( + user_id = '<USER_ID>', + phone = '+12065550100' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-python/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..c130646bee8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-phone-verification.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.create_phone_verification() diff --git a/docs/examples/1.7.x/server-python/examples/account/create-recovery.md b/docs/examples/1.7.x/server-python/examples/account/create-recovery.md new file mode 100644 index 00000000000..51c17772459 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.create_recovery( + email = 'email@example.com', + url = 'https://example.com' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-session.md b/docs/examples/1.7.x/server-python/examples/account/create-session.md new file mode 100644 index 00000000000..1048dfedb2c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create_session( + user_id = '<USER_ID>', + secret = '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create-verification.md b/docs/examples/1.7.x/server-python/examples/account/create-verification.md new file mode 100644 index 00000000000..d66fc2cd7d9 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create-verification.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.create_verification( + url = 'https://example.com' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/create.md b/docs/examples/1.7.x/server-python/examples/account/create.md new file mode 100644 index 00000000000..7eda5a37fef --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/create.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.create( + user_id = '<USER_ID>', + email = 'email@example.com', + password = '', + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/delete-identity.md b/docs/examples/1.7.x/server-python/examples/account/delete-identity.md new file mode 100644 index 00000000000..0c894fa6934 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/delete-identity.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.delete_identity( + identity_id = '<IDENTITY_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-python/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..83709c7aff4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account +from appwrite.enums import AuthenticatorType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.delete_mfa_authenticator( + type = AuthenticatorType.TOTP +) diff --git a/docs/examples/1.7.x/server-python/examples/account/delete-session.md b/docs/examples/1.7.x/server-python/examples/account/delete-session.md new file mode 100644 index 00000000000..5967d7026a5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/delete-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.delete_session( + session_id = '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-python/examples/account/delete-sessions.md new file mode 100644 index 00000000000..5061f84c5d1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/delete-sessions.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.delete_sessions() diff --git a/docs/examples/1.7.x/server-python/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-python/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..c8fe494d0ff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.get_mfa_recovery_codes() diff --git a/docs/examples/1.7.x/server-python/examples/account/get-prefs.md b/docs/examples/1.7.x/server-python/examples/account/get-prefs.md new file mode 100644 index 00000000000..d577b4b2745 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/get-prefs.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.get_prefs() diff --git a/docs/examples/1.7.x/server-python/examples/account/get-session.md b/docs/examples/1.7.x/server-python/examples/account/get-session.md new file mode 100644 index 00000000000..3e2937b913e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/get-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.get_session( + session_id = '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/get.md b/docs/examples/1.7.x/server-python/examples/account/get.md new file mode 100644 index 00000000000..542622851c9 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/get.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.get() diff --git a/docs/examples/1.7.x/server-python/examples/account/list-identities.md b/docs/examples/1.7.x/server-python/examples/account/list-identities.md new file mode 100644 index 00000000000..aeb23be747c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/list-identities.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.list_identities( + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/list-logs.md b/docs/examples/1.7.x/server-python/examples/account/list-logs.md new file mode 100644 index 00000000000..67d193d1868 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/list-logs.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.list_logs( + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-python/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..72a392465a2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/list-mfa-factors.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.list_mfa_factors() diff --git a/docs/examples/1.7.x/server-python/examples/account/list-sessions.md b/docs/examples/1.7.x/server-python/examples/account/list-sessions.md new file mode 100644 index 00000000000..c553a7bce21 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/list-sessions.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.list_sessions() diff --git a/docs/examples/1.7.x/server-python/examples/account/update-email.md b/docs/examples/1.7.x/server-python/examples/account/update-email.md new file mode 100644 index 00000000000..14de4fd41e3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-email.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_email( + email = 'email@example.com', + password = 'password' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-python/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..7083d096422 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-m-f-a.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_mfa( + mfa = False +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-python/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..01460830306 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.update_magic_url_session( + user_id = '<USER_ID>', + secret = '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-python/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..d53607fe10c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-mfa-authenticator.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.account import Account +from appwrite.enums import AuthenticatorType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_mfa_authenticator( + type = AuthenticatorType.TOTP, + otp = '<OTP>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-python/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..cfc58c58a2d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-mfa-challenge.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_mfa_challenge( + challenge_id = '<CHALLENGE_ID>', + otp = '<OTP>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-python/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..51718eb03af --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_mfa_recovery_codes() diff --git a/docs/examples/1.7.x/server-python/examples/account/update-name.md b/docs/examples/1.7.x/server-python/examples/account/update-name.md new file mode 100644 index 00000000000..534a94e8bb1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-name.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_name( + name = '<NAME>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-password.md b/docs/examples/1.7.x/server-python/examples/account/update-password.md new file mode 100644 index 00000000000..3c072e32d79 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-password.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_password( + password = '', + old_password = 'password' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-python/examples/account/update-phone-session.md new file mode 100644 index 00000000000..52e77233a6c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-phone-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account(client) + +result = account.update_phone_session( + user_id = '<USER_ID>', + secret = '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-python/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..bcc57dee719 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-phone-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_phone_verification( + user_id = '<USER_ID>', + secret = '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-phone.md b/docs/examples/1.7.x/server-python/examples/account/update-phone.md new file mode 100644 index 00000000000..a2cb7d3c831 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-phone.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_phone( + phone = '+12065550100', + password = 'password' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-prefs.md b/docs/examples/1.7.x/server-python/examples/account/update-prefs.md new file mode 100644 index 00000000000..e2ac7a28c1c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-prefs.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_prefs( + prefs = {} +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-recovery.md b/docs/examples/1.7.x/server-python/examples/account/update-recovery.md new file mode 100644 index 00000000000..ed140abc0fb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-recovery.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_recovery( + user_id = '<USER_ID>', + secret = '<SECRET>', + password = '' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-session.md b/docs/examples/1.7.x/server-python/examples/account/update-session.md new file mode 100644 index 00000000000..abee773edcb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_session( + session_id = '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/account/update-status.md b/docs/examples/1.7.x/server-python/examples/account/update-status.md new file mode 100644 index 00000000000..a5272f09ded --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-status.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_status() diff --git a/docs/examples/1.7.x/server-python/examples/account/update-verification.md b/docs/examples/1.7.x/server-python/examples/account/update-verification.md new file mode 100644 index 00000000000..fbc7af5302f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/account/update-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +account = Account(client) + +result = account.update_verification( + user_id = '<USER_ID>', + secret = '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-python/examples/avatars/get-browser.md new file mode 100644 index 00000000000..ff11b8b46f1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-browser.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars +from appwrite.enums import Browser + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_browser( + code = Browser.AVANT_BROWSER, + width = 0, # optional + height = 0, # optional + quality = -1 # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-python/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..286f4d346c4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-credit-card.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars +from appwrite.enums import CreditCard + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_credit_card( + code = CreditCard.AMERICAN_EXPRESS, + width = 0, # optional + height = 0, # optional + quality = -1 # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-python/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..f034ea41f33 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-favicon.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_favicon( + url = 'https://example.com' +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-python/examples/avatars/get-flag.md new file mode 100644 index 00000000000..6365a78b47e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-flag.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars +from appwrite.enums import Flag + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_flag( + code = Flag.AFGHANISTAN, + width = 0, # optional + height = 0, # optional + quality = -1 # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-image.md b/docs/examples/1.7.x/server-python/examples/avatars/get-image.md new file mode 100644 index 00000000000..9272c4d8fb4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_image( + url = 'https://example.com', + width = 0, # optional + height = 0 # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-python/examples/avatars/get-initials.md new file mode 100644 index 00000000000..2729ff51332 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-initials.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_initials( + name = '<NAME>', # optional + width = 0, # optional + height = 0, # optional + background = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-python/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..3fb76a7f7cc --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/avatars/get-q-r.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +avatars = Avatars(client) + +result = avatars.get_qr( + text = '<TEXT>', + size = 1, # optional + margin = 0, # optional + download = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..f12f446d30c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-boolean-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_boolean_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = False, # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-collection.md b/docs/examples/1.7.x/server-python/examples/databases/create-collection.md new file mode 100644 index 00000000000..596d4a93833 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-collection.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_collection( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + name = '<NAME>', + permissions = ["read("any")"], # optional + document_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..8fd59e694fa --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-datetime-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_datetime_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-document.md b/docs/examples/1.7.x/server-python/examples/databases/create-document.md new file mode 100644 index 00000000000..1a8500b0f26 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-document.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_session('') # The user session to authenticate with +client.set_key('<YOUR_API_KEY>') # Your secret API key +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token + +databases = Databases(client) + +result = databases.create_document( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + document_id = '<DOCUMENT_ID>', + data = {}, + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-documents.md b/docs/examples/1.7.x/server-python/examples/databases/create-documents.md new file mode 100644 index 00000000000..7c6ef24bdbe --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + documents = [] +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..230567aa469 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-email-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_email_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = 'email@example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..de1ceb9f1f8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-enum-attribute.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_enum_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + elements = [], + required = False, + default = '<DEFAULT>', # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..53305c8d4e8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-float-attribute.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_float_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-index.md b/docs/examples/1.7.x/server-python/examples/databases/create-index.md new file mode 100644 index 00000000000..f7bb455d079 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-index.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases +from appwrite.enums import IndexType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_index( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + type = IndexType.KEY, + attributes = [], + orders = [], # optional + lengths = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..92e8b0f86aa --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-integer-attribute.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_integer_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + min = None, # optional + max = None, # optional + default = None, # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..a7f424b22c8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-ip-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_ip_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..6c8f4dc5bbe --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-relationship-attribute.md @@ -0,0 +1,21 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases +from appwrite.enums import RelationshipType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_relationship_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + related_collection_id = '<RELATED_COLLECTION_ID>', + type = RelationshipType.ONETOONE, + two_way = False, # optional + key = '', # optional + two_way_key = '', # optional + on_delete = RelationMutate.CASCADE # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..dc434cccaff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-string-attribute.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_string_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + size = 1, + required = False, + default = '<DEFAULT>', # optional + array = False, # optional + encrypt = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..af375733dd3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create-url-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create_url_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = 'https://example.com', # optional + array = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/create.md b/docs/examples/1.7.x/server-python/examples/databases/create.md new file mode 100644 index 00000000000..0492203e4c1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/create.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.create( + database_id = '<DATABASE_ID>', + name = '<NAME>', + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..e1c4eecd01e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/delete-attribute.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-python/examples/databases/delete-collection.md new file mode 100644 index 00000000000..02f1e1c536b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/delete-collection.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete_collection( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/delete-document.md b/docs/examples/1.7.x/server-python/examples/databases/delete-document.md new file mode 100644 index 00000000000..57f8b3bd9d1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/delete-document.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +databases = Databases(client) + +result = databases.delete_document( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + document_id = '<DOCUMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-python/examples/databases/delete-documents.md new file mode 100644 index 00000000000..a315f0c200b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/delete-index.md b/docs/examples/1.7.x/server-python/examples/databases/delete-index.md new file mode 100644 index 00000000000..006006421d2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/delete-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete_index( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/delete.md b/docs/examples/1.7.x/server-python/examples/databases/delete.md new file mode 100644 index 00000000000..be64e8c6282 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete( + database_id = '<DATABASE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/get-attribute.md new file mode 100644 index 00000000000..dcdb0a6ea9b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/get-attribute.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.get_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/get-collection.md b/docs/examples/1.7.x/server-python/examples/databases/get-collection.md new file mode 100644 index 00000000000..0833b4fd7e8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/get-collection.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.get_collection( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/get-document.md b/docs/examples/1.7.x/server-python/examples/databases/get-document.md new file mode 100644 index 00000000000..aff5008fa0d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/get-document.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +databases = Databases(client) + +result = databases.get_document( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + document_id = '<DOCUMENT_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/get-index.md b/docs/examples/1.7.x/server-python/examples/databases/get-index.md new file mode 100644 index 00000000000..69716830728 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/get-index.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.get_index( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/get.md b/docs/examples/1.7.x/server-python/examples/databases/get.md new file mode 100644 index 00000000000..c8191a37778 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/get.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.get( + database_id = '<DATABASE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-python/examples/databases/list-attributes.md new file mode 100644 index 00000000000..c97a5ced646 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/list-attributes.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.list_attributes( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/list-collections.md b/docs/examples/1.7.x/server-python/examples/databases/list-collections.md new file mode 100644 index 00000000000..17d0a3d8782 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/list-collections.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.list_collections( + database_id = '<DATABASE_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/list-documents.md b/docs/examples/1.7.x/server-python/examples/databases/list-documents.md new file mode 100644 index 00000000000..8b450cd0206 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/list-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +databases = Databases(client) + +result = databases.list_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-python/examples/databases/list-indexes.md new file mode 100644 index 00000000000..1457151a4e0 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/list-indexes.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.list_indexes( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/list.md b/docs/examples/1.7.x/server-python/examples/databases/list.md new file mode 100644 index 00000000000..58336c9f896 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.list( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..a0f72a49fb6 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-boolean-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_boolean_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = False, + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-collection.md b/docs/examples/1.7.x/server-python/examples/databases/update-collection.md new file mode 100644 index 00000000000..2e5be50581e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-collection.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_collection( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + name = '<NAME>', + permissions = ["read("any")"], # optional + document_security = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..29bc6be4d18 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-datetime-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_datetime_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-document.md b/docs/examples/1.7.x/server-python/examples/databases/update-document.md new file mode 100644 index 00000000000..9ef65279342 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-document.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +databases = Databases(client) + +result = databases.update_document( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + document_id = '<DOCUMENT_ID>', + data = {}, # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-documents.md b/docs/examples/1.7.x/server-python/examples/databases/update-documents.md new file mode 100644 index 00000000000..5a50d1a9124 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + data = {}, # optional + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..c833789a37b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-email-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_email_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = 'email@example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..6186a72a663 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-enum-attribute.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_enum_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + elements = [], + required = False, + default = '<DEFAULT>', + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..68cb7d79294 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-float-attribute.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_float_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..05c6bfe9158 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-integer-attribute.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_integer_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..550d3af6417 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-ip-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_ip_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '', + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..3b6c8e93e98 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-relationship-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_relationship_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..5b66fb015ce --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-string-attribute.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_string_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = '<DEFAULT>', + size = 1, # optional + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-python/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..4a6202760f2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update-url-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_url_attribute( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + key = '', + required = False, + default = 'https://example.com', + new_key = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/update.md b/docs/examples/1.7.x/server-python/examples/databases/update.md new file mode 100644 index 00000000000..35d2c0cc408 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/update.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update( + database_id = '<DATABASE_ID>', + name = '<NAME>', + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-python/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..99720649d6a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.upsert_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + documents = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/create-deployment.md new file mode 100644 index 00000000000..07740057299 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create-deployment.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions +from appwrite.input_file import InputFile + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.create_deployment( + function_id = '<FUNCTION_ID>', + code = InputFile.from_path('file.png'), + activate = False, + entrypoint = '<ENTRYPOINT>', # optional + commands = '<COMMANDS>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..79315e4a1c0 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.create_duplicate_deployment( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>', + build_id = '<BUILD_ID>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create-execution.md b/docs/examples/1.7.x/server-python/examples/functions/create-execution.md new file mode 100644 index 00000000000..b41c7e376c3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create-execution.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +functions = Functions(client) + +result = functions.create_execution( + function_id = '<FUNCTION_ID>', + body = '<BODY>', # optional + async = False, # optional + path = '<PATH>', # optional + method = ExecutionMethod.GET, # optional + headers = {}, # optional + scheduled_at = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..6083cc1cb36 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create-template-deployment.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.create_template_deployment( + function_id = '<FUNCTION_ID>', + repository = '<REPOSITORY>', + owner = '<OWNER>', + root_directory = '<ROOT_DIRECTORY>', + version = '<VERSION>', + activate = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create-variable.md b/docs/examples/1.7.x/server-python/examples/functions/create-variable.md new file mode 100644 index 00000000000..2089830effe --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create-variable.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.create_variable( + function_id = '<FUNCTION_ID>', + key = '<KEY>', + value = '<VALUE>', + secret = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..4004baec27a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create-vcs-deployment.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions +from appwrite.enums import VCSDeploymentType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.create_vcs_deployment( + function_id = '<FUNCTION_ID>', + type = VCSDeploymentType.BRANCH, + reference = '<REFERENCE>', + activate = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/create.md b/docs/examples/1.7.x/server-python/examples/functions/create.md new file mode 100644 index 00000000000..8758e27e502 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/create.md @@ -0,0 +1,31 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions +from appwrite.enums import + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.create( + function_id = '<FUNCTION_ID>', + name = '<NAME>', + runtime = .NODE_14_5, + execute = ["any"], # optional + events = [], # optional + schedule = '', # optional + timeout = 1, # optional + enabled = False, # optional + logging = False, # optional + entrypoint = '<ENTRYPOINT>', # optional + commands = '<COMMANDS>', # optional + scopes = [], # optional + installation_id = '<INSTALLATION_ID>', # optional + provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch = '<PROVIDER_BRANCH>', # optional + provider_silent_mode = False, # optional + provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>', # optional + specification = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..f874b2d2706 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/delete-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.delete_deployment( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-python/examples/functions/delete-execution.md new file mode 100644 index 00000000000..df7ce7cb5b5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.delete_execution( + function_id = '<FUNCTION_ID>', + execution_id = '<EXECUTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-python/examples/functions/delete-variable.md new file mode 100644 index 00000000000..a6e3dc853ce --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/delete-variable.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.delete_variable( + function_id = '<FUNCTION_ID>', + variable_id = '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/delete.md b/docs/examples/1.7.x/server-python/examples/functions/delete.md new file mode 100644 index 00000000000..ed2fef76c72 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.delete( + function_id = '<FUNCTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-python/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..1b0673c4685 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/get-deployment-download.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.get_deployment_download( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>', + type = DeploymentDownloadType.SOURCE # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/get-deployment.md new file mode 100644 index 00000000000..59a1374e0fc --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/get-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.get_deployment( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/get-execution.md b/docs/examples/1.7.x/server-python/examples/functions/get-execution.md new file mode 100644 index 00000000000..a299f35195b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +functions = Functions(client) + +result = functions.get_execution( + function_id = '<FUNCTION_ID>', + execution_id = '<EXECUTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/get-variable.md b/docs/examples/1.7.x/server-python/examples/functions/get-variable.md new file mode 100644 index 00000000000..629948e9091 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/get-variable.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.get_variable( + function_id = '<FUNCTION_ID>', + variable_id = '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/get.md b/docs/examples/1.7.x/server-python/examples/functions/get.md new file mode 100644 index 00000000000..eeab5a556b1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/get.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.get( + function_id = '<FUNCTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-python/examples/functions/list-deployments.md new file mode 100644 index 00000000000..4eb92f60dff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/list-deployments.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.list_deployments( + function_id = '<FUNCTION_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/list-executions.md b/docs/examples/1.7.x/server-python/examples/functions/list-executions.md new file mode 100644 index 00000000000..300fc0e51d4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +functions = Functions(client) + +result = functions.list_executions( + function_id = '<FUNCTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-python/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..9c89a36f0c8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/list-runtimes.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.list_runtimes() diff --git a/docs/examples/1.7.x/server-python/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-python/examples/functions/list-specifications.md new file mode 100644 index 00000000000..d7d0036d354 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.list_specifications() diff --git a/docs/examples/1.7.x/server-python/examples/functions/list-variables.md b/docs/examples/1.7.x/server-python/examples/functions/list-variables.md new file mode 100644 index 00000000000..ebc19c5ba44 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/list-variables.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.list_variables( + function_id = '<FUNCTION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/list.md b/docs/examples/1.7.x/server-python/examples/functions/list.md new file mode 100644 index 00000000000..b1d696d25a8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.list( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-python/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..6c6a8bf1214 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/update-deployment-status.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.update_deployment_status( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-python/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..da143091777 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/update-function-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.update_function_deployment( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/update-variable.md b/docs/examples/1.7.x/server-python/examples/functions/update-variable.md new file mode 100644 index 00000000000..f8bcc0376c8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/update-variable.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.update_variable( + function_id = '<FUNCTION_ID>', + variable_id = '<VARIABLE_ID>', + key = '<KEY>', + value = '<VALUE>', # optional + secret = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/functions/update.md b/docs/examples/1.7.x/server-python/examples/functions/update.md new file mode 100644 index 00000000000..64ee39b29d6 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/functions/update.md @@ -0,0 +1,30 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.update( + function_id = '<FUNCTION_ID>', + name = '<NAME>', + runtime = .NODE_14_5, # optional + execute = ["any"], # optional + events = [], # optional + schedule = '', # optional + timeout = 1, # optional + enabled = False, # optional + logging = False, # optional + entrypoint = '<ENTRYPOINT>', # optional + commands = '<COMMANDS>', # optional + scopes = [], # optional + installation_id = '<INSTALLATION_ID>', # optional + provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch = '<PROVIDER_BRANCH>', # optional + provider_silent_mode = False, # optional + provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>', # optional + specification = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/graphql/mutation.md b/docs/examples/1.7.x/server-python/examples/graphql/mutation.md new file mode 100644 index 00000000000..189892a4adb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/graphql/mutation.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.graphql import Graphql + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +graphql = Graphql(client) + +result = graphql.mutation( + query = {} +) diff --git a/docs/examples/1.7.x/server-python/examples/graphql/query.md b/docs/examples/1.7.x/server-python/examples/graphql/query.md new file mode 100644 index 00000000000..585a5029b5a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/graphql/query.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.graphql import Graphql + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +graphql = Graphql(client) + +result = graphql.query( + query = {} +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-python/examples/health/get-antivirus.md new file mode 100644 index 00000000000..2b621472eeb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-antivirus.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_antivirus() diff --git a/docs/examples/1.7.x/server-python/examples/health/get-cache.md b/docs/examples/1.7.x/server-python/examples/health/get-cache.md new file mode 100644 index 00000000000..595c4bf0a5f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-cache.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_cache() diff --git a/docs/examples/1.7.x/server-python/examples/health/get-certificate.md b/docs/examples/1.7.x/server-python/examples/health/get-certificate.md new file mode 100644 index 00000000000..5b3e2c0ad31 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-certificate.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_certificate( + domain = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-d-b.md b/docs/examples/1.7.x/server-python/examples/health/get-d-b.md new file mode 100644 index 00000000000..47c7bd8efb5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-d-b.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_db() diff --git a/docs/examples/1.7.x/server-python/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-python/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..5362a2d02ad --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-failed-jobs.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.health import Health +from appwrite.enums import + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_failed_jobs( + name = .V1_DATABASE, + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-python/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..e5115d06b8d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-pub-sub.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_pub_sub() diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..18ed8e30237 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-builds.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_builds( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..b0a29e2d5b0 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-certificates.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_certificates( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..491d1f7c35c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-databases.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_databases( + name = '<NAME>', # optional + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..fa860c6111a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-deletes.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_deletes( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..d4ca9388d95 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-functions.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_functions( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..1479f03634c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-logs.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_logs( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..6835efeaa46 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-mails.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_mails( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..34cbad2f311 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-messaging.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_messaging( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..019db4e8119 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-migrations.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_migrations( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..92aebc3c915 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_stats_resources( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..266ca828b1d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-usage.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_usage( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-python/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..df5e2d56db0 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-queue-webhooks.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_webhooks( + threshold = None # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-python/examples/health/get-storage-local.md new file mode 100644 index 00000000000..7d2ea44f454 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-storage-local.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_storage_local() diff --git a/docs/examples/1.7.x/server-python/examples/health/get-storage.md b/docs/examples/1.7.x/server-python/examples/health/get-storage.md new file mode 100644 index 00000000000..821d9f39867 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-storage.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_storage() diff --git a/docs/examples/1.7.x/server-python/examples/health/get-time.md b/docs/examples/1.7.x/server-python/examples/health/get-time.md new file mode 100644 index 00000000000..907e96499b5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get-time.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_time() diff --git a/docs/examples/1.7.x/server-python/examples/health/get.md b/docs/examples/1.7.x/server-python/examples/health/get.md new file mode 100644 index 00000000000..c544fcc9b66 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/health/get.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get() diff --git a/docs/examples/1.7.x/server-python/examples/locale/get.md b/docs/examples/1.7.x/server-python/examples/locale/get.md new file mode 100644 index 00000000000..6f2a877b0cf --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/get.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.get() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-codes.md b/docs/examples/1.7.x/server-python/examples/locale/list-codes.md new file mode 100644 index 00000000000..5f3e501fe13 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-codes.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_codes() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-continents.md b/docs/examples/1.7.x/server-python/examples/locale/list-continents.md new file mode 100644 index 00000000000..0aead81734c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-continents.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_continents() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-python/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..f88e331f430 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-countries-e-u.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_countries_eu() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-python/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..b1fdc1ae517 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-countries-phones.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_countries_phones() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-countries.md b/docs/examples/1.7.x/server-python/examples/locale/list-countries.md new file mode 100644 index 00000000000..0c5b23cdd15 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-countries.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_countries() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-python/examples/locale/list-currencies.md new file mode 100644 index 00000000000..20009d65690 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-currencies.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_currencies() diff --git a/docs/examples/1.7.x/server-python/examples/locale/list-languages.md b/docs/examples/1.7.x/server-python/examples/locale/list-languages.md new file mode 100644 index 00000000000..1962a8399e1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/locale/list-languages.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +locale = Locale(client) + +result = locale.list_languages() diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..b57fa00f238 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-apns-provider.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_apns_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + auth_key = '<AUTH_KEY>', # optional + auth_key_id = '<AUTH_KEY_ID>', # optional + team_id = '<TEAM_ID>', # optional + bundle_id = '<BUNDLE_ID>', # optional + sandbox = False, # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-email.md b/docs/examples/1.7.x/server-python/examples/messaging/create-email.md new file mode 100644 index 00000000000..8b4c9d267ea --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-email.md @@ -0,0 +1,24 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_email( + message_id = '<MESSAGE_ID>', + subject = '<SUBJECT>', + content = '<CONTENT>', + topics = [], # optional + users = [], # optional + targets = [], # optional + cc = [], # optional + bcc = [], # optional + attachments = [], # optional + draft = False, # optional + html = False, # optional + scheduled_at = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..9c40eb78289 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-fcm-provider.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_fcm_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + service_account_json = {}, # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..6703f6fdccb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,22 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_mailgun_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + api_key = '<API_KEY>', # optional + domain = '<DOMAIN>', # optional + is_eu_region = False, # optional + from_name = '<FROM_NAME>', # optional + from_email = 'email@example.com', # optional + reply_to_name = '<REPLY_TO_NAME>', # optional + reply_to_email = 'email@example.com', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..9315dcdd30d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-msg91provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_msg91_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + template_id = '<TEMPLATE_ID>', # optional + sender_id = '<SENDER_ID>', # optional + auth_key = '<AUTH_KEY>', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-push.md b/docs/examples/1.7.x/server-python/examples/messaging/create-push.md new file mode 100644 index 00000000000..8671b56a399 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-push.md @@ -0,0 +1,31 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_push( + message_id = '<MESSAGE_ID>', + title = '<TITLE>', # optional + body = '<BODY>', # optional + topics = [], # optional + users = [], # optional + targets = [], # optional + data = {}, # optional + action = '<ACTION>', # optional + image = '[ID1:ID2]', # optional + icon = '<ICON>', # optional + sound = '<SOUND>', # optional + color = '<COLOR>', # optional + tag = '<TAG>', # optional + badge = None, # optional + draft = False, # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..46ff54f1665 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_sendgrid_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + api_key = '<API_KEY>', # optional + from_name = '<FROM_NAME>', # optional + from_email = 'email@example.com', # optional + reply_to_name = '<REPLY_TO_NAME>', # optional + reply_to_email = 'email@example.com', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-python/examples/messaging/create-sms.md new file mode 100644 index 00000000000..d1c7b495b26 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-sms.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_sms( + message_id = '<MESSAGE_ID>', + content = '<CONTENT>', + topics = [], # optional + users = [], # optional + targets = [], # optional + draft = False, # optional + scheduled_at = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..99914f07796 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-smtp-provider.md @@ -0,0 +1,26 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_smtp_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + host = '<HOST>', + port = 1, # optional + username = '<USERNAME>', # optional + password = '<PASSWORD>', # optional + encryption = SmtpEncryption.NONE, # optional + auto_tls = False, # optional + mailer = '<MAILER>', # optional + from_name = '<FROM_NAME>', # optional + from_email = 'email@example.com', # optional + reply_to_name = '<REPLY_TO_NAME>', # optional + reply_to_email = 'email@example.com', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-python/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..bc0c892b485 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-subscriber.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token + +messaging = Messaging(client) + +result = messaging.create_subscriber( + topic_id = '<TOPIC_ID>', + subscriber_id = '<SUBSCRIBER_ID>', + target_id = '<TARGET_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..aff09fe8520 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-telesign-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_telesign_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + from = '+12065550100', # optional + customer_id = '<CUSTOMER_ID>', # optional + api_key = '<API_KEY>', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..46ded71cdd2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_textmagic_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + from = '+12065550100', # optional + username = '<USERNAME>', # optional + api_key = '<API_KEY>', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-python/examples/messaging/create-topic.md new file mode 100644 index 00000000000..c1cb465e9b7 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-topic.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_topic( + topic_id = '<TOPIC_ID>', + name = '<NAME>', + subscribe = ["any"] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..4438563abff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-twilio-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_twilio_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + from = '+12065550100', # optional + account_sid = '<ACCOUNT_SID>', # optional + auth_token = '<AUTH_TOKEN>', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..6ffded5b53a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/create-vonage-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.create_vonage_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', + from = '+12065550100', # optional + api_key = '<API_KEY>', # optional + api_secret = '<API_SECRET>', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..649e504c19a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/delete-provider.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.delete_provider( + provider_id = '<PROVIDER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-python/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..c012a9ac975 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/delete-subscriber.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token + +messaging = Messaging(client) + +result = messaging.delete_subscriber( + topic_id = '<TOPIC_ID>', + subscriber_id = '<SUBSCRIBER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-python/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..76f9093a5f9 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/delete-topic.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.delete_topic( + topic_id = '<TOPIC_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/delete.md b/docs/examples/1.7.x/server-python/examples/messaging/delete.md new file mode 100644 index 00000000000..0153ac90cb6 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.delete( + message_id = '<MESSAGE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/get-message.md b/docs/examples/1.7.x/server-python/examples/messaging/get-message.md new file mode 100644 index 00000000000..3fadcff7d3a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/get-message.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.get_message( + message_id = '<MESSAGE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/get-provider.md new file mode 100644 index 00000000000..58e62280531 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/get-provider.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.get_provider( + provider_id = '<PROVIDER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-python/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..ca997f21f02 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/get-subscriber.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.get_subscriber( + topic_id = '<TOPIC_ID>', + subscriber_id = '<SUBSCRIBER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-python/examples/messaging/get-topic.md new file mode 100644 index 00000000000..c238a98afe2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/get-topic.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.get_topic( + topic_id = '<TOPIC_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-python/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..f28c3e506ff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-message-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_message_logs( + message_id = '<MESSAGE_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-python/examples/messaging/list-messages.md new file mode 100644 index 00000000000..211649d5fb9 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-messages.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_messages( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-python/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..da87e5939b5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-provider-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_provider_logs( + provider_id = '<PROVIDER_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-python/examples/messaging/list-providers.md new file mode 100644 index 00000000000..03e5c4ebbcd --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-providers.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_providers( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-python/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..df8ec72911c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_subscriber_logs( + subscriber_id = '<SUBSCRIBER_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-python/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..f949b408e50 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-subscribers.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_subscribers( + topic_id = '<TOPIC_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-python/examples/messaging/list-targets.md new file mode 100644 index 00000000000..786ee42b198 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-targets.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_targets( + message_id = '<MESSAGE_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-python/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..f8a3995295b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-topic-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_topic_logs( + topic_id = '<TOPIC_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-python/examples/messaging/list-topics.md new file mode 100644 index 00000000000..1c2cefc9cdd --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/list-topics.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.list_topics( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..f695b61b8ca --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-apns-provider.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_apns_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + auth_key = '<AUTH_KEY>', # optional + auth_key_id = '<AUTH_KEY_ID>', # optional + team_id = '<TEAM_ID>', # optional + bundle_id = '<BUNDLE_ID>', # optional + sandbox = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-email.md b/docs/examples/1.7.x/server-python/examples/messaging/update-email.md new file mode 100644 index 00000000000..5731d5f29ad --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-email.md @@ -0,0 +1,24 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_email( + message_id = '<MESSAGE_ID>', + topics = [], # optional + users = [], # optional + targets = [], # optional + subject = '<SUBJECT>', # optional + content = '<CONTENT>', # optional + draft = False, # optional + html = False, # optional + cc = [], # optional + bcc = [], # optional + scheduled_at = '', # optional + attachments = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..0119d71b4f8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-fcm-provider.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_fcm_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + service_account_json = {} # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..039475ffdce --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,22 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_mailgun_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + api_key = '<API_KEY>', # optional + domain = '<DOMAIN>', # optional + is_eu_region = False, # optional + enabled = False, # optional + from_name = '<FROM_NAME>', # optional + from_email = 'email@example.com', # optional + reply_to_name = '<REPLY_TO_NAME>', # optional + reply_to_email = '<REPLY_TO_EMAIL>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..c5bd0579125 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-msg91provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_msg91_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + template_id = '<TEMPLATE_ID>', # optional + sender_id = '<SENDER_ID>', # optional + auth_key = '<AUTH_KEY>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-push.md b/docs/examples/1.7.x/server-python/examples/messaging/update-push.md new file mode 100644 index 00000000000..e3bb02e71fa --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-push.md @@ -0,0 +1,31 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_push( + message_id = '<MESSAGE_ID>', + topics = [], # optional + users = [], # optional + targets = [], # optional + title = '<TITLE>', # optional + body = '<BODY>', # optional + data = {}, # optional + action = '<ACTION>', # optional + image = '[ID1:ID2]', # optional + icon = '<ICON>', # optional + sound = '<SOUND>', # optional + color = '<COLOR>', # optional + tag = '<TAG>', # optional + badge = None, # optional + draft = False, # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..fc0a44d6cd8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,20 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_sendgrid_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + api_key = '<API_KEY>', # optional + from_name = '<FROM_NAME>', # optional + from_email = 'email@example.com', # optional + reply_to_name = '<REPLY_TO_NAME>', # optional + reply_to_email = '<REPLY_TO_EMAIL>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-python/examples/messaging/update-sms.md new file mode 100644 index 00000000000..2eec4e215b9 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-sms.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_sms( + message_id = '<MESSAGE_ID>', + topics = [], # optional + users = [], # optional + targets = [], # optional + content = '<CONTENT>', # optional + draft = False, # optional + scheduled_at = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..80019aad405 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-smtp-provider.md @@ -0,0 +1,26 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_smtp_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + host = '<HOST>', # optional + port = 1, # optional + username = '<USERNAME>', # optional + password = '<PASSWORD>', # optional + encryption = SmtpEncryption.NONE, # optional + auto_tls = False, # optional + mailer = '<MAILER>', # optional + from_name = '<FROM_NAME>', # optional + from_email = 'email@example.com', # optional + reply_to_name = '<REPLY_TO_NAME>', # optional + reply_to_email = '<REPLY_TO_EMAIL>', # optional + enabled = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..193a26f8301 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-telesign-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_telesign_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + customer_id = '<CUSTOMER_ID>', # optional + api_key = '<API_KEY>', # optional + from = '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..159f95490eb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_textmagic_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + username = '<USERNAME>', # optional + api_key = '<API_KEY>', # optional + from = '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-python/examples/messaging/update-topic.md new file mode 100644 index 00000000000..721f1606426 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-topic.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_topic( + topic_id = '<TOPIC_ID>', + name = '<NAME>', # optional + subscribe = ["any"] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..b80c55b300b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-twilio-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_twilio_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + account_sid = '<ACCOUNT_SID>', # optional + auth_token = '<AUTH_TOKEN>', # optional + from = '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-python/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..b25f416cef5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/messaging/update-vonage-provider.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.messaging import Messaging + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging(client) + +result = messaging.update_vonage_provider( + provider_id = '<PROVIDER_ID>', + name = '<NAME>', # optional + enabled = False, # optional + api_key = '<API_KEY>', # optional + api_secret = '<API_SECRET>', # optional + from = '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/create-deployment.md new file mode 100644 index 00000000000..de6472c4b00 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/create-deployment.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites +from appwrite.input_file import InputFile + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.create_deployment( + site_id = '<SITE_ID>', + code = InputFile.from_path('file.png'), + activate = False, + install_command = '<INSTALL_COMMAND>', # optional + build_command = '<BUILD_COMMAND>', # optional + output_directory = '<OUTPUT_DIRECTORY>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..d79ab9d3d1b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.create_duplicate_deployment( + site_id = '<SITE_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..ac05f9e6630 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/create-template-deployment.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.create_template_deployment( + site_id = '<SITE_ID>', + repository = '<REPOSITORY>', + owner = '<OWNER>', + root_directory = '<ROOT_DIRECTORY>', + version = '<VERSION>', + activate = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/create-variable.md b/docs/examples/1.7.x/server-python/examples/sites/create-variable.md new file mode 100644 index 00000000000..739beff61f3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/create-variable.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.create_variable( + site_id = '<SITE_ID>', + key = '<KEY>', + value = '<VALUE>', + secret = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..089e6c81418 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/create-vcs-deployment.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites +from appwrite.enums import VCSDeploymentType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.create_vcs_deployment( + site_id = '<SITE_ID>', + type = VCSDeploymentType.BRANCH, + reference = '<REFERENCE>', + activate = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/create.md b/docs/examples/1.7.x/server-python/examples/sites/create.md new file mode 100644 index 00000000000..4950cd21160 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/create.md @@ -0,0 +1,32 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites +from appwrite.enums import +from appwrite.enums import + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.create( + site_id = '<SITE_ID>', + name = '<NAME>', + framework = .ANALOG, + build_runtime = .NODE_14_5, + enabled = False, # optional + logging = False, # optional + timeout = 1, # optional + install_command = '<INSTALL_COMMAND>', # optional + build_command = '<BUILD_COMMAND>', # optional + output_directory = '<OUTPUT_DIRECTORY>', # optional + adapter = .STATIC, # optional + installation_id = '<INSTALLATION_ID>', # optional + fallback_file = '<FALLBACK_FILE>', # optional + provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch = '<PROVIDER_BRANCH>', # optional + provider_silent_mode = False, # optional + provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>', # optional + specification = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..029730ae3ff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/delete-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.delete_deployment( + site_id = '<SITE_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/delete-log.md b/docs/examples/1.7.x/server-python/examples/sites/delete-log.md new file mode 100644 index 00000000000..0b516e6840b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/delete-log.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.delete_log( + site_id = '<SITE_ID>', + log_id = '<LOG_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-python/examples/sites/delete-variable.md new file mode 100644 index 00000000000..c078813b4a3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/delete-variable.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.delete_variable( + site_id = '<SITE_ID>', + variable_id = '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/delete.md b/docs/examples/1.7.x/server-python/examples/sites/delete.md new file mode 100644 index 00000000000..60670e63e07 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.delete( + site_id = '<SITE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-python/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..d6af564217d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/get-deployment-download.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.get_deployment_download( + site_id = '<SITE_ID>', + deployment_id = '<DEPLOYMENT_ID>', + type = DeploymentDownloadType.SOURCE # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/get-deployment.md new file mode 100644 index 00000000000..c4ee1de904c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/get-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.get_deployment( + site_id = '<SITE_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/get-log.md b/docs/examples/1.7.x/server-python/examples/sites/get-log.md new file mode 100644 index 00000000000..ae5d8ac2df0 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/get-log.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.get_log( + site_id = '<SITE_ID>', + log_id = '<LOG_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/get-variable.md b/docs/examples/1.7.x/server-python/examples/sites/get-variable.md new file mode 100644 index 00000000000..7f5f0f6480c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/get-variable.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.get_variable( + site_id = '<SITE_ID>', + variable_id = '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/get.md b/docs/examples/1.7.x/server-python/examples/sites/get.md new file mode 100644 index 00000000000..f9532a0e1a5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/get.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.get( + site_id = '<SITE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-python/examples/sites/list-deployments.md new file mode 100644 index 00000000000..15ec24d2325 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/list-deployments.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.list_deployments( + site_id = '<SITE_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-python/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..6e3764695ef --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/list-frameworks.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.list_frameworks() diff --git a/docs/examples/1.7.x/server-python/examples/sites/list-logs.md b/docs/examples/1.7.x/server-python/examples/sites/list-logs.md new file mode 100644 index 00000000000..d3a9a193c1d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/list-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.list_logs( + site_id = '<SITE_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-python/examples/sites/list-specifications.md new file mode 100644 index 00000000000..93b713c4b6d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/list-specifications.md @@ -0,0 +1,11 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.list_specifications() diff --git a/docs/examples/1.7.x/server-python/examples/sites/list-variables.md b/docs/examples/1.7.x/server-python/examples/sites/list-variables.md new file mode 100644 index 00000000000..5ff78e6a1ab --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/list-variables.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.list_variables( + site_id = '<SITE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/list.md b/docs/examples/1.7.x/server-python/examples/sites/list.md new file mode 100644 index 00000000000..1b344e1d0ff --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.list( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-python/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..492ee4f7478 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/update-deployment-status.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.update_deployment_status( + site_id = '<SITE_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-python/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..69014bbbcd7 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/update-site-deployment.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.update_site_deployment( + site_id = '<SITE_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/update-variable.md b/docs/examples/1.7.x/server-python/examples/sites/update-variable.md new file mode 100644 index 00000000000..973f7f2e652 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/update-variable.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.update_variable( + site_id = '<SITE_ID>', + variable_id = '<VARIABLE_ID>', + key = '<KEY>', + value = '<VALUE>', # optional + secret = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/sites/update.md b/docs/examples/1.7.x/server-python/examples/sites/update.md new file mode 100644 index 00000000000..7d2d2865a4b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/sites/update.md @@ -0,0 +1,31 @@ +from appwrite.client import Client +from appwrite.services.sites import Sites +from appwrite.enums import + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites(client) + +result = sites.update( + site_id = '<SITE_ID>', + name = '<NAME>', + framework = .ANALOG, + enabled = False, # optional + logging = False, # optional + timeout = 1, # optional + install_command = '<INSTALL_COMMAND>', # optional + build_command = '<BUILD_COMMAND>', # optional + output_directory = '<OUTPUT_DIRECTORY>', # optional + build_runtime = .NODE_14_5, # optional + adapter = .STATIC, # optional + fallback_file = '<FALLBACK_FILE>', # optional + installation_id = '<INSTALLATION_ID>', # optional + provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch = '<PROVIDER_BRANCH>', # optional + provider_silent_mode = False, # optional + provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>', # optional + specification = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-python/examples/storage/create-bucket.md new file mode 100644 index 00000000000..9672782b5c4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/create-bucket.md @@ -0,0 +1,22 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage(client) + +result = storage.create_bucket( + bucket_id = '<BUCKET_ID>', + name = '<NAME>', + permissions = ["read("any")"], # optional + file_security = False, # optional + enabled = False, # optional + maximum_file_size = 1, # optional + allowed_file_extensions = [], # optional + compression = .NONE, # optional + encryption = False, # optional + antivirus = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/create-file.md b/docs/examples/1.7.x/server-python/examples/storage/create-file.md new file mode 100644 index 00000000000..6e57284b85d --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/create-file.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage +from appwrite.input_file import InputFile + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.create_file( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + file = InputFile.from_path('file.png'), + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-python/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..dd8e8ebc434 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/delete-bucket.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage(client) + +result = storage.delete_bucket( + bucket_id = '<BUCKET_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/delete-file.md b/docs/examples/1.7.x/server-python/examples/storage/delete-file.md new file mode 100644 index 00000000000..17bc251e50e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.delete_file( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-python/examples/storage/get-bucket.md new file mode 100644 index 00000000000..e5eeb4c097f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/get-bucket.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage(client) + +result = storage.get_bucket( + bucket_id = '<BUCKET_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-python/examples/storage/get-file-download.md new file mode 100644 index 00000000000..411abf8c790 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.get_file_download( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + token = '<TOKEN>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-python/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..47e3f23b55f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/get-file-preview.md @@ -0,0 +1,26 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.get_file_preview( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + width = 0, # optional + height = 0, # optional + gravity = ImageGravity.CENTER, # optional + quality = -1, # optional + border_width = 0, # optional + border_color = '', # optional + border_radius = 0, # optional + opacity = 0, # optional + rotation = -360, # optional + background = '', # optional + output = ImageFormat.JPG, # optional + token = '<TOKEN>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-python/examples/storage/get-file-view.md new file mode 100644 index 00000000000..85cbad79023 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.get_file_view( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + token = '<TOKEN>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/get-file.md b/docs/examples/1.7.x/server-python/examples/storage/get-file.md new file mode 100644 index 00000000000..461543e3fdf --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/get-file.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.get_file( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-python/examples/storage/list-buckets.md new file mode 100644 index 00000000000..51a1ae68365 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/list-buckets.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage(client) + +result = storage.list_buckets( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/list-files.md b/docs/examples/1.7.x/server-python/examples/storage/list-files.md new file mode 100644 index 00000000000..4034bd477da --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/list-files.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.list_files( + bucket_id = '<BUCKET_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-python/examples/storage/update-bucket.md new file mode 100644 index 00000000000..f2e741a5aa4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/update-bucket.md @@ -0,0 +1,22 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage(client) + +result = storage.update_bucket( + bucket_id = '<BUCKET_ID>', + name = '<NAME>', + permissions = ["read("any")"], # optional + file_security = False, # optional + enabled = False, # optional + maximum_file_size = 1, # optional + allowed_file_extensions = [], # optional + compression = .NONE, # optional + encryption = False, # optional + antivirus = False # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/storage/update-file.md b/docs/examples/1.7.x/server-python/examples/storage/update-file.md new file mode 100644 index 00000000000..cf1e5779bbb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/storage/update-file.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +storage = Storage(client) + +result = storage.update_file( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + name = '<NAME>', # optional + permissions = ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/create-membership.md b/docs/examples/1.7.x/server-python/examples/teams/create-membership.md new file mode 100644 index 00000000000..cb3bf731951 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/create-membership.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.create_membership( + team_id = '<TEAM_ID>', + roles = [], + email = 'email@example.com', # optional + user_id = '<USER_ID>', # optional + phone = '+12065550100', # optional + url = 'https://example.com', # optional + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/create.md b/docs/examples/1.7.x/server-python/examples/teams/create.md new file mode 100644 index 00000000000..f623151b272 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/create.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.create( + team_id = '<TEAM_ID>', + name = '<NAME>', + roles = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-python/examples/teams/delete-membership.md new file mode 100644 index 00000000000..6fb218266f3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.delete_membership( + team_id = '<TEAM_ID>', + membership_id = '<MEMBERSHIP_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/delete.md b/docs/examples/1.7.x/server-python/examples/teams/delete.md new file mode 100644 index 00000000000..056114bfad5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.delete( + team_id = '<TEAM_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/get-membership.md b/docs/examples/1.7.x/server-python/examples/teams/get-membership.md new file mode 100644 index 00000000000..3c028a5c7e5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/get-membership.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.get_membership( + team_id = '<TEAM_ID>', + membership_id = '<MEMBERSHIP_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-python/examples/teams/get-prefs.md new file mode 100644 index 00000000000..8d645897c68 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/get-prefs.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.get_prefs( + team_id = '<TEAM_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/get.md b/docs/examples/1.7.x/server-python/examples/teams/get.md new file mode 100644 index 00000000000..55f172eadda --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/get.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.get( + team_id = '<TEAM_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-python/examples/teams/list-memberships.md new file mode 100644 index 00000000000..6e6f15a284a --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/list-memberships.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.list_memberships( + team_id = '<TEAM_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/list.md b/docs/examples/1.7.x/server-python/examples/teams/list.md new file mode 100644 index 00000000000..bf91a507448 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.list( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-python/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..9c08421579b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/update-membership-status.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.update_membership_status( + team_id = '<TEAM_ID>', + membership_id = '<MEMBERSHIP_ID>', + user_id = '<USER_ID>', + secret = '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/update-membership.md b/docs/examples/1.7.x/server-python/examples/teams/update-membership.md new file mode 100644 index 00000000000..db20c5aaaef --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/update-membership.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.update_membership( + team_id = '<TEAM_ID>', + membership_id = '<MEMBERSHIP_ID>', + roles = [] +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/update-name.md b/docs/examples/1.7.x/server-python/examples/teams/update-name.md new file mode 100644 index 00000000000..160b4969321 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/update-name.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.update_name( + team_id = '<TEAM_ID>', + name = '<NAME>' +) diff --git a/docs/examples/1.7.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-python/examples/teams/update-prefs.md new file mode 100644 index 00000000000..e82da1b64f1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/teams/update-prefs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +teams = Teams(client) + +result = teams.update_prefs( + team_id = '<TEAM_ID>', + prefs = {} +) diff --git a/docs/examples/1.7.x/server-python/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-python/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..f835a0ea8d0 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/tokens/create-file-token.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tokens import Tokens + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens(client) + +result = tokens.create_file_token( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + expire = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/tokens/delete.md b/docs/examples/1.7.x/server-python/examples/tokens/delete.md new file mode 100644 index 00000000000..47619321ffd --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/tokens/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.tokens import Tokens + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens(client) + +result = tokens.delete( + token_id = '<TOKEN_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/tokens/get.md b/docs/examples/1.7.x/server-python/examples/tokens/get.md new file mode 100644 index 00000000000..0d6abb81d71 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/tokens/get.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.tokens import Tokens + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens(client) + +result = tokens.get( + token_id = '<TOKEN_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/tokens/list.md b/docs/examples/1.7.x/server-python/examples/tokens/list.md new file mode 100644 index 00000000000..2694650ed36 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/tokens/list.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.tokens import Tokens + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens(client) + +result = tokens.list( + bucket_id = '<BUCKET_ID>', + file_id = '<FILE_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/tokens/update.md b/docs/examples/1.7.x/server-python/examples/tokens/update.md new file mode 100644 index 00000000000..18b04445cc1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/tokens/update.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.tokens import Tokens + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens(client) + +result = tokens.update( + token_id = '<TOKEN_ID>', + expire = '' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-python/examples/users/create-argon2user.md new file mode 100644 index 00000000000..5e95cc26ace --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-argon2user.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_argon2_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-python/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..d3d9e21586c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-bcrypt-user.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_bcrypt_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-python/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..bed6c483e03 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_jwt( + user_id = '<USER_ID>', + session_id = '<SESSION_ID>', # optional + duration = 0 # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-python/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..b1cbb53f23f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-m-d5user.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_md5_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-python/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..64a87c05ff2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_mfa_recovery_codes( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-python/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..33f65f44d9e --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-p-h-pass-user.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_ph_pass_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-python/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..5b4c8f831ac --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-s-h-a-user.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_sha_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + password_version = PasswordHash.SHA1, # optional + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-python/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..9d644ce4caa --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_scrypt_modified_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + password_salt = '<PASSWORD_SALT>', + password_salt_separator = '<PASSWORD_SALT_SEPARATOR>', + password_signer_key = '<PASSWORD_SIGNER_KEY>', + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-python/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..f442ab9d3e2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-scrypt-user.md @@ -0,0 +1,21 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_scrypt_user( + user_id = '<USER_ID>', + email = 'email@example.com', + password = 'password', + password_salt = '<PASSWORD_SALT>', + password_cpu = None, + password_memory = None, + password_parallel = None, + password_length = None, + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-session.md b/docs/examples/1.7.x/server-python/examples/users/create-session.md new file mode 100644 index 00000000000..7e4c49fc950 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-session.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_session( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-target.md b/docs/examples/1.7.x/server-python/examples/users/create-target.md new file mode 100644 index 00000000000..dfa64ac7571 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-target.md @@ -0,0 +1,19 @@ +from appwrite.client import Client +from appwrite.services.users import Users +from appwrite.enums import MessagingProviderType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_target( + user_id = '<USER_ID>', + target_id = '<TARGET_ID>', + provider_type = MessagingProviderType.EMAIL, + identifier = '<IDENTIFIER>', + provider_id = '<PROVIDER_ID>', # optional + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create-token.md b/docs/examples/1.7.x/server-python/examples/users/create-token.md new file mode 100644 index 00000000000..b40658c3129 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create-token.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_token( + user_id = '<USER_ID>', + length = 4, # optional + expire = 60 # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/create.md b/docs/examples/1.7.x/server-python/examples/users/create.md new file mode 100644 index 00000000000..4c51a3fffbb --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/create.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create( + user_id = '<USER_ID>', + email = 'email@example.com', # optional + phone = '+12065550100', # optional + password = '', # optional + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/delete-identity.md b/docs/examples/1.7.x/server-python/examples/users/delete-identity.md new file mode 100644 index 00000000000..412fbd393a5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/delete-identity.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.delete_identity( + identity_id = '<IDENTITY_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-python/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..64724983444 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.users import Users +from appwrite.enums import AuthenticatorType + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.delete_mfa_authenticator( + user_id = '<USER_ID>', + type = AuthenticatorType.TOTP +) diff --git a/docs/examples/1.7.x/server-python/examples/users/delete-session.md b/docs/examples/1.7.x/server-python/examples/users/delete-session.md new file mode 100644 index 00000000000..815a96ed377 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/delete-session.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.delete_session( + user_id = '<USER_ID>', + session_id = '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-python/examples/users/delete-sessions.md new file mode 100644 index 00000000000..2dde88f4713 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/delete-sessions.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.delete_sessions( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/delete-target.md b/docs/examples/1.7.x/server-python/examples/users/delete-target.md new file mode 100644 index 00000000000..287f5a26cf5 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/delete-target.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.delete_target( + user_id = '<USER_ID>', + target_id = '<TARGET_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/delete.md b/docs/examples/1.7.x/server-python/examples/users/delete.md new file mode 100644 index 00000000000..7032b0f81e2 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/delete.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.delete( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-python/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..bca43b08ec4 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.get_mfa_recovery_codes( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/get-prefs.md b/docs/examples/1.7.x/server-python/examples/users/get-prefs.md new file mode 100644 index 00000000000..ec9d363f8d1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/get-prefs.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.get_prefs( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/get-target.md b/docs/examples/1.7.x/server-python/examples/users/get-target.md new file mode 100644 index 00000000000..3b80b1ff7f8 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/get-target.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.get_target( + user_id = '<USER_ID>', + target_id = '<TARGET_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/get.md b/docs/examples/1.7.x/server-python/examples/users/get.md new file mode 100644 index 00000000000..267086a3df1 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/get.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.get( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list-identities.md b/docs/examples/1.7.x/server-python/examples/users/list-identities.md new file mode 100644 index 00000000000..0fc7811a3fa --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list-identities.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list_identities( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list-logs.md b/docs/examples/1.7.x/server-python/examples/users/list-logs.md new file mode 100644 index 00000000000..6cbbe498cb6 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list_logs( + user_id = '<USER_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list-memberships.md b/docs/examples/1.7.x/server-python/examples/users/list-memberships.md new file mode 100644 index 00000000000..c0d2f2a468b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list-memberships.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list_memberships( + user_id = '<USER_ID>', + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-python/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..a2b59895e8c --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list-mfa-factors.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list_mfa_factors( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list-sessions.md b/docs/examples/1.7.x/server-python/examples/users/list-sessions.md new file mode 100644 index 00000000000..77b04c935ea --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list-sessions.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list_sessions( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list-targets.md b/docs/examples/1.7.x/server-python/examples/users/list-targets.md new file mode 100644 index 00000000000..14107fa296f --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list-targets.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list_targets( + user_id = '<USER_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/list.md b/docs/examples/1.7.x/server-python/examples/users/list.md new file mode 100644 index 00000000000..778f33935d7 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.list( + queries = [], # optional + search = '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-python/examples/users/update-email-verification.md new file mode 100644 index 00000000000..2605861416b --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-email-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_email_verification( + user_id = '<USER_ID>', + email_verification = False +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-email.md b/docs/examples/1.7.x/server-python/examples/users/update-email.md new file mode 100644 index 00000000000..c4a468e2345 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-email.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_email( + user_id = '<USER_ID>', + email = 'email@example.com' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-labels.md b/docs/examples/1.7.x/server-python/examples/users/update-labels.md new file mode 100644 index 00000000000..b9af53a50e3 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-labels.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_labels( + user_id = '<USER_ID>', + labels = [] +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-python/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..c0990e1ef78 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_mfa_recovery_codes( + user_id = '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-mfa.md b/docs/examples/1.7.x/server-python/examples/users/update-mfa.md new file mode 100644 index 00000000000..9b357011850 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-mfa.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_mfa( + user_id = '<USER_ID>', + mfa = False +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-name.md b/docs/examples/1.7.x/server-python/examples/users/update-name.md new file mode 100644 index 00000000000..1e328b4c489 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-name.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_name( + user_id = '<USER_ID>', + name = '<NAME>' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-password.md b/docs/examples/1.7.x/server-python/examples/users/update-password.md new file mode 100644 index 00000000000..d104184cadf --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-password.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_password( + user_id = '<USER_ID>', + password = '' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-python/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..1d2656c3f18 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-phone-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_phone_verification( + user_id = '<USER_ID>', + phone_verification = False +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-phone.md b/docs/examples/1.7.x/server-python/examples/users/update-phone.md new file mode 100644 index 00000000000..14826bb54cd --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-phone.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_phone( + user_id = '<USER_ID>', + number = '+12065550100' +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-prefs.md b/docs/examples/1.7.x/server-python/examples/users/update-prefs.md new file mode 100644 index 00000000000..76903b76112 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-prefs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_prefs( + user_id = '<USER_ID>', + prefs = {} +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-status.md b/docs/examples/1.7.x/server-python/examples/users/update-status.md new file mode 100644 index 00000000000..49c0516ee47 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-status.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_status( + user_id = '<USER_ID>', + status = False +) diff --git a/docs/examples/1.7.x/server-python/examples/users/update-target.md b/docs/examples/1.7.x/server-python/examples/users/update-target.md new file mode 100644 index 00000000000..119c5fab889 --- /dev/null +++ b/docs/examples/1.7.x/server-python/examples/users/update-target.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.update_target( + user_id = '<USER_ID>', + target_id = '<TARGET_ID>', + identifier = '<IDENTIFIER>', # optional + provider_id = '<PROVIDER_ID>', # optional + name = '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-rest/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..2079b045d1b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-anonymous-session.md @@ -0,0 +1,6 @@ +POST /v1/account/sessions/anonymous HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-rest/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..8aee0e5b158 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-email-password-session.md @@ -0,0 +1,10 @@ +POST /v1/account/sessions/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "email": "email@example.com", + "password": "password" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-email-token.md b/docs/examples/1.7.x/server-rest/examples/account/create-email-token.md new file mode 100644 index 00000000000..98c5c9b454e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-email-token.md @@ -0,0 +1,11 @@ +POST /v1/account/tokens/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "phrase": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-rest/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..a8da4695c36 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-j-w-t.md @@ -0,0 +1,6 @@ +POST /v1/account/jwts HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-rest/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..a3db43516a6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,12 @@ +POST /v1/account/tokens/magic-url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "url": "https://example.com", + "phrase": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-rest/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..8d6b52b8773 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-mfa-authenticator.md @@ -0,0 +1,8 @@ +POST /v1/account/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-rest/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..9a84c0ef697 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-mfa-challenge.md @@ -0,0 +1,9 @@ +POST /v1/account/mfa/challenge HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "factor": "email" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-rest/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..797824d5d75 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,8 @@ +POST /v1/account/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-rest/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..dd1dd3ec5ea --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-o-auth2token.md @@ -0,0 +1,4 @@ +GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-rest/examples/account/create-phone-token.md new file mode 100644 index 00000000000..eef1021d9ee --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-phone-token.md @@ -0,0 +1,10 @@ +POST /v1/account/tokens/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "phone": "+12065550100" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-rest/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..d161e580ffc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-phone-verification.md @@ -0,0 +1,8 @@ +POST /v1/account/verification/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-recovery.md b/docs/examples/1.7.x/server-rest/examples/account/create-recovery.md new file mode 100644 index 00000000000..c195b96a5e0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-recovery.md @@ -0,0 +1,12 @@ +POST /v1/account/recovery HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "email": "email@example.com", + "url": "https://example.com" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-session.md b/docs/examples/1.7.x/server-rest/examples/account/create-session.md new file mode 100644 index 00000000000..18e3b1acddd --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-session.md @@ -0,0 +1,10 @@ +POST /v1/account/sessions/token HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create-verification.md b/docs/examples/1.7.x/server-rest/examples/account/create-verification.md new file mode 100644 index 00000000000..1185d3a875c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create-verification.md @@ -0,0 +1,11 @@ +POST /v1/account/verification HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "url": "https://example.com" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/create.md b/docs/examples/1.7.x/server-rest/examples/account/create.md new file mode 100644 index 00000000000..f546c07de5e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/create.md @@ -0,0 +1,12 @@ +POST /v1/account HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": , + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/delete-identity.md b/docs/examples/1.7.x/server-rest/examples/account/delete-identity.md new file mode 100644 index 00000000000..edb036a593f --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/delete-identity.md @@ -0,0 +1,8 @@ +DELETE /v1/account/identities/{identityId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-rest/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..de58948195a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,8 @@ +DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/delete-session.md b/docs/examples/1.7.x/server-rest/examples/account/delete-session.md new file mode 100644 index 00000000000..9454a849139 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/delete-session.md @@ -0,0 +1,8 @@ +DELETE /v1/account/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-rest/examples/account/delete-sessions.md new file mode 100644 index 00000000000..97931c12e52 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/delete-sessions.md @@ -0,0 +1,8 @@ +DELETE /v1/account/sessions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-rest/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..81edee5234c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,6 @@ +GET /v1/account/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.7.x/server-rest/examples/account/get-prefs.md new file mode 100644 index 00000000000..13a0b74d8fb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/get-prefs.md @@ -0,0 +1,6 @@ +GET /v1/account/prefs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/get-session.md b/docs/examples/1.7.x/server-rest/examples/account/get-session.md new file mode 100644 index 00000000000..9417755b049 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/get-session.md @@ -0,0 +1,6 @@ +GET /v1/account/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/get.md b/docs/examples/1.7.x/server-rest/examples/account/get.md new file mode 100644 index 00000000000..023a6d116fb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/get.md @@ -0,0 +1,6 @@ +GET /v1/account HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/list-identities.md b/docs/examples/1.7.x/server-rest/examples/account/list-identities.md new file mode 100644 index 00000000000..65edceb8d6c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/list-identities.md @@ -0,0 +1,6 @@ +GET /v1/account/identities HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/list-logs.md b/docs/examples/1.7.x/server-rest/examples/account/list-logs.md new file mode 100644 index 00000000000..71e2e138efa --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/list-logs.md @@ -0,0 +1,6 @@ +GET /v1/account/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-rest/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..217ec6cb304 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/list-mfa-factors.md @@ -0,0 +1,6 @@ +GET /v1/account/mfa/factors HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.7.x/server-rest/examples/account/list-sessions.md new file mode 100644 index 00000000000..7bff23f25b7 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/list-sessions.md @@ -0,0 +1,6 @@ +GET /v1/account/sessions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-email.md b/docs/examples/1.7.x/server-rest/examples/account/update-email.md new file mode 100644 index 00000000000..fc3baaf4a43 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-email.md @@ -0,0 +1,12 @@ +PATCH /v1/account/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "email": "email@example.com", + "password": "password" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-rest/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..803c47a8577 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-m-f-a.md @@ -0,0 +1,11 @@ +PATCH /v1/account/mfa HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "mfa": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-rest/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..3238322e0f0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,10 @@ +PUT /v1/account/sessions/magic-url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-rest/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..9d3e5dceeab --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-mfa-authenticator.md @@ -0,0 +1,11 @@ +PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "otp": "<OTP>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-rest/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..ddc27ae3344 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-mfa-challenge.md @@ -0,0 +1,12 @@ +PUT /v1/account/mfa/challenge HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "challengeId": "<CHALLENGE_ID>", + "otp": "<OTP>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-rest/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..e4ab8abb3b9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,8 @@ +PATCH /v1/account/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-name.md b/docs/examples/1.7.x/server-rest/examples/account/update-name.md new file mode 100644 index 00000000000..f2f7caa204d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-name.md @@ -0,0 +1,11 @@ +PATCH /v1/account/name HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-password.md b/docs/examples/1.7.x/server-rest/examples/account/update-password.md new file mode 100644 index 00000000000..4f69b9ab3f2 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-password.md @@ -0,0 +1,12 @@ +PATCH /v1/account/password HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "password": , + "oldPassword": "password" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-rest/examples/account/update-phone-session.md new file mode 100644 index 00000000000..f1bc27d201c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-phone-session.md @@ -0,0 +1,10 @@ +PUT /v1/account/sessions/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-rest/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..ee6f5a68ff5 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-phone-verification.md @@ -0,0 +1,12 @@ +PUT /v1/account/verification/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-phone.md b/docs/examples/1.7.x/server-rest/examples/account/update-phone.md new file mode 100644 index 00000000000..bbe602a1811 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-phone.md @@ -0,0 +1,12 @@ +PATCH /v1/account/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "phone": "+12065550100", + "password": "password" +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.7.x/server-rest/examples/account/update-prefs.md new file mode 100644 index 00000000000..aeabc2b68f7 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-prefs.md @@ -0,0 +1,11 @@ +PATCH /v1/account/prefs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "prefs": {} +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.7.x/server-rest/examples/account/update-recovery.md new file mode 100644 index 00000000000..054aacc8ede --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-recovery.md @@ -0,0 +1,13 @@ +PUT /v1/account/recovery HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>", + "password": +} diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-session.md b/docs/examples/1.7.x/server-rest/examples/account/update-session.md new file mode 100644 index 00000000000..9b2ba0e4a76 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-session.md @@ -0,0 +1,8 @@ +PATCH /v1/account/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-status.md b/docs/examples/1.7.x/server-rest/examples/account/update-status.md new file mode 100644 index 00000000000..8a3e01db0b0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-status.md @@ -0,0 +1,8 @@ +PATCH /v1/account/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/account/update-verification.md b/docs/examples/1.7.x/server-rest/examples/account/update-verification.md new file mode 100644 index 00000000000..0c5ed8b55de --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/account/update-verification.md @@ -0,0 +1,12 @@ +PUT /v1/account/verification HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-browser.md new file mode 100644 index 00000000000..3f18fa0d1eb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-browser.md @@ -0,0 +1,7 @@ +GET /v1/avatars/browsers/{code} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..59a38fe8f34 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-credit-card.md @@ -0,0 +1,7 @@ +GET /v1/avatars/credit-cards/{code} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..7a7c189da18 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-favicon.md @@ -0,0 +1,7 @@ +GET /v1/avatars/favicon HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-flag.md new file mode 100644 index 00000000000..b4cd119359d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-flag.md @@ -0,0 +1,7 @@ +GET /v1/avatars/flags/{code} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-image.md new file mode 100644 index 00000000000..ca6b5105c30 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-image.md @@ -0,0 +1,7 @@ +GET /v1/avatars/image HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-initials.md new file mode 100644 index 00000000000..eb90447158d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-initials.md @@ -0,0 +1,7 @@ +GET /v1/avatars/initials HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-rest/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..77f7a3d3829 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/avatars/get-q-r.md @@ -0,0 +1,7 @@ +GET /v1/avatars/qr HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..8ae6c2d9ff0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-boolean-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "default": false, + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-collection.md b/docs/examples/1.7.x/server-rest/examples/databases/create-collection.md new file mode 100644 index 00000000000..ea298e3706d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-collection.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/collections HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "collectionId": "<COLLECTION_ID>", + "name": "<NAME>", + "permissions": ["read(\"any\")"], + "documentSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..6ec4b332a54 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-datetime-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-document.md b/docs/examples/1.7.x/server-rest/examples/databases/create-document.md new file mode 100644 index 00000000000..a5c25315c27 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-document.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "documentId": "<DOCUMENT_ID>", + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-documents.md b/docs/examples/1.7.x/server-rest/examples/databases/create-documents.md new file mode 100644 index 00000000000..63503ebaaac --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-documents.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "documents": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..0fb7aa28147 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-email-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "default": "email@example.com", + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..ba033a02ce4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-enum-attribute.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "elements": [], + "required": false, + "default": "<DEFAULT>", + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..ee8cb7497fc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-float-attribute.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/float HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-index.md b/docs/examples/1.7.x/server-rest/examples/databases/create-index.md new file mode 100644 index 00000000000..6d9b486ed6e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-index.md @@ -0,0 +1,14 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "type": "key", + "attributes": [], + "orders": [], + "lengths": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..721f10e0c74 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-integer-attribute.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "min": 0, + "max": 0, + "default": 0, + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..61378e67806 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-ip-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "default": , + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..c519a4a4944 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-relationship-attribute.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "relatedCollectionId": "<RELATED_COLLECTION_ID>", + "type": "oneToOne", + "twoWay": false, + "key": , + "twoWayKey": , + "onDelete": "cascade" +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..7a5eafdf2ab --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-string-attribute.md @@ -0,0 +1,15 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/string HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "size": 1, + "required": false, + "default": "<DEFAULT>", + "array": false, + "encrypt": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..ea4d76ce06b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create-url-attribute.md @@ -0,0 +1,13 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/url HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": , + "required": false, + "default": "https://example.com", + "array": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/create.md b/docs/examples/1.7.x/server-rest/examples/databases/create.md new file mode 100644 index 00000000000..dab52ff67ce --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/create.md @@ -0,0 +1,12 @@ +POST /v1/databases HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "databaseId": "<DATABASE_ID>", + "name": "<NAME>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..8b7f1eee071 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/delete-attribute.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-rest/examples/databases/delete-collection.md new file mode 100644 index 00000000000..153b3a2bdd5 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/delete-collection.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/databases/delete-document.md b/docs/examples/1.7.x/server-rest/examples/databases/delete-document.md new file mode 100644 index 00000000000..ca093c91773 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/delete-document.md @@ -0,0 +1,9 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-rest/examples/databases/delete-documents.md new file mode 100644 index 00000000000..49ab276fa66 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/delete-documents.md @@ -0,0 +1,10 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "queries": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/delete-index.md b/docs/examples/1.7.x/server-rest/examples/databases/delete-index.md new file mode 100644 index 00000000000..9c27a6fd4c8 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/delete-index.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/databases/delete.md b/docs/examples/1.7.x/server-rest/examples/databases/delete.md new file mode 100644 index 00000000000..19cf58549ab --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/get-attribute.md new file mode 100644 index 00000000000..c4cd093de0e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/get-attribute.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.7.x/server-rest/examples/databases/get-collection.md new file mode 100644 index 00000000000..0e33fc4ef79 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/get-collection.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/get-document.md b/docs/examples/1.7.x/server-rest/examples/databases/get-document.md new file mode 100644 index 00000000000..b71ec4f83c2 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/get-document.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/get-index.md b/docs/examples/1.7.x/server-rest/examples/databases/get-index.md new file mode 100644 index 00000000000..5aa5aa0fb23 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/get-index.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/get.md b/docs/examples/1.7.x/server-rest/examples/databases/get.md new file mode 100644 index 00000000000..7c433306255 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/get.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-rest/examples/databases/list-attributes.md new file mode 100644 index 00000000000..e829678007f --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/list-attributes.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.7.x/server-rest/examples/databases/list-collections.md new file mode 100644 index 00000000000..0cfdce9c8e2 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/list-collections.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/collections HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.7.x/server-rest/examples/databases/list-documents.md new file mode 100644 index 00000000000..0bc5c9b7f94 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/list-documents.md @@ -0,0 +1,7 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-rest/examples/databases/list-indexes.md new file mode 100644 index 00000000000..e65ba2483ca --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/list-indexes.md @@ -0,0 +1,5 @@ +GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/list.md b/docs/examples/1.7.x/server-rest/examples/databases/list.md new file mode 100644 index 00000000000..31db5cca0d4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/list.md @@ -0,0 +1,5 @@ +GET /v1/databases HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..7a2ae34ce94 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-boolean-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": false, + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-collection.md b/docs/examples/1.7.x/server-rest/examples/databases/update-collection.md new file mode 100644 index 00000000000..4cba7f5230f --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-collection.md @@ -0,0 +1,13 @@ +PUT /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "permissions": ["read(\"any\")"], + "documentSecurity": false, + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..c9685e6c897 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-datetime-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-document.md b/docs/examples/1.7.x/server-rest/examples/databases/update-document.md new file mode 100644 index 00000000000..19b25bdf45f --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-document.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "data": {}, + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-documents.md b/docs/examples/1.7.x/server-rest/examples/databases/update-documents.md new file mode 100644 index 00000000000..f2606e3a1f4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-documents.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "data": {}, + "queries": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..eece2534599 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-email-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/email/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "email@example.com", + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..47ef1680906 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-enum-attribute.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "elements": [], + "required": false, + "default": "<DEFAULT>", + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..bb35f3450cf --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-float-attribute.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/float/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..96290f4313c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-integer-attribute.md @@ -0,0 +1,14 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "min": 0, + "max": 0, + "default": 0, + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..9e3cf7d4b59 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-ip-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": , + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..645e8f8ae45 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-relationship-attribute.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "onDelete": "cascade", + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..650b6f1b8b5 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-string-attribute.md @@ -0,0 +1,13 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/string/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "<DEFAULT>", + "size": 1, + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-rest/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..84092856775 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update-url-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/url/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "required": false, + "default": "https://example.com", + "newKey": +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/update.md b/docs/examples/1.7.x/server-rest/examples/databases/update.md new file mode 100644 index 00000000000..02efbf52708 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/update.md @@ -0,0 +1,11 @@ +PUT /v1/databases/{databaseId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-rest/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..fbe82d4a4e2 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/databases/upsert-documents.md @@ -0,0 +1,10 @@ +PUT /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "documents": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/create-deployment.md new file mode 100644 index 00000000000..5d65eff5fdc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create-deployment.md @@ -0,0 +1,30 @@ +POST /v1/functions/{functionId}/deployments HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="entrypoint" + +"<ENTRYPOINT>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="commands" + +"<COMMANDS>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="code" + +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc +e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="activate" + +false + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..898117c117c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,11 @@ +POST /v1/functions/{functionId}/deployments/duplicate HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "deploymentId": "<DEPLOYMENT_ID>", + "buildId": "<BUILD_ID>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create-execution.md b/docs/examples/1.7.x/server-rest/examples/functions/create-execution.md new file mode 100644 index 00000000000..5a4c7667cfd --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create-execution.md @@ -0,0 +1,17 @@ +POST /v1/functions/{functionId}/executions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "body": "<BODY>", + "async": false, + "path": "<PATH>", + "method": "GET", + "headers": {}, + "scheduledAt": +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..656c2e2a270 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create-template-deployment.md @@ -0,0 +1,14 @@ +POST /v1/functions/{functionId}/deployments/template HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "repository": "<REPOSITORY>", + "owner": "<OWNER>", + "rootDirectory": "<ROOT_DIRECTORY>", + "version": "<VERSION>", + "activate": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create-variable.md b/docs/examples/1.7.x/server-rest/examples/functions/create-variable.md new file mode 100644 index 00000000000..7251a3a3529 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create-variable.md @@ -0,0 +1,12 @@ +POST /v1/functions/{functionId}/variables HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "<KEY>", + "value": "<VALUE>", + "secret": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..1b5267ca147 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create-vcs-deployment.md @@ -0,0 +1,12 @@ +POST /v1/functions/{functionId}/deployments/vcs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "type": "branch", + "reference": "<REFERENCE>", + "activate": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/create.md b/docs/examples/1.7.x/server-rest/examples/functions/create.md new file mode 100644 index 00000000000..c5f364ad631 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/create.md @@ -0,0 +1,27 @@ +POST /v1/functions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "functionId": "<FUNCTION_ID>", + "name": "<NAME>", + "runtime": "node-14.5", + "execute": ["any"], + "events": [], + "schedule": , + "timeout": 1, + "enabled": false, + "logging": false, + "entrypoint": "<ENTRYPOINT>", + "commands": "<COMMANDS>", + "scopes": [], + "installationId": "<INSTALLATION_ID>", + "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", + "providerBranch": "<PROVIDER_BRANCH>", + "providerSilentMode": false, + "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", + "specification": +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..b70f2821679 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/delete-deployment.md @@ -0,0 +1,7 @@ +DELETE /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-rest/examples/functions/delete-execution.md new file mode 100644 index 00000000000..fb26ae47aa6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/delete-execution.md @@ -0,0 +1,7 @@ +DELETE /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-rest/examples/functions/delete-variable.md new file mode 100644 index 00000000000..aa01835ae4e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/delete-variable.md @@ -0,0 +1,7 @@ +DELETE /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/functions/delete.md b/docs/examples/1.7.x/server-rest/examples/functions/delete.md new file mode 100644 index 00000000000..9f9ab74019a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/functions/{functionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-rest/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..9195d203ab2 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/get-deployment-download.md @@ -0,0 +1,6 @@ +GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/get-deployment.md new file mode 100644 index 00000000000..2557ca698e7 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/get-deployment.md @@ -0,0 +1,5 @@ +GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.7.x/server-rest/examples/functions/get-execution.md new file mode 100644 index 00000000000..52e54c2a6c1 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/get-execution.md @@ -0,0 +1,7 @@ +GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.7.x/server-rest/examples/functions/get-variable.md new file mode 100644 index 00000000000..2a01307b0de --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/get-variable.md @@ -0,0 +1,5 @@ +GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/get.md b/docs/examples/1.7.x/server-rest/examples/functions/get.md new file mode 100644 index 00000000000..062b7e67ec3 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/get.md @@ -0,0 +1,5 @@ +GET /v1/functions/{functionId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-rest/examples/functions/list-deployments.md new file mode 100644 index 00000000000..5b4dabc6799 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/list-deployments.md @@ -0,0 +1,5 @@ +GET /v1/functions/{functionId}/deployments HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.7.x/server-rest/examples/functions/list-executions.md new file mode 100644 index 00000000000..b0ac3076ab7 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/list-executions.md @@ -0,0 +1,7 @@ +GET /v1/functions/{functionId}/executions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-rest/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..762e47fbcbf --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/list-runtimes.md @@ -0,0 +1,5 @@ +GET /v1/functions/runtimes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-rest/examples/functions/list-specifications.md new file mode 100644 index 00000000000..989adc05767 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/list-specifications.md @@ -0,0 +1,5 @@ +GET /v1/functions/specifications HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.7.x/server-rest/examples/functions/list-variables.md new file mode 100644 index 00000000000..b46b69fb5f1 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/list-variables.md @@ -0,0 +1,5 @@ +GET /v1/functions/{functionId}/variables HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/list.md b/docs/examples/1.7.x/server-rest/examples/functions/list.md new file mode 100644 index 00000000000..318a2d56ede --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/list.md @@ -0,0 +1,5 @@ +GET /v1/functions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-rest/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..8788e21c2b4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/update-deployment-status.md @@ -0,0 +1,7 @@ +PATCH /v1/functions/{functionId}/deployments/{deploymentId}/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-rest/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..1f89f35da08 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/update-function-deployment.md @@ -0,0 +1,10 @@ +PATCH /v1/functions/{functionId}/deployment HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "deploymentId": "<DEPLOYMENT_ID>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/update-variable.md b/docs/examples/1.7.x/server-rest/examples/functions/update-variable.md new file mode 100644 index 00000000000..36ae244548e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/update-variable.md @@ -0,0 +1,12 @@ +PUT /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "<KEY>", + "value": "<VALUE>", + "secret": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/functions/update.md b/docs/examples/1.7.x/server-rest/examples/functions/update.md new file mode 100644 index 00000000000..ee3b8b8c6d9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/functions/update.md @@ -0,0 +1,26 @@ +PUT /v1/functions/{functionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "runtime": "node-14.5", + "execute": ["any"], + "events": [], + "schedule": , + "timeout": 1, + "enabled": false, + "logging": false, + "entrypoint": "<ENTRYPOINT>", + "commands": "<COMMANDS>", + "scopes": [], + "installationId": "<INSTALLATION_ID>", + "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", + "providerBranch": "<PROVIDER_BRANCH>", + "providerSilentMode": false, + "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", + "specification": +} diff --git a/docs/examples/1.7.x/server-rest/examples/graphql/mutation.md b/docs/examples/1.7.x/server-rest/examples/graphql/mutation.md new file mode 100644 index 00000000000..7d58d77edec --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/graphql/mutation.md @@ -0,0 +1,13 @@ +POST /v1/graphql/mutation HTTP/1.1 +Host: cloud.appwrite.io +X-Sdk-Graphql: true +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "query": {} +} diff --git a/docs/examples/1.7.x/server-rest/examples/graphql/query.md b/docs/examples/1.7.x/server-rest/examples/graphql/query.md new file mode 100644 index 00000000000..8b87cd9f33b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/graphql/query.md @@ -0,0 +1,13 @@ +POST /v1/graphql HTTP/1.1 +Host: cloud.appwrite.io +X-Sdk-Graphql: true +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "query": {} +} diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-rest/examples/health/get-antivirus.md new file mode 100644 index 00000000000..2acacb5a5f9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-antivirus.md @@ -0,0 +1,5 @@ +GET /v1/health/anti-virus HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-cache.md b/docs/examples/1.7.x/server-rest/examples/health/get-cache.md new file mode 100644 index 00000000000..c98dcf8af1a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-cache.md @@ -0,0 +1,5 @@ +GET /v1/health/cache HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.7.x/server-rest/examples/health/get-certificate.md new file mode 100644 index 00000000000..9f4f5efee43 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-certificate.md @@ -0,0 +1,5 @@ +GET /v1/health/certificate HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.7.x/server-rest/examples/health/get-d-b.md new file mode 100644 index 00000000000..9f1efb921bf --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-d-b.md @@ -0,0 +1,5 @@ +GET /v1/health/db HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-rest/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..b646b7923f9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-failed-jobs.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/failed/{name} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-rest/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..d28025f719b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-pub-sub.md @@ -0,0 +1,5 @@ +GET /v1/health/pubsub HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..d51b4d60b3d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-builds.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/builds HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..0f3c2f65fed --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-certificates.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/certificates HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..ccc72c3404b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-databases.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/databases HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..a4c5e155864 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-deletes.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/deletes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..a28dbf921c6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-functions.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/functions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..0c16e61757a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-logs.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..82b6151af13 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-mails.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/mails HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..6082ec41bd5 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-messaging.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/messaging HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..c9687b3224c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-migrations.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/migrations HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..90eefe75fc1 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-stats-resources.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/stats-resources HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..663d39dd2fe --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-usage.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/stats-usage HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-rest/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..0843ad174f6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-queue-webhooks.md @@ -0,0 +1,5 @@ +GET /v1/health/queue/webhooks HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-rest/examples/health/get-storage-local.md new file mode 100644 index 00000000000..9047713439b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-storage-local.md @@ -0,0 +1,5 @@ +GET /v1/health/storage/local HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-storage.md b/docs/examples/1.7.x/server-rest/examples/health/get-storage.md new file mode 100644 index 00000000000..1d46ab179ed --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-storage.md @@ -0,0 +1,5 @@ +GET /v1/health/storage HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get-time.md b/docs/examples/1.7.x/server-rest/examples/health/get-time.md new file mode 100644 index 00000000000..7661df57327 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get-time.md @@ -0,0 +1,5 @@ +GET /v1/health/time HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/health/get.md b/docs/examples/1.7.x/server-rest/examples/health/get.md new file mode 100644 index 00000000000..c64b480826a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/health/get.md @@ -0,0 +1,5 @@ +GET /v1/health HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/get.md b/docs/examples/1.7.x/server-rest/examples/locale/get.md new file mode 100644 index 00000000000..7b300acb41a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/get.md @@ -0,0 +1,7 @@ +GET /v1/locale HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.7.x/server-rest/examples/locale/list-codes.md new file mode 100644 index 00000000000..336ac1477fb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-codes.md @@ -0,0 +1,7 @@ +GET /v1/locale/codes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.7.x/server-rest/examples/locale/list-continents.md new file mode 100644 index 00000000000..d99b1386531 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-continents.md @@ -0,0 +1,7 @@ +GET /v1/locale/continents HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-rest/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..3c948772344 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-countries-e-u.md @@ -0,0 +1,7 @@ +GET /v1/locale/countries/eu HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-rest/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..09619edb365 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-countries-phones.md @@ -0,0 +1,7 @@ +GET /v1/locale/countries/phones HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.7.x/server-rest/examples/locale/list-countries.md new file mode 100644 index 00000000000..0f1be7e5df3 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-countries.md @@ -0,0 +1,7 @@ +GET /v1/locale/countries HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-rest/examples/locale/list-currencies.md new file mode 100644 index 00000000000..c1e03ecae25 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-currencies.md @@ -0,0 +1,7 @@ +GET /v1/locale/currencies HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.7.x/server-rest/examples/locale/list-languages.md new file mode 100644 index 00000000000..1e2a125985f --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/locale/list-languages.md @@ -0,0 +1,7 @@ +GET /v1/locale/languages HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..b6860358c18 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-apns-provider.md @@ -0,0 +1,17 @@ +POST /v1/messaging/providers/apns HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "authKey": "<AUTH_KEY>", + "authKeyId": "<AUTH_KEY_ID>", + "teamId": "<TEAM_ID>", + "bundleId": "<BUNDLE_ID>", + "sandbox": false, + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-email.md new file mode 100644 index 00000000000..efec44982c2 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-email.md @@ -0,0 +1,21 @@ +POST /v1/messaging/messages/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "messageId": "<MESSAGE_ID>", + "subject": "<SUBJECT>", + "content": "<CONTENT>", + "topics": [], + "users": [], + "targets": [], + "cc": [], + "bcc": [], + "attachments": [], + "draft": false, + "html": false, + "scheduledAt": +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..ec885465a70 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-fcm-provider.md @@ -0,0 +1,13 @@ +POST /v1/messaging/providers/fcm HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "serviceAccountJSON": {}, + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..8d0eb339380 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,19 @@ +POST /v1/messaging/providers/mailgun HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "apiKey": "<API_KEY>", + "domain": "<DOMAIN>", + "isEuRegion": false, + "fromName": "<FROM_NAME>", + "fromEmail": "email@example.com", + "replyToName": "<REPLY_TO_NAME>", + "replyToEmail": "email@example.com", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..2877ff7b897 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-msg91provider.md @@ -0,0 +1,15 @@ +POST /v1/messaging/providers/msg91 HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "templateId": "<TEMPLATE_ID>", + "senderId": "<SENDER_ID>", + "authKey": "<AUTH_KEY>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-push.md new file mode 100644 index 00000000000..6210273820d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-push.md @@ -0,0 +1,28 @@ +POST /v1/messaging/messages/push HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "messageId": "<MESSAGE_ID>", + "title": "<TITLE>", + "body": "<BODY>", + "topics": [], + "users": [], + "targets": [], + "data": {}, + "action": "<ACTION>", + "image": "[ID1:ID2]", + "icon": "<ICON>", + "sound": "<SOUND>", + "color": "<COLOR>", + "tag": "<TAG>", + "badge": 0, + "draft": false, + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..a9f7c933dc0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,17 @@ +POST /v1/messaging/providers/sendgrid HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "apiKey": "<API_KEY>", + "fromName": "<FROM_NAME>", + "fromEmail": "email@example.com", + "replyToName": "<REPLY_TO_NAME>", + "replyToEmail": "email@example.com", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-sms.md new file mode 100644 index 00000000000..f885563f6f3 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-sms.md @@ -0,0 +1,16 @@ +POST /v1/messaging/messages/sms HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "messageId": "<MESSAGE_ID>", + "content": "<CONTENT>", + "topics": [], + "users": [], + "targets": [], + "draft": false, + "scheduledAt": +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..bbb8e7d212b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-smtp-provider.md @@ -0,0 +1,23 @@ +POST /v1/messaging/providers/smtp HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "host": "<HOST>", + "port": 1, + "username": "<USERNAME>", + "password": "<PASSWORD>", + "encryption": "none", + "autoTLS": false, + "mailer": "<MAILER>", + "fromName": "<FROM_NAME>", + "fromEmail": "email@example.com", + "replyToName": "<REPLY_TO_NAME>", + "replyToEmail": "email@example.com", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..2e61d50b5cb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-subscriber.md @@ -0,0 +1,13 @@ +POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "subscriberId": "<SUBSCRIBER_ID>", + "targetId": "<TARGET_ID>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..198ccae6f55 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-telesign-provider.md @@ -0,0 +1,15 @@ +POST /v1/messaging/providers/telesign HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "from": "+12065550100", + "customerId": "<CUSTOMER_ID>", + "apiKey": "<API_KEY>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..2f2ce558a72 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,15 @@ +POST /v1/messaging/providers/textmagic HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "from": "+12065550100", + "username": "<USERNAME>", + "apiKey": "<API_KEY>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-topic.md new file mode 100644 index 00000000000..a44af2764de --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-topic.md @@ -0,0 +1,12 @@ +POST /v1/messaging/topics HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "topicId": "<TOPIC_ID>", + "name": "<NAME>", + "subscribe": ["any"] +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..61fd63b52e6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-twilio-provider.md @@ -0,0 +1,15 @@ +POST /v1/messaging/providers/twilio HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "from": "+12065550100", + "accountSid": "<ACCOUNT_SID>", + "authToken": "<AUTH_TOKEN>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..16d1c6b594f --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/create-vonage-provider.md @@ -0,0 +1,15 @@ +POST /v1/messaging/providers/vonage HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "providerId": "<PROVIDER_ID>", + "name": "<NAME>", + "from": "+12065550100", + "apiKey": "<API_KEY>", + "apiSecret": "<API_SECRET>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..e25c3dcc1c9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/delete-provider.md @@ -0,0 +1,7 @@ +DELETE /v1/messaging/providers/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-rest/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..b988897d604 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/delete-subscriber.md @@ -0,0 +1,9 @@ +DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-rest/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..3c5c8a9cdbf --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/delete-topic.md @@ -0,0 +1,7 @@ +DELETE /v1/messaging/topics/{topicId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/delete.md b/docs/examples/1.7.x/server-rest/examples/messaging/delete.md new file mode 100644 index 00000000000..a918c2b6f8d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/messaging/messages/{messageId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.7.x/server-rest/examples/messaging/get-message.md new file mode 100644 index 00000000000..abe744e9c78 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/get-message.md @@ -0,0 +1,5 @@ +GET /v1/messaging/messages/{messageId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/get-provider.md new file mode 100644 index 00000000000..0d2ffe4eaa6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/get-provider.md @@ -0,0 +1,5 @@ +GET /v1/messaging/providers/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-rest/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..a1629d45469 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/get-subscriber.md @@ -0,0 +1,5 @@ +GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-rest/examples/messaging/get-topic.md new file mode 100644 index 00000000000..5d7efd06def --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/get-topic.md @@ -0,0 +1,5 @@ +GET /v1/messaging/topics/{topicId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..066970a9fb0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-message-logs.md @@ -0,0 +1,5 @@ +GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-messages.md new file mode 100644 index 00000000000..03a286c3763 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-messages.md @@ -0,0 +1,5 @@ +GET /v1/messaging/messages HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..562264f48ed --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-provider-logs.md @@ -0,0 +1,5 @@ +GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-providers.md new file mode 100644 index 00000000000..43522ee34f9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-providers.md @@ -0,0 +1,5 @@ +GET /v1/messaging/providers HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..f4033625298 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,5 @@ +GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..a357f9dc3d8 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-subscribers.md @@ -0,0 +1,5 @@ +GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-targets.md new file mode 100644 index 00000000000..0b4f8caf6f9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-targets.md @@ -0,0 +1,5 @@ +GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..80073b21655 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-topic-logs.md @@ -0,0 +1,5 @@ +GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-rest/examples/messaging/list-topics.md new file mode 100644 index 00000000000..2835277aeb4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/list-topics.md @@ -0,0 +1,5 @@ +GET /v1/messaging/topics HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..a398b186cbf --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-apns-provider.md @@ -0,0 +1,16 @@ +PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "authKey": "<AUTH_KEY>", + "authKeyId": "<AUTH_KEY_ID>", + "teamId": "<TEAM_ID>", + "bundleId": "<BUNDLE_ID>", + "sandbox": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-email.md new file mode 100644 index 00000000000..0ef5b894090 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-email.md @@ -0,0 +1,20 @@ +PATCH /v1/messaging/messages/email/{messageId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "topics": [], + "users": [], + "targets": [], + "subject": "<SUBJECT>", + "content": "<CONTENT>", + "draft": false, + "html": false, + "cc": [], + "bcc": [], + "scheduledAt": , + "attachments": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..50e3a5400dc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-fcm-provider.md @@ -0,0 +1,12 @@ +PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "serviceAccountJSON": {} +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..f05f0057e7d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,18 @@ +PATCH /v1/messaging/providers/mailgun/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "apiKey": "<API_KEY>", + "domain": "<DOMAIN>", + "isEuRegion": false, + "enabled": false, + "fromName": "<FROM_NAME>", + "fromEmail": "email@example.com", + "replyToName": "<REPLY_TO_NAME>", + "replyToEmail": "<REPLY_TO_EMAIL>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..1c88425fc15 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-msg91provider.md @@ -0,0 +1,14 @@ +PATCH /v1/messaging/providers/msg91/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "templateId": "<TEMPLATE_ID>", + "senderId": "<SENDER_ID>", + "authKey": "<AUTH_KEY>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-push.md new file mode 100644 index 00000000000..adf269301c8 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-push.md @@ -0,0 +1,27 @@ +PATCH /v1/messaging/messages/push/{messageId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "topics": [], + "users": [], + "targets": [], + "title": "<TITLE>", + "body": "<BODY>", + "data": {}, + "action": "<ACTION>", + "image": "[ID1:ID2]", + "icon": "<ICON>", + "sound": "<SOUND>", + "color": "<COLOR>", + "tag": "<TAG>", + "badge": 0, + "draft": false, + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..28ffb526f84 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,16 @@ +PATCH /v1/messaging/providers/sendgrid/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "apiKey": "<API_KEY>", + "fromName": "<FROM_NAME>", + "fromEmail": "email@example.com", + "replyToName": "<REPLY_TO_NAME>", + "replyToEmail": "<REPLY_TO_EMAIL>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-sms.md new file mode 100644 index 00000000000..b5ad82d0f9c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-sms.md @@ -0,0 +1,15 @@ +PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "topics": [], + "users": [], + "targets": [], + "content": "<CONTENT>", + "draft": false, + "scheduledAt": +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..8e69659ce1e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-smtp-provider.md @@ -0,0 +1,22 @@ +PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "host": "<HOST>", + "port": 1, + "username": "<USERNAME>", + "password": "<PASSWORD>", + "encryption": "none", + "autoTLS": false, + "mailer": "<MAILER>", + "fromName": "<FROM_NAME>", + "fromEmail": "email@example.com", + "replyToName": "<REPLY_TO_NAME>", + "replyToEmail": "<REPLY_TO_EMAIL>", + "enabled": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..548d39dc927 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-telesign-provider.md @@ -0,0 +1,14 @@ +PATCH /v1/messaging/providers/telesign/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "customerId": "<CUSTOMER_ID>", + "apiKey": "<API_KEY>", + "from": "<FROM>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..724b0a4afee --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,14 @@ +PATCH /v1/messaging/providers/textmagic/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "username": "<USERNAME>", + "apiKey": "<API_KEY>", + "from": "<FROM>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-topic.md new file mode 100644 index 00000000000..add0bf8ee47 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-topic.md @@ -0,0 +1,11 @@ +PATCH /v1/messaging/topics/{topicId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "subscribe": ["any"] +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..38730383b10 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-twilio-provider.md @@ -0,0 +1,14 @@ +PATCH /v1/messaging/providers/twilio/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "accountSid": "<ACCOUNT_SID>", + "authToken": "<AUTH_TOKEN>", + "from": "<FROM>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-rest/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..8c284c827fb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/messaging/update-vonage-provider.md @@ -0,0 +1,14 @@ +PATCH /v1/messaging/providers/vonage/{providerId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "enabled": false, + "apiKey": "<API_KEY>", + "apiSecret": "<API_SECRET>", + "from": "<FROM>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/create-deployment.md new file mode 100644 index 00000000000..554d2a53653 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/create-deployment.md @@ -0,0 +1,35 @@ +POST /v1/sites/{siteId}/deployments HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="installCommand" + +"<INSTALL_COMMAND>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="buildCommand" + +"<BUILD_COMMAND>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="outputDirectory" + +"<OUTPUT_DIRECTORY>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="code" + +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc +e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="activate" + +false + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/server-rest/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..3da246715b8 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,10 @@ +POST /v1/sites/{siteId}/deployments/duplicate HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "deploymentId": "<DEPLOYMENT_ID>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..e37819bfb22 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/create-template-deployment.md @@ -0,0 +1,14 @@ +POST /v1/sites/{siteId}/deployments/template HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "repository": "<REPOSITORY>", + "owner": "<OWNER>", + "rootDirectory": "<ROOT_DIRECTORY>", + "version": "<VERSION>", + "activate": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/create-variable.md b/docs/examples/1.7.x/server-rest/examples/sites/create-variable.md new file mode 100644 index 00000000000..73217d198cb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/create-variable.md @@ -0,0 +1,12 @@ +POST /v1/sites/{siteId}/variables HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "<KEY>", + "value": "<VALUE>", + "secret": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..7d5fd3e92e6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/create-vcs-deployment.md @@ -0,0 +1,12 @@ +POST /v1/sites/{siteId}/deployments/vcs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "type": "branch", + "reference": "<REFERENCE>", + "activate": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/create.md b/docs/examples/1.7.x/server-rest/examples/sites/create.md new file mode 100644 index 00000000000..5493e9d2b65 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/create.md @@ -0,0 +1,27 @@ +POST /v1/sites HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "siteId": "<SITE_ID>", + "name": "<NAME>", + "framework": "analog", + "enabled": false, + "logging": false, + "timeout": 1, + "installCommand": "<INSTALL_COMMAND>", + "buildCommand": "<BUILD_COMMAND>", + "outputDirectory": "<OUTPUT_DIRECTORY>", + "buildRuntime": "node-14.5", + "adapter": "static", + "installationId": "<INSTALLATION_ID>", + "fallbackFile": "<FALLBACK_FILE>", + "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", + "providerBranch": "<PROVIDER_BRANCH>", + "providerSilentMode": false, + "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", + "specification": +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..35bac59efc6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/delete-deployment.md @@ -0,0 +1,7 @@ +DELETE /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/sites/delete-log.md b/docs/examples/1.7.x/server-rest/examples/sites/delete-log.md new file mode 100644 index 00000000000..0bd2f661cfa --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/delete-log.md @@ -0,0 +1,7 @@ +DELETE /v1/sites/{siteId}/logs/{logId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-rest/examples/sites/delete-variable.md new file mode 100644 index 00000000000..c3f1d2d2933 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/delete-variable.md @@ -0,0 +1,7 @@ +DELETE /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/sites/delete.md b/docs/examples/1.7.x/server-rest/examples/sites/delete.md new file mode 100644 index 00000000000..cdb4ced577d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/sites/{siteId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-rest/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..d81a7dfc562 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/get-deployment-download.md @@ -0,0 +1,6 @@ +GET /v1/sites/{siteId}/deployments/{deploymentId}/download HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/get-deployment.md new file mode 100644 index 00000000000..381c20db779 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/get-deployment.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId}/deployments/{deploymentId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/get-log.md b/docs/examples/1.7.x/server-rest/examples/sites/get-log.md new file mode 100644 index 00000000000..6b8366461e1 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/get-log.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId}/logs/{logId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/get-variable.md b/docs/examples/1.7.x/server-rest/examples/sites/get-variable.md new file mode 100644 index 00000000000..7c9703ef88c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/get-variable.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/get.md b/docs/examples/1.7.x/server-rest/examples/sites/get.md new file mode 100644 index 00000000000..f13b46ecabb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/get.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-rest/examples/sites/list-deployments.md new file mode 100644 index 00000000000..22512f809df --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/list-deployments.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId}/deployments HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-rest/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..0007a7cd784 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/list-frameworks.md @@ -0,0 +1,5 @@ +GET /v1/sites/frameworks HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/list-logs.md b/docs/examples/1.7.x/server-rest/examples/sites/list-logs.md new file mode 100644 index 00000000000..7e77b7e755c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/list-logs.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId}/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-rest/examples/sites/list-specifications.md new file mode 100644 index 00000000000..17e8d281c63 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/list-specifications.md @@ -0,0 +1,5 @@ +GET /v1/sites/specifications HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/list-variables.md b/docs/examples/1.7.x/server-rest/examples/sites/list-variables.md new file mode 100644 index 00000000000..4f99a749849 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/list-variables.md @@ -0,0 +1,5 @@ +GET /v1/sites/{siteId}/variables HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/list.md b/docs/examples/1.7.x/server-rest/examples/sites/list.md new file mode 100644 index 00000000000..d1800f05e51 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/list.md @@ -0,0 +1,5 @@ +GET /v1/sites HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-rest/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..697d9ac3717 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/update-deployment-status.md @@ -0,0 +1,7 @@ +PATCH /v1/sites/{siteId}/deployments/{deploymentId}/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-rest/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..51d8736df54 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/update-site-deployment.md @@ -0,0 +1,10 @@ +PATCH /v1/sites/{siteId}/deployment HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "deploymentId": "<DEPLOYMENT_ID>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/update-variable.md b/docs/examples/1.7.x/server-rest/examples/sites/update-variable.md new file mode 100644 index 00000000000..61902ee02fc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/update-variable.md @@ -0,0 +1,12 @@ +PUT /v1/sites/{siteId}/variables/{variableId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "key": "<KEY>", + "value": "<VALUE>", + "secret": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/sites/update.md b/docs/examples/1.7.x/server-rest/examples/sites/update.md new file mode 100644 index 00000000000..ab3c4dddd14 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/sites/update.md @@ -0,0 +1,26 @@ +PUT /v1/sites/{siteId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "framework": "analog", + "enabled": false, + "logging": false, + "timeout": 1, + "installCommand": "<INSTALL_COMMAND>", + "buildCommand": "<BUILD_COMMAND>", + "outputDirectory": "<OUTPUT_DIRECTORY>", + "buildRuntime": "node-14.5", + "adapter": "static", + "fallbackFile": "<FALLBACK_FILE>", + "installationId": "<INSTALLATION_ID>", + "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", + "providerBranch": "<PROVIDER_BRANCH>", + "providerSilentMode": false, + "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", + "specification": +} diff --git a/docs/examples/1.7.x/server-rest/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-rest/examples/storage/create-bucket.md new file mode 100644 index 00000000000..8ca9c5701bc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/create-bucket.md @@ -0,0 +1,19 @@ +POST /v1/storage/buckets HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "bucketId": "<BUCKET_ID>", + "name": "<NAME>", + "permissions": ["read(\"any\")"], + "fileSecurity": false, + "enabled": false, + "maximumFileSize": 1, + "allowedFileExtensions": [], + "compression": "none", + "encryption": false, + "antivirus": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/storage/create-file.md b/docs/examples/1.7.x/server-rest/examples/storage/create-file.md new file mode 100644 index 00000000000..e8a54e723b1 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/create-file.md @@ -0,0 +1,27 @@ +POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> +Content-Length: *Length of your entity body in bytes* + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="fileId" + +"<FILE_ID>" + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="file" + +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc +e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... + +--cec8e8123c05ba25 +Content-Disposition: form-data; name="permissions[]" + +["read(\"any\")"] + +--cec8e8123c05ba25-- diff --git a/docs/examples/1.7.x/server-rest/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-rest/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..3db8bfbb727 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/delete-bucket.md @@ -0,0 +1,7 @@ +DELETE /v1/storage/buckets/{bucketId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/storage/delete-file.md b/docs/examples/1.7.x/server-rest/examples/storage/delete-file.md new file mode 100644 index 00000000000..cc8a2481f7e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/delete-file.md @@ -0,0 +1,9 @@ +DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-rest/examples/storage/get-bucket.md new file mode 100644 index 00000000000..b7def1d44ba --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/get-bucket.md @@ -0,0 +1,5 @@ +GET /v1/storage/buckets/{bucketId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-rest/examples/storage/get-file-download.md new file mode 100644 index 00000000000..4d9c691ba90 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/get-file-download.md @@ -0,0 +1,7 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-rest/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..e8a1bdeedfc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/get-file-preview.md @@ -0,0 +1,7 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-rest/examples/storage/get-file-view.md new file mode 100644 index 00000000000..d41b8a3512e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/get-file-view.md @@ -0,0 +1,7 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/get-file.md b/docs/examples/1.7.x/server-rest/examples/storage/get-file.md new file mode 100644 index 00000000000..e11aaa9f050 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/get-file.md @@ -0,0 +1,7 @@ +GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-rest/examples/storage/list-buckets.md new file mode 100644 index 00000000000..3061208d754 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/list-buckets.md @@ -0,0 +1,5 @@ +GET /v1/storage/buckets HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/list-files.md b/docs/examples/1.7.x/server-rest/examples/storage/list-files.md new file mode 100644 index 00000000000..7cf86163355 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/list-files.md @@ -0,0 +1,7 @@ +GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-rest/examples/storage/update-bucket.md new file mode 100644 index 00000000000..adf12647e2c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/update-bucket.md @@ -0,0 +1,18 @@ +PUT /v1/storage/buckets/{bucketId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>", + "permissions": ["read(\"any\")"], + "fileSecurity": false, + "enabled": false, + "maximumFileSize": 1, + "allowedFileExtensions": [], + "compression": "none", + "encryption": false, + "antivirus": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/storage/update-file.md b/docs/examples/1.7.x/server-rest/examples/storage/update-file.md new file mode 100644 index 00000000000..d91ab4c2d69 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/storage/update-file.md @@ -0,0 +1,13 @@ +PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "name": "<NAME>", + "permissions": ["read(\"any\")"] +} diff --git a/docs/examples/1.7.x/server-rest/examples/teams/create-membership.md b/docs/examples/1.7.x/server-rest/examples/teams/create-membership.md new file mode 100644 index 00000000000..f52f796d909 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/create-membership.md @@ -0,0 +1,17 @@ +POST /v1/teams/{teamId}/memberships HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "email": "email@example.com", + "userId": "<USER_ID>", + "phone": "+12065550100", + "roles": [], + "url": "https://example.com", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/teams/create.md b/docs/examples/1.7.x/server-rest/examples/teams/create.md new file mode 100644 index 00000000000..27e74294648 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/create.md @@ -0,0 +1,14 @@ +POST /v1/teams HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "teamId": "<TEAM_ID>", + "name": "<NAME>", + "roles": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-rest/examples/teams/delete-membership.md new file mode 100644 index 00000000000..e897d84a124 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/delete-membership.md @@ -0,0 +1,9 @@ +DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/teams/delete.md b/docs/examples/1.7.x/server-rest/examples/teams/delete.md new file mode 100644 index 00000000000..213489c7fbf --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/delete.md @@ -0,0 +1,9 @@ +DELETE /v1/teams/{teamId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + diff --git a/docs/examples/1.7.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.7.x/server-rest/examples/teams/get-membership.md new file mode 100644 index 00000000000..1d10cfe437e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/get-membership.md @@ -0,0 +1,7 @@ +GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-rest/examples/teams/get-prefs.md new file mode 100644 index 00000000000..ddb863181d3 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/get-prefs.md @@ -0,0 +1,6 @@ +GET /v1/teams/{teamId}/prefs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/teams/get.md b/docs/examples/1.7.x/server-rest/examples/teams/get.md new file mode 100644 index 00000000000..4ecf74596b8 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/get.md @@ -0,0 +1,7 @@ +GET /v1/teams/{teamId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-rest/examples/teams/list-memberships.md new file mode 100644 index 00000000000..38cc17b71af --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/list-memberships.md @@ -0,0 +1,7 @@ +GET /v1/teams/{teamId}/memberships HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/teams/list.md b/docs/examples/1.7.x/server-rest/examples/teams/list.md new file mode 100644 index 00000000000..c67b429008b --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/list.md @@ -0,0 +1,7 @@ +GET /v1/teams HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.7.x/server-rest/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-rest/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..9d828118f05 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/update-membership-status.md @@ -0,0 +1,12 @@ +PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "userId": "<USER_ID>", + "secret": "<SECRET>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/teams/update-membership.md b/docs/examples/1.7.x/server-rest/examples/teams/update-membership.md new file mode 100644 index 00000000000..6730d5c27c7 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/update-membership.md @@ -0,0 +1,12 @@ +PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "roles": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/teams/update-name.md b/docs/examples/1.7.x/server-rest/examples/teams/update-name.md new file mode 100644 index 00000000000..fa811a24385 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/update-name.md @@ -0,0 +1,12 @@ +PUT /v1/teams/{teamId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-rest/examples/teams/update-prefs.md new file mode 100644 index 00000000000..1db63003503 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/teams/update-prefs.md @@ -0,0 +1,11 @@ +PUT /v1/teams/{teamId}/prefs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-JWT: <YOUR_JWT> + +{ + "prefs": {} +} diff --git a/docs/examples/1.7.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-rest/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..c1fbb63d2da --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/tokens/create-file-token.md @@ -0,0 +1,10 @@ +POST /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "expire": +} diff --git a/docs/examples/1.7.x/server-rest/examples/tokens/delete.md b/docs/examples/1.7.x/server-rest/examples/tokens/delete.md new file mode 100644 index 00000000000..ee564b01c45 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/tokens/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/tokens/{tokenId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/tokens/get.md b/docs/examples/1.7.x/server-rest/examples/tokens/get.md new file mode 100644 index 00000000000..b39c8390e3e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/tokens/get.md @@ -0,0 +1,5 @@ +GET /v1/tokens/{tokenId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/tokens/list.md b/docs/examples/1.7.x/server-rest/examples/tokens/list.md new file mode 100644 index 00000000000..8909d055720 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/tokens/list.md @@ -0,0 +1,5 @@ +GET /v1/tokens/buckets/{bucketId}/files/{fileId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/tokens/update.md b/docs/examples/1.7.x/server-rest/examples/tokens/update.md new file mode 100644 index 00000000000..8ab9d605554 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/tokens/update.md @@ -0,0 +1,10 @@ +PATCH /v1/tokens/{tokenId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "expire": +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-rest/examples/users/create-argon2user.md new file mode 100644 index 00000000000..d557cf6d5f3 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-argon2user.md @@ -0,0 +1,13 @@ +POST /v1/users/argon2 HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-rest/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..cda74911606 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-bcrypt-user.md @@ -0,0 +1,13 @@ +POST /v1/users/bcrypt HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-rest/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..83208adadbb --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-j-w-t.md @@ -0,0 +1,11 @@ +POST /v1/users/{userId}/jwts HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "sessionId": "<SESSION_ID>", + "duration": 0 +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-rest/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..d4896133a18 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-m-d5user.md @@ -0,0 +1,13 @@ +POST /v1/users/md5 HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-rest/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..2f6524646d8 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,7 @@ +PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-rest/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..4c10b1a82d4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-p-h-pass-user.md @@ -0,0 +1,13 @@ +POST /v1/users/phpass HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-rest/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..5c6467a2fe0 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-s-h-a-user.md @@ -0,0 +1,14 @@ +POST /v1/users/sha HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "passwordVersion": "sha1", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-rest/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..19d0650840e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,16 @@ +POST /v1/users/scrypt-modified HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "passwordSalt": "<PASSWORD_SALT>", + "passwordSaltSeparator": "<PASSWORD_SALT_SEPARATOR>", + "passwordSignerKey": "<PASSWORD_SIGNER_KEY>", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-rest/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..008eab68486 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-scrypt-user.md @@ -0,0 +1,18 @@ +POST /v1/users/scrypt HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "password": "password", + "passwordSalt": "<PASSWORD_SALT>", + "passwordCpu": 0, + "passwordMemory": 0, + "passwordParallel": 0, + "passwordLength": 0, + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-session.md b/docs/examples/1.7.x/server-rest/examples/users/create-session.md new file mode 100644 index 00000000000..ec71d421e0e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-session.md @@ -0,0 +1,7 @@ +POST /v1/users/{userId}/sessions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-target.md b/docs/examples/1.7.x/server-rest/examples/users/create-target.md new file mode 100644 index 00000000000..fced935c1b6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-target.md @@ -0,0 +1,14 @@ +POST /v1/users/{userId}/targets HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "targetId": "<TARGET_ID>", + "providerType": "email", + "identifier": "<IDENTIFIER>", + "providerId": "<PROVIDER_ID>", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create-token.md b/docs/examples/1.7.x/server-rest/examples/users/create-token.md new file mode 100644 index 00000000000..43392526601 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create-token.md @@ -0,0 +1,11 @@ +POST /v1/users/{userId}/tokens HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "length": 4, + "expire": 60 +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/create.md b/docs/examples/1.7.x/server-rest/examples/users/create.md new file mode 100644 index 00000000000..67d377255b4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/create.md @@ -0,0 +1,14 @@ +POST /v1/users HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "userId": "<USER_ID>", + "email": "email@example.com", + "phone": "+12065550100", + "password": , + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/delete-identity.md b/docs/examples/1.7.x/server-rest/examples/users/delete-identity.md new file mode 100644 index 00000000000..c2aa5eed168 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/delete-identity.md @@ -0,0 +1,7 @@ +DELETE /v1/users/identities/{identityId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-rest/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..9d9e2e950fc --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,7 @@ +DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/delete-session.md b/docs/examples/1.7.x/server-rest/examples/users/delete-session.md new file mode 100644 index 00000000000..be204911a20 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/delete-session.md @@ -0,0 +1,7 @@ +DELETE /v1/users/{userId}/sessions/{sessionId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-rest/examples/users/delete-sessions.md new file mode 100644 index 00000000000..54f3a8d4f1a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/delete-sessions.md @@ -0,0 +1,7 @@ +DELETE /v1/users/{userId}/sessions HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/delete-target.md b/docs/examples/1.7.x/server-rest/examples/users/delete-target.md new file mode 100644 index 00000000000..77e2c23dd80 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/delete-target.md @@ -0,0 +1,7 @@ +DELETE /v1/users/{userId}/targets/{targetId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/delete.md b/docs/examples/1.7.x/server-rest/examples/users/delete.md new file mode 100644 index 00000000000..c31212aa713 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/delete.md @@ -0,0 +1,7 @@ +DELETE /v1/users/{userId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-rest/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..58dd32d2a4d --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.7.x/server-rest/examples/users/get-prefs.md new file mode 100644 index 00000000000..ac04cc5c443 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/get-prefs.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/prefs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/get-target.md b/docs/examples/1.7.x/server-rest/examples/users/get-target.md new file mode 100644 index 00000000000..2f19db7c7a6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/get-target.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/get.md b/docs/examples/1.7.x/server-rest/examples/users/get.md new file mode 100644 index 00000000000..f654676d9b9 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/get.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId} HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list-identities.md b/docs/examples/1.7.x/server-rest/examples/users/list-identities.md new file mode 100644 index 00000000000..180a2127a4e --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list-identities.md @@ -0,0 +1,5 @@ +GET /v1/users/identities HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list-logs.md b/docs/examples/1.7.x/server-rest/examples/users/list-logs.md new file mode 100644 index 00000000000..7149f50abe4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list-logs.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/logs HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.7.x/server-rest/examples/users/list-memberships.md new file mode 100644 index 00000000000..7d32f2f7261 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list-memberships.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/memberships HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-rest/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..a75b26e1c5c --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list-mfa-factors.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/mfa/factors HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.7.x/server-rest/examples/users/list-sessions.md new file mode 100644 index 00000000000..1ef39b835b1 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list-sessions.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/sessions HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list-targets.md b/docs/examples/1.7.x/server-rest/examples/users/list-targets.md new file mode 100644 index 00000000000..e9542c0da03 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list-targets.md @@ -0,0 +1,5 @@ +GET /v1/users/{userId}/targets HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/list.md b/docs/examples/1.7.x/server-rest/examples/users/list.md new file mode 100644 index 00000000000..a92f71439b3 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/list.md @@ -0,0 +1,5 @@ +GET /v1/users HTTP/1.1 +Host: cloud.appwrite.io +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-rest/examples/users/update-email-verification.md new file mode 100644 index 00000000000..cf65c72b0c5 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-email-verification.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/verification HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "emailVerification": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-email.md b/docs/examples/1.7.x/server-rest/examples/users/update-email.md new file mode 100644 index 00000000000..10ccafb0799 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-email.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/email HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "email": "email@example.com" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-labels.md b/docs/examples/1.7.x/server-rest/examples/users/update-labels.md new file mode 100644 index 00000000000..f01603f1f45 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-labels.md @@ -0,0 +1,10 @@ +PUT /v1/users/{userId}/labels HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "labels": [] +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-rest/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..aa3bb3f6e64 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,7 @@ +PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-mfa.md b/docs/examples/1.7.x/server-rest/examples/users/update-mfa.md new file mode 100644 index 00000000000..fce9198887a --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-mfa.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/mfa HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "mfa": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-name.md b/docs/examples/1.7.x/server-rest/examples/users/update-name.md new file mode 100644 index 00000000000..c8988dfb1d4 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-name.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/name HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-password.md b/docs/examples/1.7.x/server-rest/examples/users/update-password.md new file mode 100644 index 00000000000..fb796d56194 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-password.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/password HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "password": +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-rest/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..ca3958605b6 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-phone-verification.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/verification/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "phoneVerification": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-phone.md b/docs/examples/1.7.x/server-rest/examples/users/update-phone.md new file mode 100644 index 00000000000..5bc196d6688 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-phone.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/phone HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "number": "+12065550100" +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-prefs.md b/docs/examples/1.7.x/server-rest/examples/users/update-prefs.md new file mode 100644 index 00000000000..1db82743e88 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-prefs.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/prefs HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "prefs": {} +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-status.md b/docs/examples/1.7.x/server-rest/examples/users/update-status.md new file mode 100644 index 00000000000..6d07f2e15fe --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-status.md @@ -0,0 +1,10 @@ +PATCH /v1/users/{userId}/status HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "status": false +} diff --git a/docs/examples/1.7.x/server-rest/examples/users/update-target.md b/docs/examples/1.7.x/server-rest/examples/users/update-target.md new file mode 100644 index 00000000000..926fb166a45 --- /dev/null +++ b/docs/examples/1.7.x/server-rest/examples/users/update-target.md @@ -0,0 +1,12 @@ +PATCH /v1/users/{userId}/targets/{targetId} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.7.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "identifier": "<IDENTIFIER>", + "providerId": "<PROVIDER_ID>", + "name": "<NAME>" +} diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-ruby/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..bcb25d66f57 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-anonymous-session.md @@ -0,0 +1,11 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_anonymous_session() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-ruby/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..be5fc1c07ab --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-email-password-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_email_password_session( + email: 'email@example.com', + password: 'password' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-email-token.md b/docs/examples/1.7.x/server-ruby/examples/account/create-email-token.md new file mode 100644 index 00000000000..d75e310a36c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-email-token.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_email_token( + user_id: '<USER_ID>', + email: 'email@example.com', + phrase: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-ruby/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..8e5b6b78c8d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-j-w-t.md @@ -0,0 +1,11 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_jwt() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-ruby/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..9537d1fb3d9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_magic_url_token( + user_id: '<USER_ID>', + email: 'email@example.com', + url: 'https://example.com', # optional + phrase: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..a3cc71cd8a3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-authenticator.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.create_mfa_authenticator( + type: AuthenticatorType::TOTP +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..ba34779ad25 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-challenge.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_mfa_challenge( + factor: AuthenticationFactor::EMAIL +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..db91cf533d1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.create_mfa_recovery_codes() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-ruby/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..52bc5d61942 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-o-auth2token.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_o_auth2_token( + provider: OAuthProvider::AMAZON, + success: 'https://example.com', # optional + failure: 'https://example.com', # optional + scopes: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-ruby/examples/account/create-phone-token.md new file mode 100644 index 00000000000..81bedd0ce98 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-phone-token.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_phone_token( + user_id: '<USER_ID>', + phone: '+12065550100' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-ruby/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..a7dec8f34e6 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-phone-verification.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.create_phone_verification() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.7.x/server-ruby/examples/account/create-recovery.md new file mode 100644 index 00000000000..e344bafc759 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-recovery.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.create_recovery( + email: 'email@example.com', + url: 'https://example.com' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-session.md b/docs/examples/1.7.x/server-ruby/examples/account/create-session.md new file mode 100644 index 00000000000..4b8ce216bc9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create_session( + user_id: '<USER_ID>', + secret: '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.7.x/server-ruby/examples/account/create-verification.md new file mode 100644 index 00000000000..2eba7c776d1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create-verification.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.create_verification( + url: 'https://example.com' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/create.md b/docs/examples/1.7.x/server-ruby/examples/account/create.md new file mode 100644 index 00000000000..84228b83511 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/create.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.create( + user_id: '<USER_ID>', + email: 'email@example.com', + password: '', + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.7.x/server-ruby/examples/account/delete-identity.md new file mode 100644 index 00000000000..e8f8e838148 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/delete-identity.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.delete_identity( + identity_id: '<IDENTITY_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-ruby/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..832ff6ae132 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.delete_mfa_authenticator( + type: AuthenticatorType::TOTP +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.7.x/server-ruby/examples/account/delete-session.md new file mode 100644 index 00000000000..7496cafe3ac --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/delete-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.delete_session( + session_id: '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-ruby/examples/account/delete-sessions.md new file mode 100644 index 00000000000..ca5d9224830 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/delete-sessions.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.delete_sessions() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-ruby/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..26ffa9d61d7 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.get_mfa_recovery_codes() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.7.x/server-ruby/examples/account/get-prefs.md new file mode 100644 index 00000000000..664454cf2fc --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/get-prefs.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.get_prefs() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/get-session.md b/docs/examples/1.7.x/server-ruby/examples/account/get-session.md new file mode 100644 index 00000000000..c433b22e461 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/get-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.get_session( + session_id: '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/get.md b/docs/examples/1.7.x/server-ruby/examples/account/get.md new file mode 100644 index 00000000000..f33050345de --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/get.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.get() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.7.x/server-ruby/examples/account/list-identities.md new file mode 100644 index 00000000000..696e02dd5a2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/list-identities.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.list_identities( + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.7.x/server-ruby/examples/account/list-logs.md new file mode 100644 index 00000000000..1f3366a2ede --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/list-logs.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.list_logs( + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-ruby/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..460ac87ac1a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/list-mfa-factors.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.list_mfa_factors() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.7.x/server-ruby/examples/account/list-sessions.md new file mode 100644 index 00000000000..b5968c498f2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/list-sessions.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.list_sessions() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-email.md b/docs/examples/1.7.x/server-ruby/examples/account/update-email.md new file mode 100644 index 00000000000..24b43edebd8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-email.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_email( + email: 'email@example.com', + password: 'password' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-ruby/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..b1b50f32fd3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-m-f-a.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_mfa( + mfa: false +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-ruby/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..c96820f1830 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.update_magic_url_session( + user_id: '<USER_ID>', + secret: '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..5ff2adcbdcb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-authenticator.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_mfa_authenticator( + type: AuthenticatorType::TOTP, + otp: '<OTP>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..2f4b61d5810 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-challenge.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_mfa_challenge( + challenge_id: '<CHALLENGE_ID>', + otp: '<OTP>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..ad1f2e5f0e0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_mfa_recovery_codes() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-name.md b/docs/examples/1.7.x/server-ruby/examples/account/update-name.md new file mode 100644 index 00000000000..ef8a5cbb4f3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-name.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_name( + name: '<NAME>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-password.md b/docs/examples/1.7.x/server-ruby/examples/account/update-password.md new file mode 100644 index 00000000000..4b8705359be --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-password.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_password( + password: '', + old_password: 'password' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-ruby/examples/account/update-phone-session.md new file mode 100644 index 00000000000..b81c485c8c0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-phone-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + +account = Account.new(client) + +result = account.update_phone_session( + user_id: '<USER_ID>', + secret: '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-ruby/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..8dcf316e491 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-phone-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_phone_verification( + user_id: '<USER_ID>', + secret: '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.7.x/server-ruby/examples/account/update-phone.md new file mode 100644 index 00000000000..ea758a8d8da --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-phone.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_phone( + phone: '+12065550100', + password: 'password' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.7.x/server-ruby/examples/account/update-prefs.md new file mode 100644 index 00000000000..ecfe4f49881 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-prefs.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_prefs( + prefs: {} +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.7.x/server-ruby/examples/account/update-recovery.md new file mode 100644 index 00000000000..42c483771c8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-recovery.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_recovery( + user_id: '<USER_ID>', + secret: '<SECRET>', + password: '' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-session.md b/docs/examples/1.7.x/server-ruby/examples/account/update-session.md new file mode 100644 index 00000000000..34e00eec250 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_session( + session_id: '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-status.md b/docs/examples/1.7.x/server-ruby/examples/account/update-status.md new file mode 100644 index 00000000000..5c543b790c5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-status.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_status() diff --git a/docs/examples/1.7.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.7.x/server-ruby/examples/account/update-verification.md new file mode 100644 index 00000000000..9866ade95c9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/account/update-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +account = Account.new(client) + +result = account.update_verification( + user_id: '<USER_ID>', + secret: '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-browser.md new file mode 100644 index 00000000000..36354d1dce9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-browser.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_browser( + code: Browser::AVANT_BROWSER, + width: 0, # optional + height: 0, # optional + quality: -1 # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..09a02450340 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-credit-card.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_credit_card( + code: CreditCard::AMERICAN_EXPRESS, + width: 0, # optional + height: 0, # optional + quality: -1 # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..7c8bd4347f8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-favicon.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_favicon( + url: 'https://example.com' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-flag.md new file mode 100644 index 00000000000..61b7793048d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-flag.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_flag( + code: Flag::AFGHANISTAN, + width: 0, # optional + height: 0, # optional + quality: -1 # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-image.md new file mode 100644 index 00000000000..f46fad0c445 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-image.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_image( + url: 'https://example.com', + width: 0, # optional + height: 0 # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-initials.md new file mode 100644 index 00000000000..85e5a6a422f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-initials.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_initials( + name: '<NAME>', # optional + width: 0, # optional + height: 0, # optional + background: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-ruby/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..9c6e34686cd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/avatars/get-q-r.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +avatars = Avatars.new(client) + +result = avatars.get_qr( + text: '<TEXT>', + size: 1, # optional + margin: 0, # optional + download: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..158ea056236 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_boolean_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: false, # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-collection.md new file mode 100644 index 00000000000..c22b34813eb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-collection.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_collection( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + name: '<NAME>', + permissions: ["read("any")"], # optional + document_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..af12b7965bc --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_datetime_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-document.md new file mode 100644 index 00000000000..ce8dea79ef5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-document.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_session('') # The user session to authenticate with + .set_key('<YOUR_API_KEY>') # Your secret API key + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token + +databases = Databases.new(client) + +result = databases.create_document( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + document_id: '<DOCUMENT_ID>', + data: {}, + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-documents.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-documents.md new file mode 100644 index 00000000000..469234c91e1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + documents: [] +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..7f36f6b0769 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-email-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_email_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: 'email@example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..c8e390a1a92 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-enum-attribute.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_enum_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + elements: [], + required: false, + default: '<DEFAULT>', # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..fa77f899026 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-float-attribute.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_float_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-index.md new file mode 100644 index 00000000000..18c2f0ee6a1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-index.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_index( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + type: IndexType::KEY, + attributes: [], + orders: [], # optional + lengths: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..a6895021368 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-integer-attribute.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_integer_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + min: null, # optional + max: null, # optional + default: null, # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..7abeee94036 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-ip-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_ip_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..b056f3bbb2a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -0,0 +1,22 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_relationship_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + related_collection_id: '<RELATED_COLLECTION_ID>', + type: RelationshipType::ONETOONE, + two_way: false, # optional + key: '', # optional + two_way_key: '', # optional + on_delete: RelationMutate::CASCADE # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..d94af0f22f8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-string-attribute.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_string_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + size: 1, + required: false, + default: '<DEFAULT>', # optional + array: false, # optional + encrypt: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..3ffd7321a1e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create-url-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_url_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: 'https://example.com', # optional + array: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/create.md b/docs/examples/1.7.x/server-ruby/examples/databases/create.md new file mode 100644 index 00000000000..62675e6ba77 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/create.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.create( + database_id: '<DATABASE_ID>', + name: '<NAME>', + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..816b31e43f8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/delete-attribute.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-ruby/examples/databases/delete-collection.md new file mode 100644 index 00000000000..28dd8d773c4 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/delete-collection.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete_collection( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.7.x/server-ruby/examples/databases/delete-document.md new file mode 100644 index 00000000000..2102d2695ba --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/delete-document.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +databases = Databases.new(client) + +result = databases.delete_document( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + document_id: '<DOCUMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-ruby/examples/databases/delete-documents.md new file mode 100644 index 00000000000..d0f10d0b41b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/delete-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.7.x/server-ruby/examples/databases/delete-index.md new file mode 100644 index 00000000000..b5d9231508c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/delete-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete_index( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/delete.md b/docs/examples/1.7.x/server-ruby/examples/databases/delete.md new file mode 100644 index 00000000000..802f5d6bd45 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete( + database_id: '<DATABASE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/get-attribute.md new file mode 100644 index 00000000000..1558de656aa --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/get-attribute.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.get_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.7.x/server-ruby/examples/databases/get-collection.md new file mode 100644 index 00000000000..89ae0e32ac1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/get-collection.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.get_collection( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.7.x/server-ruby/examples/databases/get-document.md new file mode 100644 index 00000000000..f43a1a29241 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/get-document.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +databases = Databases.new(client) + +result = databases.get_document( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + document_id: '<DOCUMENT_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.7.x/server-ruby/examples/databases/get-index.md new file mode 100644 index 00000000000..cd5fca3d602 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/get-index.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.get_index( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/get.md b/docs/examples/1.7.x/server-ruby/examples/databases/get.md new file mode 100644 index 00000000000..c042cd7c4e3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/get.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.get( + database_id: '<DATABASE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-ruby/examples/databases/list-attributes.md new file mode 100644 index 00000000000..f1ec0dedcdf --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/list-attributes.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.list_attributes( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.7.x/server-ruby/examples/databases/list-collections.md new file mode 100644 index 00000000000..26f3d355529 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/list-collections.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.list_collections( + database_id: '<DATABASE_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.7.x/server-ruby/examples/databases/list-documents.md new file mode 100644 index 00000000000..6617198d3fe --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/list-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +databases = Databases.new(client) + +result = databases.list_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-ruby/examples/databases/list-indexes.md new file mode 100644 index 00000000000..f98c62a4442 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/list-indexes.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.list_indexes( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/list.md b/docs/examples/1.7.x/server-ruby/examples/databases/list.md new file mode 100644 index 00000000000..2e093f73b1e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.list( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..72f0eac0886 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_boolean_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: false, + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-collection.md new file mode 100644 index 00000000000..d42a651cbb8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-collection.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_collection( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + name: '<NAME>', + permissions: ["read("any")"], # optional + document_security: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..b726283323f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_datetime_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-document.md new file mode 100644 index 00000000000..485eb0485a6 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-document.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +databases = Databases.new(client) + +result = databases.update_document( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + document_id: '<DOCUMENT_ID>', + data: {}, # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-documents.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-documents.md new file mode 100644 index 00000000000..2f6907294fc --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-documents.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + data: {}, # optional + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..3324e398600 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-email-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_email_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: 'email@example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..72a05154670 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-enum-attribute.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_enum_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + elements: [], + required: false, + default: '<DEFAULT>', + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..738e6de36a5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-float-attribute.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_float_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..dece44544fd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-integer-attribute.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_integer_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..deceb732e49 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-ip-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_ip_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '', + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..679edb823eb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_relationship_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..66f458e8003 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-string-attribute.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_string_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: '<DEFAULT>', + size: 1, # optional + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-ruby/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..cbf417b6bf9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update-url-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_url_attribute( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + key: '', + required: false, + default: 'https://example.com', + new_key: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/update.md b/docs/examples/1.7.x/server-ruby/examples/databases/update.md new file mode 100644 index 00000000000..e5c02a11f16 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/update.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update( + database_id: '<DATABASE_ID>', + name: '<NAME>', + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-ruby/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..353e38fe2be --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/databases/upsert-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.upsert_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + documents: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/create-deployment.md new file mode 100644 index 00000000000..0ff3db31e9c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create-deployment.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.create_deployment( + function_id: '<FUNCTION_ID>', + code: InputFile.from_path('dir/file.png'), + activate: false, + entrypoint: '<ENTRYPOINT>', # optional + commands: '<COMMANDS>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..cd432afc951 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.create_duplicate_deployment( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>', + build_id: '<BUILD_ID>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.7.x/server-ruby/examples/functions/create-execution.md new file mode 100644 index 00000000000..b64b1d5c575 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create-execution.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +functions = Functions.new(client) + +result = functions.create_execution( + function_id: '<FUNCTION_ID>', + body: '<BODY>', # optional + async: false, # optional + path: '<PATH>', # optional + method: ExecutionMethod::GET, # optional + headers: {}, # optional + scheduled_at: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..a447b6e9aaf --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create-template-deployment.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.create_template_deployment( + function_id: '<FUNCTION_ID>', + repository: '<REPOSITORY>', + owner: '<OWNER>', + root_directory: '<ROOT_DIRECTORY>', + version: '<VERSION>', + activate: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.7.x/server-ruby/examples/functions/create-variable.md new file mode 100644 index 00000000000..3c957d45f8b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create-variable.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.create_variable( + function_id: '<FUNCTION_ID>', + key: '<KEY>', + value: '<VALUE>', + secret: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..75bd3c49f5d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create-vcs-deployment.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.create_vcs_deployment( + function_id: '<FUNCTION_ID>', + type: VCSDeploymentType::BRANCH, + reference: '<REFERENCE>', + activate: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/create.md b/docs/examples/1.7.x/server-ruby/examples/functions/create.md new file mode 100644 index 00000000000..cad021b5f88 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/create.md @@ -0,0 +1,32 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.create( + function_id: '<FUNCTION_ID>', + name: '<NAME>', + runtime: ::NODE_14_5, + execute: ["any"], # optional + events: [], # optional + schedule: '', # optional + timeout: 1, # optional + enabled: false, # optional + logging: false, # optional + entrypoint: '<ENTRYPOINT>', # optional + commands: '<COMMANDS>', # optional + scopes: [], # optional + installation_id: '<INSTALLATION_ID>', # optional + provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch: '<PROVIDER_BRANCH>', # optional + provider_silent_mode: false, # optional + provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional + specification: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..192172cf9cc --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/delete-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.delete_deployment( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-ruby/examples/functions/delete-execution.md new file mode 100644 index 00000000000..4172aade32d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/delete-execution.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.delete_execution( + function_id: '<FUNCTION_ID>', + execution_id: '<EXECUTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-ruby/examples/functions/delete-variable.md new file mode 100644 index 00000000000..ffbe69f106c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/delete-variable.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.delete_variable( + function_id: '<FUNCTION_ID>', + variable_id: '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/delete.md b/docs/examples/1.7.x/server-ruby/examples/functions/delete.md new file mode 100644 index 00000000000..e5c59e39c09 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.delete( + function_id: '<FUNCTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-ruby/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..a1a50a5f94c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/get-deployment-download.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.get_deployment_download( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>', + type: DeploymentDownloadType::SOURCE # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/get-deployment.md new file mode 100644 index 00000000000..1651ae12853 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/get-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.get_deployment( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.7.x/server-ruby/examples/functions/get-execution.md new file mode 100644 index 00000000000..7ab910e785a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/get-execution.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +functions = Functions.new(client) + +result = functions.get_execution( + function_id: '<FUNCTION_ID>', + execution_id: '<EXECUTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.7.x/server-ruby/examples/functions/get-variable.md new file mode 100644 index 00000000000..5022cf84d6d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/get-variable.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.get_variable( + function_id: '<FUNCTION_ID>', + variable_id: '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/get.md b/docs/examples/1.7.x/server-ruby/examples/functions/get.md new file mode 100644 index 00000000000..5cfd1350284 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/get.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.get( + function_id: '<FUNCTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-ruby/examples/functions/list-deployments.md new file mode 100644 index 00000000000..3df3dd3ee81 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/list-deployments.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.list_deployments( + function_id: '<FUNCTION_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.7.x/server-ruby/examples/functions/list-executions.md new file mode 100644 index 00000000000..57b4ba26bcb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/list-executions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +functions = Functions.new(client) + +result = functions.list_executions( + function_id: '<FUNCTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-ruby/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..1b6d25ee6d7 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/list-runtimes.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.list_runtimes() diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-ruby/examples/functions/list-specifications.md new file mode 100644 index 00000000000..2c9cf7c4709 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/list-specifications.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.list_specifications() diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.7.x/server-ruby/examples/functions/list-variables.md new file mode 100644 index 00000000000..dd3fc4f2ae5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/list-variables.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.list_variables( + function_id: '<FUNCTION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/list.md b/docs/examples/1.7.x/server-ruby/examples/functions/list.md new file mode 100644 index 00000000000..0cab1c34d79 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.list( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-ruby/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..6664e050793 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/update-deployment-status.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.update_deployment_status( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-ruby/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..68c5d7fdfd7 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/update-function-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.update_function_deployment( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.7.x/server-ruby/examples/functions/update-variable.md new file mode 100644 index 00000000000..7c4e4028208 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/update-variable.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.update_variable( + function_id: '<FUNCTION_ID>', + variable_id: '<VARIABLE_ID>', + key: '<KEY>', + value: '<VALUE>', # optional + secret: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/functions/update.md b/docs/examples/1.7.x/server-ruby/examples/functions/update.md new file mode 100644 index 00000000000..45b6e32ab31 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/functions/update.md @@ -0,0 +1,31 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.update( + function_id: '<FUNCTION_ID>', + name: '<NAME>', + runtime: ::NODE_14_5, # optional + execute: ["any"], # optional + events: [], # optional + schedule: '', # optional + timeout: 1, # optional + enabled: false, # optional + logging: false, # optional + entrypoint: '<ENTRYPOINT>', # optional + commands: '<COMMANDS>', # optional + scopes: [], # optional + installation_id: '<INSTALLATION_ID>', # optional + provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch: '<PROVIDER_BRANCH>', # optional + provider_silent_mode: false, # optional + provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional + specification: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.7.x/server-ruby/examples/graphql/mutation.md new file mode 100644 index 00000000000..08ca6f30d2d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/graphql/mutation.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +graphql = Graphql.new(client) + +result = graphql.mutation( + query: {} +) diff --git a/docs/examples/1.7.x/server-ruby/examples/graphql/query.md b/docs/examples/1.7.x/server-ruby/examples/graphql/query.md new file mode 100644 index 00000000000..05e69506a17 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/graphql/query.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +graphql = Graphql.new(client) + +result = graphql.query( + query: {} +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-ruby/examples/health/get-antivirus.md new file mode 100644 index 00000000000..5f8d06056d5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-antivirus.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_antivirus() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.7.x/server-ruby/examples/health/get-cache.md new file mode 100644 index 00000000000..01bd46cd0bb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-cache.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_cache() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-certificate.md b/docs/examples/1.7.x/server-ruby/examples/health/get-certificate.md new file mode 100644 index 00000000000..64699d42d06 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-certificate.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_certificate( + domain: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.7.x/server-ruby/examples/health/get-d-b.md new file mode 100644 index 00000000000..d9668339c5d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-d-b.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_db() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-ruby/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..73e1983e3a3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-failed-jobs.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_failed_jobs( + name: ::V1_DATABASE, + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-ruby/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..86e9c409ed7 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-pub-sub.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_pub_sub() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..9f876982ef0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-builds.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_builds( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..d10c2feb398 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-certificates.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_certificates( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..37024d8144e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-databases.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_databases( + name: '<NAME>', # optional + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..2508be22ba1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-deletes.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_deletes( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..e5b56474bc8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-functions.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_functions( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..cb35ac333b7 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-logs.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_logs( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..36cfec3d875 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-mails.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_mails( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..d317f2a74c9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-messaging.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_messaging( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..3c68c865dc2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-migrations.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_migrations( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..7024bac3070 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_stats_resources( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..b687bd87896 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-usage.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_usage( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..28f28ea78aa --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-queue-webhooks.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_webhooks( + threshold: null # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-ruby/examples/health/get-storage-local.md new file mode 100644 index 00000000000..a122de50eee --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-storage-local.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_storage_local() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-storage.md b/docs/examples/1.7.x/server-ruby/examples/health/get-storage.md new file mode 100644 index 00000000000..ee778643ec0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-storage.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_storage() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get-time.md b/docs/examples/1.7.x/server-ruby/examples/health/get-time.md new file mode 100644 index 00000000000..9d345557a38 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get-time.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_time() diff --git a/docs/examples/1.7.x/server-ruby/examples/health/get.md b/docs/examples/1.7.x/server-ruby/examples/health/get.md new file mode 100644 index 00000000000..4bbf0c0eb0e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/health/get.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/get.md b/docs/examples/1.7.x/server-ruby/examples/locale/get.md new file mode 100644 index 00000000000..264da0e1879 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/get.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.get() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-codes.md new file mode 100644 index 00000000000..27632669f03 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-codes.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_codes() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-continents.md new file mode 100644 index 00000000000..b78f130201e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-continents.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_continents() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..8498f2bdda7 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-countries-e-u.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_countries_eu() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..8fa087e9204 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-countries-phones.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_countries_phones() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-countries.md new file mode 100644 index 00000000000..a635a4e0b36 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-countries.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_countries() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-currencies.md new file mode 100644 index 00000000000..60e9d94df99 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-currencies.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_currencies() diff --git a/docs/examples/1.7.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.7.x/server-ruby/examples/locale/list-languages.md new file mode 100644 index 00000000000..e5b9df1945e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/locale/list-languages.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +locale = Locale.new(client) + +result = locale.list_languages() diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..a2803408470 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-apns-provider.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_apns_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + auth_key: '<AUTH_KEY>', # optional + auth_key_id: '<AUTH_KEY_ID>', # optional + team_id: '<TEAM_ID>', # optional + bundle_id: '<BUNDLE_ID>', # optional + sandbox: false, # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-email.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-email.md new file mode 100644 index 00000000000..573a5b83d49 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-email.md @@ -0,0 +1,25 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_email( + message_id: '<MESSAGE_ID>', + subject: '<SUBJECT>', + content: '<CONTENT>', + topics: [], # optional + users: [], # optional + targets: [], # optional + cc: [], # optional + bcc: [], # optional + attachments: [], # optional + draft: false, # optional + html: false, # optional + scheduled_at: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..a1e8b67b518 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-fcm-provider.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_fcm_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + service_account_json: {}, # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..aa5b7f18999 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,23 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_mailgun_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + api_key: '<API_KEY>', # optional + domain: '<DOMAIN>', # optional + is_eu_region: false, # optional + from_name: '<FROM_NAME>', # optional + from_email: 'email@example.com', # optional + reply_to_name: '<REPLY_TO_NAME>', # optional + reply_to_email: 'email@example.com', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..35a192f1483 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-msg91provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_msg91_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + template_id: '<TEMPLATE_ID>', # optional + sender_id: '<SENDER_ID>', # optional + auth_key: '<AUTH_KEY>', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-push.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-push.md new file mode 100644 index 00000000000..5c58fa542b1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-push.md @@ -0,0 +1,32 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_push( + message_id: '<MESSAGE_ID>', + title: '<TITLE>', # optional + body: '<BODY>', # optional + topics: [], # optional + users: [], # optional + targets: [], # optional + data: {}, # optional + action: '<ACTION>', # optional + image: '[ID1:ID2]', # optional + icon: '<ICON>', # optional + sound: '<SOUND>', # optional + color: '<COLOR>', # optional + tag: '<TAG>', # optional + badge: null, # optional + draft: false, # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..eae3ad3ecec --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_sendgrid_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + api_key: '<API_KEY>', # optional + from_name: '<FROM_NAME>', # optional + from_email: 'email@example.com', # optional + reply_to_name: '<REPLY_TO_NAME>', # optional + reply_to_email: 'email@example.com', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-sms.md new file mode 100644 index 00000000000..901ec40c052 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-sms.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_sms( + message_id: '<MESSAGE_ID>', + content: '<CONTENT>', + topics: [], # optional + users: [], # optional + targets: [], # optional + draft: false, # optional + scheduled_at: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..b062e574b4e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-smtp-provider.md @@ -0,0 +1,27 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_smtp_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + host: '<HOST>', + port: 1, # optional + username: '<USERNAME>', # optional + password: '<PASSWORD>', # optional + encryption: SmtpEncryption::NONE, # optional + auto_tls: false, # optional + mailer: '<MAILER>', # optional + from_name: '<FROM_NAME>', # optional + from_email: 'email@example.com', # optional + reply_to_name: '<REPLY_TO_NAME>', # optional + reply_to_email: 'email@example.com', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..1f6fa437363 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-subscriber.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token + +messaging = Messaging.new(client) + +result = messaging.create_subscriber( + topic_id: '<TOPIC_ID>', + subscriber_id: '<SUBSCRIBER_ID>', + target_id: '<TARGET_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..b26d9d2784f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-telesign-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_telesign_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', # optional + customer_id: '<CUSTOMER_ID>', # optional + api_key: '<API_KEY>', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..4fd1a3683ec --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_textmagic_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', # optional + username: '<USERNAME>', # optional + api_key: '<API_KEY>', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-topic.md new file mode 100644 index 00000000000..da2cf5e57bd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-topic.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_topic( + topic_id: '<TOPIC_ID>', + name: '<NAME>', + subscribe: ["any"] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..a945602646d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-twilio-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_twilio_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', # optional + account_sid: '<ACCOUNT_SID>', # optional + auth_token: '<AUTH_TOKEN>', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..5a5f6eb72b2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/create-vonage-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.create_vonage_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', + from: '+12065550100', # optional + api_key: '<API_KEY>', # optional + api_secret: '<API_SECRET>', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..3c19e1ba0f9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/delete-provider.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.delete_provider( + provider_id: '<PROVIDER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-ruby/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..a82e5e94c25 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/delete-subscriber.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token + +messaging = Messaging.new(client) + +result = messaging.delete_subscriber( + topic_id: '<TOPIC_ID>', + subscriber_id: '<SUBSCRIBER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-ruby/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..cb58ee5c6ce --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/delete-topic.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.delete_topic( + topic_id: '<TOPIC_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/delete.md b/docs/examples/1.7.x/server-ruby/examples/messaging/delete.md new file mode 100644 index 00000000000..e3db26127de --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.delete( + message_id: '<MESSAGE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/get-message.md b/docs/examples/1.7.x/server-ruby/examples/messaging/get-message.md new file mode 100644 index 00000000000..f5449a0be44 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/get-message.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.get_message( + message_id: '<MESSAGE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/get-provider.md new file mode 100644 index 00000000000..ddb28da4de2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/get-provider.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.get_provider( + provider_id: '<PROVIDER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-ruby/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..3c7d05334ea --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/get-subscriber.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.get_subscriber( + topic_id: '<TOPIC_ID>', + subscriber_id: '<SUBSCRIBER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-ruby/examples/messaging/get-topic.md new file mode 100644 index 00000000000..9ff732fc265 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/get-topic.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.get_topic( + topic_id: '<TOPIC_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..f20d6fb491c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-message-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_message_logs( + message_id: '<MESSAGE_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-messages.md new file mode 100644 index 00000000000..ffc5dcdbc6f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-messages.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_messages( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..af3751a18f6 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-provider-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_provider_logs( + provider_id: '<PROVIDER_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-providers.md new file mode 100644 index 00000000000..a857f0562ff --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-providers.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_providers( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..06550e70678 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_subscriber_logs( + subscriber_id: '<SUBSCRIBER_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..07ebc99babc --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-subscribers.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_subscribers( + topic_id: '<TOPIC_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-targets.md new file mode 100644 index 00000000000..0407255d860 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-targets.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_targets( + message_id: '<MESSAGE_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..9b53c47f826 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-topic-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_topic_logs( + topic_id: '<TOPIC_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-ruby/examples/messaging/list-topics.md new file mode 100644 index 00000000000..5e7b6740cca --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/list-topics.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.list_topics( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..b19704aaed9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-apns-provider.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_apns_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + auth_key: '<AUTH_KEY>', # optional + auth_key_id: '<AUTH_KEY_ID>', # optional + team_id: '<TEAM_ID>', # optional + bundle_id: '<BUNDLE_ID>', # optional + sandbox: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-email.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-email.md new file mode 100644 index 00000000000..aa3593292fb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-email.md @@ -0,0 +1,25 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_email( + message_id: '<MESSAGE_ID>', + topics: [], # optional + users: [], # optional + targets: [], # optional + subject: '<SUBJECT>', # optional + content: '<CONTENT>', # optional + draft: false, # optional + html: false, # optional + cc: [], # optional + bcc: [], # optional + scheduled_at: '', # optional + attachments: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..44ea0d28deb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-fcm-provider.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_fcm_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + service_account_json: {} # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..a2e53190d7d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,23 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_mailgun_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + api_key: '<API_KEY>', # optional + domain: '<DOMAIN>', # optional + is_eu_region: false, # optional + enabled: false, # optional + from_name: '<FROM_NAME>', # optional + from_email: 'email@example.com', # optional + reply_to_name: '<REPLY_TO_NAME>', # optional + reply_to_email: '<REPLY_TO_EMAIL>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..0e88382850e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-msg91provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_msg91_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + template_id: '<TEMPLATE_ID>', # optional + sender_id: '<SENDER_ID>', # optional + auth_key: '<AUTH_KEY>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-push.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-push.md new file mode 100644 index 00000000000..42a5104ccbd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-push.md @@ -0,0 +1,32 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_push( + message_id: '<MESSAGE_ID>', + topics: [], # optional + users: [], # optional + targets: [], # optional + title: '<TITLE>', # optional + body: '<BODY>', # optional + data: {}, # optional + action: '<ACTION>', # optional + image: '[ID1:ID2]', # optional + icon: '<ICON>', # optional + sound: '<SOUND>', # optional + color: '<COLOR>', # optional + tag: '<TAG>', # optional + badge: null, # optional + draft: false, # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..99f1a9c7f15 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,21 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_sendgrid_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + api_key: '<API_KEY>', # optional + from_name: '<FROM_NAME>', # optional + from_email: 'email@example.com', # optional + reply_to_name: '<REPLY_TO_NAME>', # optional + reply_to_email: '<REPLY_TO_EMAIL>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-sms.md new file mode 100644 index 00000000000..b31480c1a0f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-sms.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_sms( + message_id: '<MESSAGE_ID>', + topics: [], # optional + users: [], # optional + targets: [], # optional + content: '<CONTENT>', # optional + draft: false, # optional + scheduled_at: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..bbaebf3c32d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-smtp-provider.md @@ -0,0 +1,27 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_smtp_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + host: '<HOST>', # optional + port: 1, # optional + username: '<USERNAME>', # optional + password: '<PASSWORD>', # optional + encryption: SmtpEncryption::NONE, # optional + auto_tls: false, # optional + mailer: '<MAILER>', # optional + from_name: '<FROM_NAME>', # optional + from_email: 'email@example.com', # optional + reply_to_name: '<REPLY_TO_NAME>', # optional + reply_to_email: '<REPLY_TO_EMAIL>', # optional + enabled: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..4f1bf6ff5ba --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-telesign-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_telesign_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + customer_id: '<CUSTOMER_ID>', # optional + api_key: '<API_KEY>', # optional + from: '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..c8cd2f0daf5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_textmagic_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + username: '<USERNAME>', # optional + api_key: '<API_KEY>', # optional + from: '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-topic.md new file mode 100644 index 00000000000..d20d945385e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-topic.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_topic( + topic_id: '<TOPIC_ID>', + name: '<NAME>', # optional + subscribe: ["any"] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..0f6a6761e11 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-twilio-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_twilio_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + account_sid: '<ACCOUNT_SID>', # optional + auth_token: '<AUTH_TOKEN>', # optional + from: '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-ruby/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..e75bfbd98ee --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/messaging/update-vonage-provider.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +messaging = Messaging.new(client) + +result = messaging.update_vonage_provider( + provider_id: '<PROVIDER_ID>', + name: '<NAME>', # optional + enabled: false, # optional + api_key: '<API_KEY>', # optional + api_secret: '<API_SECRET>', # optional + from: '<FROM>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/create-deployment.md new file mode 100644 index 00000000000..b392b8679a1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/create-deployment.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.create_deployment( + site_id: '<SITE_ID>', + code: InputFile.from_path('dir/file.png'), + activate: false, + install_command: '<INSTALL_COMMAND>', # optional + build_command: '<BUILD_COMMAND>', # optional + output_directory: '<OUTPUT_DIRECTORY>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..f72b7a641b0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.create_duplicate_deployment( + site_id: '<SITE_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..7df96655908 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/create-template-deployment.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.create_template_deployment( + site_id: '<SITE_ID>', + repository: '<REPOSITORY>', + owner: '<OWNER>', + root_directory: '<ROOT_DIRECTORY>', + version: '<VERSION>', + activate: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/create-variable.md b/docs/examples/1.7.x/server-ruby/examples/sites/create-variable.md new file mode 100644 index 00000000000..4d2031f8eae --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/create-variable.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.create_variable( + site_id: '<SITE_ID>', + key: '<KEY>', + value: '<VALUE>', + secret: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..2e72b6e3f1f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/create-vcs-deployment.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.create_vcs_deployment( + site_id: '<SITE_ID>', + type: VCSDeploymentType::BRANCH, + reference: '<REFERENCE>', + activate: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/create.md b/docs/examples/1.7.x/server-ruby/examples/sites/create.md new file mode 100644 index 00000000000..22431854855 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/create.md @@ -0,0 +1,32 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.create( + site_id: '<SITE_ID>', + name: '<NAME>', + framework: ::ANALOG, + build_runtime: ::NODE_14_5, + enabled: false, # optional + logging: false, # optional + timeout: 1, # optional + install_command: '<INSTALL_COMMAND>', # optional + build_command: '<BUILD_COMMAND>', # optional + output_directory: '<OUTPUT_DIRECTORY>', # optional + adapter: ::STATIC, # optional + installation_id: '<INSTALLATION_ID>', # optional + fallback_file: '<FALLBACK_FILE>', # optional + provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch: '<PROVIDER_BRANCH>', # optional + provider_silent_mode: false, # optional + provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional + specification: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..6f96e05023f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/delete-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.delete_deployment( + site_id: '<SITE_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/delete-log.md b/docs/examples/1.7.x/server-ruby/examples/sites/delete-log.md new file mode 100644 index 00000000000..556f3e2855f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/delete-log.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.delete_log( + site_id: '<SITE_ID>', + log_id: '<LOG_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-ruby/examples/sites/delete-variable.md new file mode 100644 index 00000000000..ca5e51b2b93 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/delete-variable.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.delete_variable( + site_id: '<SITE_ID>', + variable_id: '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/delete.md b/docs/examples/1.7.x/server-ruby/examples/sites/delete.md new file mode 100644 index 00000000000..e92d6428e18 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.delete( + site_id: '<SITE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-ruby/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..85162626ba6 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/get-deployment-download.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.get_deployment_download( + site_id: '<SITE_ID>', + deployment_id: '<DEPLOYMENT_ID>', + type: DeploymentDownloadType::SOURCE # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/get-deployment.md new file mode 100644 index 00000000000..79f47e4aade --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/get-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.get_deployment( + site_id: '<SITE_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/get-log.md b/docs/examples/1.7.x/server-ruby/examples/sites/get-log.md new file mode 100644 index 00000000000..2e5e8c2d4c2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/get-log.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.get_log( + site_id: '<SITE_ID>', + log_id: '<LOG_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/get-variable.md b/docs/examples/1.7.x/server-ruby/examples/sites/get-variable.md new file mode 100644 index 00000000000..ac27efcd50b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/get-variable.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.get_variable( + site_id: '<SITE_ID>', + variable_id: '<VARIABLE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/get.md b/docs/examples/1.7.x/server-ruby/examples/sites/get.md new file mode 100644 index 00000000000..a8d3aac1b41 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/get.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.get( + site_id: '<SITE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-ruby/examples/sites/list-deployments.md new file mode 100644 index 00000000000..8571f8561ab --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/list-deployments.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.list_deployments( + site_id: '<SITE_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-ruby/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..61f18fbf6fd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/list-frameworks.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.list_frameworks() diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/list-logs.md b/docs/examples/1.7.x/server-ruby/examples/sites/list-logs.md new file mode 100644 index 00000000000..919be968c9b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/list-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.list_logs( + site_id: '<SITE_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-ruby/examples/sites/list-specifications.md new file mode 100644 index 00000000000..42f41157fb0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/list-specifications.md @@ -0,0 +1,12 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.list_specifications() diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/list-variables.md b/docs/examples/1.7.x/server-ruby/examples/sites/list-variables.md new file mode 100644 index 00000000000..cf10fa46284 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/list-variables.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.list_variables( + site_id: '<SITE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/list.md b/docs/examples/1.7.x/server-ruby/examples/sites/list.md new file mode 100644 index 00000000000..ba702052365 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.list( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-ruby/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..859ad22b619 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/update-deployment-status.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.update_deployment_status( + site_id: '<SITE_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-ruby/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..bc033e931e0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/update-site-deployment.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.update_site_deployment( + site_id: '<SITE_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/update-variable.md b/docs/examples/1.7.x/server-ruby/examples/sites/update-variable.md new file mode 100644 index 00000000000..e61f1295737 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/update-variable.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.update_variable( + site_id: '<SITE_ID>', + variable_id: '<VARIABLE_ID>', + key: '<KEY>', + value: '<VALUE>', # optional + secret: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/sites/update.md b/docs/examples/1.7.x/server-ruby/examples/sites/update.md new file mode 100644 index 00000000000..922255ab656 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/sites/update.md @@ -0,0 +1,32 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +sites = Sites.new(client) + +result = sites.update( + site_id: '<SITE_ID>', + name: '<NAME>', + framework: ::ANALOG, + enabled: false, # optional + logging: false, # optional + timeout: 1, # optional + install_command: '<INSTALL_COMMAND>', # optional + build_command: '<BUILD_COMMAND>', # optional + output_directory: '<OUTPUT_DIRECTORY>', # optional + build_runtime: ::NODE_14_5, # optional + adapter: ::STATIC, # optional + fallback_file: '<FALLBACK_FILE>', # optional + installation_id: '<INSTALLATION_ID>', # optional + provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional + provider_branch: '<PROVIDER_BRANCH>', # optional + provider_silent_mode: false, # optional + provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional + specification: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-ruby/examples/storage/create-bucket.md new file mode 100644 index 00000000000..643431ed2c4 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/create-bucket.md @@ -0,0 +1,23 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage.new(client) + +result = storage.create_bucket( + bucket_id: '<BUCKET_ID>', + name: '<NAME>', + permissions: ["read("any")"], # optional + file_security: false, # optional + enabled: false, # optional + maximum_file_size: 1, # optional + allowed_file_extensions: [], # optional + compression: ::NONE, # optional + encryption: false, # optional + antivirus: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.7.x/server-ruby/examples/storage/create-file.md new file mode 100644 index 00000000000..99e07c33f47 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/create-file.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.create_file( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + file: InputFile.from_path('dir/file.png'), + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-ruby/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..dda3264e666 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/delete-bucket.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage.new(client) + +result = storage.delete_bucket( + bucket_id: '<BUCKET_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.7.x/server-ruby/examples/storage/delete-file.md new file mode 100644 index 00000000000..eef058857c1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/delete-file.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.delete_file( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-ruby/examples/storage/get-bucket.md new file mode 100644 index 00000000000..7c8580dcaf0 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/get-bucket.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage.new(client) + +result = storage.get_bucket( + bucket_id: '<BUCKET_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-ruby/examples/storage/get-file-download.md new file mode 100644 index 00000000000..7b7075184ae --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/get-file-download.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.get_file_download( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + token: '<TOKEN>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-ruby/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..23254615d33 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/get-file-preview.md @@ -0,0 +1,27 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.get_file_preview( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + width: 0, # optional + height: 0, # optional + gravity: ImageGravity::CENTER, # optional + quality: -1, # optional + border_width: 0, # optional + border_color: '', # optional + border_radius: 0, # optional + opacity: 0, # optional + rotation: -360, # optional + background: '', # optional + output: ImageFormat::JPG, # optional + token: '<TOKEN>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-ruby/examples/storage/get-file-view.md new file mode 100644 index 00000000000..c9e9952f05a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/get-file-view.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.get_file_view( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + token: '<TOKEN>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.7.x/server-ruby/examples/storage/get-file.md new file mode 100644 index 00000000000..b816bdba02e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/get-file.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.get_file( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-ruby/examples/storage/list-buckets.md new file mode 100644 index 00000000000..dfee831b691 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/list-buckets.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage.new(client) + +result = storage.list_buckets( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.7.x/server-ruby/examples/storage/list-files.md new file mode 100644 index 00000000000..078ff55e41a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/list-files.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.list_files( + bucket_id: '<BUCKET_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-ruby/examples/storage/update-bucket.md new file mode 100644 index 00000000000..09b915eb5fb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/update-bucket.md @@ -0,0 +1,23 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +storage = Storage.new(client) + +result = storage.update_bucket( + bucket_id: '<BUCKET_ID>', + name: '<NAME>', + permissions: ["read("any")"], # optional + file_security: false, # optional + enabled: false, # optional + maximum_file_size: 1, # optional + allowed_file_extensions: [], # optional + compression: ::NONE, # optional + encryption: false, # optional + antivirus: false # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.7.x/server-ruby/examples/storage/update-file.md new file mode 100644 index 00000000000..a454499d9d1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/storage/update-file.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +storage = Storage.new(client) + +result = storage.update_file( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + name: '<NAME>', # optional + permissions: ["read("any")"] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.7.x/server-ruby/examples/teams/create-membership.md new file mode 100644 index 00000000000..6c0faba77d8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/create-membership.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.create_membership( + team_id: '<TEAM_ID>', + roles: [], + email: 'email@example.com', # optional + user_id: '<USER_ID>', # optional + phone: '+12065550100', # optional + url: 'https://example.com', # optional + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/create.md b/docs/examples/1.7.x/server-ruby/examples/teams/create.md new file mode 100644 index 00000000000..ba71a1dfc4e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/create.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.create( + team_id: '<TEAM_ID>', + name: '<NAME>', + roles: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-ruby/examples/teams/delete-membership.md new file mode 100644 index 00000000000..5d815a8ca35 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/delete-membership.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.delete_membership( + team_id: '<TEAM_ID>', + membership_id: '<MEMBERSHIP_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/delete.md b/docs/examples/1.7.x/server-ruby/examples/teams/delete.md new file mode 100644 index 00000000000..c9f7c400e90 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.delete( + team_id: '<TEAM_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.7.x/server-ruby/examples/teams/get-membership.md new file mode 100644 index 00000000000..41a2c7bfb49 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/get-membership.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.get_membership( + team_id: '<TEAM_ID>', + membership_id: '<MEMBERSHIP_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-ruby/examples/teams/get-prefs.md new file mode 100644 index 00000000000..e6b2cfadceb --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/get-prefs.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.get_prefs( + team_id: '<TEAM_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/get.md b/docs/examples/1.7.x/server-ruby/examples/teams/get.md new file mode 100644 index 00000000000..af51193cd37 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/get.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.get( + team_id: '<TEAM_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-ruby/examples/teams/list-memberships.md new file mode 100644 index 00000000000..db48f0cfc6a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/list-memberships.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.list_memberships( + team_id: '<TEAM_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/list.md b/docs/examples/1.7.x/server-ruby/examples/teams/list.md new file mode 100644 index 00000000000..9e96391975a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.list( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-ruby/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..40d82b86f17 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/update-membership-status.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.update_membership_status( + team_id: '<TEAM_ID>', + membership_id: '<MEMBERSHIP_ID>', + user_id: '<USER_ID>', + secret: '<SECRET>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.7.x/server-ruby/examples/teams/update-membership.md new file mode 100644 index 00000000000..92b69b17734 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/update-membership.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.update_membership( + team_id: '<TEAM_ID>', + membership_id: '<MEMBERSHIP_ID>', + roles: [] +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.7.x/server-ruby/examples/teams/update-name.md new file mode 100644 index 00000000000..74f785c4ca8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/update-name.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.update_name( + team_id: '<TEAM_ID>', + name: '<NAME>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-ruby/examples/teams/update-prefs.md new file mode 100644 index 00000000000..03426aa3b95 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/teams/update-prefs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +teams = Teams.new(client) + +result = teams.update_prefs( + team_id: '<TEAM_ID>', + prefs: {} +) diff --git a/docs/examples/1.7.x/server-ruby/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-ruby/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..8c432c5255e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/tokens/create-file-token.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens.new(client) + +result = tokens.create_file_token( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + expire: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/tokens/delete.md b/docs/examples/1.7.x/server-ruby/examples/tokens/delete.md new file mode 100644 index 00000000000..cb59147f420 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/tokens/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens.new(client) + +result = tokens.delete( + token_id: '<TOKEN_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/tokens/get.md b/docs/examples/1.7.x/server-ruby/examples/tokens/get.md new file mode 100644 index 00000000000..ef87c742948 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/tokens/get.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens.new(client) + +result = tokens.get( + token_id: '<TOKEN_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/tokens/list.md b/docs/examples/1.7.x/server-ruby/examples/tokens/list.md new file mode 100644 index 00000000000..4932f041516 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/tokens/list.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens.new(client) + +result = tokens.list( + bucket_id: '<BUCKET_ID>', + file_id: '<FILE_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/tokens/update.md b/docs/examples/1.7.x/server-ruby/examples/tokens/update.md new file mode 100644 index 00000000000..91713730fbe --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/tokens/update.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +tokens = Tokens.new(client) + +result = tokens.update( + token_id: '<TOKEN_ID>', + expire: '' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-argon2user.md new file mode 100644 index 00000000000..8da9e0b1ffd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-argon2user.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_argon2_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..7c2b852d691 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-bcrypt-user.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_bcrypt_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-ruby/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..57f7f1d32f3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-j-w-t.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_jwt( + user_id: '<USER_ID>', + session_id: '<SESSION_ID>', # optional + duration: 0 # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..63fb68742ef --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-m-d5user.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_md5_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-ruby/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..0cdea46af3d --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_mfa_recovery_codes( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..7cd898a6fc6 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_ph_pass_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..f3951d9c806 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-s-h-a-user.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_sha_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + password_version: PasswordHash::SHA1, # optional + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..d84c2eed488 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_scrypt_modified_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + password_salt: '<PASSWORD_SALT>', + password_salt_separator: '<PASSWORD_SALT_SEPARATOR>', + password_signer_key: '<PASSWORD_SIGNER_KEY>', + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-ruby/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..53aa253d2a2 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-scrypt-user.md @@ -0,0 +1,22 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_scrypt_user( + user_id: '<USER_ID>', + email: 'email@example.com', + password: 'password', + password_salt: '<PASSWORD_SALT>', + password_cpu: null, + password_memory: null, + password_parallel: null, + password_length: null, + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-session.md b/docs/examples/1.7.x/server-ruby/examples/users/create-session.md new file mode 100644 index 00000000000..32d2b5f2ad8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-session.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_session( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-target.md b/docs/examples/1.7.x/server-ruby/examples/users/create-target.md new file mode 100644 index 00000000000..3e87868df6f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-target.md @@ -0,0 +1,20 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_target( + user_id: '<USER_ID>', + target_id: '<TARGET_ID>', + provider_type: MessagingProviderType::EMAIL, + identifier: '<IDENTIFIER>', + provider_id: '<PROVIDER_ID>', # optional + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create-token.md b/docs/examples/1.7.x/server-ruby/examples/users/create-token.md new file mode 100644 index 00000000000..85e5f448ca8 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create-token.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_token( + user_id: '<USER_ID>', + length: 4, # optional + expire: 60 # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/create.md b/docs/examples/1.7.x/server-ruby/examples/users/create.md new file mode 100644 index 00000000000..4f57adeb877 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/create.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create( + user_id: '<USER_ID>', + email: 'email@example.com', # optional + phone: '+12065550100', # optional + password: '', # optional + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.7.x/server-ruby/examples/users/delete-identity.md new file mode 100644 index 00000000000..d2482dfae1e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/delete-identity.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.delete_identity( + identity_id: '<IDENTITY_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-ruby/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..50fcb0fa0d9 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite +include Appwrite::Enums + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.delete_mfa_authenticator( + user_id: '<USER_ID>', + type: AuthenticatorType::TOTP +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.7.x/server-ruby/examples/users/delete-session.md new file mode 100644 index 00000000000..9b14cc4fa34 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/delete-session.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.delete_session( + user_id: '<USER_ID>', + session_id: '<SESSION_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-ruby/examples/users/delete-sessions.md new file mode 100644 index 00000000000..23fd5057637 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/delete-sessions.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.delete_sessions( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/delete-target.md b/docs/examples/1.7.x/server-ruby/examples/users/delete-target.md new file mode 100644 index 00000000000..f1564024dbd --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/delete-target.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.delete_target( + user_id: '<USER_ID>', + target_id: '<TARGET_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/delete.md b/docs/examples/1.7.x/server-ruby/examples/users/delete.md new file mode 100644 index 00000000000..db7f2ee6f8b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/delete.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.delete( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-ruby/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..f984517d26f --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.get_mfa_recovery_codes( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.7.x/server-ruby/examples/users/get-prefs.md new file mode 100644 index 00000000000..0118b39897e --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/get-prefs.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.get_prefs( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/get-target.md b/docs/examples/1.7.x/server-ruby/examples/users/get-target.md new file mode 100644 index 00000000000..10ce49b2294 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/get-target.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.get_target( + user_id: '<USER_ID>', + target_id: '<TARGET_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/get.md b/docs/examples/1.7.x/server-ruby/examples/users/get.md new file mode 100644 index 00000000000..95865b7e6c5 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/get.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.get( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.7.x/server-ruby/examples/users/list-identities.md new file mode 100644 index 00000000000..78c8cf50981 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list-identities.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list_identities( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.7.x/server-ruby/examples/users/list-logs.md new file mode 100644 index 00000000000..686434869c1 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list_logs( + user_id: '<USER_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.7.x/server-ruby/examples/users/list-memberships.md new file mode 100644 index 00000000000..a4c3aa11d24 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list-memberships.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list_memberships( + user_id: '<USER_ID>', + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-ruby/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..ca1e2b2b964 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list-mfa-factors.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list_mfa_factors( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.7.x/server-ruby/examples/users/list-sessions.md new file mode 100644 index 00000000000..311420531f3 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list-sessions.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list_sessions( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list-targets.md b/docs/examples/1.7.x/server-ruby/examples/users/list-targets.md new file mode 100644 index 00000000000..aae99417940 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list-targets.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list_targets( + user_id: '<USER_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/list.md b/docs/examples/1.7.x/server-ruby/examples/users/list.md new file mode 100644 index 00000000000..b490b650997 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.list( + queries: [], # optional + search: '<SEARCH>' # optional +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-ruby/examples/users/update-email-verification.md new file mode 100644 index 00000000000..07f85f0318b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-email-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_email_verification( + user_id: '<USER_ID>', + email_verification: false +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-email.md b/docs/examples/1.7.x/server-ruby/examples/users/update-email.md new file mode 100644 index 00000000000..b36aac59d14 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-email.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_email( + user_id: '<USER_ID>', + email: 'email@example.com' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.7.x/server-ruby/examples/users/update-labels.md new file mode 100644 index 00000000000..a62d34b2e25 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-labels.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_labels( + user_id: '<USER_ID>', + labels: [] +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-ruby/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..aaf5ba16c0a --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_mfa_recovery_codes( + user_id: '<USER_ID>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-mfa.md b/docs/examples/1.7.x/server-ruby/examples/users/update-mfa.md new file mode 100644 index 00000000000..3ebfb961162 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-mfa.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_mfa( + user_id: '<USER_ID>', + mfa: false +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-name.md b/docs/examples/1.7.x/server-ruby/examples/users/update-name.md new file mode 100644 index 00000000000..e7ade96e326 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-name.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_name( + user_id: '<USER_ID>', + name: '<NAME>' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-password.md b/docs/examples/1.7.x/server-ruby/examples/users/update-password.md new file mode 100644 index 00000000000..47c1f1ef492 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-password.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_password( + user_id: '<USER_ID>', + password: '' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-ruby/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..6af7fcb638c --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-phone-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_phone_verification( + user_id: '<USER_ID>', + phone_verification: false +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.7.x/server-ruby/examples/users/update-phone.md new file mode 100644 index 00000000000..bd26547daaf --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-phone.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_phone( + user_id: '<USER_ID>', + number: '+12065550100' +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.7.x/server-ruby/examples/users/update-prefs.md new file mode 100644 index 00000000000..fbdccd7d236 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-prefs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_prefs( + user_id: '<USER_ID>', + prefs: {} +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-status.md b/docs/examples/1.7.x/server-ruby/examples/users/update-status.md new file mode 100644 index 00000000000..d73982c149b --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-status.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_status( + user_id: '<USER_ID>', + status: false +) diff --git a/docs/examples/1.7.x/server-ruby/examples/users/update-target.md b/docs/examples/1.7.x/server-ruby/examples/users/update-target.md new file mode 100644 index 00000000000..dbcd1bd2f40 --- /dev/null +++ b/docs/examples/1.7.x/server-ruby/examples/users/update-target.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.update_target( + user_id: '<USER_ID>', + target_id: '<TARGET_ID>', + identifier: '<IDENTIFIER>', # optional + provider_id: '<PROVIDER_ID>', # optional + name: '<NAME>' # optional +) diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-anonymous-session.md b/docs/examples/1.7.x/server-swift/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..22020a16d95 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-anonymous-session.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.createAnonymousSession() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-email-password-session.md b/docs/examples/1.7.x/server-swift/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..5f541a8a154 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-email-password-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.createEmailPasswordSession( + email: "email@example.com", + password: "password" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-email-token.md b/docs/examples/1.7.x/server-swift/examples/account/create-email-token.md new file mode 100644 index 00000000000..cf82afde8ff --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-email-token.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createEmailToken( + userId: "<USER_ID>", + email: "email@example.com", + phrase: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-j-w-t.md b/docs/examples/1.7.x/server-swift/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..fbcd50401c6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-j-w-t.md @@ -0,0 +1,10 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let jwt = try await account.createJWT() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.7.x/server-swift/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..27bbe4137ea --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createMagicURLToken( + userId: "<USER_ID>", + email: "email@example.com", + url: "https://example.com", // optional + phrase: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-mfa-authenticator.md b/docs/examples/1.7.x/server-swift/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..4dd91d84dd4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-mfa-authenticator.md @@ -0,0 +1,14 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let mfaType = try await account.createMfaAuthenticator( + type: .totp +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.7.x/server-swift/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..0b5d385999e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-mfa-challenge.md @@ -0,0 +1,13 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let mfaChallenge = try await account.createMfaChallenge( + factor: .email +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-swift/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..a73e4f60244 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let mfaRecoveryCodes = try await account.createMfaRecoveryCodes() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-o-auth2token.md b/docs/examples/1.7.x/server-swift/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..21b54e8c9a0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-o-auth2token.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let success = try await account.createOAuth2Token( + provider: .amazon, + success: "https://example.com", // optional + failure: "https://example.com", // optional + scopes: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-phone-token.md b/docs/examples/1.7.x/server-swift/examples/account/create-phone-token.md new file mode 100644 index 00000000000..12b2d4b2231 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-phone-token.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let token = try await account.createPhoneToken( + userId: "<USER_ID>", + phone: "+12065550100" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.7.x/server-swift/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..cba06376481 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-phone-verification.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let token = try await account.createPhoneVerification() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.7.x/server-swift/examples/account/create-recovery.md new file mode 100644 index 00000000000..d89f679e0c7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let token = try await account.createRecovery( + email: "email@example.com", + url: "https://example.com" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-session.md b/docs/examples/1.7.x/server-swift/examples/account/create-session.md new file mode 100644 index 00000000000..2065692a166 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.createSession( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create-verification.md b/docs/examples/1.7.x/server-swift/examples/account/create-verification.md new file mode 100644 index 00000000000..71e9bdd32b2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create-verification.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let token = try await account.createVerification( + url: "https://example.com" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/create.md b/docs/examples/1.7.x/server-swift/examples/account/create.md new file mode 100644 index 00000000000..79b4db64ba6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/create.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let user = try await account.create( + userId: "<USER_ID>", + email: "email@example.com", + password: "", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.7.x/server-swift/examples/account/delete-identity.md new file mode 100644 index 00000000000..f0f14b37d2d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/delete-identity.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let result = try await account.deleteIdentity( + identityId: "<IDENTITY_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-swift/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..e4209a25504 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,14 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let result = try await account.deleteMfaAuthenticator( + type: .totp +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/delete-session.md b/docs/examples/1.7.x/server-swift/examples/account/delete-session.md new file mode 100644 index 00000000000..24696201164 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/delete-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let result = try await account.deleteSession( + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.7.x/server-swift/examples/account/delete-sessions.md new file mode 100644 index 00000000000..da8ac6dfe85 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/delete-sessions.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let result = try await account.deleteSessions() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-swift/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..69455f4acd8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let mfaRecoveryCodes = try await account.getMfaRecoveryCodes() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.7.x/server-swift/examples/account/get-prefs.md new file mode 100644 index 00000000000..6551df92e63 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/get-prefs.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let preferences = try await account.getPrefs() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/get-session.md b/docs/examples/1.7.x/server-swift/examples/account/get-session.md new file mode 100644 index 00000000000..63efb3f0980 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/get-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let session = try await account.getSession( + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/get.md b/docs/examples/1.7.x/server-swift/examples/account/get.md new file mode 100644 index 00000000000..833901b5b4d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/get.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.get() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/list-identities.md b/docs/examples/1.7.x/server-swift/examples/account/list-identities.md new file mode 100644 index 00000000000..c7ecff9962e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/list-identities.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let identityList = try await account.listIdentities( + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/list-logs.md b/docs/examples/1.7.x/server-swift/examples/account/list-logs.md new file mode 100644 index 00000000000..84c33277623 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/list-logs.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let logList = try await account.listLogs( + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/list-mfa-factors.md b/docs/examples/1.7.x/server-swift/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..a63d4d0f824 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/list-mfa-factors.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let mfaFactors = try await account.listMfaFactors() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.7.x/server-swift/examples/account/list-sessions.md new file mode 100644 index 00000000000..49691b3a9e1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/list-sessions.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let sessionList = try await account.listSessions() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-email.md b/docs/examples/1.7.x/server-swift/examples/account/update-email.md new file mode 100644 index 00000000000..48cce5055d9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-email.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updateEmail( + email: "email@example.com", + password: "password" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-m-f-a.md b/docs/examples/1.7.x/server-swift/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..ac486fceb65 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-m-f-a.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updateMFA( + mfa: false +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.7.x/server-swift/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..507006b2300 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.updateMagicURLSession( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-mfa-authenticator.md b/docs/examples/1.7.x/server-swift/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..fedbc954af9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-mfa-authenticator.md @@ -0,0 +1,15 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updateMfaAuthenticator( + type: .totp, + otp: "<OTP>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-mfa-challenge.md b/docs/examples/1.7.x/server-swift/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..4edb1fbbc37 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-mfa-challenge.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let session = try await account.updateMfaChallenge( + challengeId: "<CHALLENGE_ID>", + otp: "<OTP>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-swift/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..d0a2b8c6865 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let mfaRecoveryCodes = try await account.updateMfaRecoveryCodes() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-name.md b/docs/examples/1.7.x/server-swift/examples/account/update-name.md new file mode 100644 index 00000000000..2c676d87145 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-name.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updateName( + name: "<NAME>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-password.md b/docs/examples/1.7.x/server-swift/examples/account/update-password.md new file mode 100644 index 00000000000..62fe48e6e95 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-password.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updatePassword( + password: "", + oldPassword: "password" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-phone-session.md b/docs/examples/1.7.x/server-swift/examples/account/update-phone-session.md new file mode 100644 index 00000000000..f6776d1de19 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-phone-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let account = Account(client) + +let session = try await account.updatePhoneSession( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.7.x/server-swift/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..a983e79c3c1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-phone-verification.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let token = try await account.updatePhoneVerification( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-phone.md b/docs/examples/1.7.x/server-swift/examples/account/update-phone.md new file mode 100644 index 00000000000..6dd87a0ce5d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-phone.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updatePhone( + phone: "+12065550100", + password: "password" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.7.x/server-swift/examples/account/update-prefs.md new file mode 100644 index 00000000000..53bf623469f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-prefs.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updatePrefs( + prefs: [:] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.7.x/server-swift/examples/account/update-recovery.md new file mode 100644 index 00000000000..d655edfe593 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-recovery.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let token = try await account.updateRecovery( + userId: "<USER_ID>", + secret: "<SECRET>", + password: "" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-session.md b/docs/examples/1.7.x/server-swift/examples/account/update-session.md new file mode 100644 index 00000000000..f2f4f7b737d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let session = try await account.updateSession( + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-status.md b/docs/examples/1.7.x/server-swift/examples/account/update-status.md new file mode 100644 index 00000000000..88e30cfb095 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-status.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let user = try await account.updateStatus() + diff --git a/docs/examples/1.7.x/server-swift/examples/account/update-verification.md b/docs/examples/1.7.x/server-swift/examples/account/update-verification.md new file mode 100644 index 00000000000..61bc18cc489 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/account/update-verification.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let account = Account(client) + +let token = try await account.updateVerification( + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-browser.md new file mode 100644 index 00000000000..1c105c280cd --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-browser.md @@ -0,0 +1,17 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getBrowser( + code: .avantBrowser, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..af7c2800be6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-credit-card.md @@ -0,0 +1,17 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getCreditCard( + code: .americanExpress, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..73f54fe5d34 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-favicon.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getFavicon( + url: "https://example.com" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-flag.md new file mode 100644 index 00000000000..e33cbb0c7f7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-flag.md @@ -0,0 +1,17 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getFlag( + code: .afghanistan, + width: 0, // optional + height: 0, // optional + quality: -1 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-image.md new file mode 100644 index 00000000000..5455ad18f53 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getImage( + url: "https://example.com", + width: 0, // optional + height: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-initials.md new file mode 100644 index 00000000000..63dfa5e5ab5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-initials.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getInitials( + name: "<NAME>", // optional + width: 0, // optional + height: 0, // optional + background: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.7.x/server-swift/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..ae4cc910ab0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/avatars/get-q-r.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let avatars = Avatars(client) + +let bytes = try await avatars.getQR( + text: "<TEXT>", + size: 1, // optional + margin: 0, // optional + download: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..4530c385caf --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-boolean-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeBoolean = try await databases.createBooleanAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: false, // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.7.x/server-swift/examples/databases/create-collection.md new file mode 100644 index 00000000000..c3335b48cbc --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-collection.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let collection = try await databases.createCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..d14d0b5cabf --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-datetime-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeDatetime = try await databases.createDatetimeAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-document.md b/docs/examples/1.7.x/server-swift/examples/databases/create-document.md new file mode 100644 index 00000000000..4ee21048ab4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-document.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setSession("") // The user session to authenticate with + .setKey("<YOUR_API_KEY>") // Your secret API key + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +let databases = Databases(client) + +let document = try await databases.createDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: [:], + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-documents.md b/docs/examples/1.7.x/server-swift/examples/databases/create-documents.md new file mode 100644 index 00000000000..39a58ab3fdc --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.createDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..9bd30b38c96 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-email-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeEmail = try await databases.createEmailAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "email@example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..08023f652b9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-enum-attribute.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeEnum = try await databases.createEnumAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + elements: [], + required: false, + default: "<DEFAULT>", // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..b5126c6a50e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-float-attribute.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeFloat = try await databases.createFloatAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-index.md b/docs/examples/1.7.x/server-swift/examples/databases/create-index.md new file mode 100644 index 00000000000..7e9a6205d7c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-index.md @@ -0,0 +1,20 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let index = try await databases.createIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + type: .key, + attributes: [], + orders: [], // optional + lengths: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..20c29cd5696 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-integer-attribute.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeInteger = try await databases.createIntegerAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + min: 0, // optional + max: 0, // optional + default: 0, // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..09605ba5220 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-ip-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeIp = try await databases.createIpAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..8e6c3eb84b0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-relationship-attribute.md @@ -0,0 +1,21 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeRelationship = try await databases.createRelationshipAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + relatedCollectionId: "<RELATED_COLLECTION_ID>", + type: .oneToOne, + twoWay: false, // optional + key: "", // optional + twoWayKey: "", // optional + onDelete: .cascade // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..80c321ecdb0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-string-attribute.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeString = try await databases.createStringAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + size: 1, + required: false, + default: "<DEFAULT>", // optional + array: false, // optional + encrypt: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..efd2acbc085 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create-url-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeUrl = try await databases.createUrlAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "https://example.com", // optional + array: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/create.md b/docs/examples/1.7.x/server-swift/examples/databases/create.md new file mode 100644 index 00000000000..b0362bb3e84 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/create.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let database = try await databases.create( + databaseId: "<DATABASE_ID>", + name: "<NAME>", + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..99485559811 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/delete-attribute.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let result = try await databases.deleteAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.7.x/server-swift/examples/databases/delete-collection.md new file mode 100644 index 00000000000..d61f0e658db --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/delete-collection.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let result = try await databases.deleteCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.7.x/server-swift/examples/databases/delete-document.md new file mode 100644 index 00000000000..1db59709ab2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/delete-document.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let databases = Databases(client) + +let result = try await databases.deleteDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/delete-documents.md b/docs/examples/1.7.x/server-swift/examples/databases/delete-documents.md new file mode 100644 index 00000000000..d5321f2b26f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.deleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.7.x/server-swift/examples/databases/delete-index.md new file mode 100644 index 00000000000..ecd09f7ce66 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/delete-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let result = try await databases.deleteIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/delete.md b/docs/examples/1.7.x/server-swift/examples/databases/delete.md new file mode 100644 index 00000000000..40567e4288d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let result = try await databases.delete( + databaseId: "<DATABASE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/get-attribute.md new file mode 100644 index 00000000000..30cd0c88326 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/get-attribute.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let result = try await databases.getAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.7.x/server-swift/examples/databases/get-collection.md new file mode 100644 index 00000000000..96c1fa0f940 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/get-collection.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let collection = try await databases.getCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/get-document.md b/docs/examples/1.7.x/server-swift/examples/databases/get-document.md new file mode 100644 index 00000000000..c92856a731d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/get-document.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let databases = Databases(client) + +let document = try await databases.getDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/get-index.md b/docs/examples/1.7.x/server-swift/examples/databases/get-index.md new file mode 100644 index 00000000000..cd59074dc83 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/get-index.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let index = try await databases.getIndex( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/get.md b/docs/examples/1.7.x/server-swift/examples/databases/get.md new file mode 100644 index 00000000000..875929bed08 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/get.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let database = try await databases.get( + databaseId: "<DATABASE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.7.x/server-swift/examples/databases/list-attributes.md new file mode 100644 index 00000000000..b375c8771b8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/list-attributes.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeList = try await databases.listAttributes( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.7.x/server-swift/examples/databases/list-collections.md new file mode 100644 index 00000000000..10481d985ca --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/list-collections.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let collectionList = try await databases.listCollections( + databaseId: "<DATABASE_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.7.x/server-swift/examples/databases/list-documents.md new file mode 100644 index 00000000000..2cac9330b37 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/list-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let databases = Databases(client) + +let documentList = try await databases.listDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.7.x/server-swift/examples/databases/list-indexes.md new file mode 100644 index 00000000000..691f74b0765 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/list-indexes.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let indexList = try await databases.listIndexes( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/list.md b/docs/examples/1.7.x/server-swift/examples/databases/list.md new file mode 100644 index 00000000000..f8a2313acc8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/list.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let databaseList = try await databases.list( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..0d925056c2b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-boolean-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeBoolean = try await databases.updateBooleanAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: false, + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.7.x/server-swift/examples/databases/update-collection.md new file mode 100644 index 00000000000..91099901095 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-collection.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let collection = try await databases.updateCollection( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..906b374946e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-datetime-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeDatetime = try await databases.updateDatetimeAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-document.md b/docs/examples/1.7.x/server-swift/examples/databases/update-document.md new file mode 100644 index 00000000000..7d452db284d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-document.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let databases = Databases(client) + +let document = try await databases.updateDocument( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documentId: "<DOCUMENT_ID>", + data: [:], // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-documents.md b/docs/examples/1.7.x/server-swift/examples/databases/update-documents.md new file mode 100644 index 00000000000..0e934b1424b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.updateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: [:], // optional + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..b485712ada5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-email-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeEmail = try await databases.updateEmailAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "email@example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..997b940c1b1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-enum-attribute.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeEnum = try await databases.updateEnumAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + elements: [], + required: false, + default: "<DEFAULT>", + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..5f3e8da4dab --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-float-attribute.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeFloat = try await databases.updateFloatAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..edc0a12c8c6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-integer-attribute.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeInteger = try await databases.updateIntegerAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..e08835747c0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-ip-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeIp = try await databases.updateIpAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "", + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..0fb06d77960 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-relationship-attribute.md @@ -0,0 +1,18 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeRelationship = try await databases.updateRelationshipAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + onDelete: .cascade, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..1eb3315dcab --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-string-attribute.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeString = try await databases.updateStringAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.7.x/server-swift/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..cd18f963686 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update-url-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let attributeUrl = try await databases.updateUrlAttribute( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + key: "", + required: false, + default: "https://example.com", + newKey: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/update.md b/docs/examples/1.7.x/server-swift/examples/databases/update.md new file mode 100644 index 00000000000..07f506257b1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/update.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let database = try await databases.update( + databaseId: "<DATABASE_ID>", + name: "<NAME>", + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/databases/upsert-documents.md b/docs/examples/1.7.x/server-swift/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..353cc5c5024 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.upsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/create-deployment.md new file mode 100644 index 00000000000..de3d14d2424 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create-deployment.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deployment = try await functions.createDeployment( + functionId: "<FUNCTION_ID>", + code: InputFile.fromPath("file.png"), + activate: false, + entrypoint: "<ENTRYPOINT>", // optional + commands: "<COMMANDS>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create-duplicate-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/create-duplicate-deployment.md new file mode 100644 index 00000000000..cadf67aa653 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create-duplicate-deployment.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deployment = try await functions.createDuplicateDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>", + buildId: "<BUILD_ID>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.7.x/server-swift/examples/functions/create-execution.md new file mode 100644 index 00000000000..aae7a0f52f5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create-execution.md @@ -0,0 +1,20 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let functions = Functions(client) + +let execution = try await functions.createExecution( + functionId: "<FUNCTION_ID>", + body: "<BODY>", // optional + async: false, // optional + path: "<PATH>", // optional + method: .gET, // optional + headers: [:], // optional + scheduledAt: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create-template-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/create-template-deployment.md new file mode 100644 index 00000000000..27c5311c7a7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create-template-deployment.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deployment = try await functions.createTemplateDeployment( + functionId: "<FUNCTION_ID>", + repository: "<REPOSITORY>", + owner: "<OWNER>", + rootDirectory: "<ROOT_DIRECTORY>", + version: "<VERSION>", + activate: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.7.x/server-swift/examples/functions/create-variable.md new file mode 100644 index 00000000000..d792c678e6d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create-variable.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let variable = try await functions.createVariable( + functionId: "<FUNCTION_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create-vcs-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/create-vcs-deployment.md new file mode 100644 index 00000000000..5586722aab5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create-vcs-deployment.md @@ -0,0 +1,17 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deployment = try await functions.createVcsDeployment( + functionId: "<FUNCTION_ID>", + type: .branch, + reference: "<REFERENCE>", + activate: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/create.md b/docs/examples/1.7.x/server-swift/examples/functions/create.md new file mode 100644 index 00000000000..6f17a65b931 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/create.md @@ -0,0 +1,31 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let function = try await functions.create( + functionId: "<FUNCTION_ID>", + name: "<NAME>", + runtime: .node145, + execute: ["any"], // optional + events: [], // optional + schedule: "", // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: "<ENTRYPOINT>", // optional + commands: "<COMMANDS>", // optional + scopes: [], // optional + installationId: "<INSTALLATION_ID>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..dec7b1db8f5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/delete-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let result = try await functions.deleteDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/delete-execution.md b/docs/examples/1.7.x/server-swift/examples/functions/delete-execution.md new file mode 100644 index 00000000000..e51b7dcd5c4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let result = try await functions.deleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.7.x/server-swift/examples/functions/delete-variable.md new file mode 100644 index 00000000000..ea0ebab079a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/delete-variable.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let result = try await functions.deleteVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/delete.md b/docs/examples/1.7.x/server-swift/examples/functions/delete.md new file mode 100644 index 00000000000..76bb48cddf4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let result = try await functions.delete( + functionId: "<FUNCTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/get-deployment-download.md b/docs/examples/1.7.x/server-swift/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..1feab0f4841 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/get-deployment-download.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let bytes = try await functions.getDeploymentDownload( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>", + type: .source // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/get-deployment.md new file mode 100644 index 00000000000..56ed2e85128 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/get-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deployment = try await functions.getDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.7.x/server-swift/examples/functions/get-execution.md new file mode 100644 index 00000000000..6d24ee9390e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let functions = Functions(client) + +let execution = try await functions.getExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.7.x/server-swift/examples/functions/get-variable.md new file mode 100644 index 00000000000..da20d680076 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/get-variable.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let variable = try await functions.getVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/get.md b/docs/examples/1.7.x/server-swift/examples/functions/get.md new file mode 100644 index 00000000000..98babdb04d3 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/get.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let function = try await functions.get( + functionId: "<FUNCTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.7.x/server-swift/examples/functions/list-deployments.md new file mode 100644 index 00000000000..599f301ca88 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/list-deployments.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deploymentList = try await functions.listDeployments( + functionId: "<FUNCTION_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.7.x/server-swift/examples/functions/list-executions.md new file mode 100644 index 00000000000..f0aa857f01c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let functions = Functions(client) + +let executionList = try await functions.listExecutions( + functionId: "<FUNCTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.7.x/server-swift/examples/functions/list-runtimes.md new file mode 100644 index 00000000000..c4a3f31174c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/list-runtimes.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let runtimeList = try await functions.listRuntimes() + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/list-specifications.md b/docs/examples/1.7.x/server-swift/examples/functions/list-specifications.md new file mode 100644 index 00000000000..1f5914ba91f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let specificationList = try await functions.listSpecifications() + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.7.x/server-swift/examples/functions/list-variables.md new file mode 100644 index 00000000000..0343e547721 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/list-variables.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let variableList = try await functions.listVariables( + functionId: "<FUNCTION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/list.md b/docs/examples/1.7.x/server-swift/examples/functions/list.md new file mode 100644 index 00000000000..370b6bddfd2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/list.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let functionList = try await functions.list( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/update-deployment-status.md b/docs/examples/1.7.x/server-swift/examples/functions/update-deployment-status.md new file mode 100644 index 00000000000..18831996559 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/update-deployment-status.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let deployment = try await functions.updateDeploymentStatus( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/update-function-deployment.md b/docs/examples/1.7.x/server-swift/examples/functions/update-function-deployment.md new file mode 100644 index 00000000000..5557d82f103 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/update-function-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let function = try await functions.updateFunctionDeployment( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.7.x/server-swift/examples/functions/update-variable.md new file mode 100644 index 00000000000..974b2ed0ffd --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/update-variable.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let variable = try await functions.updateVariable( + functionId: "<FUNCTION_ID>", + variableId: "<VARIABLE_ID>", + key: "<KEY>", + value: "<VALUE>", // optional + secret: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/functions/update.md b/docs/examples/1.7.x/server-swift/examples/functions/update.md new file mode 100644 index 00000000000..ebb2828bc8f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/functions/update.md @@ -0,0 +1,31 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let function = try await functions.update( + functionId: "<FUNCTION_ID>", + name: "<NAME>", + runtime: .node145, // optional + execute: ["any"], // optional + events: [], // optional + schedule: "", // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: "<ENTRYPOINT>", // optional + commands: "<COMMANDS>", // optional + scopes: [], // optional + installationId: "<INSTALLATION_ID>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.7.x/server-swift/examples/graphql/mutation.md new file mode 100644 index 00000000000..ad338588946 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/graphql/mutation.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let graphql = Graphql(client) + +let any = try await graphql.mutation( + query: [:] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/graphql/query.md b/docs/examples/1.7.x/server-swift/examples/graphql/query.md new file mode 100644 index 00000000000..f087c888a35 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/graphql/query.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let graphql = Graphql(client) + +let any = try await graphql.query( + query: [:] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.7.x/server-swift/examples/health/get-antivirus.md new file mode 100644 index 00000000000..5fc335f8fc5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-antivirus.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthAntivirus = try await health.getAntivirus() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-cache.md b/docs/examples/1.7.x/server-swift/examples/health/get-cache.md new file mode 100644 index 00000000000..a1c514b60e7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-cache.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthStatus = try await health.getCache() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-certificate.md b/docs/examples/1.7.x/server-swift/examples/health/get-certificate.md new file mode 100644 index 00000000000..6adf4d60523 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-certificate.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthCertificate = try await health.getCertificate( + domain: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.7.x/server-swift/examples/health/get-d-b.md new file mode 100644 index 00000000000..a6aeb12e44c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-d-b.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthStatus = try await health.getDB() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-failed-jobs.md b/docs/examples/1.7.x/server-swift/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..c508106bfa4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-failed-jobs.md @@ -0,0 +1,15 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getFailedJobs( + name: .v1Database, + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.7.x/server-swift/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..9a7766c94a5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-pub-sub.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthStatus = try await health.getPubSub() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..8db346ccbee --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-builds.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueBuilds( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..4814f29d870 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-certificates.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueCertificates( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..3acda3ddd74 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-databases.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueDatabases( + name: "<NAME>", // optional + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..8be397f53f8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-deletes.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueDeletes( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..aa420409d2c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-functions.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueFunctions( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..dc989a510f3 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-logs.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueLogs( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..2106b2f233a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-mails.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueMails( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..11cb16c5e3c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-messaging.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueMessaging( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..a0a4588b545 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-migrations.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueMigrations( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-stats-resources.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..4eb6ba7de37 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueStatsResources( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..bfaeab0b36d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-usage.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueUsage( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.7.x/server-swift/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..c315406627d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-queue-webhooks.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueWebhooks( + threshold: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.7.x/server-swift/examples/health/get-storage-local.md new file mode 100644 index 00000000000..9e23c09b6d2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-storage-local.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthStatus = try await health.getStorageLocal() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-storage.md b/docs/examples/1.7.x/server-swift/examples/health/get-storage.md new file mode 100644 index 00000000000..513ebac944a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-storage.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthStatus = try await health.getStorage() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get-time.md b/docs/examples/1.7.x/server-swift/examples/health/get-time.md new file mode 100644 index 00000000000..6624b40b227 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get-time.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthTime = try await health.getTime() + diff --git a/docs/examples/1.7.x/server-swift/examples/health/get.md b/docs/examples/1.7.x/server-swift/examples/health/get.md new file mode 100644 index 00000000000..ef1ffaab6cd --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/health/get.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthStatus = try await health.get() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/get.md b/docs/examples/1.7.x/server-swift/examples/locale/get.md new file mode 100644 index 00000000000..e22f3157c79 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/get.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let locale = try await locale.get() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.7.x/server-swift/examples/locale/list-codes.md new file mode 100644 index 00000000000..b31448a1193 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-codes.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let localeCodeList = try await locale.listCodes() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.7.x/server-swift/examples/locale/list-continents.md new file mode 100644 index 00000000000..c75abf8a4d7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-continents.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let continentList = try await locale.listContinents() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.7.x/server-swift/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..e09f3db4f72 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-countries-e-u.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let countryList = try await locale.listCountriesEU() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.7.x/server-swift/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..de360c44087 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-countries-phones.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let phoneList = try await locale.listCountriesPhones() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.7.x/server-swift/examples/locale/list-countries.md new file mode 100644 index 00000000000..b214f9899b2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-countries.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let countryList = try await locale.listCountries() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.7.x/server-swift/examples/locale/list-currencies.md new file mode 100644 index 00000000000..a47cae696be --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-currencies.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let currencyList = try await locale.listCurrencies() + diff --git a/docs/examples/1.7.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.7.x/server-swift/examples/locale/list-languages.md new file mode 100644 index 00000000000..40db7e5fe6e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/locale/list-languages.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let locale = Locale(client) + +let languageList = try await locale.listLanguages() + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-apns-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..5e20018fef9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-apns-provider.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createApnsProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + authKey: "<AUTH_KEY>", // optional + authKeyId: "<AUTH_KEY_ID>", // optional + teamId: "<TEAM_ID>", // optional + bundleId: "<BUNDLE_ID>", // optional + sandbox: false, // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-email.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-email.md new file mode 100644 index 00000000000..a1b47742289 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-email.md @@ -0,0 +1,24 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.createEmail( + messageId: "<MESSAGE_ID>", + subject: "<SUBJECT>", + content: "<CONTENT>", + topics: [], // optional + users: [], // optional + targets: [], // optional + cc: [], // optional + bcc: [], // optional + attachments: [], // optional + draft: false, // optional + html: false, // optional + scheduledAt: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-fcm-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..0071e477f10 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-fcm-provider.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createFcmProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + serviceAccountJSON: [:], // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-mailgun-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..aca295d1bdf --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,22 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createMailgunProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", // optional + domain: "<DOMAIN>", // optional + isEuRegion: false, // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "email@example.com", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-msg91provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..01503c10cb8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-msg91provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createMsg91Provider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + templateId: "<TEMPLATE_ID>", // optional + senderId: "<SENDER_ID>", // optional + authKey: "<AUTH_KEY>", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-push.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-push.md new file mode 100644 index 00000000000..498eccb51a4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-push.md @@ -0,0 +1,32 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.createPush( + messageId: "<MESSAGE_ID>", + title: "<TITLE>", // optional + body: "<BODY>", // optional + topics: [], // optional + users: [], // optional + targets: [], // optional + data: [:], // optional + action: "<ACTION>", // optional + image: "[ID1:ID2]", // optional + icon: "<ICON>", // optional + sound: "<SOUND>", // optional + color: "<COLOR>", // optional + tag: "<TAG>", // optional + badge: 0, // optional + draft: false, // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..5275f6cdb7e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createSendgridProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + apiKey: "<API_KEY>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "email@example.com", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-sms.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-sms.md new file mode 100644 index 00000000000..4f579312a92 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-sms.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.createSms( + messageId: "<MESSAGE_ID>", + content: "<CONTENT>", + topics: [], // optional + users: [], // optional + targets: [], // optional + draft: false, // optional + scheduledAt: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-smtp-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..18d25df7383 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-smtp-provider.md @@ -0,0 +1,27 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createSmtpProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + host: "<HOST>", + port: 1, // optional + username: "<USERNAME>", // optional + password: "<PASSWORD>", // optional + encryption: .none, // optional + autoTLS: false, // optional + mailer: "<MAILER>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "email@example.com", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-subscriber.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..cb231624849 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-subscriber.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +let messaging = Messaging(client) + +let subscriber = try await messaging.createSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>", + targetId: "<TARGET_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-telesign-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..a787134992a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-telesign-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createTelesignProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + customerId: "<CUSTOMER_ID>", // optional + apiKey: "<API_KEY>", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-textmagic-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..9b12a7d8cbc --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createTextmagicProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + username: "<USERNAME>", // optional + apiKey: "<API_KEY>", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-topic.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-topic.md new file mode 100644 index 00000000000..9429c45554a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-topic.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let topic = try await messaging.createTopic( + topicId: "<TOPIC_ID>", + name: "<NAME>", + subscribe: ["any"] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-twilio-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..7421290e05d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-twilio-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createTwilioProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + accountSid: "<ACCOUNT_SID>", // optional + authToken: "<AUTH_TOKEN>", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/create-vonage-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..b6a30143910 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/create-vonage-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.createVonageProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", + from: "+12065550100", // optional + apiKey: "<API_KEY>", // optional + apiSecret: "<API_SECRET>", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/delete-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..94da565e1fe --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/delete-provider.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let result = try await messaging.deleteProvider( + providerId: "<PROVIDER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/delete-subscriber.md b/docs/examples/1.7.x/server-swift/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..b0aa96602f1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/delete-subscriber.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + +let messaging = Messaging(client) + +let result = try await messaging.deleteSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/delete-topic.md b/docs/examples/1.7.x/server-swift/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..6676adf94e5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/delete-topic.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let result = try await messaging.deleteTopic( + topicId: "<TOPIC_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/delete.md b/docs/examples/1.7.x/server-swift/examples/messaging/delete.md new file mode 100644 index 00000000000..fca66c7f431 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let result = try await messaging.delete( + messageId: "<MESSAGE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/get-message.md b/docs/examples/1.7.x/server-swift/examples/messaging/get-message.md new file mode 100644 index 00000000000..b1bbf9d5f01 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/get-message.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.getMessage( + messageId: "<MESSAGE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/get-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/get-provider.md new file mode 100644 index 00000000000..6ff8545bd0a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/get-provider.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.getProvider( + providerId: "<PROVIDER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/get-subscriber.md b/docs/examples/1.7.x/server-swift/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..55538e073d7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/get-subscriber.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let subscriber = try await messaging.getSubscriber( + topicId: "<TOPIC_ID>", + subscriberId: "<SUBSCRIBER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/get-topic.md b/docs/examples/1.7.x/server-swift/examples/messaging/get-topic.md new file mode 100644 index 00000000000..0d2035bd9d8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/get-topic.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let topic = try await messaging.getTopic( + topicId: "<TOPIC_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-message-logs.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..b7efe6fa9f8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-message-logs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let logList = try await messaging.listMessageLogs( + messageId: "<MESSAGE_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-messages.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-messages.md new file mode 100644 index 00000000000..73832f7daed --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-messages.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let messageList = try await messaging.listMessages( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-provider-logs.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..0633e15b62b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-provider-logs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let logList = try await messaging.listProviderLogs( + providerId: "<PROVIDER_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-providers.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-providers.md new file mode 100644 index 00000000000..c24af425a6f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-providers.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let providerList = try await messaging.listProviders( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-subscriber-logs.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..eab170d7cb6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let logList = try await messaging.listSubscriberLogs( + subscriberId: "<SUBSCRIBER_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-subscribers.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..a29bcefaf1f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-subscribers.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let subscriberList = try await messaging.listSubscribers( + topicId: "<TOPIC_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-targets.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-targets.md new file mode 100644 index 00000000000..974ae4f7b5c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-targets.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let targetList = try await messaging.listTargets( + messageId: "<MESSAGE_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-topic-logs.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..e6f32ad2322 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-topic-logs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let logList = try await messaging.listTopicLogs( + topicId: "<TOPIC_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/list-topics.md b/docs/examples/1.7.x/server-swift/examples/messaging/list-topics.md new file mode 100644 index 00000000000..13106e940c9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/list-topics.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let topicList = try await messaging.listTopics( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-apns-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..03afe5555b6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-apns-provider.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateApnsProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + authKey: "<AUTH_KEY>", // optional + authKeyId: "<AUTH_KEY_ID>", // optional + teamId: "<TEAM_ID>", // optional + bundleId: "<BUNDLE_ID>", // optional + sandbox: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-email.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-email.md new file mode 100644 index 00000000000..1404fb8f772 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-email.md @@ -0,0 +1,24 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.updateEmail( + messageId: "<MESSAGE_ID>", + topics: [], // optional + users: [], // optional + targets: [], // optional + subject: "<SUBJECT>", // optional + content: "<CONTENT>", // optional + draft: false, // optional + html: false, // optional + cc: [], // optional + bcc: [], // optional + scheduledAt: "", // optional + attachments: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-fcm-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..c4548f65490 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-fcm-provider.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateFcmProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + serviceAccountJSON: [:] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-mailgun-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..8ed28aa40ef --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,22 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateMailgunProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + apiKey: "<API_KEY>", // optional + domain: "<DOMAIN>", // optional + isEuRegion: false, // optional + enabled: false, // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "<REPLY_TO_EMAIL>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-msg91provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..e4a441c561a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-msg91provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateMsg91Provider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + templateId: "<TEMPLATE_ID>", // optional + senderId: "<SENDER_ID>", // optional + authKey: "<AUTH_KEY>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-push.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-push.md new file mode 100644 index 00000000000..e443161aa97 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-push.md @@ -0,0 +1,32 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.updatePush( + messageId: "<MESSAGE_ID>", + topics: [], // optional + users: [], // optional + targets: [], // optional + title: "<TITLE>", // optional + body: "<BODY>", // optional + data: [:], // optional + action: "<ACTION>", // optional + image: "[ID1:ID2]", // optional + icon: "<ICON>", // optional + sound: "<SOUND>", // optional + color: "<COLOR>", // optional + tag: "<TAG>", // optional + badge: 0, // optional + draft: false, // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..d363342af8f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,20 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateSendgridProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + apiKey: "<API_KEY>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "<REPLY_TO_EMAIL>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-sms.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-sms.md new file mode 100644 index 00000000000..46b225fce05 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-sms.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let message = try await messaging.updateSms( + messageId: "<MESSAGE_ID>", + topics: [], // optional + users: [], // optional + targets: [], // optional + content: "<CONTENT>", // optional + draft: false, // optional + scheduledAt: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-smtp-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..7ef8f2e7600 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-smtp-provider.md @@ -0,0 +1,27 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateSmtpProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + host: "<HOST>", // optional + port: 1, // optional + username: "<USERNAME>", // optional + password: "<PASSWORD>", // optional + encryption: .none, // optional + autoTLS: false, // optional + mailer: "<MAILER>", // optional + fromName: "<FROM_NAME>", // optional + fromEmail: "email@example.com", // optional + replyToName: "<REPLY_TO_NAME>", // optional + replyToEmail: "<REPLY_TO_EMAIL>", // optional + enabled: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-telesign-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..4475128b716 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-telesign-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateTelesignProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + customerId: "<CUSTOMER_ID>", // optional + apiKey: "<API_KEY>", // optional + from: "<FROM>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-textmagic-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..e412faab656 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateTextmagicProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + username: "<USERNAME>", // optional + apiKey: "<API_KEY>", // optional + from: "<FROM>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-topic.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-topic.md new file mode 100644 index 00000000000..796f581f075 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-topic.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let topic = try await messaging.updateTopic( + topicId: "<TOPIC_ID>", + name: "<NAME>", // optional + subscribe: ["any"] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-twilio-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..7b4592b048e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-twilio-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateTwilioProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + accountSid: "<ACCOUNT_SID>", // optional + authToken: "<AUTH_TOKEN>", // optional + from: "<FROM>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/messaging/update-vonage-provider.md b/docs/examples/1.7.x/server-swift/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..ba10ce2309b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/messaging/update-vonage-provider.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let messaging = Messaging(client) + +let provider = try await messaging.updateVonageProvider( + providerId: "<PROVIDER_ID>", + name: "<NAME>", // optional + enabled: false, // optional + apiKey: "<API_KEY>", // optional + apiSecret: "<API_SECRET>", // optional + from: "<FROM>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/create-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/create-deployment.md new file mode 100644 index 00000000000..5730e8ef5c3 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/create-deployment.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deployment = try await sites.createDeployment( + siteId: "<SITE_ID>", + code: InputFile.fromPath("file.png"), + activate: false, + installCommand: "<INSTALL_COMMAND>", // optional + buildCommand: "<BUILD_COMMAND>", // optional + outputDirectory: "<OUTPUT_DIRECTORY>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/create-duplicate-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/create-duplicate-deployment.md new file mode 100644 index 00000000000..0ec3804d7a9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/create-duplicate-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deployment = try await sites.createDuplicateDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/create-template-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/create-template-deployment.md new file mode 100644 index 00000000000..1cb3e42030a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/create-template-deployment.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deployment = try await sites.createTemplateDeployment( + siteId: "<SITE_ID>", + repository: "<REPOSITORY>", + owner: "<OWNER>", + rootDirectory: "<ROOT_DIRECTORY>", + version: "<VERSION>", + activate: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/create-variable.md b/docs/examples/1.7.x/server-swift/examples/sites/create-variable.md new file mode 100644 index 00000000000..305a683fcd0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/create-variable.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let variable = try await sites.createVariable( + siteId: "<SITE_ID>", + key: "<KEY>", + value: "<VALUE>", + secret: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/create-vcs-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/create-vcs-deployment.md new file mode 100644 index 00000000000..d72540e715a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/create-vcs-deployment.md @@ -0,0 +1,17 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deployment = try await sites.createVcsDeployment( + siteId: "<SITE_ID>", + type: .branch, + reference: "<REFERENCE>", + activate: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/create.md b/docs/examples/1.7.x/server-swift/examples/sites/create.md new file mode 100644 index 00000000000..1f961d05359 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/create.md @@ -0,0 +1,31 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let site = try await sites.create( + siteId: "<SITE_ID>", + name: "<NAME>", + framework: .analog, + buildRuntime: .node145, + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: "<INSTALL_COMMAND>", // optional + buildCommand: "<BUILD_COMMAND>", // optional + outputDirectory: "<OUTPUT_DIRECTORY>", // optional + adapter: .static, // optional + installationId: "<INSTALLATION_ID>", // optional + fallbackFile: "<FALLBACK_FILE>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/delete-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/delete-deployment.md new file mode 100644 index 00000000000..c4f6971d7fa --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/delete-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let result = try await sites.deleteDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/delete-log.md b/docs/examples/1.7.x/server-swift/examples/sites/delete-log.md new file mode 100644 index 00000000000..10665514950 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/delete-log.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let result = try await sites.deleteLog( + siteId: "<SITE_ID>", + logId: "<LOG_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/delete-variable.md b/docs/examples/1.7.x/server-swift/examples/sites/delete-variable.md new file mode 100644 index 00000000000..a33e1c549e1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/delete-variable.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let result = try await sites.deleteVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/delete.md b/docs/examples/1.7.x/server-swift/examples/sites/delete.md new file mode 100644 index 00000000000..8283f70de26 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let result = try await sites.delete( + siteId: "<SITE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/get-deployment-download.md b/docs/examples/1.7.x/server-swift/examples/sites/get-deployment-download.md new file mode 100644 index 00000000000..5ed409c53bb --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/get-deployment-download.md @@ -0,0 +1,16 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let bytes = try await sites.getDeploymentDownload( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>", + type: .source // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/get-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/get-deployment.md new file mode 100644 index 00000000000..b9f04f3dfc0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/get-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deployment = try await sites.getDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/get-log.md b/docs/examples/1.7.x/server-swift/examples/sites/get-log.md new file mode 100644 index 00000000000..1e5c8121a61 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/get-log.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let execution = try await sites.getLog( + siteId: "<SITE_ID>", + logId: "<LOG_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/get-variable.md b/docs/examples/1.7.x/server-swift/examples/sites/get-variable.md new file mode 100644 index 00000000000..f9258fd5f61 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/get-variable.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let variable = try await sites.getVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/get.md b/docs/examples/1.7.x/server-swift/examples/sites/get.md new file mode 100644 index 00000000000..a14a9b73e7a --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/get.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let site = try await sites.get( + siteId: "<SITE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/list-deployments.md b/docs/examples/1.7.x/server-swift/examples/sites/list-deployments.md new file mode 100644 index 00000000000..5516b74224c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/list-deployments.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deploymentList = try await sites.listDeployments( + siteId: "<SITE_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/list-frameworks.md b/docs/examples/1.7.x/server-swift/examples/sites/list-frameworks.md new file mode 100644 index 00000000000..13fdf9bca2d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/list-frameworks.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let frameworkList = try await sites.listFrameworks() + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/list-logs.md b/docs/examples/1.7.x/server-swift/examples/sites/list-logs.md new file mode 100644 index 00000000000..3eb2a8c0969 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/list-logs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let executionList = try await sites.listLogs( + siteId: "<SITE_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/list-specifications.md b/docs/examples/1.7.x/server-swift/examples/sites/list-specifications.md new file mode 100644 index 00000000000..302e9ea50ee --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/list-specifications.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let specificationList = try await sites.listSpecifications() + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/list-variables.md b/docs/examples/1.7.x/server-swift/examples/sites/list-variables.md new file mode 100644 index 00000000000..98182249887 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/list-variables.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let variableList = try await sites.listVariables( + siteId: "<SITE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/list.md b/docs/examples/1.7.x/server-swift/examples/sites/list.md new file mode 100644 index 00000000000..f330c721b9c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/list.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let siteList = try await sites.list( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/update-deployment-status.md b/docs/examples/1.7.x/server-swift/examples/sites/update-deployment-status.md new file mode 100644 index 00000000000..104058713de --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/update-deployment-status.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let deployment = try await sites.updateDeploymentStatus( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/update-site-deployment.md b/docs/examples/1.7.x/server-swift/examples/sites/update-site-deployment.md new file mode 100644 index 00000000000..ce330e49858 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/update-site-deployment.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let site = try await sites.updateSiteDeployment( + siteId: "<SITE_ID>", + deploymentId: "<DEPLOYMENT_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/update-variable.md b/docs/examples/1.7.x/server-swift/examples/sites/update-variable.md new file mode 100644 index 00000000000..8385c20e90e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/update-variable.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let variable = try await sites.updateVariable( + siteId: "<SITE_ID>", + variableId: "<VARIABLE_ID>", + key: "<KEY>", + value: "<VALUE>", // optional + secret: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/sites/update.md b/docs/examples/1.7.x/server-swift/examples/sites/update.md new file mode 100644 index 00000000000..e7de2fbd177 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/sites/update.md @@ -0,0 +1,31 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let sites = Sites(client) + +let site = try await sites.update( + siteId: "<SITE_ID>", + name: "<NAME>", + framework: .analog, + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: "<INSTALL_COMMAND>", // optional + buildCommand: "<BUILD_COMMAND>", // optional + outputDirectory: "<OUTPUT_DIRECTORY>", // optional + buildRuntime: .node145, // optional + adapter: .static, // optional + fallbackFile: "<FALLBACK_FILE>", // optional + installationId: "<INSTALLATION_ID>", // optional + providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional + providerBranch: "<PROVIDER_BRANCH>", // optional + providerSilentMode: false, // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.7.x/server-swift/examples/storage/create-bucket.md new file mode 100644 index 00000000000..a664e14f5f0 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/create-bucket.md @@ -0,0 +1,23 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let storage = Storage(client) + +let bucket = try await storage.createBucket( + bucketId: "<BUCKET_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: .none, // optional + encryption: false, // optional + antivirus: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/create-file.md b/docs/examples/1.7.x/server-swift/examples/storage/create-file.md new file mode 100644 index 00000000000..540c869fabf --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/create-file.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let file = try await storage.createFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + file: InputFile.fromPath("file.png"), + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.7.x/server-swift/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..2f4916dba23 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/delete-bucket.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let storage = Storage(client) + +let result = try await storage.deleteBucket( + bucketId: "<BUCKET_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.7.x/server-swift/examples/storage/delete-file.md new file mode 100644 index 00000000000..7ac1b194e6f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let result = try await storage.deleteFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.7.x/server-swift/examples/storage/get-bucket.md new file mode 100644 index 00000000000..296a27bf850 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/get-bucket.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let storage = Storage(client) + +let bucket = try await storage.getBucket( + bucketId: "<BUCKET_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.7.x/server-swift/examples/storage/get-file-download.md new file mode 100644 index 00000000000..b362b08cdad --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let bytes = try await storage.getFileDownload( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + token: "<TOKEN>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.7.x/server-swift/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..d8c2380b7db --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/get-file-preview.md @@ -0,0 +1,27 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let bytes = try await storage.getFilePreview( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + width: 0, // optional + height: 0, // optional + gravity: .center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: "", // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: "", // optional + output: .jpg, // optional + token: "<TOKEN>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.7.x/server-swift/examples/storage/get-file-view.md new file mode 100644 index 00000000000..a3b94eec457 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let bytes = try await storage.getFileView( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + token: "<TOKEN>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/get-file.md b/docs/examples/1.7.x/server-swift/examples/storage/get-file.md new file mode 100644 index 00000000000..033a643a831 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/get-file.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let file = try await storage.getFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.7.x/server-swift/examples/storage/list-buckets.md new file mode 100644 index 00000000000..957d266e9a7 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/list-buckets.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let storage = Storage(client) + +let bucketList = try await storage.listBuckets( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/list-files.md b/docs/examples/1.7.x/server-swift/examples/storage/list-files.md new file mode 100644 index 00000000000..103d3c328c2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/list-files.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let fileList = try await storage.listFiles( + bucketId: "<BUCKET_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.7.x/server-swift/examples/storage/update-bucket.md new file mode 100644 index 00000000000..de3b5bf0e5e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/update-bucket.md @@ -0,0 +1,23 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let storage = Storage(client) + +let bucket = try await storage.updateBucket( + bucketId: "<BUCKET_ID>", + name: "<NAME>", + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: .none, // optional + encryption: false, // optional + antivirus: false // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/storage/update-file.md b/docs/examples/1.7.x/server-swift/examples/storage/update-file.md new file mode 100644 index 00000000000..d4d7484bd31 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/storage/update-file.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let storage = Storage(client) + +let file = try await storage.updateFile( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + name: "<NAME>", // optional + permissions: ["read("any")"] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.7.x/server-swift/examples/teams/create-membership.md new file mode 100644 index 00000000000..9010372175f --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/create-membership.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let membership = try await teams.createMembership( + teamId: "<TEAM_ID>", + roles: [], + email: "email@example.com", // optional + userId: "<USER_ID>", // optional + phone: "+12065550100", // optional + url: "https://example.com", // optional + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/create.md b/docs/examples/1.7.x/server-swift/examples/teams/create.md new file mode 100644 index 00000000000..71f3d708748 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/create.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let team = try await teams.create( + teamId: "<TEAM_ID>", + name: "<NAME>", + roles: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.7.x/server-swift/examples/teams/delete-membership.md new file mode 100644 index 00000000000..dbdbc96ff94 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let result = try await teams.deleteMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/delete.md b/docs/examples/1.7.x/server-swift/examples/teams/delete.md new file mode 100644 index 00000000000..ee9daaa55b3 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let result = try await teams.delete( + teamId: "<TEAM_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.7.x/server-swift/examples/teams/get-membership.md new file mode 100644 index 00000000000..ab7b29eb3a5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/get-membership.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let membership = try await teams.getMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.7.x/server-swift/examples/teams/get-prefs.md new file mode 100644 index 00000000000..ae3e9f2875b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/get-prefs.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let preferences = try await teams.getPrefs( + teamId: "<TEAM_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/get.md b/docs/examples/1.7.x/server-swift/examples/teams/get.md new file mode 100644 index 00000000000..cd4b75567a8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/get.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let team = try await teams.get( + teamId: "<TEAM_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.7.x/server-swift/examples/teams/list-memberships.md new file mode 100644 index 00000000000..0670d91ab24 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/list-memberships.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let membershipList = try await teams.listMemberships( + teamId: "<TEAM_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/list.md b/docs/examples/1.7.x/server-swift/examples/teams/list.md new file mode 100644 index 00000000000..b5130cbf898 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/list.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let teamList = try await teams.list( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.7.x/server-swift/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..69fca1de74b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/update-membership-status.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let membership = try await teams.updateMembershipStatus( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + userId: "<USER_ID>", + secret: "<SECRET>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.7.x/server-swift/examples/teams/update-membership.md new file mode 100644 index 00000000000..47f28e74fd8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/update-membership.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let membership = try await teams.updateMembership( + teamId: "<TEAM_ID>", + membershipId: "<MEMBERSHIP_ID>", + roles: [] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/update-name.md b/docs/examples/1.7.x/server-swift/examples/teams/update-name.md new file mode 100644 index 00000000000..56f5ab60dbf --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/update-name.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let team = try await teams.updateName( + teamId: "<TEAM_ID>", + name: "<NAME>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.7.x/server-swift/examples/teams/update-prefs.md new file mode 100644 index 00000000000..b8bb200b654 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/teams/update-prefs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let teams = Teams(client) + +let preferences = try await teams.updatePrefs( + teamId: "<TEAM_ID>", + prefs: [:] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/tokens/create-file-token.md b/docs/examples/1.7.x/server-swift/examples/tokens/create-file-token.md new file mode 100644 index 00000000000..2bdc123b617 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/tokens/create-file-token.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tokens = Tokens(client) + +let resourceToken = try await tokens.createFileToken( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + expire: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/tokens/delete.md b/docs/examples/1.7.x/server-swift/examples/tokens/delete.md new file mode 100644 index 00000000000..8b4db1435db --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/tokens/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tokens = Tokens(client) + +let result = try await tokens.delete( + tokenId: "<TOKEN_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/tokens/get.md b/docs/examples/1.7.x/server-swift/examples/tokens/get.md new file mode 100644 index 00000000000..d6eac810597 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/tokens/get.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tokens = Tokens(client) + +let resourceToken = try await tokens.get( + tokenId: "<TOKEN_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/tokens/list.md b/docs/examples/1.7.x/server-swift/examples/tokens/list.md new file mode 100644 index 00000000000..8438050754c --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/tokens/list.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tokens = Tokens(client) + +let resourceTokenList = try await tokens.list( + bucketId: "<BUCKET_ID>", + fileId: "<FILE_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/tokens/update.md b/docs/examples/1.7.x/server-swift/examples/tokens/update.md new file mode 100644 index 00000000000..14bcb30f783 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/tokens/update.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let tokens = Tokens(client) + +let resourceToken = try await tokens.update( + tokenId: "<TOKEN_ID>", + expire: "" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.7.x/server-swift/examples/users/create-argon2user.md new file mode 100644 index 00000000000..9b7477001d5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-argon2user.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createArgon2User( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.7.x/server-swift/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..ad5a81fe342 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-bcrypt-user.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createBcryptUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-j-w-t.md b/docs/examples/1.7.x/server-swift/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..d61adfb9a70 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let jwt = try await users.createJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", // optional + duration: 0 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.7.x/server-swift/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..ffe7180c5e8 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-m-d5user.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createMD5User( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.7.x/server-swift/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..577a533fcb4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let mfaRecoveryCodes = try await users.createMfaRecoveryCodes( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.7.x/server-swift/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..e1d8d3f3ef1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-p-h-pass-user.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createPHPassUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.7.x/server-swift/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..ac42f2fe9d5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-s-h-a-user.md @@ -0,0 +1,18 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createSHAUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordVersion: .sha1, // optional + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.7.x/server-swift/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..d6c67f6f3df --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,19 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createScryptModifiedUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordSalt: "<PASSWORD_SALT>", + passwordSaltSeparator: "<PASSWORD_SALT_SEPARATOR>", + passwordSignerKey: "<PASSWORD_SIGNER_KEY>", + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.7.x/server-swift/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..16452c46064 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-scrypt-user.md @@ -0,0 +1,21 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.createScryptUser( + userId: "<USER_ID>", + email: "email@example.com", + password: "password", + passwordSalt: "<PASSWORD_SALT>", + passwordCpu: 0, + passwordMemory: 0, + passwordParallel: 0, + passwordLength: 0, + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-session.md b/docs/examples/1.7.x/server-swift/examples/users/create-session.md new file mode 100644 index 00000000000..cf6f67bd911 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-session.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let session = try await users.createSession( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-target.md b/docs/examples/1.7.x/server-swift/examples/users/create-target.md new file mode 100644 index 00000000000..e736afcf311 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-target.md @@ -0,0 +1,19 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let target = try await users.createTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>", + providerType: .email, + identifier: "<IDENTIFIER>", + providerId: "<PROVIDER_ID>", // optional + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create-token.md b/docs/examples/1.7.x/server-swift/examples/users/create-token.md new file mode 100644 index 00000000000..ca1767e1786 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create-token.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let token = try await users.createToken( + userId: "<USER_ID>", + length: 4, // optional + expire: 60 // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/create.md b/docs/examples/1.7.x/server-swift/examples/users/create.md new file mode 100644 index 00000000000..98b886005ba --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/create.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.create( + userId: "<USER_ID>", + email: "email@example.com", // optional + phone: "+12065550100", // optional + password: "", // optional + name: "<NAME>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.7.x/server-swift/examples/users/delete-identity.md new file mode 100644 index 00000000000..bb3d812457e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/delete-identity.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let result = try await users.deleteIdentity( + identityId: "<IDENTITY_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/delete-mfa-authenticator.md b/docs/examples/1.7.x/server-swift/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..da2b8e091a4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,15 @@ +import Appwrite +import AppwriteEnums + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let result = try await users.deleteMfaAuthenticator( + userId: "<USER_ID>", + type: .totp +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/delete-session.md b/docs/examples/1.7.x/server-swift/examples/users/delete-session.md new file mode 100644 index 00000000000..c664e4f2baf --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/delete-session.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let result = try await users.deleteSession( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.7.x/server-swift/examples/users/delete-sessions.md new file mode 100644 index 00000000000..92ab9d77487 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/delete-sessions.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let result = try await users.deleteSessions( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/delete-target.md b/docs/examples/1.7.x/server-swift/examples/users/delete-target.md new file mode 100644 index 00000000000..1cce56657a9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/delete-target.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let result = try await users.deleteTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/delete.md b/docs/examples/1.7.x/server-swift/examples/users/delete.md new file mode 100644 index 00000000000..8dfe648d6e4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/delete.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let result = try await users.delete( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.7.x/server-swift/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..1ae285142f2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let mfaRecoveryCodes = try await users.getMfaRecoveryCodes( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.7.x/server-swift/examples/users/get-prefs.md new file mode 100644 index 00000000000..c4ae61d9dd3 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/get-prefs.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let preferences = try await users.getPrefs( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/get-target.md b/docs/examples/1.7.x/server-swift/examples/users/get-target.md new file mode 100644 index 00000000000..100c56398d6 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/get-target.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let target = try await users.getTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/get.md b/docs/examples/1.7.x/server-swift/examples/users/get.md new file mode 100644 index 00000000000..563042b8ef1 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/get.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.get( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list-identities.md b/docs/examples/1.7.x/server-swift/examples/users/list-identities.md new file mode 100644 index 00000000000..8cbe8a71f48 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list-identities.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let identityList = try await users.listIdentities( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list-logs.md b/docs/examples/1.7.x/server-swift/examples/users/list-logs.md new file mode 100644 index 00000000000..80d9199c3e3 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list-logs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let logList = try await users.listLogs( + userId: "<USER_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.7.x/server-swift/examples/users/list-memberships.md new file mode 100644 index 00000000000..0ae34d4582d --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list-memberships.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let membershipList = try await users.listMemberships( + userId: "<USER_ID>", + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list-mfa-factors.md b/docs/examples/1.7.x/server-swift/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..a5b5e38e125 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list-mfa-factors.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let mfaFactors = try await users.listMfaFactors( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.7.x/server-swift/examples/users/list-sessions.md new file mode 100644 index 00000000000..e0278279a4e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list-sessions.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let sessionList = try await users.listSessions( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list-targets.md b/docs/examples/1.7.x/server-swift/examples/users/list-targets.md new file mode 100644 index 00000000000..b069781f701 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list-targets.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let targetList = try await users.listTargets( + userId: "<USER_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/list.md b/docs/examples/1.7.x/server-swift/examples/users/list.md new file mode 100644 index 00000000000..45ccf239613 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/list.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let userList = try await users.list( + queries: [], // optional + search: "<SEARCH>" // optional +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.7.x/server-swift/examples/users/update-email-verification.md new file mode 100644 index 00000000000..e0de947fa26 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-email-verification.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updateEmailVerification( + userId: "<USER_ID>", + emailVerification: false +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-email.md b/docs/examples/1.7.x/server-swift/examples/users/update-email.md new file mode 100644 index 00000000000..4d3c1c2db21 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-email.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updateEmail( + userId: "<USER_ID>", + email: "email@example.com" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-labels.md b/docs/examples/1.7.x/server-swift/examples/users/update-labels.md new file mode 100644 index 00000000000..8916996b1f5 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-labels.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updateLabels( + userId: "<USER_ID>", + labels: [] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.7.x/server-swift/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..a6169a782c2 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let mfaRecoveryCodes = try await users.updateMfaRecoveryCodes( + userId: "<USER_ID>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-mfa.md b/docs/examples/1.7.x/server-swift/examples/users/update-mfa.md new file mode 100644 index 00000000000..ad010f36b88 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-mfa.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updateMfa( + userId: "<USER_ID>", + mfa: false +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-name.md b/docs/examples/1.7.x/server-swift/examples/users/update-name.md new file mode 100644 index 00000000000..3735b706d8b --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-name.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updateName( + userId: "<USER_ID>", + name: "<NAME>" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-password.md b/docs/examples/1.7.x/server-swift/examples/users/update-password.md new file mode 100644 index 00000000000..3a5b804478e --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-password.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updatePassword( + userId: "<USER_ID>", + password: "" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.7.x/server-swift/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..fffd768f5d9 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-phone-verification.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updatePhoneVerification( + userId: "<USER_ID>", + phoneVerification: false +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-phone.md b/docs/examples/1.7.x/server-swift/examples/users/update-phone.md new file mode 100644 index 00000000000..8411ad22a27 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-phone.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updatePhone( + userId: "<USER_ID>", + number: "+12065550100" +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.7.x/server-swift/examples/users/update-prefs.md new file mode 100644 index 00000000000..c71b712df39 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-prefs.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let preferences = try await users.updatePrefs( + userId: "<USER_ID>", + prefs: [:] +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-status.md b/docs/examples/1.7.x/server-swift/examples/users/update-status.md new file mode 100644 index 00000000000..43ecea44f61 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-status.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let user = try await users.updateStatus( + userId: "<USER_ID>", + status: false +) + diff --git a/docs/examples/1.7.x/server-swift/examples/users/update-target.md b/docs/examples/1.7.x/server-swift/examples/users/update-target.md new file mode 100644 index 00000000000..579f0d282e4 --- /dev/null +++ b/docs/examples/1.7.x/server-swift/examples/users/update-target.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let target = try await users.updateTarget( + userId: "<USER_ID>", + targetId: "<TARGET_ID>", + identifier: "<IDENTIFIER>", // optional + providerId: "<PROVIDER_ID>", // optional + name: "<NAME>" // optional +) + diff --git a/docs/references/account/create-push-target.md b/docs/references/account/create-push-target.md new file mode 100644 index 00000000000..c54f1806388 --- /dev/null +++ b/docs/references/account/create-push-target.md @@ -0,0 +1 @@ +Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model. \ No newline at end of file diff --git a/docs/references/account/create-token-magic-url.md b/docs/references/account/create-token-magic-url.md index 6ebe4154b83..99ad6dba5e3 100644 --- a/docs/references/account/create-token-magic-url.md +++ b/docs/references/account/create-token-magic-url.md @@ -1,3 +1,3 @@ -Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. If you are on a mobile device you can leave the URL parameter empty, so that the login completion will be handled by your Appwrite instance by default. +Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits). diff --git a/docs/references/account/delete-push-target.md b/docs/references/account/delete-push-target.md new file mode 100644 index 00000000000..5909a37b277 --- /dev/null +++ b/docs/references/account/delete-push-target.md @@ -0,0 +1 @@ +Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user. \ No newline at end of file diff --git a/docs/references/account/update-push-target.md b/docs/references/account/update-push-target.md new file mode 100644 index 00000000000..997ffaafea8 --- /dev/null +++ b/docs/references/account/update-push-target.md @@ -0,0 +1 @@ +Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead. \ No newline at end of file diff --git a/docs/references/assistant/chat.md b/docs/references/assistant/chat.md new file mode 100644 index 00000000000..5297d1c195f --- /dev/null +++ b/docs/references/assistant/chat.md @@ -0,0 +1 @@ +Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. \ No newline at end of file diff --git a/docs/references/databases/create-documents.md b/docs/references/databases/create-documents.md new file mode 100644 index 00000000000..a02d7c8bf1b --- /dev/null +++ b/docs/references/databases/create-documents.md @@ -0,0 +1 @@ +Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/delete-documents.md b/docs/references/databases/delete-documents.md new file mode 100644 index 00000000000..a7b05503de9 --- /dev/null +++ b/docs/references/databases/delete-documents.md @@ -0,0 +1 @@ +Bulk delete documents using queries, if no queries are passed then all documents are deleted. \ No newline at end of file diff --git a/docs/references/databases/get-collection-usage.md b/docs/references/databases/get-collection-usage.md new file mode 100644 index 00000000000..48682a075f5 --- /dev/null +++ b/docs/references/databases/get-collection-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/get-database-usage.md b/docs/references/databases/get-database-usage.md new file mode 100644 index 00000000000..2c2628a464c --- /dev/null +++ b/docs/references/databases/get-database-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/get-usage.md b/docs/references/databases/get-usage.md new file mode 100644 index 00000000000..d41f8704c80 --- /dev/null +++ b/docs/references/databases/get-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/update-documents.md b/docs/references/databases/update-documents.md new file mode 100644 index 00000000000..5f560c6435c --- /dev/null +++ b/docs/references/databases/update-documents.md @@ -0,0 +1 @@ +Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated. \ No newline at end of file diff --git a/docs/references/databases/upsert-documents.md b/docs/references/databases/upsert-documents.md new file mode 100644 index 00000000000..f46254bd7b6 --- /dev/null +++ b/docs/references/databases/upsert-documents.md @@ -0,0 +1 @@ +Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. diff --git a/docs/references/functions/create-build.md b/docs/references/functions/create-build.md new file mode 100644 index 00000000000..160a04c291e --- /dev/null +++ b/docs/references/functions/create-build.md @@ -0,0 +1 @@ +Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build. \ No newline at end of file diff --git a/docs/references/functions/get-function-usage.md b/docs/references/functions/get-function-usage.md new file mode 100644 index 00000000000..4498abb05ba --- /dev/null +++ b/docs/references/functions/get-function-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. \ No newline at end of file diff --git a/docs/references/functions/get-functions-usage.md b/docs/references/functions/get-functions-usage.md new file mode 100644 index 00000000000..14427d335d3 --- /dev/null +++ b/docs/references/functions/get-functions-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. \ No newline at end of file diff --git a/docs/references/functions/list-deployments.md b/docs/references/functions/list-deployments.md index 8b24f911f27..80bbba1bf6f 100644 --- a/docs/references/functions/list-deployments.md +++ b/docs/references/functions/list-deployments.md @@ -1 +1 @@ -Get a list of all the project's code deployments. You can use the query params to filter your results. \ No newline at end of file +Get a list of all the function's code deployments. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/functions/update-deployment-build.md b/docs/references/functions/update-deployment-build.md new file mode 100644 index 00000000000..d047990adf1 --- /dev/null +++ b/docs/references/functions/update-deployment-build.md @@ -0,0 +1 @@ +Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details. \ No newline at end of file diff --git a/docs/references/health/get-queue-stats-resources.md b/docs/references/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..52213274670 --- /dev/null +++ b/docs/references/health/get-queue-stats-resources.md @@ -0,0 +1 @@ +Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue. \ No newline at end of file diff --git a/docs/references/health/get-queue-usage-dump.md b/docs/references/health/get-queue-stats-usage-dump.md similarity index 100% rename from docs/references/health/get-queue-usage-dump.md rename to docs/references/health/get-queue-stats-usage-dump.md diff --git a/docs/references/health/get-queue-usage.md b/docs/references/health/get-queue-stats-usage.md similarity index 100% rename from docs/references/health/get-queue-usage.md rename to docs/references/health/get-queue-stats-usage.md diff --git a/docs/references/messaging/update-email.md b/docs/references/messaging/update-email.md index 89f01d7a116..1f0d4b61a49 100644 --- a/docs/references/messaging/update-email.md +++ b/docs/references/messaging/update-email.md @@ -1 +1 @@ -Update an email message by its unique ID. +Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. diff --git a/docs/references/messaging/update-push.md b/docs/references/messaging/update-push.md index dd200a97291..e84187116d1 100644 --- a/docs/references/messaging/update-push.md +++ b/docs/references/messaging/update-push.md @@ -1 +1 @@ -Update a push notification by its unique ID. +Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. diff --git a/docs/references/messaging/update-sms.md b/docs/references/messaging/update-sms.md index 2f9b57a7a71..5a1cb3d67fd 100644 --- a/docs/references/messaging/update-sms.md +++ b/docs/references/messaging/update-sms.md @@ -1 +1 @@ -Update an SMS message by its unique ID. +Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. diff --git a/docs/references/migrations/delete-migration.md b/docs/references/migrations/delete-migration.md new file mode 100644 index 00000000000..9d361ac6939 --- /dev/null +++ b/docs/references/migrations/delete-migration.md @@ -0,0 +1 @@ +Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. \ No newline at end of file diff --git a/docs/references/migrations/get-migration.md b/docs/references/migrations/get-migration.md new file mode 100644 index 00000000000..710bef68638 --- /dev/null +++ b/docs/references/migrations/get-migration.md @@ -0,0 +1 @@ +Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. \ No newline at end of file diff --git a/docs/references/migrations/list-migrations.md b/docs/references/migrations/list-migrations.md new file mode 100644 index 00000000000..b1acb3f7b35 --- /dev/null +++ b/docs/references/migrations/list-migrations.md @@ -0,0 +1 @@ +List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process. \ No newline at end of file diff --git a/docs/references/migrations/migration-appwrite-report.md b/docs/references/migrations/migration-appwrite-report.md new file mode 100644 index 00000000000..69d556f5f3c --- /dev/null +++ b/docs/references/migrations/migration-appwrite-report.md @@ -0,0 +1 @@ +Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-appwrite.md b/docs/references/migrations/migration-appwrite.md new file mode 100644 index 00000000000..12ee7423871 --- /dev/null +++ b/docs/references/migrations/migration-appwrite.md @@ -0,0 +1 @@ +Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. \ No newline at end of file diff --git a/docs/references/migrations/migration-csv.md b/docs/references/migrations/migration-csv.md new file mode 100644 index 00000000000..7a32d5ff6e9 --- /dev/null +++ b/docs/references/migrations/migration-csv.md @@ -0,0 +1 @@ +Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket. \ No newline at end of file diff --git a/docs/references/migrations/migration-firebase-report.md b/docs/references/migrations/migration-firebase-report.md new file mode 100644 index 00000000000..af27587331c --- /dev/null +++ b/docs/references/migrations/migration-firebase-report.md @@ -0,0 +1 @@ +Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-firebase.md b/docs/references/migrations/migration-firebase.md new file mode 100644 index 00000000000..3a7f620a7c7 --- /dev/null +++ b/docs/references/migrations/migration-firebase.md @@ -0,0 +1 @@ +Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. \ No newline at end of file diff --git a/docs/references/migrations/migration-nhost-report.md b/docs/references/migrations/migration-nhost-report.md new file mode 100644 index 00000000000..895da514645 --- /dev/null +++ b/docs/references/migrations/migration-nhost-report.md @@ -0,0 +1 @@ +Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-nhost.md b/docs/references/migrations/migration-nhost.md new file mode 100644 index 00000000000..b7a727dd2b4 --- /dev/null +++ b/docs/references/migrations/migration-nhost.md @@ -0,0 +1 @@ +Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. \ No newline at end of file diff --git a/docs/references/migrations/migration-supabase-report.md b/docs/references/migrations/migration-supabase-report.md new file mode 100644 index 00000000000..d9636b5f1da --- /dev/null +++ b/docs/references/migrations/migration-supabase-report.md @@ -0,0 +1 @@ +Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-supabase.md b/docs/references/migrations/migration-supabase.md new file mode 100644 index 00000000000..34bbb1eecee --- /dev/null +++ b/docs/references/migrations/migration-supabase.md @@ -0,0 +1 @@ +Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. \ No newline at end of file diff --git a/docs/references/migrations/retry-migration.md b/docs/references/migrations/retry-migration.md new file mode 100644 index 00000000000..49b80ad6d42 --- /dev/null +++ b/docs/references/migrations/retry-migration.md @@ -0,0 +1 @@ +Retry a failed migration. This endpoint allows you to retry a migration that has previously failed. \ No newline at end of file diff --git a/docs/references/project/get-usage.md b/docs/references/project/get-usage.md new file mode 100644 index 00000000000..d6802c5588f --- /dev/null +++ b/docs/references/project/get-usage.md @@ -0,0 +1 @@ +Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period. \ No newline at end of file diff --git a/docs/references/projects/create-jwt.md b/docs/references/projects/create-jwt.md new file mode 100644 index 00000000000..9a6f8ebf6ba --- /dev/null +++ b/docs/references/projects/create-jwt.md @@ -0,0 +1 @@ +Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time. \ No newline at end of file diff --git a/docs/references/projects/create-key.md b/docs/references/projects/create-key.md new file mode 100644 index 00000000000..d6633d936d2 --- /dev/null +++ b/docs/references/projects/create-key.md @@ -0,0 +1 @@ +Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project. \ No newline at end of file diff --git a/docs/references/projects/create-platform.md b/docs/references/projects/create-platform.md new file mode 100644 index 00000000000..b5d8be0ff9e --- /dev/null +++ b/docs/references/projects/create-platform.md @@ -0,0 +1 @@ +Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API. \ No newline at end of file diff --git a/docs/references/projects/create-smtp-test.md b/docs/references/projects/create-smtp-test.md new file mode 100644 index 00000000000..63cea9d21f6 --- /dev/null +++ b/docs/references/projects/create-smtp-test.md @@ -0,0 +1 @@ +Send a test email to verify SMTP configuration. \ No newline at end of file diff --git a/docs/references/projects/create-webhook.md b/docs/references/projects/create-webhook.md new file mode 100644 index 00000000000..cd0e93332ba --- /dev/null +++ b/docs/references/projects/create-webhook.md @@ -0,0 +1 @@ +Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. \ No newline at end of file diff --git a/docs/references/projects/create.md b/docs/references/projects/create.md new file mode 100644 index 00000000000..d502c269ef4 --- /dev/null +++ b/docs/references/projects/create.md @@ -0,0 +1 @@ +Create a new project. You can create a maximum of 100 projects per account. \ No newline at end of file diff --git a/docs/references/projects/delete-email-template.md b/docs/references/projects/delete-email-template.md new file mode 100644 index 00000000000..332b1d61176 --- /dev/null +++ b/docs/references/projects/delete-email-template.md @@ -0,0 +1 @@ +Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state. \ No newline at end of file diff --git a/docs/references/projects/delete-key.md b/docs/references/projects/delete-key.md new file mode 100644 index 00000000000..9f3774b419b --- /dev/null +++ b/docs/references/projects/delete-key.md @@ -0,0 +1 @@ +Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. \ No newline at end of file diff --git a/docs/references/projects/delete-platform.md b/docs/references/projects/delete-platform.md new file mode 100644 index 00000000000..7d538cac26d --- /dev/null +++ b/docs/references/projects/delete-platform.md @@ -0,0 +1 @@ +Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project. \ No newline at end of file diff --git a/docs/references/projects/delete-sms-template.md b/docs/references/projects/delete-sms-template.md new file mode 100644 index 00000000000..c5a7e6cac9c --- /dev/null +++ b/docs/references/projects/delete-sms-template.md @@ -0,0 +1 @@ +Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. \ No newline at end of file diff --git a/docs/references/projects/delete-webhook.md b/docs/references/projects/delete-webhook.md new file mode 100644 index 00000000000..74fee2bceca --- /dev/null +++ b/docs/references/projects/delete-webhook.md @@ -0,0 +1 @@ +Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. \ No newline at end of file diff --git a/docs/references/projects/delete.md b/docs/references/projects/delete.md new file mode 100644 index 00000000000..4a8070c082d --- /dev/null +++ b/docs/references/projects/delete.md @@ -0,0 +1 @@ +Delete a project by its unique ID. \ No newline at end of file diff --git a/docs/references/projects/get-email-template.md b/docs/references/projects/get-email-template.md new file mode 100644 index 00000000000..6119a0a183e --- /dev/null +++ b/docs/references/projects/get-email-template.md @@ -0,0 +1 @@ +Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details. \ No newline at end of file diff --git a/docs/references/projects/get-key.md b/docs/references/projects/get-key.md new file mode 100644 index 00000000000..bd6351f420d --- /dev/null +++ b/docs/references/projects/get-key.md @@ -0,0 +1 @@ +Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes. \ No newline at end of file diff --git a/docs/references/projects/get-platform.md b/docs/references/projects/get-platform.md new file mode 100644 index 00000000000..87129b829de --- /dev/null +++ b/docs/references/projects/get-platform.md @@ -0,0 +1 @@ +Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations. \ No newline at end of file diff --git a/docs/references/projects/get-sms-template.md b/docs/references/projects/get-sms-template.md new file mode 100644 index 00000000000..6ef1d930295 --- /dev/null +++ b/docs/references/projects/get-sms-template.md @@ -0,0 +1 @@ +Get a custom SMS template for the specified locale and type returning it's contents. \ No newline at end of file diff --git a/docs/references/projects/get-webhook.md b/docs/references/projects/get-webhook.md new file mode 100644 index 00000000000..559c73c7486 --- /dev/null +++ b/docs/references/projects/get-webhook.md @@ -0,0 +1 @@ +Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. \ No newline at end of file diff --git a/docs/references/projects/get.md b/docs/references/projects/get.md new file mode 100644 index 00000000000..b7a1165adc0 --- /dev/null +++ b/docs/references/projects/get.md @@ -0,0 +1 @@ +Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata. \ No newline at end of file diff --git a/docs/references/projects/list-keys.md b/docs/references/projects/list-keys.md new file mode 100644 index 00000000000..a7b701b0d7f --- /dev/null +++ b/docs/references/projects/list-keys.md @@ -0,0 +1 @@ +Get a list of all API keys from the current project. \ No newline at end of file diff --git a/docs/references/projects/list-platforms.md b/docs/references/projects/list-platforms.md new file mode 100644 index 00000000000..ed9ade08526 --- /dev/null +++ b/docs/references/projects/list-platforms.md @@ -0,0 +1 @@ +Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations. \ No newline at end of file diff --git a/docs/references/projects/list-webhooks.md b/docs/references/projects/list-webhooks.md new file mode 100644 index 00000000000..bbbf4c73765 --- /dev/null +++ b/docs/references/projects/list-webhooks.md @@ -0,0 +1 @@ +Get a list of all webhooks belonging to the project. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/projects/list.md b/docs/references/projects/list.md new file mode 100644 index 00000000000..576a4b79ae0 --- /dev/null +++ b/docs/references/projects/list.md @@ -0,0 +1 @@ +Get a list of all projects. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/projects/update-api-status-all.md b/docs/references/projects/update-api-status-all.md new file mode 100644 index 00000000000..654070759fa --- /dev/null +++ b/docs/references/projects/update-api-status-all.md @@ -0,0 +1 @@ +Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once. \ No newline at end of file diff --git a/docs/references/projects/update-api-status.md b/docs/references/projects/update-api-status.md new file mode 100644 index 00000000000..af10a0d4f42 --- /dev/null +++ b/docs/references/projects/update-api-status.md @@ -0,0 +1 @@ +Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime. \ No newline at end of file diff --git a/docs/references/projects/update-auth-duration.md b/docs/references/projects/update-auth-duration.md new file mode 100644 index 00000000000..bdc75fa6f0a --- /dev/null +++ b/docs/references/projects/update-auth-duration.md @@ -0,0 +1 @@ +Update how long sessions created within a project should stay active for. \ No newline at end of file diff --git a/docs/references/projects/update-auth-limit.md b/docs/references/projects/update-auth-limit.md new file mode 100644 index 00000000000..c8faa3fe37e --- /dev/null +++ b/docs/references/projects/update-auth-limit.md @@ -0,0 +1 @@ +Update the maximum number of users allowed in this project. Set to 0 for unlimited users. \ No newline at end of file diff --git a/docs/references/projects/update-auth-password-dictionary.md b/docs/references/projects/update-auth-password-dictionary.md new file mode 100644 index 00000000000..1d47d30bb57 --- /dev/null +++ b/docs/references/projects/update-auth-password-dictionary.md @@ -0,0 +1 @@ +Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords. \ No newline at end of file diff --git a/docs/references/projects/update-auth-password-history.md b/docs/references/projects/update-auth-password-history.md new file mode 100644 index 00000000000..3a892915d5f --- /dev/null +++ b/docs/references/projects/update-auth-password-history.md @@ -0,0 +1 @@ +Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones. \ No newline at end of file diff --git a/docs/references/projects/update-auth-sessions-limit.md b/docs/references/projects/update-auth-sessions-limit.md new file mode 100644 index 00000000000..7d5fdffae7a --- /dev/null +++ b/docs/references/projects/update-auth-sessions-limit.md @@ -0,0 +1 @@ +Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions. \ No newline at end of file diff --git a/docs/references/projects/update-auth-status.md b/docs/references/projects/update-auth-status.md new file mode 100644 index 00000000000..5d39ec29c4d --- /dev/null +++ b/docs/references/projects/update-auth-status.md @@ -0,0 +1 @@ +Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. \ No newline at end of file diff --git a/docs/references/projects/update-email-template.md b/docs/references/projects/update-email-template.md new file mode 100644 index 00000000000..d2bf124541d --- /dev/null +++ b/docs/references/projects/update-email-template.md @@ -0,0 +1 @@ +Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates. \ No newline at end of file diff --git a/docs/references/projects/update-key.md b/docs/references/projects/update-key.md new file mode 100644 index 00000000000..4934a514972 --- /dev/null +++ b/docs/references/projects/update-key.md @@ -0,0 +1 @@ +Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. \ No newline at end of file diff --git a/docs/references/projects/update-memberships-privacy.md b/docs/references/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..a1affc1166c --- /dev/null +++ b/docs/references/projects/update-memberships-privacy.md @@ -0,0 +1 @@ +Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status. \ No newline at end of file diff --git a/docs/references/projects/update-mock-numbers.md b/docs/references/projects/update-mock-numbers.md new file mode 100644 index 00000000000..7fa92455c16 --- /dev/null +++ b/docs/references/projects/update-mock-numbers.md @@ -0,0 +1 @@ +Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development. \ No newline at end of file diff --git a/docs/references/projects/update-oauth2.md b/docs/references/projects/update-oauth2.md new file mode 100644 index 00000000000..2285135991b --- /dev/null +++ b/docs/references/projects/update-oauth2.md @@ -0,0 +1 @@ +Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers. \ No newline at end of file diff --git a/docs/references/projects/update-personal-data-check.md b/docs/references/projects/update-personal-data-check.md new file mode 100644 index 00000000000..42847fdbfc5 --- /dev/null +++ b/docs/references/projects/update-personal-data-check.md @@ -0,0 +1 @@ +Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords. \ No newline at end of file diff --git a/docs/references/projects/update-platform.md b/docs/references/projects/update-platform.md new file mode 100644 index 00000000000..d04b07bafd3 --- /dev/null +++ b/docs/references/projects/update-platform.md @@ -0,0 +1 @@ +Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname. \ No newline at end of file diff --git a/docs/references/projects/update-service-status-all.md b/docs/references/projects/update-service-status-all.md new file mode 100644 index 00000000000..f05e7d8c5c2 --- /dev/null +++ b/docs/references/projects/update-service-status-all.md @@ -0,0 +1 @@ +Update the status of all services. Use this endpoint to enable or disable all optional services at once. \ No newline at end of file diff --git a/docs/references/projects/update-service-status.md b/docs/references/projects/update-service-status.md new file mode 100644 index 00000000000..9d3b0743a86 --- /dev/null +++ b/docs/references/projects/update-service-status.md @@ -0,0 +1 @@ +Update the status of a specific service. Use this endpoint to enable or disable a service in your project. \ No newline at end of file diff --git a/docs/references/projects/update-session-alerts.md b/docs/references/projects/update-session-alerts.md new file mode 100644 index 00000000000..36859e0c1ed --- /dev/null +++ b/docs/references/projects/update-session-alerts.md @@ -0,0 +1 @@ +Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created. \ No newline at end of file diff --git a/docs/references/projects/update-sms-template.md b/docs/references/projects/update-sms-template.md new file mode 100644 index 00000000000..3e67f613b76 --- /dev/null +++ b/docs/references/projects/update-sms-template.md @@ -0,0 +1 @@ +Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. \ No newline at end of file diff --git a/docs/references/projects/update-smtp.md b/docs/references/projects/update-smtp.md new file mode 100644 index 00000000000..7d898e1ed1c --- /dev/null +++ b/docs/references/projects/update-smtp.md @@ -0,0 +1 @@ +Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. \ No newline at end of file diff --git a/docs/references/projects/update-team.md b/docs/references/projects/update-team.md new file mode 100644 index 00000000000..fb02eda88c4 --- /dev/null +++ b/docs/references/projects/update-team.md @@ -0,0 +1 @@ +Update the team ID of a project allowing for it to be transferred to another team. \ No newline at end of file diff --git a/docs/references/projects/update-webhook-signature.md b/docs/references/projects/update-webhook-signature.md new file mode 100644 index 00000000000..8525a057770 --- /dev/null +++ b/docs/references/projects/update-webhook-signature.md @@ -0,0 +1 @@ +Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. \ No newline at end of file diff --git a/docs/references/projects/update-webhook.md b/docs/references/projects/update-webhook.md new file mode 100644 index 00000000000..745e4aebe16 --- /dev/null +++ b/docs/references/projects/update-webhook.md @@ -0,0 +1 @@ +Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. \ No newline at end of file diff --git a/docs/references/projects/update.md b/docs/references/projects/update.md new file mode 100644 index 00000000000..60c072c477c --- /dev/null +++ b/docs/references/projects/update.md @@ -0,0 +1 @@ +Update a project by its unique ID. \ No newline at end of file diff --git a/docs/references/proxy/create-rule.md b/docs/references/proxy/create-rule.md deleted file mode 100644 index be567b1cc07..00000000000 --- a/docs/references/proxy/create-rule.md +++ /dev/null @@ -1 +0,0 @@ -Create a new proxy rule. \ No newline at end of file diff --git a/docs/references/proxy/update-rule-verification.md b/docs/references/proxy/update-rule-verification.md new file mode 100644 index 00000000000..c06994bc598 --- /dev/null +++ b/docs/references/proxy/update-rule-verification.md @@ -0,0 +1 @@ +Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain. \ No newline at end of file diff --git a/docs/references/storage/get-bucket-usage.md b/docs/references/storage/get-bucket-usage.md new file mode 100644 index 00000000000..98e98678317 --- /dev/null +++ b/docs/references/storage/get-bucket-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. diff --git a/docs/references/storage/get-usage.md b/docs/references/storage/get-usage.md new file mode 100644 index 00000000000..697c6800011 --- /dev/null +++ b/docs/references/storage/get-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. diff --git a/docs/references/teams/get-team-member.md b/docs/references/teams/get-team-member.md index fab52c1a750..91bf44c73ba 100644 --- a/docs/references/teams/get-team-member.md +++ b/docs/references/teams/get-team-member.md @@ -1 +1 @@ -Get a team member by the membership unique id. All team members have read access for this resource. \ No newline at end of file +Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console. \ No newline at end of file diff --git a/docs/references/teams/list-team-members.md b/docs/references/teams/list-team-members.md index d7dd04977fe..540a665d98a 100644 --- a/docs/references/teams/list-team-members.md +++ b/docs/references/teams/list-team-members.md @@ -1 +1 @@ -Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. \ No newline at end of file +Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console. \ No newline at end of file diff --git a/docs/references/users/get-usage.md b/docs/references/users/get-usage.md new file mode 100644 index 00000000000..2a9379c847a --- /dev/null +++ b/docs/references/users/get-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. diff --git a/docs/references/vcs/create-github-installation.md b/docs/references/vcs/create-github-installation.md new file mode 100644 index 00000000000..60873faf6dc --- /dev/null +++ b/docs/references/vcs/create-github-installation.md @@ -0,0 +1 @@ +Begin Appwrite's GitHub's app installation to set up version control integration. This endpoint responds with a redirect URL to the GitHub App's installation page. The GitHub App must be configured in your environment for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/create-repository-detection.md b/docs/references/vcs/create-repository-detection.md new file mode 100644 index 00000000000..d031cdc746f --- /dev/null +++ b/docs/references/vcs/create-repository-detection.md @@ -0,0 +1 @@ +Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/create-repository.md b/docs/references/vcs/create-repository.md new file mode 100644 index 00000000000..771265bd01a --- /dev/null +++ b/docs/references/vcs/create-repository.md @@ -0,0 +1 @@ +Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation. \ No newline at end of file diff --git a/docs/references/vcs/delete-installation.md b/docs/references/vcs/delete-installation.md new file mode 100644 index 00000000000..1f07de364d5 --- /dev/null +++ b/docs/references/vcs/delete-installation.md @@ -0,0 +1 @@ +Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project. \ No newline at end of file diff --git a/docs/references/vcs/get-installation.md b/docs/references/vcs/get-installation.md new file mode 100644 index 00000000000..0679d9a0e99 --- /dev/null +++ b/docs/references/vcs/get-installation.md @@ -0,0 +1 @@ +Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. \ No newline at end of file diff --git a/docs/references/vcs/get-repository-contents.md b/docs/references/vcs/get-repository-contents.md new file mode 100644 index 00000000000..ab5ef7f8da1 --- /dev/null +++ b/docs/references/vcs/get-repository-contents.md @@ -0,0 +1 @@ +Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work. diff --git a/docs/references/vcs/get-repository.md b/docs/references/vcs/get-repository.md new file mode 100644 index 00000000000..ee57861114e --- /dev/null +++ b/docs/references/vcs/get-repository.md @@ -0,0 +1 @@ +Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/list-installations.md b/docs/references/vcs/list-installations.md new file mode 100644 index 00000000000..e77daf7db05 --- /dev/null +++ b/docs/references/vcs/list-installations.md @@ -0,0 +1 @@ +List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details. diff --git a/docs/references/vcs/list-repositories.md b/docs/references/vcs/list-repositories.md new file mode 100644 index 00000000000..f486e9b5847 --- /dev/null +++ b/docs/references/vcs/list-repositories.md @@ -0,0 +1 @@ +Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/list-repository-branches.md b/docs/references/vcs/list-repository-branches.md new file mode 100644 index 00000000000..eea1795a3ec --- /dev/null +++ b/docs/references/vcs/list-repository-branches.md @@ -0,0 +1 @@ +Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work. diff --git a/docs/references/vcs/update-external-deployments.md b/docs/references/vcs/update-external-deployments.md new file mode 100644 index 00000000000..22d95da9a7d --- /dev/null +++ b/docs/references/vcs/update-external-deployments.md @@ -0,0 +1 @@ +Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work. \ No newline at end of file diff --git a/docs/sdks/cli/GETTING_STARTED.md b/docs/sdks/cli/GETTING_STARTED.md index 564fb4d5f99..1cadb1bbda6 100644 --- a/docs/sdks/cli/GETTING_STARTED.md +++ b/docs/sdks/cli/GETTING_STARTED.md @@ -59,7 +59,7 @@ My Awesome Function You can now deploy this function using ```sh -$ appwrite deploy function +$ appwrite push function ? Which functions would you like to deploy? My Awesome Function (61d1a4c81dfcd95bc834) ℹ Info Deploying function My Awesome Function ( 61d1a4c81dfcd95bc834 ) @@ -73,7 +73,7 @@ Your function has now been deployed on your Appwrite server! As soon as the buil Similarly, you can deploy all your collections to your Appwrite server using ```sh -appwrite deploy collections +appwrite push collections ``` > ### Note @@ -98,7 +98,7 @@ $ appwrite users list To create a document you can use the following command ```sh -$ appwrite database createDocument --collectionId <ID> --documentId 'unique()' --data '{ "Name": "Iron Man" }' --permissions 'read("any")' 'read("team:abc")' +$ appwrite databases create-document --database-id <DATABASE_ID> --collection-id <COLLECTION_ID> --document-id "unique()" --data '{"name": "Walter O Brein"}' --permissions 'read("any")' 'read("team:abc")' ``` ### Some Gotchas @@ -140,4 +140,4 @@ The Appwrite CLI can also work in a CI environment. The initialisation of the CL ```sh appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <API KEY> -``` \ No newline at end of file +``` diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 2797ab637a8..c41413b9ec7 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,3 +1,40 @@ +## 14.0.0 + +* Breaking changes: + * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`). + +## 13.0.0 + +* Fixed realtime pong response. +* Fixed issues with `chunkedUpload` method. +* Fixed type mismatch bug where `List<dynamic>` was incorrectly causing runtime type errors. +* Updated return type of `updateMfaChallenge()` from raw data to properly typed `models.Session` object. + +## 12.0.0 + +* Support for Appwrite 1.6 +* Added `key` attribute to `Runtime` response model. +* Added `buildSize` attribute to `Deployments` response model. +* Added `scheduledAt` attribute to `Executions` response model. +* Added `scopes` attribute to `Functions` response model. +* Added `specifications` attribute to `Functions` response model. +* Added new response model for `Specifications`. +* Added new response model for `Builds`. +* Added `createJWT()` : Enables creating a JWT using the `userId`. +* Added `listSpecifications()`: Enables listing available runtime specifications. +* Added `deleteExecution()` : Enables deleting executions. +* Added `updateDeploymentBuild()`: Enables cancelling a deployment. +* Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution +* Breaking changes: + * Removed `otp` parameter from `deleteMFAAuthenticator`. + * Added `scopes` parameter for create/update function. + * Renamed `templateBranch` to `templateVersion` in `createFunction()`. + * Renamed `downloadDeployment()` to `getDeploymentDownload()` + +You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. + +**Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.** + ## 11.0.3 * Minor bugfixes diff --git a/docs/sdks/dotnet/GETTING_STARTED.md b/docs/sdks/dotnet/GETTING_STARTED.md index ae1f692e0c3..5a2343dc92d 100644 --- a/docs/sdks/dotnet/GETTING_STARTED.md +++ b/docs/sdks/dotnet/GETTING_STARTED.md @@ -9,7 +9,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndpoint("http://cloud.appwrite.io/v1") + .SetEndpoint("http://<REGION>.cloud.appwrite.io/v1") .SetProject("5ff3379a01d25") // Your project ID .SetKey("cd868db89"); // Your secret API key diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index e30180c7ec0..357b9ff0653 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,3 +1,39 @@ +## 15.0.2 + +* Avoid setting empty `User-Agent` header and only encode it when present. +* Update doc examples to use new multi-region endpoint: `https://<REGION>.cloud.appwrite.io/v1`. + +## 15.0.1 + +* Removed `Content-Type` header from GET and HEAD requests. +* Add validation for setting endpoint in `setEndpoint` and `setEndPointRealtime` methods. +* Include Figma in list of available OAuth providers. + +## 15.0.0 + +* Encode `User-Agent` header to fix invalid HTTP header field value error. +* Breaking changes: + * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`). + +## 14.0.0 + +* Fixed realtime pong response. +* Fixed issues with `chunkedUpload` method. + +## 13.0.0 + +* Fixed realtime reconnection issues +* Support for Appwrite 1.6 +* Update dependencies +* Added `scheduledAt` attribute to `Execution` response model +* Added `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution +* Breaking changes: + * Removed `otp` parameter from `deleteMFAAuthenticator`. + +You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`. + +**Please note: This version is compatible with Appwrite 1.6 and later only. If you do not update your Appwrite SDK, old SDKs will not break your app. Appwrite APIs are backwards compatible.** + ## 12.0.4 * Fixed concurrent modification error when closing realtime socket diff --git a/docs/sdks/react-native/CHANGELOG.md b/docs/sdks/react-native/CHANGELOG.md index 21fbe5456cc..f720e11ac6a 100644 --- a/docs/sdks/react-native/CHANGELOG.md +++ b/docs/sdks/react-native/CHANGELOG.md @@ -1 +1,6 @@ -# Change log \ No newline at end of file +# Change log + +## 0.7.4 + +* Upgrade dependencies to resolve PlatformConstants error with Expo 53 +* Update doc examples to use new multi-region endpoint \ No newline at end of file diff --git a/docs/tutorials/add-oauth2-provider.md b/docs/tutorials/add-oauth2-provider.md index ab33f70cb2a..da5f514919c 100644 --- a/docs/tutorials/add-oauth2-provider.md +++ b/docs/tutorials/add-oauth2-provider.md @@ -175,9 +175,9 @@ Please mention in your documentation what resources or API docs you used to impl ## 3. Test your provider -After you finished adding your new provider to Appwrite, you should be able to see it in your Appwrite console. Navigate to 'Project > Users > Providers' and check your new provider's settings form. +After you finish adding your new provider to Appwrite, you should be able to see it in your Appwrite console. Navigate to 'Project > Users > Providers' and check your new provider's settings form. -> To start Appwrite console from the source code, you can simply run `docker compose up -d'. +> To start the Appwrite console from the source code, you can simply run `docker compose up -d'. Add credentials and check both a successful and a failed login (where the user denies integration on the provider page). diff --git a/docs/tutorials/add-route.md b/docs/tutorials/add-route.md index ac6fd40bdb8..53926f7002d 100644 --- a/docs/tutorials/add-route.md +++ b/docs/tutorials/add-route.md @@ -85,13 +85,19 @@ App::post('/v1/account/create') ```php App::post('/v1/account/jwt') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createJWT') - ->label('sdk.description', '/docs/references/account/create-jwt.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_JWT) + ->label('sdk', new Method( + namespace: 'account', + name: 'createJWT', + description: '/docs/references/account/create-jwt.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_JWT, + ) + ], + responseType: ResponseType::JSON, + )) ``` #### Cache diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000000..b18f3d6d585 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,8 @@ +parameters: + level: 8 + paths: + - src/Appwrite/Transformation + scanDirectories: + - vendor/swoole/ide-helper + excludePaths: + - tests/resources \ No newline at end of file diff --git a/phpunit.xml b/phpunit.xml index 90ebd4225fc..598b7309083 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -6,7 +6,7 @@ convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" - stopOnFailure="false" + stopOnFailure="true" > <extensions> <extension class="Appwrite\Tests\TestHook" /> @@ -33,6 +33,7 @@ <directory>./tests/e2e/Services/Storage</directory> <directory>./tests/e2e/Services/Webhooks</directory> <directory>./tests/e2e/Services/Messaging</directory> + <directory>./tests/e2e/Services/Migrations</directory> <file>./tests/e2e/Services/Functions/FunctionsBase.php</file> <file>./tests/e2e/Services/Functions/FunctionsCustomServerTest.php</file> <file>./tests/e2e/Services/Functions/FunctionsCustomClientTest.php</file> diff --git a/public/images/integrations/aws-logo.svg b/public/images/integrations/aws-logo.svg new file mode 100644 index 00000000000..3ab41cde073 --- /dev/null +++ b/public/images/integrations/aws-logo.svg @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 19.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 304 182" style="enable-background:new 0 0 304 182;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#252F3E;} + .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#FF9900;} +</style> + <g> + <path class="st0" d="M86.4,66.4c0,3.7,0.4,6.7,1.1,8.9c0.8,2.2,1.8,4.6,3.2,7.2c0.5,0.8,0.7,1.6,0.7,2.3c0,1-0.6,2-1.9,3l-6.3,4.2 + c-0.9,0.6-1.8,0.9-2.6,0.9c-1,0-2-0.5-3-1.4C76.2,90,75,88.4,74,86.8c-1-1.7-2-3.6-3.1-5.9c-7.8,9.2-17.6,13.8-29.4,13.8 + c-8.4,0-15.1-2.4-20-7.2c-4.9-4.8-7.4-11.2-7.4-19.2c0-8.5,3-15.4,9.1-20.6c6.1-5.2,14.2-7.8,24.5-7.8c3.4,0,6.9,0.3,10.6,0.8 + c3.7,0.5,7.5,1.3,11.5,2.2v-7.3c0-7.6-1.6-12.9-4.7-16c-3.2-3.1-8.6-4.6-16.3-4.6c-3.5,0-7.1,0.4-10.8,1.3c-3.7,0.9-7.3,2-10.8,3.4 + c-1.6,0.7-2.8,1.1-3.5,1.3c-0.7,0.2-1.2,0.3-1.6,0.3c-1.4,0-2.1-1-2.1-3.1v-4.9c0-1.6,0.2-2.8,0.7-3.5c0.5-0.7,1.4-1.4,2.8-2.1 + c3.5-1.8,7.7-3.3,12.6-4.5c4.9-1.3,10.1-1.9,15.6-1.9c11.9,0,20.6,2.7,26.2,8.1c5.5,5.4,8.3,13.6,8.3,24.6V66.4z M45.8,81.6 + c3.3,0,6.7-0.6,10.3-1.8c3.6-1.2,6.8-3.4,9.5-6.4c1.6-1.9,2.8-4,3.4-6.4c0.6-2.4,1-5.3,1-8.7v-4.2c-2.9-0.7-6-1.3-9.2-1.7 + c-3.2-0.4-6.3-0.6-9.4-0.6c-6.7,0-11.6,1.3-14.9,4c-3.3,2.7-4.9,6.5-4.9,11.5c0,4.7,1.2,8.2,3.7,10.6 + C37.7,80.4,41.2,81.6,45.8,81.6z M126.1,92.4c-1.8,0-3-0.3-3.8-1c-0.8-0.6-1.5-2-2.1-3.9L96.7,10.2c-0.6-2-0.9-3.3-0.9-4 + c0-1.6,0.8-2.5,2.4-2.5h9.8c1.9,0,3.2,0.3,3.9,1c0.8,0.6,1.4,2,2,3.9l16.8,66.2l15.6-66.2c0.5-2,1.1-3.3,1.9-3.9c0.8-0.6,2.2-1,4-1 + h8c1.9,0,3.2,0.3,4,1c0.8,0.6,1.5,2,1.9,3.9l15.8,67l17.3-67c0.6-2,1.3-3.3,2-3.9c0.8-0.6,2.1-1,3.9-1h9.3c1.6,0,2.5,0.8,2.5,2.5 + c0,0.5-0.1,1-0.2,1.6c-0.1,0.6-0.3,1.4-0.7,2.5l-24.1,77.3c-0.6,2-1.3,3.3-2.1,3.9c-0.8,0.6-2.1,1-3.8,1h-8.6c-1.9,0-3.2-0.3-4-1 + c-0.8-0.7-1.5-2-1.9-4L156,23l-15.4,64.4c-0.5,2-1.1,3.3-1.9,4c-0.8,0.7-2.2,1-4,1H126.1z M254.6,95.1c-5.2,0-10.4-0.6-15.4-1.8 + c-5-1.2-8.9-2.5-11.5-4c-1.6-0.9-2.7-1.9-3.1-2.8c-0.4-0.9-0.6-1.9-0.6-2.8v-5.1c0-2.1,0.8-3.1,2.3-3.1c0.6,0,1.2,0.1,1.8,0.3 + c0.6,0.2,1.5,0.6,2.5,1c3.4,1.5,7.1,2.7,11,3.5c4,0.8,7.9,1.2,11.9,1.2c6.3,0,11.2-1.1,14.6-3.3c3.4-2.2,5.2-5.4,5.2-9.5 + c0-2.8-0.9-5.1-2.7-7c-1.8-1.9-5.2-3.6-10.1-5.2L246,52c-7.3-2.3-12.7-5.7-16-10.2c-3.3-4.4-5-9.3-5-14.5c0-4.2,0.9-7.9,2.7-11.1 + c1.8-3.2,4.2-6,7.2-8.2c3-2.3,6.4-4,10.4-5.2c4-1.2,8.2-1.7,12.6-1.7c2.2,0,4.5,0.1,6.7,0.4c2.3,0.3,4.4,0.7,6.5,1.1 + c2,0.5,3.9,1,5.7,1.6c1.8,0.6,3.2,1.2,4.2,1.8c1.4,0.8,2.4,1.6,3,2.5c0.6,0.8,0.9,1.9,0.9,3.3v4.7c0,2.1-0.8,3.2-2.3,3.2 + c-0.8,0-2.1-0.4-3.8-1.2c-5.7-2.6-12.1-3.9-19.2-3.9c-5.7,0-10.2,0.9-13.3,2.8c-3.1,1.9-4.7,4.8-4.7,8.9c0,2.8,1,5.2,3,7.1 + c2,1.9,5.7,3.8,11,5.5l14.2,4.5c7.2,2.3,12.4,5.5,15.5,9.6c3.1,4.1,4.6,8.8,4.6,14c0,4.3-0.9,8.2-2.6,11.6 + c-1.8,3.4-4.2,6.4-7.3,8.8c-3.1,2.5-6.8,4.3-11.1,5.6C264.4,94.4,259.7,95.1,254.6,95.1z"/> + <g> + <path class="st1" d="M273.5,143.7c-32.9,24.3-80.7,37.2-121.8,37.2c-57.6,0-109.5-21.3-148.7-56.7c-3.1-2.8-0.3-6.6,3.4-4.4 + c42.4,24.6,94.7,39.5,148.8,39.5c36.5,0,76.6-7.6,113.5-23.2C274.2,133.6,278.9,139.7,273.5,143.7z"/> + <path class="st1" d="M287.2,128.1c-4.2-5.4-27.8-2.6-38.5-1.3c-3.2,0.4-3.7-2.4-0.8-4.5c18.8-13.2,49.7-9.4,53.3-5 + c3.6,4.5-1,35.4-18.6,50.2c-2.7,2.3-5.3,1.1-4.1-1.9C282.5,155.7,291.4,133.4,287.2,128.1z"/> + </g> +</g> +</svg> diff --git a/public/images/logos/appwrite-icon.png b/public/images/logos/appwrite-icon.png new file mode 100644 index 00000000000..5d993a6b337 Binary files /dev/null and b/public/images/logos/appwrite-icon.png differ diff --git a/public/images/logos/appwrite-icon.svg b/public/images/logos/appwrite-icon.svg new file mode 100644 index 00000000000..afbc1124c24 --- /dev/null +++ b/public/images/logos/appwrite-icon.svg @@ -0,0 +1,11 @@ +<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> + <g clip-path="url(#clip0_28_719)"> + <path d="M24.4429 17.4322V22.9096H10.7519C6.76318 22.9096 3.28044 20.7067 1.4171 17.4322C1.14622 16.9561 0.909137 16.4567 0.710264 15.9383C0.319864 14.9225 0.0744552 13.8325 0 12.6952V11.2143C0.0161646 10.9609 0.0416361 10.7094 0.0749451 10.4609C0.143032 9.95105 0.245898 9.45211 0.381093 8.96711C1.66006 4.36909 5.81877 1 10.7519 1C15.6851 1 19.8433 4.36909 21.1223 8.96711H15.2682C14.3072 7.4683 12.6437 6.4774 10.7519 6.4774C8.86017 6.4774 7.19668 7.4683 6.23562 8.96711C5.9427 9.42274 5.71542 9.92516 5.56651 10.4609C5.43425 10.936 5.36371 11.4369 5.36371 11.9548C5.36371 13.5248 6.01324 14.94 7.05463 15.9383C8.01961 16.865 9.32061 17.4322 10.7519 17.4322H24.4429Z" fill="#FD366E" /> + <path d="M24.4429 10.4609V15.9383H14.4492C15.4906 14.94 16.1401 13.5248 16.1401 11.9548C16.1401 11.4369 16.0696 10.936 15.9373 10.4609H24.4429Z" fill="#FD366E" /> + </g> + <defs> + <clipPath id="clip0_28_719"> + <rect width="24" height="24" fill="white" /> + </clipPath> + </defs> +</svg> \ No newline at end of file diff --git a/public/images/sites/templates/astro-nano-dark.png b/public/images/sites/templates/astro-nano-dark.png new file mode 100644 index 00000000000..dec79ae9b2a Binary files /dev/null and b/public/images/sites/templates/astro-nano-dark.png differ diff --git a/public/images/sites/templates/astro-nano-light.png b/public/images/sites/templates/astro-nano-light.png new file mode 100644 index 00000000000..3a846c94d9c Binary files /dev/null and b/public/images/sites/templates/astro-nano-light.png differ diff --git a/public/images/sites/templates/astro-sphere-dark.png b/public/images/sites/templates/astro-sphere-dark.png new file mode 100644 index 00000000000..ba12a3bcb7d Binary files /dev/null and b/public/images/sites/templates/astro-sphere-dark.png differ diff --git a/public/images/sites/templates/astro-sphere-light.png b/public/images/sites/templates/astro-sphere-light.png new file mode 100644 index 00000000000..0a24d533d89 Binary files /dev/null and b/public/images/sites/templates/astro-sphere-light.png differ diff --git a/public/images/sites/templates/astro-starlight-dark.png b/public/images/sites/templates/astro-starlight-dark.png new file mode 100644 index 00000000000..0c8f722e7eb Binary files /dev/null and b/public/images/sites/templates/astro-starlight-dark.png differ diff --git a/public/images/sites/templates/astro-starlight-light.png b/public/images/sites/templates/astro-starlight-light.png new file mode 100644 index 00000000000..bade7a585a8 Binary files /dev/null and b/public/images/sites/templates/astro-starlight-light.png differ diff --git a/public/images/sites/templates/astro-starlog-dark.png b/public/images/sites/templates/astro-starlog-dark.png new file mode 100644 index 00000000000..00354471c31 Binary files /dev/null and b/public/images/sites/templates/astro-starlog-dark.png differ diff --git a/public/images/sites/templates/astro-starlog-light.png b/public/images/sites/templates/astro-starlog-light.png new file mode 100644 index 00000000000..4eb8cd7b198 Binary files /dev/null and b/public/images/sites/templates/astro-starlog-light.png differ diff --git a/public/images/sites/templates/docusaurus-dark.png b/public/images/sites/templates/docusaurus-dark.png new file mode 100644 index 00000000000..916ce071ecf Binary files /dev/null and b/public/images/sites/templates/docusaurus-dark.png differ diff --git a/public/images/sites/templates/docusaurus-light.png b/public/images/sites/templates/docusaurus-light.png new file mode 100644 index 00000000000..916ce071ecf Binary files /dev/null and b/public/images/sites/templates/docusaurus-light.png differ diff --git a/public/images/sites/templates/littlelink-dark.png b/public/images/sites/templates/littlelink-dark.png new file mode 100644 index 00000000000..fe94d21b531 Binary files /dev/null and b/public/images/sites/templates/littlelink-dark.png differ diff --git a/public/images/sites/templates/littlelink-light.png b/public/images/sites/templates/littlelink-light.png new file mode 100644 index 00000000000..79392906c3d Binary files /dev/null and b/public/images/sites/templates/littlelink-light.png differ diff --git a/public/images/sites/templates/logspot-dark.png b/public/images/sites/templates/logspot-dark.png new file mode 100644 index 00000000000..236ca177c68 Binary files /dev/null and b/public/images/sites/templates/logspot-dark.png differ diff --git a/public/images/sites/templates/logspot-light.png b/public/images/sites/templates/logspot-light.png new file mode 100644 index 00000000000..236ca177c68 Binary files /dev/null and b/public/images/sites/templates/logspot-light.png differ diff --git a/public/images/sites/templates/magic-portfolio-dark.png b/public/images/sites/templates/magic-portfolio-dark.png new file mode 100644 index 00000000000..5fbe91977d2 Binary files /dev/null and b/public/images/sites/templates/magic-portfolio-dark.png differ diff --git a/public/images/sites/templates/magic-portfolio-light.png b/public/images/sites/templates/magic-portfolio-light.png new file mode 100644 index 00000000000..233c3bb0464 Binary files /dev/null and b/public/images/sites/templates/magic-portfolio-light.png differ diff --git a/public/images/sites/templates/nxt-lnk-dark.png b/public/images/sites/templates/nxt-lnk-dark.png new file mode 100644 index 00000000000..004a5a487e0 Binary files /dev/null and b/public/images/sites/templates/nxt-lnk-dark.png differ diff --git a/public/images/sites/templates/nxt-lnk-light.png b/public/images/sites/templates/nxt-lnk-light.png new file mode 100644 index 00000000000..43a93ed3f7d Binary files /dev/null and b/public/images/sites/templates/nxt-lnk-light.png differ diff --git a/public/images/sites/templates/onelink-dark.png b/public/images/sites/templates/onelink-dark.png new file mode 100644 index 00000000000..691214e8615 Binary files /dev/null and b/public/images/sites/templates/onelink-dark.png differ diff --git a/public/images/sites/templates/onelink-light.png b/public/images/sites/templates/onelink-light.png new file mode 100644 index 00000000000..63f4a506f58 Binary files /dev/null and b/public/images/sites/templates/onelink-light.png differ diff --git a/public/images/sites/templates/playground-for-analog-dark.png b/public/images/sites/templates/playground-for-analog-dark.png new file mode 100644 index 00000000000..7a1d1d77efa Binary files /dev/null and b/public/images/sites/templates/playground-for-analog-dark.png differ diff --git a/public/images/sites/templates/playground-for-analog-light.png b/public/images/sites/templates/playground-for-analog-light.png new file mode 100644 index 00000000000..69d2efb753a Binary files /dev/null and b/public/images/sites/templates/playground-for-analog-light.png differ diff --git a/public/images/sites/templates/playground-for-angular-dark.png b/public/images/sites/templates/playground-for-angular-dark.png new file mode 100644 index 00000000000..91a77137d30 Binary files /dev/null and b/public/images/sites/templates/playground-for-angular-dark.png differ diff --git a/public/images/sites/templates/playground-for-angular-light.png b/public/images/sites/templates/playground-for-angular-light.png new file mode 100644 index 00000000000..91a77137d30 Binary files /dev/null and b/public/images/sites/templates/playground-for-angular-light.png differ diff --git a/public/images/sites/templates/playground-for-astro-dark.png b/public/images/sites/templates/playground-for-astro-dark.png new file mode 100644 index 00000000000..3d064c5cdd3 Binary files /dev/null and b/public/images/sites/templates/playground-for-astro-dark.png differ diff --git a/public/images/sites/templates/playground-for-astro-light.png b/public/images/sites/templates/playground-for-astro-light.png new file mode 100644 index 00000000000..3d064c5cdd3 Binary files /dev/null and b/public/images/sites/templates/playground-for-astro-light.png differ diff --git a/public/images/sites/templates/playground-for-flutter-dark.png b/public/images/sites/templates/playground-for-flutter-dark.png new file mode 100644 index 00000000000..9b239ff767d Binary files /dev/null and b/public/images/sites/templates/playground-for-flutter-dark.png differ diff --git a/public/images/sites/templates/playground-for-flutter-light.png b/public/images/sites/templates/playground-for-flutter-light.png new file mode 100644 index 00000000000..9b239ff767d Binary files /dev/null and b/public/images/sites/templates/playground-for-flutter-light.png differ diff --git a/public/images/sites/templates/playground-for-lynx-dark.png b/public/images/sites/templates/playground-for-lynx-dark.png new file mode 100644 index 00000000000..7697b3bea4c Binary files /dev/null and b/public/images/sites/templates/playground-for-lynx-dark.png differ diff --git a/public/images/sites/templates/playground-for-lynx-light.png b/public/images/sites/templates/playground-for-lynx-light.png new file mode 100644 index 00000000000..655d810d106 Binary files /dev/null and b/public/images/sites/templates/playground-for-lynx-light.png differ diff --git a/public/images/sites/templates/playground-for-nextjs-dark.png b/public/images/sites/templates/playground-for-nextjs-dark.png new file mode 100644 index 00000000000..9569a416ded Binary files /dev/null and b/public/images/sites/templates/playground-for-nextjs-dark.png differ diff --git a/public/images/sites/templates/playground-for-nextjs-light.png b/public/images/sites/templates/playground-for-nextjs-light.png new file mode 100644 index 00000000000..d048c17a8a5 Binary files /dev/null and b/public/images/sites/templates/playground-for-nextjs-light.png differ diff --git a/public/images/sites/templates/playground-for-nuxt-dark.png b/public/images/sites/templates/playground-for-nuxt-dark.png new file mode 100644 index 00000000000..bea04f1cf9d Binary files /dev/null and b/public/images/sites/templates/playground-for-nuxt-dark.png differ diff --git a/public/images/sites/templates/playground-for-nuxt-light.png b/public/images/sites/templates/playground-for-nuxt-light.png new file mode 100644 index 00000000000..006e366a9f0 Binary files /dev/null and b/public/images/sites/templates/playground-for-nuxt-light.png differ diff --git a/public/images/sites/templates/playground-for-react-dark.png b/public/images/sites/templates/playground-for-react-dark.png new file mode 100644 index 00000000000..6873d5632ea Binary files /dev/null and b/public/images/sites/templates/playground-for-react-dark.png differ diff --git a/public/images/sites/templates/playground-for-react-light.png b/public/images/sites/templates/playground-for-react-light.png new file mode 100644 index 00000000000..79dc16ffdb0 Binary files /dev/null and b/public/images/sites/templates/playground-for-react-light.png differ diff --git a/public/images/sites/templates/playground-for-react-native-dark.png b/public/images/sites/templates/playground-for-react-native-dark.png new file mode 100644 index 00000000000..0e20806edcd Binary files /dev/null and b/public/images/sites/templates/playground-for-react-native-dark.png differ diff --git a/public/images/sites/templates/playground-for-react-native-light.png b/public/images/sites/templates/playground-for-react-native-light.png new file mode 100644 index 00000000000..12829d47d60 Binary files /dev/null and b/public/images/sites/templates/playground-for-react-native-light.png differ diff --git a/public/images/sites/templates/playground-for-remix-dark.png b/public/images/sites/templates/playground-for-remix-dark.png new file mode 100644 index 00000000000..092e96da32d Binary files /dev/null and b/public/images/sites/templates/playground-for-remix-dark.png differ diff --git a/public/images/sites/templates/playground-for-remix-light.png b/public/images/sites/templates/playground-for-remix-light.png new file mode 100644 index 00000000000..f2ef9a9bafb Binary files /dev/null and b/public/images/sites/templates/playground-for-remix-light.png differ diff --git a/public/images/sites/templates/playground-for-svelte-dark.png b/public/images/sites/templates/playground-for-svelte-dark.png new file mode 100644 index 00000000000..90ac7f96aa2 Binary files /dev/null and b/public/images/sites/templates/playground-for-svelte-dark.png differ diff --git a/public/images/sites/templates/playground-for-svelte-light.png b/public/images/sites/templates/playground-for-svelte-light.png new file mode 100644 index 00000000000..90ac7f96aa2 Binary files /dev/null and b/public/images/sites/templates/playground-for-svelte-light.png differ diff --git a/public/images/sites/templates/playground-for-vite-dark.png b/public/images/sites/templates/playground-for-vite-dark.png new file mode 100644 index 00000000000..35dfb354d9b Binary files /dev/null and b/public/images/sites/templates/playground-for-vite-dark.png differ diff --git a/public/images/sites/templates/playground-for-vite-light.png b/public/images/sites/templates/playground-for-vite-light.png new file mode 100644 index 00000000000..f06fab0470e Binary files /dev/null and b/public/images/sites/templates/playground-for-vite-light.png differ diff --git a/public/images/sites/templates/playground-for-vue-dark.png b/public/images/sites/templates/playground-for-vue-dark.png new file mode 100644 index 00000000000..7df0dfd555b Binary files /dev/null and b/public/images/sites/templates/playground-for-vue-dark.png differ diff --git a/public/images/sites/templates/playground-for-vue-light.png b/public/images/sites/templates/playground-for-vue-light.png new file mode 100644 index 00000000000..850e7ba9b85 Binary files /dev/null and b/public/images/sites/templates/playground-for-vue-light.png differ diff --git a/public/images/sites/templates/starter-for-analog-dark.png b/public/images/sites/templates/starter-for-analog-dark.png new file mode 100644 index 00000000000..7529e08dd8c Binary files /dev/null and b/public/images/sites/templates/starter-for-analog-dark.png differ diff --git a/public/images/sites/templates/starter-for-analog-light.png b/public/images/sites/templates/starter-for-analog-light.png new file mode 100644 index 00000000000..7529e08dd8c Binary files /dev/null and b/public/images/sites/templates/starter-for-analog-light.png differ diff --git a/public/images/sites/templates/starter-for-angular-dark.png b/public/images/sites/templates/starter-for-angular-dark.png new file mode 100644 index 00000000000..a7ba12ee765 Binary files /dev/null and b/public/images/sites/templates/starter-for-angular-dark.png differ diff --git a/public/images/sites/templates/starter-for-angular-light.png b/public/images/sites/templates/starter-for-angular-light.png new file mode 100644 index 00000000000..a7ba12ee765 Binary files /dev/null and b/public/images/sites/templates/starter-for-angular-light.png differ diff --git a/public/images/sites/templates/starter-for-astro-dark.png b/public/images/sites/templates/starter-for-astro-dark.png new file mode 100644 index 00000000000..5380b32b7d2 Binary files /dev/null and b/public/images/sites/templates/starter-for-astro-dark.png differ diff --git a/public/images/sites/templates/starter-for-astro-light.png b/public/images/sites/templates/starter-for-astro-light.png new file mode 100644 index 00000000000..5380b32b7d2 Binary files /dev/null and b/public/images/sites/templates/starter-for-astro-light.png differ diff --git a/public/images/sites/templates/starter-for-flutter-dark.png b/public/images/sites/templates/starter-for-flutter-dark.png new file mode 100644 index 00000000000..760cd8d341a Binary files /dev/null and b/public/images/sites/templates/starter-for-flutter-dark.png differ diff --git a/public/images/sites/templates/starter-for-flutter-light.png b/public/images/sites/templates/starter-for-flutter-light.png new file mode 100644 index 00000000000..760cd8d341a Binary files /dev/null and b/public/images/sites/templates/starter-for-flutter-light.png differ diff --git a/public/images/sites/templates/starter-for-js-dark.png b/public/images/sites/templates/starter-for-js-dark.png new file mode 100644 index 00000000000..435b619f358 Binary files /dev/null and b/public/images/sites/templates/starter-for-js-dark.png differ diff --git a/public/images/sites/templates/starter-for-js-light.png b/public/images/sites/templates/starter-for-js-light.png new file mode 100644 index 00000000000..435b619f358 Binary files /dev/null and b/public/images/sites/templates/starter-for-js-light.png differ diff --git a/public/images/sites/templates/starter-for-nextjs-dark.png b/public/images/sites/templates/starter-for-nextjs-dark.png new file mode 100644 index 00000000000..7acc80d4d4e Binary files /dev/null and b/public/images/sites/templates/starter-for-nextjs-dark.png differ diff --git a/public/images/sites/templates/starter-for-nextjs-light.png b/public/images/sites/templates/starter-for-nextjs-light.png new file mode 100644 index 00000000000..7acc80d4d4e Binary files /dev/null and b/public/images/sites/templates/starter-for-nextjs-light.png differ diff --git a/public/images/sites/templates/starter-for-nuxt-dark.png b/public/images/sites/templates/starter-for-nuxt-dark.png new file mode 100644 index 00000000000..ab8884febdc Binary files /dev/null and b/public/images/sites/templates/starter-for-nuxt-dark.png differ diff --git a/public/images/sites/templates/starter-for-nuxt-light.png b/public/images/sites/templates/starter-for-nuxt-light.png new file mode 100644 index 00000000000..ab8884febdc Binary files /dev/null and b/public/images/sites/templates/starter-for-nuxt-light.png differ diff --git a/public/images/sites/templates/starter-for-react-dark.png b/public/images/sites/templates/starter-for-react-dark.png new file mode 100644 index 00000000000..dcfc0a5521e Binary files /dev/null and b/public/images/sites/templates/starter-for-react-dark.png differ diff --git a/public/images/sites/templates/starter-for-react-light.png b/public/images/sites/templates/starter-for-react-light.png new file mode 100644 index 00000000000..dcfc0a5521e Binary files /dev/null and b/public/images/sites/templates/starter-for-react-light.png differ diff --git a/public/images/sites/templates/starter-for-react-native-dark.png b/public/images/sites/templates/starter-for-react-native-dark.png new file mode 100644 index 00000000000..4bb4f80c024 Binary files /dev/null and b/public/images/sites/templates/starter-for-react-native-dark.png differ diff --git a/public/images/sites/templates/starter-for-react-native-light.png b/public/images/sites/templates/starter-for-react-native-light.png new file mode 100644 index 00000000000..4bb4f80c024 Binary files /dev/null and b/public/images/sites/templates/starter-for-react-native-light.png differ diff --git a/public/images/sites/templates/starter-for-remix-dark.png b/public/images/sites/templates/starter-for-remix-dark.png new file mode 100644 index 00000000000..76e80dde718 Binary files /dev/null and b/public/images/sites/templates/starter-for-remix-dark.png differ diff --git a/public/images/sites/templates/starter-for-remix-light.png b/public/images/sites/templates/starter-for-remix-light.png new file mode 100644 index 00000000000..76e80dde718 Binary files /dev/null and b/public/images/sites/templates/starter-for-remix-light.png differ diff --git a/public/images/sites/templates/starter-for-svelte-dark.png b/public/images/sites/templates/starter-for-svelte-dark.png new file mode 100644 index 00000000000..f25943ae488 Binary files /dev/null and b/public/images/sites/templates/starter-for-svelte-dark.png differ diff --git a/public/images/sites/templates/starter-for-svelte-light.png b/public/images/sites/templates/starter-for-svelte-light.png new file mode 100644 index 00000000000..f25943ae488 Binary files /dev/null and b/public/images/sites/templates/starter-for-svelte-light.png differ diff --git a/public/images/sites/templates/starter-for-vue-dark.png b/public/images/sites/templates/starter-for-vue-dark.png new file mode 100644 index 00000000000..9d9af29f873 Binary files /dev/null and b/public/images/sites/templates/starter-for-vue-dark.png differ diff --git a/public/images/sites/templates/starter-for-vue-light.png b/public/images/sites/templates/starter-for-vue-light.png new file mode 100644 index 00000000000..9d9af29f873 Binary files /dev/null and b/public/images/sites/templates/starter-for-vue-light.png differ diff --git a/public/images/sites/templates/template-for-blog-dark.png b/public/images/sites/templates/template-for-blog-dark.png new file mode 100644 index 00000000000..b076b918a82 Binary files /dev/null and b/public/images/sites/templates/template-for-blog-dark.png differ diff --git a/public/images/sites/templates/template-for-blog-light.png b/public/images/sites/templates/template-for-blog-light.png new file mode 100644 index 00000000000..b076b918a82 Binary files /dev/null and b/public/images/sites/templates/template-for-blog-light.png differ diff --git a/public/images/sites/templates/template-for-documentation-dark.png b/public/images/sites/templates/template-for-documentation-dark.png new file mode 100644 index 00000000000..77e9aa61e4e Binary files /dev/null and b/public/images/sites/templates/template-for-documentation-dark.png differ diff --git a/public/images/sites/templates/template-for-documentation-light.png b/public/images/sites/templates/template-for-documentation-light.png new file mode 100644 index 00000000000..77e9aa61e4e Binary files /dev/null and b/public/images/sites/templates/template-for-documentation-light.png differ diff --git a/public/images/sites/templates/template-for-event-dark.png b/public/images/sites/templates/template-for-event-dark.png new file mode 100644 index 00000000000..c3376d3ff61 Binary files /dev/null and b/public/images/sites/templates/template-for-event-dark.png differ diff --git a/public/images/sites/templates/template-for-event-light.png b/public/images/sites/templates/template-for-event-light.png new file mode 100644 index 00000000000..c97901326aa Binary files /dev/null and b/public/images/sites/templates/template-for-event-light.png differ diff --git a/public/images/sites/templates/template-for-portfolio-dark.png b/public/images/sites/templates/template-for-portfolio-dark.png new file mode 100644 index 00000000000..4b4382bf80c Binary files /dev/null and b/public/images/sites/templates/template-for-portfolio-dark.png differ diff --git a/public/images/sites/templates/template-for-portfolio-light.png b/public/images/sites/templates/template-for-portfolio-light.png new file mode 100644 index 00000000000..4b4382bf80c Binary files /dev/null and b/public/images/sites/templates/template-for-portfolio-light.png differ diff --git a/public/images/sites/templates/template-for-store-dark.png b/public/images/sites/templates/template-for-store-dark.png new file mode 100644 index 00000000000..645671ab559 Binary files /dev/null and b/public/images/sites/templates/template-for-store-dark.png differ diff --git a/public/images/sites/templates/template-for-store-light.png b/public/images/sites/templates/template-for-store-light.png new file mode 100644 index 00000000000..645671ab559 Binary files /dev/null and b/public/images/sites/templates/template-for-store-light.png differ diff --git a/public/images/sites/templates/vitepress-dark.png b/public/images/sites/templates/vitepress-dark.png new file mode 100644 index 00000000000..0c68d27461b Binary files /dev/null and b/public/images/sites/templates/vitepress-dark.png differ diff --git a/public/images/sites/templates/vitepress-light.png b/public/images/sites/templates/vitepress-light.png new file mode 100644 index 00000000000..0f93de1c105 Binary files /dev/null and b/public/images/sites/templates/vitepress-light.png differ diff --git a/public/images/sites/templates/vuepress-dark.png b/public/images/sites/templates/vuepress-dark.png new file mode 100644 index 00000000000..52896878be3 Binary files /dev/null and b/public/images/sites/templates/vuepress-dark.png differ diff --git a/public/images/sites/templates/vuepress-light.png b/public/images/sites/templates/vuepress-light.png new file mode 100644 index 00000000000..52896878be3 Binary files /dev/null and b/public/images/sites/templates/vuepress-light.png differ diff --git a/public/images/vcs/qr-dark.svg b/public/images/vcs/qr-dark.svg new file mode 100644 index 00000000000..bbbc681f15f --- /dev/null +++ b/public/images/vcs/qr-dark.svg @@ -0,0 +1,18 @@ +<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> +<mask id="path-1-outside-1_6367_338401" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30" fill="black"> +<rect fill="white" width="30" height="30"/> +<path d="M1 10.6C1 7.23969 1 5.55953 1.65396 4.27606C2.2292 3.14708 3.14708 2.2292 4.27606 1.65396C5.55953 1 7.23969 1 10.6 1H19.4C22.7603 1 24.4405 1 25.7239 1.65396C26.8529 2.2292 27.7708 3.14708 28.346 4.27606C29 5.55953 29 7.23969 29 10.6V19.4C29 22.7603 29 24.4405 28.346 25.7239C27.7708 26.8529 26.8529 27.7708 25.7239 28.346C24.4405 29 22.7603 29 19.4 29H10.6C7.23969 29 5.55953 29 4.27606 28.346C3.14708 27.7708 2.2292 26.8529 1.65396 25.7239C1 24.4405 1 22.7603 1 19.4V10.6Z"/> +</mask> +<path d="M1 10.6C1 7.23969 1 5.55953 1.65396 4.27606C2.2292 3.14708 3.14708 2.2292 4.27606 1.65396C5.55953 1 7.23969 1 10.6 1H19.4C22.7603 1 24.4405 1 25.7239 1.65396C26.8529 2.2292 27.7708 3.14708 28.346 4.27606C29 5.55953 29 7.23969 29 10.6V19.4C29 22.7603 29 24.4405 28.346 25.7239C27.7708 26.8529 26.8529 27.7708 25.7239 28.346C24.4405 29 22.7603 29 19.4 29H10.6C7.23969 29 5.55953 29 4.27606 28.346C3.14708 27.7708 2.2292 26.8529 1.65396 25.7239C1 24.4405 1 22.7603 1 19.4V10.6Z" fill="#1D1D21"/> +<path d="M4.27606 28.346L4.73005 27.455L4.27606 28.346ZM1.65396 25.7239L0.762954 26.1779L1.65396 25.7239ZM28.346 25.7239L29.237 26.1779L28.346 25.7239ZM25.7239 28.346L26.1779 29.237L25.7239 28.346ZM28.346 4.27606L27.455 4.73005L28.346 4.27606ZM10.6 2H19.4V0H10.6V2ZM28 10.6V19.4H30V10.6H28ZM19.4 28H10.6V30H19.4V28ZM2 19.4V10.6H0V19.4H2ZM10.6 28C8.90334 28 7.69099 27.9992 6.74064 27.9216C5.80197 27.8449 5.20731 27.6982 4.73005 27.455L3.82207 29.237C4.62827 29.6478 5.51543 29.8281 6.57778 29.9149C7.62846 30.0008 8.93634 30 10.6 30V28ZM0 19.4C0 21.0637 -0.000777706 22.3715 0.0850662 23.4222C0.171864 24.4846 0.352173 25.3717 0.762954 26.1779L2.54497 25.27C2.30179 24.7927 2.15512 24.198 2.07842 23.2594C2.00078 22.309 2 21.0967 2 19.4H0ZM4.73005 27.455C3.78924 26.9757 3.02433 26.2108 2.54497 25.27L0.762954 26.1779C1.43407 27.4951 2.50493 28.5659 3.82207 29.237L4.73005 27.455ZM28 19.4C28 21.0967 27.9992 22.309 27.9216 23.2594C27.8449 24.198 27.6982 24.7927 27.455 25.27L29.237 26.1779C29.6478 25.3717 29.8281 24.4846 29.9149 23.4222C30.0008 22.3715 30 21.0637 30 19.4H28ZM19.4 30C21.0637 30 22.3715 30.0008 23.4222 29.9149C24.4846 29.8281 25.3717 29.6478 26.1779 29.237L25.27 27.455C24.7927 27.6982 24.198 27.8449 23.2594 27.9216C22.309 27.9992 21.0967 28 19.4 28V30ZM27.455 25.27C26.9757 26.2108 26.2108 26.9757 25.27 27.455L26.1779 29.237C27.4951 28.5659 28.5659 27.4951 29.237 26.1779L27.455 25.27ZM19.4 2C21.0967 2 22.309 2.00078 23.2594 2.07842C24.198 2.15512 24.7927 2.30179 25.27 2.54497L26.1779 0.762954C25.3717 0.352173 24.4846 0.171864 23.4222 0.0850662C22.3715 -0.000777706 21.0637 0 19.4 0V2ZM30 10.6C30 8.93634 30.0008 7.62846 29.9149 6.57778C29.8281 5.51543 29.6478 4.62827 29.237 3.82207L27.455 4.73005C27.6982 5.20731 27.8449 5.80197 27.9216 6.74064C27.9992 7.69099 28 8.90334 28 10.6H30ZM25.27 2.54497C26.2108 3.02433 26.9757 3.78924 27.455 4.73005L29.237 3.82207C28.5659 2.50493 27.4951 1.43407 26.1779 0.762954L25.27 2.54497ZM10.6 0C8.93634 0 7.62846 -0.000777706 6.57778 0.0850662C5.51543 0.171864 4.62827 0.352173 3.82207 0.762954L4.73005 2.54497C5.20731 2.30179 5.80197 2.15512 6.74064 2.07842C7.69099 2.00078 8.90334 2 10.6 2V0ZM2 10.6C2 8.90334 2.00078 7.69099 2.07842 6.74064C2.15512 5.80197 2.30179 5.20731 2.54497 4.73005L0.762954 3.82207C0.352173 4.62827 0.171864 5.51543 0.0850662 6.57778C-0.000777706 7.62846 0 8.93634 0 10.6H2ZM3.82207 0.762954C2.50493 1.43407 1.43407 2.50493 0.762954 3.82207L2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497L3.82207 0.762954Z" fill="#414146" mask="url(#path-1-outside-1_6367_338401)"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M8 9C8 8.44772 8.44772 8 9 8H12C12.5523 8 13 8.44772 13 9V12C13 12.5523 12.5523 13 12 13H9C8.44772 13 8 12.5523 8 12V9ZM10 11V10H11V11H10Z" fill="#818186"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M8 18C8 17.4477 8.44772 17 9 17H12C12.5523 17 13 17.4477 13 18V21C13 21.5523 12.5523 22 12 22H9C8.44772 22 8 21.5523 8 21V18ZM10 20V19H11V20H10Z" fill="#818186"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M18 8C17.4477 8 17 8.44772 17 9V12C17 12.5523 17.4477 13 18 13H21C21.5523 13 22 12.5523 22 12V9C22 8.44772 21.5523 8 21 8H18ZM19 10V11H20V10H19Z" fill="#818186"/> +<path d="M16 9C16 8.44772 15.5523 8 15 8C14.4477 8 14 8.44772 14 9V10C14 10.5523 14.4477 11 15 11C15.5523 11 16 10.5523 16 10V9Z" fill="#818186"/> +<path d="M15 12C15.5523 12 16 12.4477 16 13V14H18C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16H15C14.4477 16 14 15.5523 14 15V13C14 12.4477 14.4477 12 15 12Z" fill="#818186"/> +<path d="M21 14C20.4477 14 20 14.4477 20 15C20 15.5523 20.4477 16 21 16C21.5523 16 22 15.5523 22 15C22 14.4477 21.5523 14 21 14Z" fill="#818186"/> +<path d="M14 18C14 17.4477 14.4477 17 15 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19V21C16 21.5523 15.5523 22 15 22C14.4477 22 14 21.5523 14 21V18Z" fill="#818186"/> +<path d="M12 16C12.5523 16 13 15.5523 13 15C13 14.4477 12.5523 14 12 14H9C8.44772 14 8 14.4477 8 15C8 15.5523 8.44772 16 9 16H12Z" fill="#818186"/> +<path d="M22 18C22 18.5523 21.5523 19 21 19H19C18.4477 19 18 18.5523 18 18C18 17.4477 18.4477 17 19 17H21C21.5523 17 22 17.4477 22 18Z" fill="#818186"/> +<path d="M21 22C21.5523 22 22 21.5523 22 21C22 20.4477 21.5523 20 21 20H18C17.4477 20 17 20.4477 17 21C17 21.5523 17.4477 22 18 22H21Z" fill="#818186"/> +</svg> diff --git a/public/images/vcs/qr-light.svg b/public/images/vcs/qr-light.svg new file mode 100644 index 00000000000..5026db975d9 --- /dev/null +++ b/public/images/vcs/qr-light.svg @@ -0,0 +1,18 @@ +<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"> +<mask id="path-1-outside-1_6367_338394" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30" fill="black"> +<rect fill="white" width="30" height="30"/> +<path d="M1 10.6C1 7.23969 1 5.55953 1.65396 4.27606C2.2292 3.14708 3.14708 2.2292 4.27606 1.65396C5.55953 1 7.23969 1 10.6 1H19.4C22.7603 1 24.4405 1 25.7239 1.65396C26.8529 2.2292 27.7708 3.14708 28.346 4.27606C29 5.55953 29 7.23969 29 10.6V19.4C29 22.7603 29 24.4405 28.346 25.7239C27.7708 26.8529 26.8529 27.7708 25.7239 28.346C24.4405 29 22.7603 29 19.4 29H10.6C7.23969 29 5.55953 29 4.27606 28.346C3.14708 27.7708 2.2292 26.8529 1.65396 25.7239C1 24.4405 1 22.7603 1 19.4V10.6Z"/> +</mask> +<path d="M1 10.6C1 7.23969 1 5.55953 1.65396 4.27606C2.2292 3.14708 3.14708 2.2292 4.27606 1.65396C5.55953 1 7.23969 1 10.6 1H19.4C22.7603 1 24.4405 1 25.7239 1.65396C26.8529 2.2292 27.7708 3.14708 28.346 4.27606C29 5.55953 29 7.23969 29 10.6V19.4C29 22.7603 29 24.4405 28.346 25.7239C27.7708 26.8529 26.8529 27.7708 25.7239 28.346C24.4405 29 22.7603 29 19.4 29H10.6C7.23969 29 5.55953 29 4.27606 28.346C3.14708 27.7708 2.2292 26.8529 1.65396 25.7239C1 24.4405 1 22.7603 1 19.4V10.6Z" fill="white"/> +<path d="M4.27606 28.346L4.73005 27.455L4.27606 28.346ZM1.65396 25.7239L0.762954 26.1779L1.65396 25.7239ZM28.346 25.7239L29.237 26.1779L28.346 25.7239ZM25.7239 28.346L26.1779 29.237L25.7239 28.346ZM28.346 4.27606L27.455 4.73005L28.346 4.27606ZM10.6 2H19.4V0H10.6V2ZM28 10.6V19.4H30V10.6H28ZM19.4 28H10.6V30H19.4V28ZM2 19.4V10.6H0V19.4H2ZM10.6 28C8.90334 28 7.69099 27.9992 6.74064 27.9216C5.80197 27.8449 5.20731 27.6982 4.73005 27.455L3.82207 29.237C4.62827 29.6478 5.51543 29.8281 6.57778 29.9149C7.62846 30.0008 8.93634 30 10.6 30V28ZM0 19.4C0 21.0637 -0.000777706 22.3715 0.0850662 23.4222C0.171864 24.4846 0.352173 25.3717 0.762954 26.1779L2.54497 25.27C2.30179 24.7927 2.15512 24.198 2.07842 23.2594C2.00078 22.309 2 21.0967 2 19.4H0ZM4.73005 27.455C3.78924 26.9757 3.02433 26.2108 2.54497 25.27L0.762954 26.1779C1.43407 27.4951 2.50493 28.5659 3.82207 29.237L4.73005 27.455ZM28 19.4C28 21.0967 27.9992 22.309 27.9216 23.2594C27.8449 24.198 27.6982 24.7927 27.455 25.27L29.237 26.1779C29.6478 25.3717 29.8281 24.4846 29.9149 23.4222C30.0008 22.3715 30 21.0637 30 19.4H28ZM19.4 30C21.0637 30 22.3715 30.0008 23.4222 29.9149C24.4846 29.8281 25.3717 29.6478 26.1779 29.237L25.27 27.455C24.7927 27.6982 24.198 27.8449 23.2594 27.9216C22.309 27.9992 21.0967 28 19.4 28V30ZM27.455 25.27C26.9757 26.2108 26.2108 26.9757 25.27 27.455L26.1779 29.237C27.4951 28.5659 28.5659 27.4951 29.237 26.1779L27.455 25.27ZM19.4 2C21.0967 2 22.309 2.00078 23.2594 2.07842C24.198 2.15512 24.7927 2.30179 25.27 2.54497L26.1779 0.762954C25.3717 0.352173 24.4846 0.171864 23.4222 0.0850662C22.3715 -0.000777706 21.0637 0 19.4 0V2ZM30 10.6C30 8.93634 30.0008 7.62846 29.9149 6.57778C29.8281 5.51543 29.6478 4.62827 29.237 3.82207L27.455 4.73005C27.6982 5.20731 27.8449 5.80197 27.9216 6.74064C27.9992 7.69099 28 8.90334 28 10.6H30ZM25.27 2.54497C26.2108 3.02433 26.9757 3.78924 27.455 4.73005L29.237 3.82207C28.5659 2.50493 27.4951 1.43407 26.1779 0.762954L25.27 2.54497ZM10.6 0C8.93634 0 7.62846 -0.000777706 6.57778 0.0850662C5.51543 0.171864 4.62827 0.352173 3.82207 0.762954L4.73005 2.54497C5.20731 2.30179 5.80197 2.15512 6.74064 2.07842C7.69099 2.00078 8.90334 2 10.6 2V0ZM2 10.6C2 8.90334 2.00078 7.69099 2.07842 6.74064C2.15512 5.80197 2.30179 5.20731 2.54497 4.73005L0.762954 3.82207C0.352173 4.62827 0.171864 5.51543 0.0850662 6.57778C-0.000777706 7.62846 0 8.93634 0 10.6H2ZM3.82207 0.762954C2.50493 1.43407 1.43407 2.50493 0.762954 3.82207L2.54497 4.73005C3.02433 3.78924 3.78924 3.02433 4.73005 2.54497L3.82207 0.762954Z" fill="#D8D8DB" mask="url(#path-1-outside-1_6367_338394)"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M8 9C8 8.44772 8.44772 8 9 8H12C12.5523 8 13 8.44772 13 9V12C13 12.5523 12.5523 13 12 13H9C8.44772 13 8 12.5523 8 12V9ZM10 11V10H11V11H10Z" fill="#97979B"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M8 18C8 17.4477 8.44772 17 9 17H12C12.5523 17 13 17.4477 13 18V21C13 21.5523 12.5523 22 12 22H9C8.44772 22 8 21.5523 8 21V18ZM10 20V19H11V20H10Z" fill="#97979B"/> +<path fill-rule="evenodd" clip-rule="evenodd" d="M18 8C17.4477 8 17 8.44772 17 9V12C17 12.5523 17.4477 13 18 13H21C21.5523 13 22 12.5523 22 12V9C22 8.44772 21.5523 8 21 8H18ZM19 10V11H20V10H19Z" fill="#97979B"/> +<path d="M16 9C16 8.44772 15.5523 8 15 8C14.4477 8 14 8.44772 14 9V10C14 10.5523 14.4477 11 15 11C15.5523 11 16 10.5523 16 10V9Z" fill="#97979B"/> +<path d="M15 12C15.5523 12 16 12.4477 16 13V14H18C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16H15C14.4477 16 14 15.5523 14 15V13C14 12.4477 14.4477 12 15 12Z" fill="#97979B"/> +<path d="M21 14C20.4477 14 20 14.4477 20 15C20 15.5523 20.4477 16 21 16C21.5523 16 22 15.5523 22 15C22 14.4477 21.5523 14 21 14Z" fill="#97979B"/> +<path d="M14 18C14 17.4477 14.4477 17 15 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19V21C16 21.5523 15.5523 22 15 22C14.4477 22 14 21.5523 14 21V18Z" fill="#97979B"/> +<path d="M12 16C12.5523 16 13 15.5523 13 15C13 14.4477 12.5523 14 12 14H9C8.44772 14 8 14.4477 8 15C8 15.5523 8.44772 16 9 16H12Z" fill="#97979B"/> +<path d="M22 18C22 18.5523 21.5523 19 21 19H19C18.4477 19 18 18.5523 18 18C18 17.4477 18.4477 17 19 17H21C21.5523 17 22 17.4477 22 18Z" fill="#97979B"/> +<path d="M21 22C21.5523 22 22 21.5523 22 21C22 20.4477 21.5523 20 21 20H18C17.4477 20 17 20.4477 17 21C17 21.5523 17.4477 22 18 22H21Z" fill="#97979B"/> +</svg> diff --git a/public/images/vcs/status-building-dark.gif b/public/images/vcs/status-building-dark.gif new file mode 100644 index 00000000000..6d4afe72a19 Binary files /dev/null and b/public/images/vcs/status-building-dark.gif differ diff --git a/public/images/vcs/status-building-light.gif b/public/images/vcs/status-building-light.gif new file mode 100644 index 00000000000..c64a7643c12 Binary files /dev/null and b/public/images/vcs/status-building-light.gif differ diff --git a/public/images/vcs/status-failed-dark.png b/public/images/vcs/status-failed-dark.png new file mode 100644 index 00000000000..c6508e93bc7 Binary files /dev/null and b/public/images/vcs/status-failed-dark.png differ diff --git a/public/images/vcs/status-failed-light.png b/public/images/vcs/status-failed-light.png new file mode 100644 index 00000000000..0e4d4533d0b Binary files /dev/null and b/public/images/vcs/status-failed-light.png differ diff --git a/public/images/vcs/status-ready-dark.png b/public/images/vcs/status-ready-dark.png new file mode 100644 index 00000000000..7408fb0cba2 Binary files /dev/null and b/public/images/vcs/status-ready-dark.png differ diff --git a/public/images/vcs/status-ready-light.png b/public/images/vcs/status-ready-light.png new file mode 100644 index 00000000000..87e141fcfe0 Binary files /dev/null and b/public/images/vcs/status-ready-light.png differ diff --git a/public/images/vcs/status-waiting-dark.png b/public/images/vcs/status-waiting-dark.png new file mode 100644 index 00000000000..29a4ee540c3 Binary files /dev/null and b/public/images/vcs/status-waiting-dark.png differ diff --git a/public/images/vcs/status-waiting-light.png b/public/images/vcs/status-waiting-light.png new file mode 100644 index 00000000000..676d530cf4c Binary files /dev/null and b/public/images/vcs/status-waiting-light.png differ diff --git a/src/Appwrite/Auth/Auth.php b/src/Appwrite/Auth/Auth.php index 1e8109622e0..9af5045fa4d 100644 --- a/src/Appwrite/Auth/Auth.php +++ b/src/Appwrite/Auth/Auth.php @@ -43,6 +43,13 @@ class Auth public const USER_ROLE_APPS = 'apps'; public const USER_ROLE_SYSTEM = 'system'; + /** + * Activity associated with user or the app. + */ + public const ACTIVITY_TYPE_APP = 'app'; + public const ACTIVITY_TYPE_USER = 'user'; + public const ACTIVITY_TYPE_GUEST = 'guest'; + /** * Token Types. */ @@ -96,6 +103,11 @@ class Auth */ public static $cookieName = 'a_session'; + /** + * @var string + */ + public static $cookieNamePreview = 'a_jwt_console'; + /** * User Unique ID. * diff --git a/src/Appwrite/Auth/Key.php b/src/Appwrite/Auth/Key.php new file mode 100644 index 00000000000..44a75a6ee3b --- /dev/null +++ b/src/Appwrite/Auth/Key.php @@ -0,0 +1,200 @@ +<?php + +namespace Appwrite\Auth; + +use Ahc\Jwt\JWT; +use Ahc\Jwt\JWTException; +use Appwrite\Extend\Exception; +use Utopia\Config\Config; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\System\System; + +class Key +{ + public function __construct( + protected string $projectId, + protected string $type, + protected string $role, + protected array $scopes, + protected string $name, + protected bool $expired = false, + protected array $disabledMetrics = [], + protected bool $hostnameOverride = false, + protected bool $bannerDisabled = false, + protected bool $projectCheckDisabled = false, + protected bool $previewAuthDisabled = false, + protected bool $deploymentStatusIgnored = false, + ) { + } + + public function getProjectId(): string + { + return $this->projectId; + } + + public function getType(): string + { + return $this->type; + } + + public function getRole(): string + { + return $this->role; + } + + public function getScopes(): array + { + return $this->scopes; + } + + public function getName(): string + { + return $this->name; + } + + public function isExpired(): bool + { + return $this->expired; + } + + public function getDisabledMetrics(): array + { + return $this->disabledMetrics; + } + + + public function getHostnameOverride(): bool + { + return $this->hostnameOverride; + } + + + public function isBannerDisabled(): bool + { + return $this->bannerDisabled; + } + + public function isPreviewAuthDisabled(): bool + { + return $this->previewAuthDisabled; + } + + public function isDeploymentStatusIgnored(): bool + { + return $this->deploymentStatusIgnored; + } + + public function isProjectCheckDisabled(): bool + { + return $this->projectCheckDisabled; + } + + /** + * Decode the given secret key into a Key object, containing the project ID, type, role, scopes, and name. + * Can be a stored API key or a dynamic key (JWT). + * + * @param Document $project + * @param string $key + * @return Key + * @throws Exception + */ + public static function decode( + Document $project, + string $key + ): Key { + if (\str_contains($key, '_')) { + [$type, $secret] = \explode('_', $key, 2); + } else { + $type = API_KEY_STANDARD; + $secret = $key; + } + + $role = Auth::USER_ROLE_APPS; + $roles = Config::getParam('roles', []); + $scopes = $roles[Auth::USER_ROLE_APPS]['scopes'] ?? []; + $expired = false; + + $guestKey = new Key( + $project->getId(), + $type, + Auth::USER_ROLE_GUESTS, + $roles[Auth::USER_ROLE_GUESTS]['scopes'] ?? [], + 'UNKNOWN' + ); + + switch ($type) { + case API_KEY_DYNAMIC: + $jwtObj = new JWT( + key: System::getEnv('_APP_OPENSSL_KEY_V1'), + algo: 'HS256', + maxAge: 86400, + leeway: 0 + ); + + try { + $payload = $jwtObj->decode($secret); + } catch (JWTException) { + $expired = true; + } + + $name = $payload['name'] ?? 'Dynamic Key'; + $projectId = $payload['projectId'] ?? ''; + $disabledMetrics = $payload['disabledMetrics'] ?? []; + $hostnameOverride = $payload['hostnameOverride'] ?? false; + $bannerDisabled = $payload['bannerDisabled'] ?? false; + $projectCheckDisabled = $payload['projectCheckDisabled'] ?? false; + $previewAuthDisabled = $payload['previewAuthDisabled'] ?? false; + $deploymentStatusIgnored = $payload['deploymentStatusIgnored'] ?? false; + $scopes = \array_merge($payload['scopes'] ?? [], $scopes); + + if (!$projectCheckDisabled && $projectId !== $project->getId()) { + return $guestKey; + } + + return new Key( + $projectId, + $type, + $role, + $scopes, + $name, + $expired, + $disabledMetrics, + $hostnameOverride, + $bannerDisabled, + $projectCheckDisabled, + $previewAuthDisabled, + $deploymentStatusIgnored + ); + case API_KEY_STANDARD: + $key = $project->find( + key: 'secret', + find: $key, + subject: 'keys' + ); + + if (!$key) { + return $guestKey; + } + + $expire = $key->getAttribute('expire'); + if (!empty($expire) && $expire < DateTime::formatTz(DateTime::now())) { + $expired = true; + } + + $name = $key->getAttribute('name', 'UNKNOWN'); + $scopes = \array_merge($key->getAttribute('scopes', []), $scopes); + + return new Key( + $project->getId(), + $type, + $role, + $scopes, + $name, + $expired + ); + default: + return $guestKey; + } + } +} diff --git a/src/Appwrite/Auth/OAuth2.php b/src/Appwrite/Auth/OAuth2.php index f7dc1d50a18..9358c89547a 100644 --- a/src/Appwrite/Auth/OAuth2.php +++ b/src/Appwrite/Auth/OAuth2.php @@ -196,9 +196,9 @@ protected function request(string $method, string $url = '', array $headers = [] if (!empty($payload)) { \curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); + $headers[] = 'Content-length: ' . \strlen($payload); } - $headers[] = 'Content-length: ' . \strlen($payload); \curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // Send the request & save response to $response diff --git a/src/Appwrite/Auth/OAuth2/Amazon.php b/src/Appwrite/Auth/OAuth2/Amazon.php index d1d2cb5a386..2fa3f4cfe92 100644 --- a/src/Appwrite/Auth/OAuth2/Amazon.php +++ b/src/Appwrite/Auth/OAuth2/Amazon.php @@ -43,7 +43,7 @@ public function getName(): string */ public function parseState(string $state) { - return \json_decode(\html_entity_decode($state), true); + return \json_decode(\urldecode(\html_entity_decode($state)), true); } @@ -56,7 +56,7 @@ public function getLoginURL(): string 'response_type' => 'code', 'client_id' => $this->appID, 'scope' => \implode(' ', $this->getScopes()), - 'state' => \json_encode($this->state), + 'state' => \urlencode(\json_encode($this->state)), 'redirect_uri' => $this->callback ]); } diff --git a/src/Appwrite/Auth/OAuth2/Figma.php b/src/Appwrite/Auth/OAuth2/Figma.php new file mode 100644 index 00000000000..b5e53cbed4d --- /dev/null +++ b/src/Appwrite/Auth/OAuth2/Figma.php @@ -0,0 +1,178 @@ +<?php + +namespace Appwrite\Auth\OAuth2; + +use Appwrite\Auth\OAuth2; + +// Reference Material +// https://www.figma.com/developers/api#oauth2 +// https://www.figma.com/developers/api#authentication + +class Figma extends OAuth2 +{ + /** + * @var array + */ + protected array $user = []; + + /** + * @var array + */ + protected array $tokens = []; + + /** + * @var array + */ + protected array $scopes = [ + 'current_user:read' + ]; + + /** + * @return string + */ + public function getName(): string + { + return 'figma'; + } + + /** + * @return string + */ + public function getLoginURL(): string + { + return 'https://www.figma.com/oauth?' . \http_build_query([ + 'response_type' => 'code', + 'client_id' => $this->appID, + 'redirect_uri' => $this->callback, + 'scope' => \implode(' ', $this->getScopes()), + 'state' => \json_encode($this->state) + ]); + } + + /** + * @param string $code + * + * @return array + */ + protected function getTokens(string $code): array + { + if (empty($this->tokens)) { + $headers = [ + 'Content-Type: application/x-www-form-urlencoded', + 'Authorization: Basic ' . \base64_encode($this->appID . ':' . $this->appSecret) + ]; + $this->tokens = \json_decode($this->request( + 'POST', + 'https://api.figma.com/v1/oauth/token', + $headers, + \http_build_query([ + 'redirect_uri' => $this->callback, + 'code' => $code, + 'grant_type' => 'authorization_code' + ]) + ), true); + } + + return $this->tokens; + } + + /** + * @param string $refreshToken + * + * @return array + */ + public function refreshTokens(string $refreshToken): array + { + $headers = [ + 'Content-Type: application/x-www-form-urlencoded', + 'Authorization: Basic ' . \base64_encode($this->appID . ':' . $this->appSecret) + ]; + $this->tokens = \json_decode($this->request( + 'POST', + 'https://api.figma.com/v1/oauth/refresh', + $headers, + \http_build_query([ + 'refresh_token' => $refreshToken + ]) + ), true); + + if (empty($this->tokens['refresh_token'])) { + $this->tokens['refresh_token'] = $refreshToken; + } + + return $this->tokens; + } + + /** + * @param string $accessToken + * + * @return string + */ + public function getUserID(string $accessToken): string + { + $user = $this->getUser($accessToken); + + return $user['id'] ?? ''; + } + + /** + * @param string $accessToken + * + * @return string + */ + public function getUserEmail(string $accessToken): string + { + $user = $this->getUser($accessToken); + + return $user['email'] ?? ''; + } + + /** + * Check if the OAuth email is verified + * + * Figma requires email verification during signup, + * so if we have an email, it's verified + * + * @param string $accessToken + * + * @return bool + */ + public function isEmailVerified(string $accessToken): bool + { + $email = $this->getUserEmail($accessToken); + + return !empty($email); + } + + /** + * @param string $accessToken + * + * @return string + */ + public function getUserName(string $accessToken): string + { + $user = $this->getUser($accessToken); + + return $user['handle'] ?? ''; + } + + /** + * @param string $accessToken + * + * @return array + */ + protected function getUser(string $accessToken): array + { + if (empty($this->user)) { + $headers = ['Authorization: Bearer ' . $accessToken]; + $user = $this->request( + 'GET', + 'https://api.figma.com/v1/me', + $headers + ); + $this->user = \json_decode($user, true); + } + + return $this->user; + } +} diff --git a/src/Appwrite/Auth/OAuth2/Firebase.php b/src/Appwrite/Auth/OAuth2/Firebase.php deleted file mode 100644 index 0e2859e32cc..00000000000 --- a/src/Appwrite/Auth/OAuth2/Firebase.php +++ /dev/null @@ -1,389 +0,0 @@ -<?php - -namespace Appwrite\Auth\OAuth2; - -use Appwrite\Auth\OAuth2; - -class Firebase extends OAuth2 -{ - /** - * @var array - */ - protected array $user = []; - - /** - * @var array - */ - protected array $tokens = []; - - /** - * @var array - */ - protected array $scopes = [ - 'https://www.googleapis.com/auth/firebase', - 'https://www.googleapis.com/auth/datastore', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/identitytoolkit', - 'https://www.googleapis.com/auth/userinfo.profile' - ]; - - /** - * @var array - */ - protected array $iamPermissions = [ - // Database - 'datastore.databases.get', - 'datastore.databases.list', - 'datastore.entities.get', - 'datastore.entities.list', - 'datastore.indexes.get', - 'datastore.indexes.list', - // Generic Firebase permissions - 'firebase.projects.get', - - // Auth - 'firebaseauth.configs.get', - 'firebaseauth.configs.getHashConfig', - 'firebaseauth.configs.getSecret', - 'firebaseauth.users.get', - 'identitytoolkit.tenants.get', - 'identitytoolkit.tenants.list', - - // IAM Assignment - 'iam.serviceAccounts.list', - - // Storage - 'storage.buckets.get', - 'storage.buckets.list', - 'storage.objects.get', - 'storage.objects.list' - ]; - - /** - * @return string - */ - public function getName(): string - { - return 'firebase'; - } - - /** - * @return string - */ - public function getLoginURL(): string - { - return 'https://accounts.google.com/o/oauth2/v2/auth?' . \http_build_query([ - 'access_type' => 'offline', - 'client_id' => $this->appID, - 'redirect_uri' => $this->callback, - 'scope' => \implode(' ', $this->getScopes()), - 'state' => \json_encode($this->state), - 'response_type' => 'code', - 'prompt' => 'consent', - ]); - } - - /** - * @param string $code - * - * @return array - */ - protected function getTokens(string $code): array - { - if (empty($this->tokens)) { - $response = $this->request( - 'POST', - 'https://oauth2.googleapis.com/token', - [], - \http_build_query([ - 'client_id' => $this->appID, - 'redirect_uri' => $this->callback, - 'client_secret' => $this->appSecret, - 'code' => $code, - 'grant_type' => 'authorization_code' - ]) - ); - - $this->tokens = \json_decode($response, true); - } - - return $this->tokens; - } - - /** - * @param string $refreshToken - * - * @return array - */ - public function refreshTokens(string $refreshToken): array - { - $response = $this->request( - 'POST', - 'https://oauth2.googleapis.com/token', - [], - \http_build_query([ - 'client_id' => $this->appID, - 'client_secret' => $this->appSecret, - 'grant_type' => 'refresh_token', - 'refresh_token' => $refreshToken - ]) - ); - - $output = []; - \parse_str($response, $output); - $this->tokens = $output; - - if (empty($this->tokens['refresh_token'])) { - $this->tokens['refresh_token'] = $refreshToken; - } - - return $this->tokens; - } - - - /** - * @param string $accessToken - * - * @return string - */ - public function getUserID(string $accessToken): string - { - $user = $this->getUser($accessToken); - - return $user['id'] ?? ''; - } - - /** - * @param string $accessToken - * - * @return string - */ - public function getUserEmail(string $accessToken): string - { - $user = $this->getUser($accessToken); - - return $user['email'] ?? ''; - } - - - /** - * Check if the OAuth email is verified - * - * @link https://docs.github.com/en/rest/users/emails#list-email-addresses-for-the-authenticated-user - * - * @param string $accessToken - * - * @return bool - */ - public function isEmailVerified(string $accessToken): bool - { - $user = $this->getUser($accessToken); - - if ($user['verified'] ?? false) { - return true; - } - - return false; - } - - /** - * @param string $accessToken - * - * @return string - */ - public function getUserName(string $accessToken): string - { - $user = $this->getUser($accessToken); - - return $user['name'] ?? ''; - } - - /** - * @param string $accessToken - * - * @return array - */ - protected function getUser(string $accessToken) - { - if (empty($this->user)) { - $response = $this->request( - 'GET', - 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' . \urlencode($accessToken), - [], - ); - - $this->user = \json_decode($response, true); - } - - return $this->user; - } - - public function getProjects(string $accessToken): array - { - $projects = $this->request('GET', 'https://firebase.googleapis.com/v1beta1/projects', ['Authorization: Bearer ' . \urlencode($accessToken)]); - - $projects = \json_decode($projects, true); - - return $projects['results']; - } - - /* - Be careful with the setIAMPolicy method, it will overwrite all existing policies - **/ - public function assignIAMRole(string $accessToken, string $email, string $projectId, array $role) - { - // Get IAM Roles - $iamRoles = $this->request('POST', 'https://cloudresourcemanager.googleapis.com/v1/projects/' . $projectId . ':getIamPolicy', [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ]); - - $iamRoles = \json_decode($iamRoles, true); - - $iamRoles['bindings'][] = [ - 'role' => $role['name'], - 'members' => [ - 'serviceAccount:' . $email - ] - ]; - - // Set IAM Roles - $this->request('POST', 'https://cloudresourcemanager.googleapis.com/v1/projects/' . $projectId . ':setIamPolicy', [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ], \json_encode([ - 'policy' => $iamRoles - ])); - } - - private function generateRandomString($length = 10): string - { - $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - $charactersLength = strlen($characters); - $randomString = ''; - for ($i = 0; $i < $length; $i++) { - $randomString .= $characters[random_int(0, $charactersLength - 1)]; - } - return $randomString; - } - - private function createCustomRole(string $accessToken, string $projectId): array - { - // Check if role already exists - try { - $role = $this->request('GET', 'https://iam.googleapis.com/v1/projects/' . $projectId . '/roles/appwriteMigrations', [ - 'Content-Type: application/json', - 'Authorization: Bearer ' . \urlencode($accessToken), - ]); - - $role = \json_decode($role, true); - - return $role; - } catch (\Throwable $e) { - if ($e->getCode() !== 404) { - throw $e; - } - } - - // Create role if doesn't exist or isn't correct - $role = $this->request( - 'POST', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/roles/', - [ - 'Content-Type: application/json', - 'Authorization: Bearer ' . \urlencode($accessToken), - ], - \json_encode( - [ - 'roleId' => 'appwriteMigrations', - 'role' => [ - 'title' => 'Appwrite Migrations', - 'description' => 'A helper role for Appwrite Migrations', - 'includedPermissions' => $this->iamPermissions, - 'stage' => 'GA' - ] - ] - ) - ); - - return json_decode($role, true); - } - - public function createServiceAccount(string $accessToken, string $projectId): array - { - // Create Service Account - $uid = $this->generateRandomString(); - - $response = $this->request( - 'POST', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts', - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ], - \json_encode([ - 'accountId' => 'appwrite-' . $uid, - 'serviceAccount' => [ - 'displayName' => 'Appwrite Migrations ' . $uid - ] - ]) - ); - - $response = json_decode($response, true); - - // Create and assign IAM Roles - $role = $this->createCustomRole($accessToken, $projectId); - - \sleep(1); // Wait for IAM to propagate changes. - - $this->assignIAMRole($accessToken, $response['email'], $projectId, $role); - - // Create Service Account Key - $responseKey = $this->request( - 'POST', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts/' . $response['email'] . '/keys', - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ] - ); - - $responseKey = json_decode($responseKey, true); - - return json_decode(base64_decode($responseKey['privateKeyData']), true); - } - - public function cleanupServiceAccounts(string $accessToken, string $projectId) - { - // List Service Accounts - $response = $this->request( - 'GET', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts', - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ] - ); - - $response = json_decode($response, true); - - if (empty($response['accounts'])) { - return false; - } - - foreach ($response['accounts'] as $account) { - if (strpos($account['email'], 'appwrite-') !== false) { - $this->request( - 'DELETE', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts/' . $account['email'], - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ] - ); - } - } - - return true; - } -} diff --git a/src/Appwrite/Auth/OAuth2/Slack.php b/src/Appwrite/Auth/OAuth2/Slack.php index 8898f4d1f74..9c87e45ed65 100644 --- a/src/Appwrite/Auth/OAuth2/Slack.php +++ b/src/Appwrite/Auth/OAuth2/Slack.php @@ -20,10 +20,9 @@ class Slack extends OAuth2 * @var array */ protected array $scopes = [ - 'identity.avatar', - 'identity.basic', - 'identity.email', - 'identity.team' + 'openid', + 'email', + 'profile' ]; /** @@ -35,14 +34,15 @@ public function getName(): string } /** + * @link https://api.slack.com/authentication/oauth-v2 + * * @return string */ public function getLoginURL(): string { - // https://api.slack.com/docs/oauth#step_1_-_sending_users_to_authorize_and_or_install - return 'https://slack.com/oauth/authorize?' . \http_build_query([ + return 'https://slack.com/oauth/v2/authorize?' . \http_build_query([ 'client_id' => $this->appID, - 'scope' => \implode(' ', $this->getScopes()), + 'user_scope' => \implode(' ', $this->getScopes()), 'redirect_uri' => $this->callback, 'state' => \json_encode($this->state) ]); @@ -56,16 +56,15 @@ public function getLoginURL(): string protected function getTokens(string $code): array { if (empty($this->tokens)) { - // https://api.slack.com/docs/oauth#step_3_-_exchanging_a_verification_code_for_an_access_token $this->tokens = \json_decode($this->request( 'GET', - 'https://slack.com/api/oauth.access?' . \http_build_query([ + 'https://slack.com/api/oauth.v2.access?' . \http_build_query([ 'client_id' => $this->appID, 'client_secret' => $this->appSecret, 'code' => $code, 'redirect_uri' => $this->callback ]) - ), true); + ), true)['authed_user'] ?? []; } return $this->tokens; @@ -80,13 +79,13 @@ public function refreshTokens(string $refreshToken): array { $this->tokens = \json_decode($this->request( 'GET', - 'https://slack.com/api/oauth.access?' . \http_build_query([ + 'https://slack.com/api/oauth.v2.access?' . \http_build_query([ 'client_id' => $this->appID, 'client_secret' => $this->appSecret, 'refresh_token' => $refreshToken, 'grant_type' => 'refresh_token' ]) - ), true); + ), true)['authed_user'] ?? []; if (empty($this->tokens['refresh_token'])) { $this->tokens['refresh_token'] = $refreshToken; @@ -161,9 +160,9 @@ protected function getUser(string $accessToken): array if (empty($this->user)) { $user = $this->request( 'GET', - 'https://slack.com/api/users.identity?token=' . \urlencode($accessToken) + 'https://slack.com/api/users.identity', + ['Authorization: Bearer ' . \urlencode($accessToken)] ); - $this->user = \json_decode($user, true); } diff --git a/src/Appwrite/Auth/Validator/Phone.php b/src/Appwrite/Auth/Validator/Phone.php index 26aa6872788..e74a78d2654 100644 --- a/src/Appwrite/Auth/Validator/Phone.php +++ b/src/Appwrite/Auth/Validator/Phone.php @@ -2,6 +2,8 @@ namespace Appwrite\Auth\Validator; +use libphonenumber\NumberParseException; +use libphonenumber\PhoneNumberUtil; use Utopia\Validator; /** @@ -12,10 +14,12 @@ class Phone extends Validator { protected bool $allowEmpty; + protected PhoneNumberUtil $helper; public function __construct(bool $allowEmpty = false) { $this->allowEmpty = $allowEmpty; + $this->helper = PhoneNumberUtil::getInstance(); } /** @@ -47,6 +51,12 @@ public function isValid($value): bool return true; } + try { + $this->helper->parse($value); + } catch (NumberParseException $e) { + return false; + } + return !!\preg_match('/^\+[1-9]\d{6,14}$/', $value); } diff --git a/src/Appwrite/Certificates/Adapter.php b/src/Appwrite/Certificates/Adapter.php new file mode 100644 index 00000000000..711e4c09b90 --- /dev/null +++ b/src/Appwrite/Certificates/Adapter.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Certificates; + +use Utopia\Logger\Log; + +interface Adapter +{ + public function issueCertificate(string $certName, string $domain): ?string; + + public function isRenewRequired(string $domain, Log $log): bool; + + public function deleteCertificate(string $domain): void; +} diff --git a/src/Appwrite/Certificates/LetsEncrypt.php b/src/Appwrite/Certificates/LetsEncrypt.php new file mode 100644 index 00000000000..3896eab0225 --- /dev/null +++ b/src/Appwrite/Certificates/LetsEncrypt.php @@ -0,0 +1,125 @@ +<?php + +namespace Appwrite\Certificates; + +use Exception; +use Utopia\App; +use Utopia\CLI\Console; +use Utopia\Database\DateTime; +use Utopia\Logger\Log; + +class LetsEncrypt implements Adapter +{ + private string $email; + + public function __construct(string $email) + { + $this->email = $email; + } + + + public function issueCertificate(string $certName, string $domain): ?string + { + $stdout = ''; + $stderr = ''; + + $staging = (App::isProduction()) ? '' : ' --dry-run'; + $exit = Console::execute( + "certbot certonly -v --webroot --noninteractive --agree-tos{$staging}" + . " --email " . $this->email + . " --cert-name " . $certName + . " -w " . APP_STORAGE_CERTIFICATES + . " -d {$domain}", + '', + $stdout, + $stderr + ); + + // Unexpected error, usually 5XX, API limits, ... + if ($exit !== 0) { + throw new Exception('Failed to issue a certificate with message: ' . $stderr); + } + + // Prepare folder in storage for domain + $path = APP_STORAGE_CERTIFICATES . '/' . $domain; + if (!\is_readable($path)) { + if (!\mkdir($path, 0755, true)) { + throw new Exception('Failed to create path for certificate.'); + } + } + + // Move generated files + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/cert.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem')) { + throw new Exception('Failed to rename certificate cert.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/chain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/chain.pem')) { + throw new Exception('Failed to rename certificate chain.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/fullchain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/fullchain.pem')) { + throw new Exception('Failed to rename certificate fullchain.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/privkey.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/privkey.pem')) { + throw new Exception('Failed to rename certificate privkey.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + $config = \implode(PHP_EOL, [ + "tls:", + " certificates:", + " - certFile: /storage/certificates/{$domain}/fullchain.pem", + " keyFile: /storage/certificates/{$domain}/privkey.pem" + ]); + + // Save configuration into Traefik using our new cert files + if (!\file_put_contents(APP_STORAGE_CONFIG . '/' . $domain . '.yml', $config)) { + throw new Exception('Failed to save Traefik configuration.'); + } + + $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; + $certData = openssl_x509_parse(file_get_contents($certPath)); + $validTo = $certData['validTo_time_t'] ?? null; + $dt = (new \DateTime())->setTimestamp($validTo); + return DateTime::addSeconds($dt, -60 * 60 * 24 * 30); + } + + public function isRenewRequired(string $domain, Log $log): bool + { + $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; + if (\file_exists($certPath)) { + $certData = openssl_x509_parse(file_get_contents($certPath)); + $validTo = $certData['validTo_time_t'] ?? 0; + + if (empty($validTo)) { + $log->addTag('certificateDomain', $domain); + throw new Exception('Unable to read certificate file (cert.pem).'); + } + + // LetsEncrypt allows renewal 30 days before expiry + $expiryInAdvance = (60 * 60 * 24 * 30); + if ($validTo - $expiryInAdvance > \time()) { + $log->addTag('certificateDomain', $domain); + $log->addExtra('certificateData', \is_array($certData) ? \json_encode($certData) : \strval($certData)); + return false; + } + } + + return true; + } + + public function deleteCertificate(string $domain): void + { + $directory = APP_STORAGE_CERTIFICATES . '/' . $domain; + $checkTraversal = realpath($directory) === $directory; + + if ($checkTraversal && is_dir($directory)) { + // Delete files, so Traefik is aware of change + array_map('unlink', glob($directory . '/*.*')); + rmdir($directory); + Console::info("Deleted certificate files for {$domain}"); + } else { + Console::info("No certificate files found for {$domain}"); + } + } +} diff --git a/src/Appwrite/Deletes/Identities.php b/src/Appwrite/Deletes/Identities.php new file mode 100644 index 00000000000..09dac185a14 --- /dev/null +++ b/src/Appwrite/Deletes/Identities.php @@ -0,0 +1,22 @@ +<?php + +namespace Appwrite\Deletes; + +use Utopia\Database\Database; +use Utopia\Database\Query; + +class Identities +{ + public static function delete(Database $database, Query $query): void + { + $database->deleteDocuments( + 'identities', + [ + $query, + Query::orderAsc() + ], + Database::DELETE_BATCH_SIZE + ); + } + +} diff --git a/src/Appwrite/Deletes/Targets.php b/src/Appwrite/Deletes/Targets.php new file mode 100644 index 00000000000..95e744ddf15 --- /dev/null +++ b/src/Appwrite/Deletes/Targets.php @@ -0,0 +1,56 @@ +<?php + +namespace Appwrite\Deletes; + +use Appwrite\Extend\Exception; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; + +class Targets +{ + public static function delete(Database $database, Query $query): void + { + $database->deleteDocuments( + 'targets', + [ + $query, + Query::orderAsc() + ], + Database::DELETE_BATCH_SIZE, + fn (Document $target) => self::deleteSubscribers($database, $target) + ); + } + + public static function deleteSubscribers(Database $database, Document $target): void + { + $database->deleteDocuments( + 'subscribers', + [ + Query::equal('targetInternalId', [$target->getInternalId()]), + Query::orderAsc(), + ], + Database::DELETE_BATCH_SIZE, + function (Document $subscriber) use ($database, $target) { + $topicId = $subscriber->getAttribute('topicId'); + $topicInternalId = $subscriber->getAttribute('topicInternalId'); + $topic = $database->getDocument('topics', $topicId); + if (!$topic->isEmpty() && $topic->getInternalId() === $topicInternalId) { + $totalAttribute = match ($target->getAttribute('providerType')) { + MESSAGE_TYPE_EMAIL => 'emailTotal', + MESSAGE_TYPE_SMS => 'smsTotal', + MESSAGE_TYPE_PUSH => 'pushTotal', + default => throw new Exception('Invalid target provider type'), + }; + $database->decreaseDocumentAttribute( + 'topics', + $topicId, + $totalAttribute, + min: 0 + ); + } + } + ); + } + +} diff --git a/src/Appwrite/Event/Audit.php b/src/Appwrite/Event/Audit.php index 4b02849970d..dd48093dc57 100644 --- a/src/Appwrite/Event/Audit.php +++ b/src/Appwrite/Event/Audit.php @@ -2,8 +2,7 @@ namespace Appwrite\Event; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Audit extends Event { @@ -11,10 +10,13 @@ class Audit extends Event protected string $mode = ''; protected string $userAgent = ''; protected string $ip = ''; + protected string $hostname = ''; - public function __construct(protected Connection $connection) + protected bool $critical = false; + + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::AUDITS_QUEUE_NAME) @@ -114,16 +116,37 @@ public function getIP(): string } /** - * Executes the event and sends it to the audit worker. + * Set the hostname. + * + * @param string $hostname * - * @return string|bool - * @throws \InvalidArgumentException + * @return self */ - public function trigger(): string|bool + public function setHostname(string $hostname): self { - $client = new Client($this->queue, $this->connection); + $this->hostname = $hostname; - return $client->enqueue([ + return $this; + } + + /** + * Get the hostname. + * + * @return string + */ + public function getHostname(): string + { + return $this->hostname; + } + + /** + * Prepare payload for queue. + * + * @return array + */ + protected function preparePayload(): array + { + return [ 'project' => $this->project, 'user' => $this->user, 'payload' => $this->payload, @@ -132,6 +155,7 @@ public function trigger(): string|bool 'ip' => $this->ip, 'userAgent' => $this->userAgent, 'event' => $this->event, - ]); + 'hostname' => $this->hostname + ]; } } diff --git a/src/Appwrite/Event/Build.php b/src/Appwrite/Event/Build.php index b8cb62a6f8c..9ea163174f0 100644 --- a/src/Appwrite/Event/Build.php +++ b/src/Appwrite/Event/Build.php @@ -3,8 +3,7 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Build extends Event { @@ -13,9 +12,9 @@ class Build extends Event protected ?Document $deployment = null; protected ?Document $template = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::BUILDS_QUEUE_NAME) @@ -105,22 +104,19 @@ public function getType(): string } /** - * Executes the function event and sends it to the functions worker. + * Prepare payload for queue. * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'resource' => $this->resource, 'deployment' => $this->deployment, 'type' => $this->type, 'template' => $this->template - ]); + ]; } /** diff --git a/src/Appwrite/Event/Certificate.php b/src/Appwrite/Event/Certificate.php index 85058c96fe9..827472ae374 100644 --- a/src/Appwrite/Event/Certificate.php +++ b/src/Appwrite/Event/Certificate.php @@ -3,17 +3,16 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Certificate extends Event { protected bool $skipRenewCheck = false; protected ?Document $domain = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::CERTIFICATES_QUEUE_NAME) @@ -67,19 +66,16 @@ public function getSkipRenewCheck(): bool } /** - * Executes the event and sends it to the certificates worker. + * Prepare the payload for the event * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'domain' => $this->domain, 'skipRenewCheck' => $this->skipRenewCheck - ]); + ]; } } diff --git a/src/Appwrite/Event/Database.php b/src/Appwrite/Event/Database.php index f9eb7d9a7d8..d2f70dddf28 100644 --- a/src/Appwrite/Event/Database.php +++ b/src/Appwrite/Event/Database.php @@ -4,8 +4,7 @@ use Utopia\Database\Document; use Utopia\DSN\DSN; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Database extends Event { @@ -14,9 +13,9 @@ class Database extends Event protected ?Document $collection = null; protected ?Document $document = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this->setClass(Event::DATABASE_CLASS_NAME); } @@ -100,13 +99,7 @@ public function getDocument(): ?Document return $this->document; } - /** - * Executes the event and send it to the database worker. - * - * @return string|bool - * @throws \InvalidArgumentException - */ - public function trigger(): string|bool + public function getQueue(): string { try { $dsn = new DSN($this->getProject()->getAttribute('database')); @@ -115,23 +108,25 @@ public function trigger(): string|bool $dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database')); } - $this->setQueue($dsn->getHost()); - - $client = new Client($this->queue, $this->connection); + $this->queue = $dsn->getHost(); + return $this->queue; + } - try { - $result = $client->enqueue([ - 'project' => $this->project, - 'user' => $this->user, - 'type' => $this->type, - 'collection' => $this->collection, - 'document' => $this->document, - 'database' => $this->database, - 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) - ]); - return $result; - } catch (\Throwable $th) { - return false; - } + /** + * Prepare the payload for the event + * + * @return array + */ + protected function preparePayload(): array + { + return [ + 'project' => $this->project, + 'user' => $this->user, + 'type' => $this->type, + 'collection' => $this->collection, + 'document' => $this->document, + 'database' => $this->database, + 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) + ]; } } diff --git a/src/Appwrite/Event/Delete.php b/src/Appwrite/Event/Delete.php index 064fbcefa95..450be306d71 100644 --- a/src/Appwrite/Event/Delete.php +++ b/src/Appwrite/Event/Delete.php @@ -3,8 +3,7 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Delete extends Event { @@ -16,9 +15,9 @@ class Delete extends Event protected ?string $hourlyUsageRetentionDatetime = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::DELETE_QUEUE_NAME) @@ -131,18 +130,14 @@ public function getDocument(): ?Document return $this->document; } - /** - * Executes this event and sends it to the deletes worker. + * Prepare the payload for the event * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'type' => $this->type, 'document' => $this->document, @@ -150,6 +145,6 @@ public function trigger(): string|bool 'resourceType' => $this->resourceType, 'datetime' => $this->datetime, 'hourlyUsageRetentionDatetime' => $this->hourlyUsageRetentionDatetime - ]); + ]; } } diff --git a/src/Appwrite/Event/Event.php b/src/Appwrite/Event/Event.php index 5e733787433..d699a45417d 100644 --- a/src/Appwrite/Event/Event.php +++ b/src/Appwrite/Event/Event.php @@ -4,8 +4,8 @@ use InvalidArgumentException; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; +use Utopia\Queue\Queue; class Event { @@ -24,11 +24,11 @@ class Event public const FUNCTIONS_QUEUE_NAME = 'v1-functions'; public const FUNCTIONS_CLASS_NAME = 'FunctionsV1'; - public const USAGE_QUEUE_NAME = 'v1-usage'; - public const USAGE_CLASS_NAME = 'UsageV1'; + public const STATS_RESOURCES_QUEUE_NAME = 'v1-stats-resources'; + public const STATS_RESOURCES_CLASS_NAME = 'StatsResourcesV1'; - public const USAGE_DUMP_QUEUE_NAME = 'v1-usage-dump'; - public const USAGE_DUMP_CLASS_NAME = 'UsageDumpV1'; + public const STATS_USAGE_QUEUE_NAME = 'v1-stats-usage'; + public const STATS_USAGE_CLASS_NAME = 'StatsUsageV1'; public const WEBHOOK_QUEUE_NAME = 'v1-webhooks'; public const WEBHOOK_CLASS_NAME = 'WebhooksV1'; @@ -54,14 +54,36 @@ class Event protected array $context = []; protected ?Document $project = null; protected ?Document $user = null; + protected ?string $userId = null; protected bool $paused = false; + /** @var bool Non-critical events will not throw an exception when enqueuing of the event fails. */ + protected bool $critical = true; + /** - * @param Connection $connection + * @param Publisher $publisher * @return void */ - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) + { + } + + /** + * Set paused state for this event. + */ + public function setPaused(bool $paused): self { + $this->paused = $paused; + + return $this; + } + + /** + * Get paused state for this event. + */ + public function getPaused(): bool + { + return $this->paused; } /** @@ -118,7 +140,6 @@ public function getEvent(): string public function setProject(Document $project): self { $this->project = $project; - return $this; } @@ -145,6 +166,18 @@ public function setUser(Document $user): self return $this; } + /** + * Set user ID for this event. + * + * @return self + */ + public function setUserId(string $userId): self + { + $this->userId = $userId; + + return $this; + } + /** * Get user responsible for triggering this event. * @@ -155,6 +188,14 @@ public function getUser(): ?Document return $this->user; } + /** + * Get user responsible for triggering this event. + */ + public function getUserId(): ?string + { + return $this->userId; + } + /** * Set payload for this event. * @@ -183,19 +224,6 @@ public function getPayload(): array return $this->payload; } - public function getRealtimePayload(): array - { - $payload = []; - - foreach ($this->payload as $key => $value) { - if (!isset($this->sensitive[$key])) { - $payload[$key] = $value; - } - } - - return $payload; - } - /** * Set context for this event. * @@ -286,6 +314,27 @@ public function getParams(): array return $this->params; } + /** + * Get trimmed values for sensitive/large payload fields. + * Override this method in child classes to add more fields to trim. + * + * @return array + */ + protected function trimPayload(): array + { + $trimmed = []; + + if ($this->project) { + $trimmed['project'] = new Document([ + '$id' => $this->project->getId(), + '$internalId' => $this->project->getInternalId(), + 'database' => $this->project->getAttribute('database') + ]); + } + + return $trimmed; + } + /** * Execute Event. * @@ -294,19 +343,42 @@ public function getParams(): array */ public function trigger(): string|bool { + if ($this->paused) { return false; } - $client = new Client($this->queue, $this->connection); + /** The getter is required since events like Databases need to override the queue name depending on the project */ + $queue = new Queue($this->getQueue()); + + // Merge the base payload with any trimmed values + $payload = array_merge($this->preparePayload(), $this->trimPayload()); - return $client->enqueue([ + try { + return $this->publisher->enqueue($queue, $payload); + } catch (\Throwable $th) { + if ($this->critical) { + throw $th; + } + return false; + } + } + + /** + * Prepare payload for queue. Can be overridden by child classes to customize payload. + * + * @return array + */ + protected function preparePayload(): array + { + return [ 'project' => $this->project, 'user' => $this->user, + 'userId' => $this->userId, 'payload' => $this->payload, 'context' => $this->context, 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) - ]); + ]; } /** @@ -508,20 +580,21 @@ public static function generateEvents(string $pattern, array $params = []): arra } /** - * Get the value of paused - */ - public function isPaused(): bool - { - return $this->paused; - } - - /** - * Set the value of paused + * Generate a function event from a base event + * + * @param Event $event + * + * @return self + * */ - public function setPaused(bool $paused): self + public function from(Event $event): self { - $this->paused = $paused; - + $this->project = $event->getProject(); + $this->user = $event->getUser(); + $this->payload = $event->getPayload(); + $this->event = $event->getEvent(); + $this->params = $event->getParams(); + $this->context = $event->context; return $this; } } diff --git a/src/Appwrite/Event/Func.php b/src/Appwrite/Event/Func.php index 451df2b6c11..ae316c84e50 100644 --- a/src/Appwrite/Event/Func.php +++ b/src/Appwrite/Event/Func.php @@ -3,11 +3,12 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Func extends Event { + public const TYPE_ASYNC_WRITE = 'async_write'; + protected string $jwt = ''; protected string $type = ''; protected string $body = ''; @@ -18,9 +19,9 @@ class Func extends Event protected ?Document $function = null; protected ?Document $execution = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::FUNCTIONS_QUEUE_NAME) @@ -171,13 +172,13 @@ public function setHeaders(array $headers): self } /** - * Returns set custom data for the function event. + * Returns set JWT for the function event. * * @return string */ - public function getData(): string + public function getJWT(): string { - return $this->data; + return $this->jwt; } /** @@ -189,39 +190,22 @@ public function getData(): string public function setJWT(string $jwt): self { $this->jwt = $jwt; - return $this; } /** - * Returns set JWT for the function event. + * Prepare payload for the function event. * - * @return string + * @return array */ - public function getJWT(): string + protected function preparePayload(): array { - return $this->jwt; - } - - /** - * Executes the function event and sends it to the functions worker. - * - * @return string|bool - * @throws \InvalidArgumentException - */ - public function trigger(): string|bool - { - if ($this->paused) { - return false; - } - - $client = new Client($this->queue, $this->connection); - $events = $this->getEvent() ? Event::generateEvents($this->getEvent(), $this->getParams()) : null; - return $client->enqueue([ + return [ 'project' => $this->project, 'user' => $this->user, + 'userId' => $this->userId, 'function' => $this->function, 'functionId' => $this->functionId, 'execution' => $this->execution, @@ -233,24 +217,6 @@ public function trigger(): string|bool 'path' => $this->path, 'headers' => $this->headers, 'method' => $this->method, - ]); - } - - /** - * Generate a function event from a base event - * - * @param Event $event - * - * @return self - * - */ - public function from(Event $event): self - { - $this->project = $event->getProject(); - $this->user = $event->getUser(); - $this->payload = $event->getPayload(); - $this->event = $event->getEvent(); - $this->params = $event->getParams(); - return $this; + ]; } } diff --git a/src/Appwrite/Event/Mail.php b/src/Appwrite/Event/Mail.php index 9bdbf6044d2..87312182ea6 100644 --- a/src/Appwrite/Event/Mail.php +++ b/src/Appwrite/Event/Mail.php @@ -2,8 +2,7 @@ namespace Appwrite\Event; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Mail extends Event { @@ -16,9 +15,9 @@ class Mail extends Event protected string $bodyTemplate = ''; protected array $attachment = []; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::MAILS_QUEUE_NAME) @@ -397,16 +396,13 @@ public function reset(): self } /** - * Executes the event and sends it to the mails worker. + * Prepare the payload for the event * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'recipient' => $this->recipient, 'name' => $this->name, @@ -417,6 +413,6 @@ public function trigger(): string|bool 'variables' => $this->variables, 'attachment' => $this->attachment, 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) - ]); + ]; } } diff --git a/src/Appwrite/Event/Messaging.php b/src/Appwrite/Event/Messaging.php index f97ff02d21f..3ddbac10401 100644 --- a/src/Appwrite/Event/Messaging.php +++ b/src/Appwrite/Event/Messaging.php @@ -3,8 +3,7 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Messaging extends Event { @@ -15,9 +14,9 @@ class Messaging extends Event protected ?string $scheduledAt = null; protected ?string $providerType = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::MESSAGING_QUEUE_NAME) @@ -27,7 +26,7 @@ public function __construct(protected Connection $connection) /** * Sets type for the build event. * - * @param string $type Can be `MESSAGE_TYPE_INTERNAL` or `MESSAGE_TYPE_EXTERNAL`. + * @param string $type Can be `MESSAGE_SEND_TYPE_INTERNAL` or `MESSAGE_SEND_TYPE_EXTERNAL`. * @return self */ public function setType(string $type): self @@ -176,15 +175,13 @@ public function setProject(Document $project): self } /** - * Executes the event and sends it to the messaging worker. - * @return string|bool - * @throws \InvalidArgumentException + * Prepare the payload for the event + * + * @return array */ - public function trigger(): string | bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'type' => $this->type, 'project' => $this->project, 'user' => $this->user, @@ -192,6 +189,6 @@ public function trigger(): string | bool 'message' => $this->message, 'recipients' => $this->recipients, 'providerType' => $this->providerType, - ]); + ]; } } diff --git a/src/Appwrite/Event/Migration.php b/src/Appwrite/Event/Migration.php index 478291829b9..bbb8d77c73b 100644 --- a/src/Appwrite/Event/Migration.php +++ b/src/Appwrite/Event/Migration.php @@ -3,17 +3,16 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Migration extends Event { protected string $type = ''; protected ?Document $migration = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::MIGRATIONS_QUEUE_NAME) @@ -68,20 +67,16 @@ public function getType(): string } /** - * Executes the migration event and sends it to the migrations worker. + * Prepare the payload for the migration event. * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'user' => $this->user, - 'migration' => $this->migration - ]); + 'migration' => $this->migration, + ]; } } diff --git a/src/Appwrite/Event/Realtime.php b/src/Appwrite/Event/Realtime.php new file mode 100644 index 00000000000..4d8c9a321b7 --- /dev/null +++ b/src/Appwrite/Event/Realtime.php @@ -0,0 +1,112 @@ +<?php + +namespace Appwrite\Event; + +use Appwrite\Messaging\Adapter; +use Appwrite\Messaging\Adapter\Realtime as RealtimeAdapter; +use Utopia\Database\Document; +use Utopia\Database\Exception; + +class Realtime extends Event +{ + protected array $subscribers = []; + + private Adapter $realtime; + + protected bool $critical = false; + + public function __construct() + { + $this->realtime = new Adapter\Realtime(); + } + + /** + * Get Realtime payload for this event. + * + * @return array + */ + public function getRealtimePayload(): array + { + $payload = []; + + foreach ($this->payload as $key => $value) { + if (!isset($this->sensitive[$key])) { + $payload[$key] = $value; + } + } + + return $payload; + } + + /** + * Set subscribers for this realtime event. + * + * @param array $subscribers + * @return self + */ + public function setSubscribers(array $subscribers): self + { + $this->subscribers = $subscribers; + return $this; + } + + /** + * Get subscribers for this realtime event. + * + * @return array + */ + public function getSubscribers(): array + { + return $this->subscribers; + } + + /** + * Execute Event. + * + * @return string|bool + * @throws Exception + */ + public function trigger(): string|bool + { + if ($this->paused || empty($this->event)) { + return false; + } + + $allEvents = Event::generateEvents($this->getEvent(), $this->getParams()); + $payload = new Document($this->getPayload()); + + $db = $this->getContext('database'); + $collection = $this->getContext('collection'); + $bucket = $this->getContext('bucket'); + + $target = RealtimeAdapter::fromPayload( + // Pass first, most verbose event pattern + event: $allEvents[0], + payload: $payload, + project: $this->getProject(), + database: $db, + collection: $collection, + bucket: $bucket, + ); + + $projectIds = !empty($this->getSubscribers()) + ? $this->getSubscribers() + : [$target['projectId'] ?? $this->getProject()->getId()]; + + foreach ($projectIds as $projectId) { + $this->realtime->send( + projectId: $projectId, + payload: $this->getRealtimePayload(), + events: $allEvents, + channels: $target['channels'], + roles: $target['roles'], + options: [ + 'permissionsChanged' => $target['permissionsChanged'], + 'userId' => $this->getParam('userId') + ] + ); + } + + return true; + } +} diff --git a/src/Appwrite/Event/StatsResources.php b/src/Appwrite/Event/StatsResources.php new file mode 100644 index 00000000000..c4f7ac16906 --- /dev/null +++ b/src/Appwrite/Event/StatsResources.php @@ -0,0 +1,31 @@ +<?php + +namespace Appwrite\Event; + +use Utopia\Queue\Publisher; + +class StatsResources extends Event +{ + protected bool $critical = false; + + public function __construct(protected Publisher $publisher) + { + parent::__construct($publisher); + + $this + ->setQueue(Event::STATS_RESOURCES_QUEUE_NAME) + ->setClass(Event::STATS_RESOURCES_CLASS_NAME); + } + + /** + * Prepare the payload for the usage event. + * + * @return array + */ + protected function preparePayload(): array + { + return [ + 'project' => $this->project + ]; + } +} diff --git a/src/Appwrite/Event/StatsUsage.php b/src/Appwrite/Event/StatsUsage.php new file mode 100644 index 00000000000..f6b1d695f43 --- /dev/null +++ b/src/Appwrite/Event/StatsUsage.php @@ -0,0 +1,88 @@ +<?php + +namespace Appwrite\Event; + +use Utopia\Database\Document; +use Utopia\Queue\Publisher; + +class StatsUsage extends Event +{ + protected array $metrics = []; + protected array $reduce = []; + protected array $disabled = []; + + protected bool $critical = false; + + public function __construct(protected Publisher $publisher) + { + parent::__construct($publisher); + + $this + ->setQueue(Event::STATS_USAGE_QUEUE_NAME) + ->setClass(Event::STATS_USAGE_CLASS_NAME); + } + + /** + * Add reduce. + * + * @param Document $document + * @return self + */ + public function addReduce(Document $document): self + { + $this->reduce[] = $document; + + return $this; + } + + /** + * Add metric. + * + * @param string $key + * @param int $value + * @return self + */ + public function addMetric(string $key, int $value): self + { + $this->metrics[] = [ + 'key' => $key, + 'value' => $value, + ]; + + return $this; + } + + /** + * Set disabled metrics. + * + * @param string $key + * @return self + */ + public function disableMetric(string $key): self + { + $this->disabled[] = $key; + + return $this; + } + + /** + * Prepare the payload for the event + * + * @return array + */ + protected function preparePayload(): array + { + return [ + 'project' => $this->getProject(), + 'reduce' => $this->reduce, + 'metrics' => \array_filter($this->metrics, function ($metric) { + foreach ($this->disabled as $disabledMetric) { + if (\str_ends_with($metric['key'], $disabledMetric)) { + return false; + } + } + return true; + }), + ]; + } +} diff --git a/src/Appwrite/Event/Usage.php b/src/Appwrite/Event/Usage.php deleted file mode 100644 index 4426f4ab1bf..00000000000 --- a/src/Appwrite/Event/Usage.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php - -namespace Appwrite\Event; - -use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; - -class Usage extends Event -{ - protected array $metrics = []; - protected array $reduce = []; - - public function __construct(protected Connection $connection) - { - parent::__construct($connection); - - $this - ->setQueue(Event::USAGE_QUEUE_NAME) - ->setClass(Event::USAGE_CLASS_NAME); - } - - /** - * Add reduce. - * - * @param Document $document - * @return self - */ - public function addReduce(Document $document): self - { - $this->reduce[] = $document; - - return $this; - } - - /** - * Add metric. - * - * @param string $key - * @param int $value - * @return self - */ - public function addMetric(string $key, int $value): self - { - $this->metrics[] = [ - 'key' => $key, - 'value' => $value, - ]; - - return $this; - } - - /** - * Sends metrics to the usage worker. - * - * @return string|bool - */ - public function trigger(): string|bool - { - $client = new Client($this->queue, $this->connection); - return $client->enqueue([ - 'project' => $this->getProject(), - 'reduce' => $this->reduce, - 'metrics' => $this->metrics, - ]); - } -} diff --git a/src/Appwrite/Event/UsageDump.php b/src/Appwrite/Event/UsageDump.php deleted file mode 100644 index 8f879088496..00000000000 --- a/src/Appwrite/Event/UsageDump.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - -namespace Appwrite\Event; - -use Utopia\Queue\Client; -use Utopia\Queue\Connection; - -class UsageDump extends Event -{ - protected array $stats; - - public function __construct(protected Connection $connection) - { - parent::__construct($connection); - - $this - ->setQueue(Event::USAGE_DUMP_QUEUE_NAME) - ->setClass(Event::USAGE_DUMP_CLASS_NAME); - } - - /** - * Add Stats. - * - * @param array $stats - * @return self - */ - public function setStats(array $stats): self - { - $this->stats = $stats; - - return $this; - } - - /** - * Sends metrics to the usage worker. - * - * @return string|bool - */ - public function trigger(): string|bool - { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ - 'stats' => $this->stats, - ]); - } -} diff --git a/src/Appwrite/Event/Webhook.php b/src/Appwrite/Event/Webhook.php new file mode 100644 index 00000000000..5cc65758ee4 --- /dev/null +++ b/src/Appwrite/Event/Webhook.php @@ -0,0 +1,31 @@ +<?php + +namespace Appwrite\Event; + +use Utopia\Queue\Publisher; + +class Webhook extends Event +{ + public function __construct(protected Publisher $publisher) + { + parent::__construct($publisher); + + $this + ->setQueue(Event::WEBHOOK_QUEUE_NAME) + ->setClass(Event::WEBHOOK_CLASS_NAME); + } + + /** + * Trim the payload for the webhook event. + * + * @return array + */ + public function trimPayload(): array + { + $trimmed = parent::trimPayload(); + if (isset($this->context)) { + $trimmed['context'] = []; + } + return $trimmed; + } +} diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index 884296ff673..296434ed57d 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -39,6 +39,7 @@ class Exception extends \Exception public const GENERAL_UNKNOWN = 'general_unknown'; public const GENERAL_MOCK = 'general_mock'; public const GENERAL_ACCESS_FORBIDDEN = 'general_access_forbidden'; + public const GENERAL_RESOURCE_BLOCKED = 'general_resource_blocked'; public const GENERAL_UNKNOWN_ORIGIN = 'general_unknown_origin'; public const GENERAL_API_DISABLED = 'general_api_disabled'; public const GENERAL_SERVICE_DISABLED = 'general_service_disabled'; @@ -111,13 +112,15 @@ class Exception extends \Exception /** Teams */ public const TEAM_NOT_FOUND = 'team_not_found'; - public const TEAM_INVITE_ALREADY_EXISTS = 'team_invite_already_exists'; public const TEAM_INVITE_NOT_FOUND = 'team_invite_not_found'; public const TEAM_INVALID_SECRET = 'team_invalid_secret'; public const TEAM_MEMBERSHIP_MISMATCH = 'team_membership_mismatch'; public const TEAM_INVITE_MISMATCH = 'team_invite_mismatch'; public const TEAM_ALREADY_EXISTS = 'team_already_exists'; + /** Console */ + public const RESOURCE_ALREADY_EXISTS = 'resource_already_exists'; + /** Membership */ public const MEMBERSHIP_NOT_FOUND = 'membership_not_found'; public const MEMBERSHIP_ALREADY_CONFIRMED = 'membership_already_confirmed'; @@ -151,12 +154,18 @@ class Exception extends \Exception public const PROVIDER_CONTRIBUTION_CONFLICT = 'provider_contribution_conflict'; public const GENERAL_PROVIDER_FAILURE = 'general_provider_failure'; + /** Sites */ + public const SITE_NOT_FOUND = 'site_not_found'; + public const SITE_TEMPLATE_NOT_FOUND = 'site_template_not_found'; + /** Functions */ public const FUNCTION_NOT_FOUND = 'function_not_found'; public const FUNCTION_RUNTIME_UNSUPPORTED = 'function_runtime_unsupported'; public const FUNCTION_ENTRYPOINT_MISSING = 'function_entrypoint_missing'; public const FUNCTION_SYNCHRONOUS_TIMEOUT = 'function_synchronous_timeout'; public const FUNCTION_TEMPLATE_NOT_FOUND = 'function_template_not_found'; + public const FUNCTION_RUNTIME_NOT_DETECTED = 'function_runtime_not_detected'; + public const FUNCTION_EXECUTE_PERMISSION_MISSING = 'function_execute_permission_missing'; /** Deployments */ public const DEPLOYMENT_NOT_FOUND = 'deployment_not_found'; @@ -166,15 +175,21 @@ class Exception extends \Exception public const BUILD_NOT_READY = 'build_not_ready'; public const BUILD_IN_PROGRESS = 'build_in_progress'; public const BUILD_ALREADY_COMPLETED = 'build_already_completed'; + public const BUILD_CANCELED = 'build_canceled'; + public const BUILD_FAILED = 'build_failed'; /** Execution */ public const EXECUTION_NOT_FOUND = 'execution_not_found'; public const EXECUTION_IN_PROGRESS = 'execution_in_progress'; + /** Log */ + public const LOG_NOT_FOUND = 'log_not_found'; + /** Databases */ public const DATABASE_NOT_FOUND = 'database_not_found'; public const DATABASE_ALREADY_EXISTS = 'database_already_exists'; public const DATABASE_TIMEOUT = 'database_timeout'; + public const DATABASE_QUERY_ORDER_NULL = 'database_query_order_null'; /** Collections */ public const COLLECTION_NOT_FOUND = 'collection_not_found'; @@ -200,6 +215,7 @@ class Exception extends \Exception public const ATTRIBUTE_LIMIT_EXCEEDED = 'attribute_limit_exceeded'; public const ATTRIBUTE_VALUE_INVALID = 'attribute_value_invalid'; public const ATTRIBUTE_TYPE_INVALID = 'attribute_type_invalid'; + public const ATTRIBUTE_INVALID_RESIZE = 'attribute_invalid_resize'; /** Relationship */ public const RELATIONSHIP_VALUE_INVALID = 'relationship_value_invalid'; @@ -209,6 +225,7 @@ class Exception extends \Exception public const INDEX_LIMIT_EXCEEDED = 'index_limit_exceeded'; public const INDEX_ALREADY_EXISTS = 'index_already_exists'; public const INDEX_INVALID = 'index_invalid'; + public const INDEX_DEPENDENCY = 'index_dependency'; /** Projects */ public const PROJECT_NOT_FOUND = 'project_not_found'; @@ -245,6 +262,7 @@ class Exception extends \Exception /** Variables */ public const VARIABLE_NOT_FOUND = 'variable_not_found'; public const VARIABLE_ALREADY_EXISTS = 'variable_already_exists'; + public const VARIABLE_CANNOT_UNSET_SECRET = 'variable_cannot_unset_secret'; /** Platform */ public const PLATFORM_NOT_FOUND = 'platform_not_found'; @@ -301,19 +319,26 @@ class Exception extends \Exception /** Schedules */ public const SCHEDULE_NOT_FOUND = 'schedule_not_found'; + /** Tokens */ + public const TOKEN_NOT_FOUND = 'token_not_found'; + public const TOKEN_EXPIRED = 'token_expired'; + public const TOKEN_RESOURCE_TYPE_INVALID = 'token_resource_type_invalid'; protected string $type = ''; protected array $errors = []; protected bool $publish; + private array $ctas = []; + private ?string $view = null; - public function __construct(string $type = Exception::GENERAL_UNKNOWN, string $message = null, int|string $code = null, \Throwable $previous = null) + public function __construct(string $type = Exception::GENERAL_UNKNOWN, string $message = null, int|string $code = null, \Throwable $previous = null, ?string $view = null) { $this->errors = Config::getParam('errors'); $this->type = $type; + $this->view = $view; $this->code = $code ?? $this->errors[$type]['code']; // Mark string errors like HY001 from PDO as 500 errors - if(\is_string($this->code)) { + if (\is_string($this->code)) { if (\is_numeric($this->code)) { $this->code = (int) $this->code; } else { @@ -359,4 +384,23 @@ public function isPublishable(): bool { return $this->publish; } + + public function addCTA(string $label, ?string $url = null): self + { + $this->ctas[] = [ + 'label' => $label, + 'url' => $url + ]; + return $this; + } + + public function getCTAs(): array + { + return $this->ctas; + } + + public function getView(): ?string + { + return $this->view; + } } diff --git a/src/Appwrite/Functions/Specification.php b/src/Appwrite/Functions/Specification.php deleted file mode 100644 index 50a3c02b627..00000000000 --- a/src/Appwrite/Functions/Specification.php +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -namespace Appwrite\Functions; - -class Specification -{ - public const S_05VCPU_512MB = 's-0.5vcpu-512mb'; - public const S_1VCPU_512MB = 's-1vcpu-512mb'; - public const S_1VCPU_1GB = 's-1vcpu-1gb'; - public const S_2VCPU_2GB = 's-2vcpu-2gb'; - public const S_2VCPU_4GB = 's-2vcpu-4gb'; - public const S_4VCPU_4GB = 's-4vcpu-4gb'; - public const S_4VCPU_8GB = 's-4vcpu-8gb'; - public const S_8VCPU_4GB = 's-8vcpu-4gb'; - public const S_8VCPU_8GB = 's-8vcpu-8gb'; -} diff --git a/src/Appwrite/Functions/Validator/Headers.php b/src/Appwrite/Functions/Validator/Headers.php index 6d5b2da5dfc..04003d535b3 100644 --- a/src/Appwrite/Functions/Validator/Headers.php +++ b/src/Appwrite/Functions/Validator/Headers.php @@ -44,7 +44,7 @@ public function isValid($value): bool return false; } - if(\count($value) > $this->maxKeys) { + if (\count($value) > $this->maxKeys) { return false; } @@ -57,7 +57,7 @@ public function isValid($value): bool } $size += $length + \strlen($val); - if($size >= $this->maxSize) { + if ($size >= $this->maxSize) { return false; } diff --git a/src/Appwrite/Functions/Validator/Payload.php b/src/Appwrite/Functions/Validator/Payload.php new file mode 100644 index 00000000000..acb461eabd3 --- /dev/null +++ b/src/Appwrite/Functions/Validator/Payload.php @@ -0,0 +1,18 @@ +<?php + +namespace Appwrite\Functions\Validator; + +use Utopia\Validator\Text; + +class Payload extends Text +{ + public function __construct(int $length, int $min = 1) + { + parent::__construct($length, $min); + } + + public function getType(): string + { + return self::TYPE_STRING; + } +} diff --git a/src/Appwrite/Functions/Validator/RuntimeSpecification.php b/src/Appwrite/Functions/Validator/RuntimeSpecification.php deleted file mode 100644 index 22311838f67..00000000000 --- a/src/Appwrite/Functions/Validator/RuntimeSpecification.php +++ /dev/null @@ -1,112 +0,0 @@ -<?php - -namespace Appwrite\Functions\Validator; - -use Utopia\Validator; - -class RuntimeSpecification extends Validator -{ - private array $plan; - - private array $specifications; - - private float $maxCpus; - - private int $maxMemory; - - public function __construct(array $plan, array $specifications, float $maxCpus, int $maxMemory) - { - $this->plan = $plan; - $this->specifications = $specifications; - $this->maxCpus = $maxCpus; - $this->maxMemory = $maxMemory; - } - - /** - * Get Allowed Specifications. - * - * Get allowed specifications taking into account the limits set by the environment variables and the plan. - * - * @return array - */ - public function getAllowedSpecifications(): array - { - $allowedSpecifications = []; - - foreach ($this->specifications as $size => $values) { - if ($values['cpus'] <= $this->maxCpus && $values['memory'] <= $this->maxMemory) { - if (!empty($this->plan) && array_key_exists('runtimeSpecifications', $this->plan)) { - if (!\in_array($size, $this->plan['runtimeSpecifications'])) { - continue; - } - } - - $allowedSpecifications[] = $size; - } - } - - return $allowedSpecifications; - } - - /** - * Get Description. - * - * Returns validator description. - * - * @return string - */ - public function getDescription(): string - { - return 'Specification must be one of: ' . implode(', ', $this->getAllowedSpecifications()); - } - - /** - * Is valid. - * - * Returns true if valid or false if not. - * - * @param mixed $value - * - * @return bool - */ - public function isValid($value): bool - { - if (empty($value)) { - return false; - } - - if (!\is_string($value)) { - return false; - } - - if (!\in_array($value, $this->getAllowedSpecifications())) { - return false; - } - - return true; - } - - /** - * Is array. - * - * Function will return true if object is array. - * - * @return bool - */ - public function isArray(): bool - { - return false; - } - - /** - * Get Type. - * - * Returns validator type. - * - * @return string - */ - public function getType(): string - { - return self::TYPE_STRING; - } -} diff --git a/src/Appwrite/GraphQL/Schema.php b/src/Appwrite/GraphQL/Schema.php index 833ea9d0323..a0d93de45c6 100644 --- a/src/Appwrite/GraphQL/Schema.php +++ b/src/Appwrite/GraphQL/Schema.php @@ -98,27 +98,36 @@ protected static function api(App $utopia, callable $complexity): array foreach ($routes as $route) { /** @var Route $route */ - $namespace = $route->getLabel('sdk.namespace', ''); - $method = $route->getLabel('sdk.method', ''); - $name = $namespace . \ucfirst($method); + /** @var \Appwrite\SDK\Method $sdk */ + $sdk = $route->getLabel('sdk', false); - if (empty($name)) { + if (empty($sdk)) { continue; } - foreach (Mapper::route($utopia, $route, $complexity) as $field) { - switch ($route->getMethod()) { - case 'GET': - $queries[$name] = $field; - break; - case 'POST': - case 'PUT': - case 'PATCH': - case 'DELETE': - $mutations[$name] = $field; - break; - default: - throw new \Exception("Unsupported method: {$route->getMethod()}"); + if (!\is_array($sdk)) { + $sdk = [$sdk]; + } + + foreach ($sdk as $method) { + $namespace = $method->getNamespace(); + $methodName = $method->getMethodName(); + $name = $namespace . \ucfirst($methodName); + + foreach (Mapper::route($utopia, $route, $method, $complexity) as $field) { + switch ($route->getMethod()) { + case 'GET': + $queries[$name] = $field; + break; + case 'POST': + case 'PUT': + case 'PATCH': + case 'DELETE': + $mutations[$name] = $field; + break; + default: + throw new \Exception("Unsupported method: {$route->getMethod()}"); + } } } } diff --git a/src/Appwrite/GraphQL/Types/Mapper.php b/src/Appwrite/GraphQL/Types/Mapper.php index 36b246b28b4..3c7915bc96e 100644 --- a/src/Appwrite/GraphQL/Types/Mapper.php +++ b/src/Appwrite/GraphQL/Types/Mapper.php @@ -4,6 +4,7 @@ use Appwrite\GraphQL\Resolvers; use Appwrite\GraphQL\Types; +use Appwrite\SDK\Method; use Exception; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\Type; @@ -50,6 +51,7 @@ public static function init(array $models): void $defaults = [ 'boolean' => Type::boolean(), 'string' => Type::string(), + 'payload' => Type::string(), 'integer' => Type::int(), 'double' => Type::float(), 'datetime' => Type::string(), @@ -77,6 +79,7 @@ public static function args(string $key): array public static function route( App $utopia, Route $route, + Method $method, callable $complexity ): iterable { foreach (self::$blacklist as $blacklist) { @@ -85,10 +88,27 @@ public static function route( } } - $names = $route->getLabel('sdk.response.model', 'none'); - $models = \is_array($names) - ? \array_map(static fn ($m) => static::$models[$m], $names) - : [static::$models[$names]]; + $responses = $method->getResponses() ?? []; + + // If responses is an array, map each response to its model + if (\is_array($responses)) { + $models = []; + foreach ($responses as $response) { + $modelName = $response->getModel(); + + if (\is_array($modelName)) { + foreach ($modelName as $name) { + $models[] = static::$models[$name]; + } + } else { + $models[] = static::$models[$modelName]; + } + } + } else { + // If single response, get its model and wrap in array + $modelName = $responses->getModel(); + $models = [static::$models[$modelName]]; + } foreach ($models as $model) { $type = Mapper::model(\ucfirst($model->getType())); @@ -97,13 +117,31 @@ public static function route( $list = false; foreach ($route->getParams() as $name => $parameter) { + $sdkParameters = $method->getParameters(); + + if (!empty($sdkParameters)) { + $sdkMethodParameters = []; + foreach ($sdkParameters as $sdkParameter) { + $sdkMethodParameters[$sdkParameter->getName()] = $sdkParameter; + } + + if (!\array_key_exists($name, $sdkMethodParameters)) { + continue; + } + + $optional = $sdkMethodParameters[$name]->getOptional(); + } else { + $optional = $parameter['optional']; + } + if ($name === 'queries') { $list = true; } + $parameterType = Mapper::param( $utopia, $parameter['validator'], - !$parameter['optional'], + !$optional, $parameter['injections'] ); $params[$name] = [ diff --git a/src/Appwrite/Messaging/Adapter.php b/src/Appwrite/Messaging/Adapter.php index 27dd7f68eb4..40169bd1a94 100644 --- a/src/Appwrite/Messaging/Adapter.php +++ b/src/Appwrite/Messaging/Adapter.php @@ -6,5 +6,5 @@ abstract class Adapter { abstract public function subscribe(string $projectId, mixed $identifier, array $roles, array $channels): void; abstract public function unsubscribe(mixed $identifier): void; - abstract public static function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options): void; + abstract public function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options): void; } diff --git a/src/Appwrite/Messaging/Adapter/Realtime.php b/src/Appwrite/Messaging/Adapter/Realtime.php index 55d8db2924a..568132ceb14 100644 --- a/src/Appwrite/Messaging/Adapter/Realtime.php +++ b/src/Appwrite/Messaging/Adapter/Realtime.php @@ -7,7 +7,7 @@ use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; -use Utopia\System\System; +use Utopia\Pools\Pool; class Realtime extends Adapter { @@ -36,6 +36,14 @@ class Realtime extends Adapter */ public array $subscriptions = []; + private Pool $pubsubPool; + + public function __construct() + { + global $register; + $this->pubsubPool = $register->get('pools')->get('pubsub'); + } + /** * Adds a subscription. * @@ -130,7 +138,7 @@ public function hasSubscriber(string $projectId, string $role, string $channel = * @param array $options * @return void */ - public static function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options = []): void + public function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options = []): void { if (empty($channels) || empty($roles) || empty($projectId)) { return; @@ -139,9 +147,7 @@ public static function send(string $projectId, array $payload, array $events, ar $permissionsChanged = array_key_exists('permissionsChanged', $options) && $options['permissionsChanged']; $userId = array_key_exists('userId', $options) ? $options['userId'] : null; - $redis = new \Redis(); //TODO: make this part of the constructor - $redis->connect(System::getEnv('_APP_REDIS_HOST', ''), System::getEnv('_APP_REDIS_PORT', '')); - $redis->publish('realtime', json_encode([ + $message = [ 'project' => $projectId, 'roles' => $roles, 'permissionsChanged' => $permissionsChanged, @@ -152,7 +158,9 @@ public static function send(string $projectId, array $payload, array $events, ar 'timestamp' => DateTime::formatTz(DateTime::now()), 'payload' => $payload ] - ])); + ]; + + $this->pubsubPool->use(fn (\Appwrite\PubSub\Adapter $pubsub) => $pubsub->publish('realtime', json_encode($message))); } /** @@ -243,7 +251,11 @@ public static function convertChannels(array $channels, string $userId): array * @param string $event * @param Document $payload * @param Document|null $project + * @param Document|null $database + * @param Document|null $collection + * @param Document|null $bucket * @return array + * @throws \Exception */ public static function fromPayload(string $event, Document $payload, Document $project = null, Document $database = null, Document $collection = null, Document $bucket = null): array { @@ -262,6 +274,13 @@ public static function fromPayload(string $event, Document $payload, Document $p break; case 'rules': $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); + $projectId = 'console'; + $roles = [Role::team($project->getAttribute('teamId'))->toString()]; + break; + case 'projects': + $channels[] = 'console'; + $channels[] = 'projects.' . $parts[1]; $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; break; @@ -280,6 +299,7 @@ public static function fromPayload(string $event, Document $payload, Document $p case 'databases': if (in_array($parts[4] ?? [], ['attributes', 'indexes'])) { $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; } elseif (($parts[4] ?? '') === 'documents') { @@ -319,6 +339,7 @@ public static function fromPayload(string $event, Document $payload, Document $p if ($parts[2] === 'executions') { if (!empty($payload->getRead())) { $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $channels[] = 'executions'; $channels[] = 'executions.' . $payload->getId(); $channels[] = 'functions.' . $payload->getAttribute('functionId'); @@ -326,6 +347,17 @@ public static function fromPayload(string $event, Document $payload, Document $p } } elseif ($parts[2] === 'deployments') { $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); + $projectId = 'console'; + $roles = [Role::team($project->getAttribute('teamId'))->toString()]; + } + + break; + + case 'sites': + if ($parts[2] === 'deployments') { + $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; } @@ -333,6 +365,7 @@ public static function fromPayload(string $event, Document $payload, Document $p break; case 'migrations': $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; break; diff --git a/src/Appwrite/Migration/Migration.php b/src/Appwrite/Migration/Migration.php index 3b1fc3d591f..096c23ad921 100644 --- a/src/Appwrite/Migration/Migration.php +++ b/src/Appwrite/Migration/Migration.php @@ -3,47 +3,37 @@ namespace Appwrite\Migration; use Exception; -use Swoole\Runtime; use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\Document; +use Utopia\Database\Exception\Conflict; +use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Limit; +use Utopia\Database\Exception\Structure; use Utopia\Database\Helpers\ID; -use Utopia\Database\Query; +use Utopia\Database\PDO; use Utopia\Database\Validator\Authorization; -use Utopia\System\System; - -Runtime::enableCoroutine(SWOOLE_HOOK_ALL); abstract class Migration { - /** - * @var int - */ protected int $limit = 100; - /** - * @var Document - */ protected Document $project; - /** - * @var Database - */ - protected Database $projectDB; + protected Database $dbForProject; - /** - * @var Database - */ - protected Database $consoleDB; + protected Database $dbForPlatform; /** - * @var \PDO + * @var callable(Document): Database */ - protected \PDO $pdo; + protected mixed $getProjectDB; + + protected PDO $pdo; /** - * @var array + * @var array<string, string> */ public static array $versions = [ '1.0.0-RC1' => 'V15', @@ -88,12 +78,17 @@ abstract class Migration '1.5.7' => 'V20', '1.5.8' => 'V20', '1.5.9' => 'V20', - '1.5.10' => 'V20', - '1.6.0' => 'V21' + '1.5.10' => 'V20', + '1.5.11' => 'V20', + '1.6.0' => 'V21', + '1.6.1' => 'V21', + '1.6.2' => 'V22', + '1.7.0-RC1' => 'V23', + '1.7.0' => 'V23', ]; /** - * @var array + * @var array<string, array<string, mixed>> */ protected array $collections; @@ -104,38 +99,35 @@ public function __construct() $this->collections = Config::getParam('collections', []); - $projectCollections = $this->collections['projects']; - - $this->collections['projects'] = array_merge([ - '_metadata' => [ - '$id' => ID::custom('_metadata'), - '$collection' => Database::METADATA - ], - 'audit' => [ - '$id' => ID::custom('audit'), - '$collection' => Database::METADATA - ], - 'abuse' => [ - '$id' => ID::custom('abuse'), - '$collection' => Database::METADATA - ] - ], $projectCollections); + $this->collections['projects']['_metadata'] = [ + '$id' => ID::custom('_metadata'), + '$collection' => Database::METADATA, + ]; + + $this->collections['projects']['audit'] = [ + '$id' => ID::custom('audit'), + '$collection' => Database::METADATA, + ]; } /** * Set project for migration. * * @param Document $project - * @param Database $projectDB - * @param Database $oldConsoleDB - * + * @param Database $dbForProject + * @param Database $dbForPlatform * @return self */ - public function setProject(Document $project, Database $projectDB, Database $consoleDB): self - { + public function setProject( + Document $project, + Database $dbForProject, + Database $dbForPlatform, + ?callable $getProjectDB = null + ): self { $this->project = $project; - $this->projectDB = $projectDB; - $this->consoleDB = $consoleDB; + $this->dbForProject = $dbForProject; + $this->dbForPlatform = $dbForPlatform; + $this->getProjectDB = $getProjectDB; return $this; } @@ -143,10 +135,10 @@ public function setProject(Document $project, Database $projectDB, Database $con /** * Set PDO for Migration. * - * @param \PDO $pdo - * @return \Appwrite\Migration\Migration + * @param PDO $pdo + * @return Migration */ - public function setPDO(\PDO $pdo): self + public function setPDO(PDO $pdo): self { $this->pdo = $pdo; @@ -157,155 +149,177 @@ public function setPDO(\PDO $pdo): self * Iterates through every document. * * @param callable $callback + * @throws Exception */ public function forEachDocument(callable $callback): void { - $internalProjectId = $this->project->getInternalId(); + $projectInternalId = $this->project->getInternalId(); - $collections = match ($internalProjectId) { + $collections = match ($projectInternalId) { 'console' => $this->collections['console'], default => $this->collections['projects'], }; foreach ($collections as $collection) { + // Only migrate top-level collections if ($collection['$collection'] !== Database::METADATA) { continue; } - Console::log('Migrating Collection ' . $collection['$id'] . ':'); + Console::log('Migrating documents for collection "' . $collection['$id'] . '"'); - foreach ($this->documentsIterator($collection['$id']) as $document) { - go(function (Document $document, callable $callback) { - if (empty($document->getId()) || empty($document->getCollection())) { - return; - } + $this->dbForProject->foreach($collection['$id'], function (Document $document) use ($collection, $callback) { + if (empty($document->getId()) || empty($document->getCollection())) { + return; + } - $old = $document->getArrayCopy(); - $new = call_user_func($callback, $document); + $old = $document->getArrayCopy(); + $new = $callback($document); - if (is_null($new) || $new->getArrayCopy() == $old) { - return; - } + if ($new === null || $new->getArrayCopy() == $old) { + return; + } - try { - $this->projectDB->updateDocument($document->getCollection(), $document->getId(), $document); - } catch (\Throwable $th) { - Console::error('Failed to update document: ' . $th->getMessage()); - return; - } - }, $document, $callback); - } + try { + $this->dbForProject->updateDocument( + $document->getCollection(), + $document->getId(), + $document + ); + } catch (\Throwable $th) { + Console::error("Failed to update document \"{$document->getId()}\" in collection \"{$collection['$id']}\":" . $th->getMessage()); + return; + } + }); } } /** - * Provides an iterator for all documents on a collection. + * Creates collection from the config collection. * - * @param string $collectionId - * @return iterable<Document> - * @throws \Exception + * @param string $id + * @param string|null $name + * @return void + * @throws \Throwable */ - public function documentsIterator(string $collectionId, $queries = []): iterable + protected function createCollection(string $id, string $name = null): void { - $sum = 0; - $nextDocument = null; - $collectionCount = $this->projectDB->count($collectionId); - $queries[] = Query::limit($this->limit); - - do { - if ($nextDocument !== null) { - $cursorQueryIndex = \array_search('cursorAfter', \array_map(fn (Query $query) => $query->getMethod(), $queries)); - - if ($cursorQueryIndex !== false) { - $queries[$cursorQueryIndex] = Query::cursorAfter($nextDocument); - } else { - $queries[] = Query::cursorAfter($nextDocument); - } - } + $name ??= $id; - $documents = $this->projectDB->find($collectionId, $queries); - $count = count($documents); - $sum += $count; + $collectionType = match ($this->project->getInternalId()) { + 'console' => 'console', + default => 'projects', + }; - Console::log($sum . ' / ' . $collectionCount); - foreach ($documents as $document) { - yield $document; - } + if (!$this->dbForProject->getCollection($id)->isEmpty()) { + return; + } - if ($count !== $this->limit) { - $nextDocument = null; - } else { - $nextDocument = end($documents); - } - } while (!is_null($nextDocument)); + $collection = $this->collections[$collectionType][$id]; + + $attributes = []; + foreach ($collection['attributes'] as $attribute) { + $attributes[] = new Document($attribute); + } + + $indexes = []; + foreach ($collection['indexes'] as $index) { + $indexes[] = new Document($index); + } + + try { + $this->dbForProject->createCollection($name, $attributes, $indexes); + } catch (Duplicate) { + Console::warning('Failed to create collection "' . $name . '": Collection already exists'); + } } /** - * Creates collection from the config collection. + * Creates attributes from collections.php * - * @param string $id - * @param string|null $name + * @param Database $database + * @param string $collectionId + * @param array $attributeIds + * @param string|null $from * @return void - * @throws \Throwable + * @throws \Utopia\Database\Exception + * @throws \Utopia\Database\Exception\Authorization + * @throws Conflict + * @throws Duplicate + * @throws Limit + * @throws Structure */ - protected function createCollection(string $id, string $name = null): void - { - $name ??= $id; + public function createAttributesFromCollection( + Database $database, + string $collectionId, + array $attributeIds, + string $from = null + ): void { + $from ??= $collectionId; $collectionType = match ($this->project->getInternalId()) { 'console' => 'console', default => 'projects', }; - if (!$this->projectDB->exists(System::getEnv('_APP_DB_SCHEMA', 'appwrite'), $name)) { - $attributes = []; - $indexes = []; - $collection = $this->collections[$collectionType][$id]; - - foreach ($collection['attributes'] as $attribute) { - $attributes[] = new Document([ - '$id' => $attribute['$id'], - 'type' => $attribute['type'], - 'size' => $attribute['size'], - 'required' => $attribute['required'], - 'default' => $attribute['default'] ?? null, - 'signed' => $attribute['signed'], - 'array' => $attribute['array'], - 'filters' => $attribute['filters'], - ]); - } + if ($from === 'files') { + $collectionType = 'buckets'; + } - foreach ($collection['indexes'] as $index) { - $indexes[] = new Document([ - '$id' => $index['$id'], - 'type' => $index['type'], - 'attributes' => $index['attributes'], - 'lengths' => $index['lengths'], - 'orders' => $index['orders'], - ]); - } + $collection = $this->collections[$collectionType][$from] ?? null; + + if ($collection === null) { + throw new Exception("Collection {$from} not found"); + } + + $attributesToCreate = []; + $attributes = $collection['attributes']; + $attributeKeys = \array_column($collection['attributes'], '$id'); - try { - $this->projectDB->createCollection($name, $attributes, $indexes); - } catch (\Throwable $th) { - throw $th; + foreach ($attributeIds as $attributeId) { + $attributeKey = \array_search($attributeId, $attributeKeys); + + if ($attributeKey === false) { + throw new Exception("Attribute {$attributeId} not found"); } + + $attribute = $attributes[$attributeKey]; + $attribute['filters'] ??= []; + $attribute['default'] ??= null; + $attribute['default'] = \in_array('json', $attribute['filters']) + ? \json_encode($attribute['default']) + : $attribute['default']; + + $attributesToCreate[] = $attribute; } + + $database->createAttributes( + collection: $collectionId, + attributes: $attributesToCreate, + ); } /** * Creates attribute from collections.php * - * @param \Utopia\Database\Database $database + * @param Database $database * @param string $collectionId * @param string $attributeId + * @param string|null $from * @return void - * @throws \Exception - * @throws \Utopia\Database\Exception\Duplicate - * @throws \Utopia\Database\Exception\Limit + * @throws \Utopia\Database\Exception + * @throws \Utopia\Database\Exception\Authorization + * @throws Conflict + * @throws Duplicate + * @throws Limit + * @throws Structure */ - public function createAttributeFromCollection(Database $database, string $collectionId, string $attributeId, string $from = null): void - { + public function createAttributeFromCollection( + Database $database, + string $collectionId, + string $attributeId, + string $from = null + ): void { $from ??= $collectionId; $collectionType = match ($this->project->getInternalId()) { @@ -319,13 +333,13 @@ public function createAttributeFromCollection(Database $database, string $collec $collection = $this->collections[$collectionType][$from] ?? null; - if (is_null($collection)) { + if ($collection === null) { throw new Exception("Collection {$from} not found"); } $attributes = $collection['attributes']; - $attributeKey = array_search($attributeId, array_column($attributes, '$id')); + $attributeKey = \array_search($attributeId, \array_column($attributes, '$id')); if ($attributeKey === false) { throw new Exception("Attribute {$attributeId} not found"); @@ -340,9 +354,9 @@ public function createAttributeFromCollection(Database $database, string $collec id: $attributeId, type: $attribute['type'], size: $attribute['size'], - required: $attribute['required'] ?? false, - default: in_array('json', $filters) ? json_encode($default) : $default, - signed: $attribute['signed'] ?? false, + required: $attribute['required'], + default: \in_array('json', $filters) ? \json_encode($default) : $default, + signed: $attribute['signed'] ?? true, array: $attribute['array'] ?? false, format: $attribute['format'] ?? '', formatOptions: $attribute['formatOptions'] ?? [], @@ -353,14 +367,14 @@ public function createAttributeFromCollection(Database $database, string $collec /** * Creates index from collections.php * - * @param \Utopia\Database\Database $database + * @param Database $database * @param string $collectionId * @param string $indexId * @param string|null $from * @return void * @throws \Exception - * @throws \Utopia\Database\Exception\Duplicate - * @throws \Utopia\Database\Exception\Limit + * @throws Duplicate + * @throws Limit */ public function createIndexFromCollection(Database $database, string $collectionId, string $indexId, string $from = null): void { @@ -373,13 +387,13 @@ public function createIndexFromCollection(Database $database, string $collection $collection = $this->collections[$collectionType][$from] ?? null; - if (is_null($collection)) { + if ($collection === null) { throw new Exception("Collection {$collectionId} not found"); } $indexes = $collection['indexes']; - $indexKey = array_search($indexId, array_column($indexes, '$id')); + $indexKey = \array_search($indexId, \array_column($indexes, '$id')); if ($indexKey === false) { throw new Exception("Index {$indexId} not found"); @@ -404,10 +418,11 @@ public function createIndexFromCollection(Database $database, string $collection * @param string $attribute * @param string $type * @return void + * @throws \Utopia\Database\Exception */ protected function changeAttributeInternalType(string $collection, string $attribute, string $type): void { - $stmt = $this->pdo->prepare("ALTER TABLE `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$collection}` MODIFY `$attribute` $type;"); + $stmt = $this->pdo->prepare("ALTER TABLE `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$collection}` MODIFY `$attribute` $type;"); try { $stmt->execute(); diff --git a/src/Appwrite/Migration/Version/V15.php b/src/Appwrite/Migration/Version/V15.php index ca20b6d7b3a..8eab916f19f 100644 --- a/src/Appwrite/Migration/Version/V15.php +++ b/src/Appwrite/Migration/Version/V15.php @@ -114,7 +114,7 @@ protected function migrateBuckets(): void $bucket->setAttribute('compression', 'none'); } - $this->projectDB->updateDocument('buckets', $bucket->getId(), $bucket); + $this->dbForProject->updateDocument('buckets', $bucket->getId(), $bucket); /** * Migrating stats for every Bucket. @@ -134,13 +134,13 @@ protected function migrateBuckets(): void table: $bucketTable, addCreatePermission: false ); - $this->projectDB->updateDocument($bucketTable, $file->getId(), $file); + $this->dbForProject->updateDocument($bucketTable, $file->getId(), $file); } $this->removeWritePermissions($bucketTable); } try { - $this->projectDB->deleteAttribute('buckets', 'permission'); + $this->dbForProject->deleteAttribute('buckets', 'permission'); } catch (\Throwable $th) { Console::warning("'permissions' from buckets: {$th->getMessage()}"); } @@ -188,10 +188,10 @@ protected function migrateDatabases(): void addCreatePermission: false ); - $this->projectDB->updateDocument('databases', $database->getId(), $database); + $this->dbForProject->updateDocument('databases', $database->getId(), $database); try { - $this->createAttributeFromCollection($this->projectDB, $databaseTable, 'documentSecurity', 'collections'); + $this->createAttributeFromCollection($this->dbForProject, $databaseTable, 'documentSecurity', 'collections'); } catch (\Throwable $th) { Console::warning("'documentSecurity' from {$databaseTable}: {$th->getMessage()}"); } @@ -231,7 +231,7 @@ protected function migrateDatabases(): void $collection->setAttribute('documentSecurity', $collection->getAttribute('permissions') === 'document'); } - $this->projectDB->updateDocument($databaseTable, $collection->getId(), $collection); + $this->dbForProject->updateDocument($databaseTable, $collection->getId(), $collection); /** * Migrating stats for single Collections. @@ -270,14 +270,14 @@ protected function migrateDatabases(): void addCreatePermission: false ); - $this->projectDB->updateDocument($collectionTable, $document->getId(), $document); + $this->dbForProject->updateDocument($collectionTable, $document->getId(), $document); } $this->removeWritePermissions($collectionTable); } $this->removeWritePermissions($databaseTable); try { - $this->projectDB->deleteAttribute("database_{$database->getInternalId()}", 'permission'); + $this->dbForProject->deleteAttribute("database_{$database->getInternalId()}", 'permission'); } catch (\Throwable $th) { Console::warning("'permission' from {$databaseTable}: {$th->getMessage()}"); } @@ -293,7 +293,7 @@ protected function migrateDatabases(): void protected function removeWritePermissions(string $table): void { try { - $this->pdo->prepare("DELETE FROM `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}_perms` WHERE _type = 'write'")->execute(); + $this->pdo->prepare("DELETE FROM `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}_perms` WHERE _type = 'write'")->execute(); } catch (\Throwable $th) { Console::warning("Remove 'write' permissions from {$table}: {$th->getMessage()}"); } @@ -309,7 +309,7 @@ protected function removeWritePermissions(string $table): void */ protected function getSQLColumnTypes(string $table): array { - $query = $this->pdo->prepare("SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '_{$this->project->getInternalId()}_{$table}' AND table_schema = '{$this->projectDB->getDatabase()}'"); + $query = $this->pdo->prepare("SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '_{$this->project->getInternalId()}_{$table}' AND table_schema = '{$this->dbForProject->getDatabase()}'"); $query->execute(); return array_reduce($query->fetchAll(), function (array $carry, array $item) { @@ -331,8 +331,8 @@ protected function migrateDateTimeAttribute(string $table, string $attribute): v if ($columns[$attribute] === 'int') { try { - $this->pdo->prepare("ALTER TABLE IF EXISTS `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` MODIFY {$attribute} VARCHAR(64)")->execute(); - $this->pdo->prepare("UPDATE `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` SET {$attribute} = IF({$attribute} = 0, NULL, FROM_UNIXTIME({$attribute}))")->execute(); + $this->pdo->prepare("ALTER TABLE IF EXISTS `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` MODIFY {$attribute} VARCHAR(64)")->execute(); + $this->pdo->prepare("UPDATE `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` SET {$attribute} = IF({$attribute} = 0, NULL, FROM_UNIXTIME({$attribute}))")->execute(); $columns[$attribute] = 'varchar'; } catch (\Throwable $th) { Console::warning($th->getMessage()); @@ -341,7 +341,7 @@ protected function migrateDateTimeAttribute(string $table, string $attribute): v if ($columns[$attribute] === 'varchar') { try { - $this->pdo->prepare("ALTER TABLE IF EXISTS `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` MODIFY {$attribute} DATETIME(3)")->execute(); + $this->pdo->prepare("ALTER TABLE IF EXISTS `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` MODIFY {$attribute} DATETIME(3)")->execute(); } catch (\Throwable $th) { Console::warning($th->getMessage()); } @@ -355,11 +355,11 @@ protected function migrateDateTimeAttribute(string $table, string $attribute): v /** * Add datetime filter. */ - $this->projectDB->updateAttributeFilters($table, ID::custom($attribute), ['datetime']); + $this->dbForProject->updateAttributeFilters($table, ID::custom($attribute), ['datetime']); /** * Change data type to DateTime. */ - $this->projectDB->updateAttribute( + $this->dbForProject->updateAttribute( collection: $table, id: $attribute, type: Database::VAR_DATETIME, @@ -370,7 +370,7 @@ protected function migrateDateTimeAttribute(string $table, string $attribute): v } } - $this->projectDB->purgeCachedCollection($table); + $this->dbForProject->purgeCachedCollection($table); } /** @@ -387,7 +387,7 @@ protected function createPermissionsColumn(string $table): void if (!array_key_exists('_permissions', $columns)) { try { - $this->pdo->prepare("ALTER TABLE IF EXISTS `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` ADD `_permissions` MEDIUMTEXT DEFAULT NULL")->execute(); + $this->pdo->prepare("ALTER TABLE IF EXISTS `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}` ADD `_permissions` MEDIUMTEXT DEFAULT NULL")->execute(); } catch (\Throwable $th) { Console::warning("Add '_permissions' column to '{$table}': {$th->getMessage()}"); } @@ -408,7 +408,7 @@ protected function populatePermissionsAttribute(Document &$document, ?string $ta { $table ??= $document->getCollection(); - $query = $this->pdo->prepare("SELECT * FROM `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}_perms` WHERE _document = '{$document->getId()}'"); + $query = $this->pdo->prepare("SELECT * FROM `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_{$table}_perms` WHERE _document = '{$document->getId()}'"); $query->execute(); $results = $query->fetchAll(); $permissions = []; @@ -466,7 +466,7 @@ protected function migrateCollections(): void Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); switch ($id) { case '_metadata': @@ -477,7 +477,7 @@ protected function migrateCollections(): void $this->createCollection('cache'); Console::log('Created new Collection "variables" collection'); $this->createCollection('variables'); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'abuse': @@ -509,7 +509,7 @@ protected function migrateCollections(): void /** * Create 'compression' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'compression'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'compression'); } catch (\Throwable $th) { Console::warning("'compression' from {$id}: {$th->getMessage()}"); } @@ -518,7 +518,7 @@ protected function migrateCollections(): void /** * Create 'fileSecurity' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'fileSecurity'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'fileSecurity'); } catch (\Throwable $th) { Console::warning("'fileSecurity' from {$id}: {$th->getMessage()}"); } @@ -527,7 +527,7 @@ protected function migrateCollections(): void /** * Create '_key_enabled' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_enabled'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_enabled'); } catch (\Throwable $th) { Console::warning("'_key_enabled' from {$id}: {$th->getMessage()}"); } @@ -536,7 +536,7 @@ protected function migrateCollections(): void /** * Create '_key_name' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_name'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_name'); } catch (\Throwable $th) { Console::warning("'_key_name' from {$id}: {$th->getMessage()}"); } @@ -545,7 +545,7 @@ protected function migrateCollections(): void /** * Create '_key_fileSecurity' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_fileSecurity'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_fileSecurity'); } catch (\Throwable $th) { Console::warning("'_key_fileSecurity' from {$id}: {$th->getMessage()}"); } @@ -554,7 +554,7 @@ protected function migrateCollections(): void /** * Create '_key_maximumFileSize' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_maximumFileSize'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_maximumFileSize'); } catch (\Throwable $th) { Console::warning("'_key_maximumFileSize' from {$id}: {$th->getMessage()}"); } @@ -563,7 +563,7 @@ protected function migrateCollections(): void /** * Create '_key_encryption' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_encryption'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_encryption'); } catch (\Throwable $th) { Console::warning("'_key_encryption' from {$id}: {$th->getMessage()}"); } @@ -572,7 +572,7 @@ protected function migrateCollections(): void /** * Create '_key_antivirus' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_antivirus'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_antivirus'); } catch (\Throwable $th) { Console::warning("'_key_antivirus' from {$id}: {$th->getMessage()}"); } @@ -611,7 +611,7 @@ protected function migrateCollections(): void /** * Create '_key_entrypoint' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_entrypoint'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_entrypoint'); } catch (\Throwable $th) { Console::warning("'_key_entrypoint' from {$id}: {$th->getMessage()}"); } @@ -620,7 +620,7 @@ protected function migrateCollections(): void /** * Create '_key_size' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_size'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_size'); } catch (\Throwable $th) { Console::warning("'_key_size' from {$id}: {$th->getMessage()}"); } @@ -629,7 +629,7 @@ protected function migrateCollections(): void /** * Create '_key_buildId' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_buildId'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_buildId'); } catch (\Throwable $th) { Console::warning("'_key_buildId' from {$id}: {$th->getMessage()}"); } @@ -638,7 +638,7 @@ protected function migrateCollections(): void /** * Create '_key_activate' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_activate'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_activate'); } catch (\Throwable $th) { Console::warning("'_key_activate' from {$id}: {$th->getMessage()}"); } @@ -662,7 +662,7 @@ protected function migrateCollections(): void /** * Create 'stdout' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'stdout'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'stdout'); } catch (\Throwable $th) { Console::warning("'stdout' from {$id}: {$th->getMessage()}"); } @@ -671,7 +671,7 @@ protected function migrateCollections(): void /** * Rename 'time' to 'duration' */ - $this->projectDB->renameAttribute($id, 'time', 'duration'); + $this->dbForProject->renameAttribute($id, 'time', 'duration'); } catch (\Throwable $th) { Console::warning("'duration' from {$id}: {$th->getMessage()}"); } @@ -680,7 +680,7 @@ protected function migrateCollections(): void /** * Create '_key_trigger' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_trigger'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_trigger'); } catch (\Throwable $th) { Console::warning("'_key_trigger' from {$id}: {$th->getMessage()}"); } @@ -689,7 +689,7 @@ protected function migrateCollections(): void /** * Create '_key_status' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_status'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_status'); } catch (\Throwable $th) { Console::warning("'_key_status' from {$id}: {$th->getMessage()}"); } @@ -698,7 +698,7 @@ protected function migrateCollections(): void /** * Create '_key_statusCode' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_statusCode'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_statusCode'); } catch (\Throwable $th) { Console::warning("'_key_statusCode' from {$id}: {$th->getMessage()}"); } @@ -707,7 +707,7 @@ protected function migrateCollections(): void /** * Create '_key_duration' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_duration'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_duration'); } catch (\Throwable $th) { Console::warning("'_key_duration' from {$id}: {$th->getMessage()}"); } @@ -751,16 +751,16 @@ protected function migrateCollections(): void 'value' => (string) $value, 'search' => implode(' ', [$variableId, $key, $function->getId()]) ]); - $this->projectDB->createDocument('variables', $variable); + $this->dbForProject->createDocument('variables', $variable); } - $this->projectDB->deleteAttribute('functions', 'vars'); - $this->createAttributeFromCollection($this->projectDB, 'functions', 'vars'); + $this->dbForProject->deleteAttribute('functions', 'vars'); + $this->createAttributeFromCollection($this->dbForProject, 'functions', 'vars'); } try { /** * Create 'scheduleUpdatedAt' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'scheduleUpdatedAt'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'scheduleUpdatedAt'); } catch (\Throwable $th) { Console::warning("'scheduleUpdatedAt' from {$id}: {$th->getMessage()}"); } @@ -768,8 +768,8 @@ protected function migrateCollections(): void /** * Create 'enabled' attribute */ - @$this->projectDB->deleteAttribute($id, 'status'); - $this->createAttributeFromCollection($this->projectDB, $id, 'enabled'); + @$this->dbForProject->deleteAttribute($id, 'status'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'enabled'); } catch (\Throwable $th) { Console::warning("'enabled' from {$id}: {$th->getMessage()}"); } @@ -777,7 +777,7 @@ protected function migrateCollections(): void /** * Create '_key_name' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_name'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_name'); } catch (\Throwable $th) { Console::warning("'_key_name' from {$id}: {$th->getMessage()}"); } @@ -786,7 +786,7 @@ protected function migrateCollections(): void /** * Create '_key_enabled' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_enabled'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_enabled'); } catch (\Throwable $th) { Console::warning("'_key_enabled' from {$id}: {$th->getMessage()}"); } @@ -795,7 +795,7 @@ protected function migrateCollections(): void /** * Create '_key_runtime' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_runtime'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_runtime'); } catch (\Throwable $th) { Console::warning("'_key_runtime' from {$id}: {$th->getMessage()}"); } @@ -804,7 +804,7 @@ protected function migrateCollections(): void /** * Create '_key_deployment' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_deployment'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_deployment'); } catch (\Throwable $th) { Console::warning("'_key_deployment' from {$id}: {$th->getMessage()}"); } @@ -813,7 +813,7 @@ protected function migrateCollections(): void /** * Create '_key_schedule' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_schedule'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_schedule'); } catch (\Throwable $th) { Console::warning("'_key_schedule' from {$id}: {$th->getMessage()}"); } @@ -822,7 +822,7 @@ protected function migrateCollections(): void /** * Create '_key_scheduleNext' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_scheduleNext'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_scheduleNext'); } catch (\Throwable $th) { Console::warning("'_key_scheduleNext' from {$id}: {$th->getMessage()}"); } @@ -831,7 +831,7 @@ protected function migrateCollections(): void /** * Create '_key_schedulePrevious' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_schedulePrevious'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_schedulePrevious'); } catch (\Throwable $th) { Console::warning("'_key_schedulePrevious' from {$id}: {$th->getMessage()}"); } @@ -840,7 +840,7 @@ protected function migrateCollections(): void /** * Create '_key_timeout' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_timeout'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_timeout'); } catch (\Throwable $th) { Console::warning("'_key_timeout' from {$id}: {$th->getMessage()}"); } @@ -863,7 +863,7 @@ protected function migrateCollections(): void /** * Update 'expire' default value */ - $this->projectDB->updateAttributeDefault('keys', 'expire', null); + $this->dbForProject->updateAttributeDefault('keys', 'expire', null); } catch (\Throwable $th) { Console::warning("'expire' from {$id}: {$th->getMessage()}"); } @@ -871,7 +871,7 @@ protected function migrateCollections(): void /** * Create 'accessedAt' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'accessedAt'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'accessedAt'); } catch (\Throwable $th) { Console::warning("'accessedAt' from {$id}: {$th->getMessage()}"); } @@ -880,7 +880,7 @@ protected function migrateCollections(): void /** * Create 'sdks' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'sdks'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'sdks'); } catch (\Throwable $th) { Console::warning("'sdks' from {$id}: {$th->getMessage()}"); } @@ -889,7 +889,7 @@ protected function migrateCollections(): void /** * Create '_key_accessedAt' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_accessedAt'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_accessedAt'); } catch (\Throwable $th) { Console::warning("'_key_accessedAt' from {$id}: {$th->getMessage()}"); } @@ -907,7 +907,7 @@ protected function migrateCollections(): void /** * Create '_key_userId' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_userId'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_userId'); } catch (\Throwable $th) { Console::warning("'_key_userId' from {$id}: {$th->getMessage()}"); } @@ -916,7 +916,7 @@ protected function migrateCollections(): void /** * Create '_key_teamId' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_teamId'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_teamId'); } catch (\Throwable $th) { Console::warning("'_key_teamId' from {$id}: {$th->getMessage()}"); } @@ -925,7 +925,7 @@ protected function migrateCollections(): void /** * Create '_key_invited' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_invited'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_invited'); } catch (\Throwable $th) { Console::warning("'_key_invited' from {$id}: {$th->getMessage()}"); } @@ -934,7 +934,7 @@ protected function migrateCollections(): void /** * Create '_key_joined' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_joined'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_joined'); } catch (\Throwable $th) { Console::warning("'_key_joined' from {$id}: {$th->getMessage()}"); } @@ -943,7 +943,7 @@ protected function migrateCollections(): void /** * Create '_key_confirm' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_confirm'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_confirm'); } catch (\Throwable $th) { Console::warning("'_key_confirm' from {$id}: {$th->getMessage()}"); } @@ -966,7 +966,7 @@ protected function migrateCollections(): void /** * Create '_key_name' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_name'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_name'); } catch (\Throwable $th) { Console::warning("'_key_name' from {$id}: {$th->getMessage()}"); } @@ -1000,8 +1000,8 @@ protected function migrateCollections(): void /** * Re-Create '_key_metric' index */ - @$this->projectDB->deleteIndex($id, '_key_metric'); - $this->createIndexFromCollection($this->projectDB, $id, '_key_period_time'); + @$this->dbForProject->deleteIndex($id, '_key_metric'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_period_time'); } catch (\Throwable $th) { Console::warning("'_key_period_time' from {$id}: {$th->getMessage()}"); } @@ -1010,8 +1010,8 @@ protected function migrateCollections(): void /** * Re-Create '_key_metric_period' index */ - @$this->projectDB->deleteIndex($id, '_key_metric_period'); - $this->createIndexFromCollection($this->projectDB, $id, '_key_metric_period_time'); + @$this->dbForProject->deleteIndex($id, '_key_metric_period'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_metric_period_time'); } catch (\Throwable $th) { Console::warning("'_key_metric_period_time' from {$id}: {$th->getMessage()}"); } @@ -1027,7 +1027,7 @@ protected function migrateCollections(): void /** * Create '_key_name' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_name'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_name'); } catch (\Throwable $th) { Console::warning("'_key_name' from {$id}: {$th->getMessage()}"); } @@ -1036,7 +1036,7 @@ protected function migrateCollections(): void /** * Create '_key_total' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_total'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_total'); } catch (\Throwable $th) { Console::warning("'_key_total' from {$id}: {$th->getMessage()}"); } @@ -1062,7 +1062,7 @@ protected function migrateCollections(): void /** * Create 'hash' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'hash'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'hash'); } catch (\Throwable $th) { Console::warning("'hash' from {$id}: {$th->getMessage()}"); } @@ -1071,7 +1071,7 @@ protected function migrateCollections(): void /** * Create 'hashOptions' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'hashOptions'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'hashOptions'); } catch (\Throwable $th) { Console::warning("'hashOptions' from {$id}: {$th->getMessage()}"); } @@ -1124,14 +1124,14 @@ protected function migrateCollections(): void */ $this->populatePermissionsAttribute($user, addCreatePermission: false); - $this->projectDB->updateDocument('users', $user->getId(), $user); + $this->dbForProject->updateDocument('users', $user->getId(), $user); } try { /** * Add datetime filter to password. */ - $this->projectDB->updateAttributeFilters($id, 'password', ['encrypt']); + $this->dbForProject->updateAttributeFilters($id, 'password', ['encrypt']); } catch (\Throwable $th) { Console::warning("Add 'encrypt' filter to 'password' from {$id}: {$th->getMessage()}"); } @@ -1140,7 +1140,7 @@ protected function migrateCollections(): void /** * Create '_key_name' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_name'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_name'); } catch (\Throwable $th) { Console::warning("'_key_name' from {$id}: {$th->getMessage()}"); } @@ -1149,7 +1149,7 @@ protected function migrateCollections(): void /** * Create '_key_status' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_status'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_status'); } catch (\Throwable $th) { Console::warning("'_key_status' from {$id}: {$th->getMessage()}"); } @@ -1158,7 +1158,7 @@ protected function migrateCollections(): void /** * Create '_key_passwordUpdate' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_passwordUpdate'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_passwordUpdate'); } catch (\Throwable $th) { Console::warning("'_key_passwordUpdate' from {$id}: {$th->getMessage()}"); } @@ -1167,7 +1167,7 @@ protected function migrateCollections(): void /** * Create '_key_registration' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_registration'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_registration'); } catch (\Throwable $th) { Console::warning("'_key_registration' from {$id}: {$th->getMessage()}"); } @@ -1176,7 +1176,7 @@ protected function migrateCollections(): void /** * Create '_key_emailVerification' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_emailVerification'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_emailVerification'); } catch (\Throwable $th) { Console::warning("'_key_emailVerification' from {$id}: {$th->getMessage()}"); } @@ -1185,7 +1185,7 @@ protected function migrateCollections(): void /** * Create '_key_phoneVerification' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_phoneVerification'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_phoneVerification'); } catch (\Throwable $th) { Console::warning("'_key_phoneVerification' from {$id}: {$th->getMessage()}"); } @@ -1470,9 +1470,9 @@ protected function migrateStatsMetric(string $from, string $to): void $from = $this->pdo->quote($from); $to = $this->pdo->quote($to); - $this->pdo->prepare("UPDATE `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_stats` SET metric = {$to} WHERE metric = {$from}")->execute(); + $this->pdo->prepare("UPDATE `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_stats` SET metric = {$to} WHERE metric = {$from}")->execute(); } catch (\Throwable $th) { - Console::warning("Migrating steps from {$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}_stats:" . $th->getMessage()); + Console::warning("Migrating steps from {$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}_stats:" . $th->getMessage()); } } diff --git a/src/Appwrite/Migration/Version/V16.php b/src/Appwrite/Migration/Version/V16.php index 49f244598e6..34407a0471d 100644 --- a/src/Appwrite/Migration/Version/V16.php +++ b/src/Appwrite/Migration/Version/V16.php @@ -45,7 +45,7 @@ protected function migrateCollections(): void Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); switch ($id) { case 'sessions': @@ -53,7 +53,7 @@ protected function migrateCollections(): void /** * Create 'expire' attribute */ - $this->projectDB->deleteAttribute($id, 'expire'); + $this->dbForProject->deleteAttribute($id, 'expire'); } catch (\Throwable $th) { Console::warning("'expire' from {$id}: {$th->getMessage()}"); } @@ -65,7 +65,7 @@ protected function migrateCollections(): void /** * Create 'region' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'region'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'region'); } catch (\Throwable $th) { Console::warning("'region' from {$id}: {$th->getMessage()}"); } @@ -74,7 +74,7 @@ protected function migrateCollections(): void /** * Create '_key_team' index */ - $this->createIndexFromCollection($this->projectDB, $id, '_key_team'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_team'); } catch (\Throwable $th) { Console::warning("'_key_team' from {$id}: {$th->getMessage()}"); } @@ -85,7 +85,7 @@ protected function migrateCollections(): void /** * Create 'region' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'region'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'region'); } catch (\Throwable $th) { Console::warning("'region' from {$id}: {$th->getMessage()}"); } diff --git a/src/Appwrite/Migration/Version/V17.php b/src/Appwrite/Migration/Version/V17.php index 96c890c65d1..f7cb08d6f46 100644 --- a/src/Appwrite/Migration/Version/V17.php +++ b/src/Appwrite/Migration/Version/V17.php @@ -47,8 +47,8 @@ protected function migrateBuckets(): void $id = "bucket_{$bucket->getInternalId()}"; try { - $this->projectDB->updateAttribute($id, 'mimeType', Database::VAR_STRING, 255, true, false); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->updateAttribute($id, 'mimeType', Database::VAR_STRING, 255, true, false); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'mimeType' from {$id}: {$th->getMessage()}"); } @@ -67,7 +67,7 @@ protected function migrateCollections(): void Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); switch ($id) { case 'builds': @@ -75,8 +75,8 @@ protected function migrateCollections(): void /** * Create 'size' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'size'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'size'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'size' from {$id}: {$th->getMessage()}"); } @@ -87,8 +87,8 @@ protected function migrateCollections(): void /** * Update 'mimeType' attribute size (127->255) */ - $this->projectDB->updateAttribute($id, 'mimeType', Database::VAR_STRING, 255, true, false); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->updateAttribute($id, 'mimeType', Database::VAR_STRING, 255, true, false); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'mimeType' from {$id}: {$th->getMessage()}"); } @@ -97,8 +97,8 @@ protected function migrateCollections(): void /** * Create 'bucketInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'bucketInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'bucketInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}"); } @@ -109,8 +109,8 @@ protected function migrateCollections(): void /** * Delete 'endTime' attribute (use startTime+duration if needed) */ - $this->projectDB->deleteAttribute($id, 'endTime'); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->deleteAttribute($id, 'endTime'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'endTime' from {$id}: {$th->getMessage()}"); } @@ -119,8 +119,8 @@ protected function migrateCollections(): void /** * Rename 'outputPath' to 'path' */ - $this->projectDB->renameAttribute($id, 'outputPath', 'path'); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->renameAttribute($id, 'outputPath', 'path'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'path' from {$id}: {$th->getMessage()}"); } @@ -129,8 +129,8 @@ protected function migrateCollections(): void /** * Create 'deploymentInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'deploymentInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'deploymentInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}"); } @@ -141,8 +141,8 @@ protected function migrateCollections(): void /** * Delete 'type' attribute */ - $this->projectDB->deleteAttribute($id, 'type'); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->deleteAttribute($id, 'type'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'type' from {$id}: {$th->getMessage()}"); } @@ -153,8 +153,8 @@ protected function migrateCollections(): void /** * Create 'resourceInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'resourceInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'resourceInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'resourceInternalId' from {$id}: {$th->getMessage()}"); } @@ -165,8 +165,8 @@ protected function migrateCollections(): void /** * Create 'deploymentInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'deploymentInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'deploymentInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}"); } @@ -175,8 +175,8 @@ protected function migrateCollections(): void /** * Create 'scheduleInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'scheduleInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'scheduleInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'scheduleInternalId' from {$id}: {$th->getMessage()}"); } @@ -185,8 +185,8 @@ protected function migrateCollections(): void /** * Delete 'scheduleUpdatedAt' attribute */ - $this->projectDB->deleteAttribute($id, 'scheduleUpdatedAt'); - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->deleteAttribute($id, 'scheduleUpdatedAt'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'scheduleUpdatedAt' from {$id}: {$th->getMessage()}"); } @@ -197,8 +197,8 @@ protected function migrateCollections(): void /** * Create 'resourceInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'resourceInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'resourceInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'resourceInternalId' from {$id}: {$th->getMessage()}"); } @@ -207,8 +207,8 @@ protected function migrateCollections(): void /** * Create 'buildInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'buildInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'buildInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'buildInternalId' from {$id}: {$th->getMessage()}"); } @@ -219,8 +219,8 @@ protected function migrateCollections(): void /** * Create 'functionInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'functionInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'functionInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'functionInternalId' from {$id}: {$th->getMessage()}"); } @@ -229,8 +229,8 @@ protected function migrateCollections(): void /** * Create 'deploymentInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'deploymentInternalId'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'deploymentInternalId'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'deploymentInternalId' from {$id}: {$th->getMessage()}"); } diff --git a/src/Appwrite/Migration/Version/V18.php b/src/Appwrite/Migration/Version/V18.php index ac4093aacab..a5fae3789b1 100644 --- a/src/Appwrite/Migration/Version/V18.php +++ b/src/Appwrite/Migration/Version/V18.php @@ -26,7 +26,7 @@ public function execute(): void } Console::log('Migrating Project: ' . $this->project->getAttribute('name') . ' (' . $this->project->getId() . ')'); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); $this->addDocumentSecurityToProject(); Console::info('Migrating Databases'); @@ -66,7 +66,7 @@ private function migrateDatabases(): void $documentSecurity = $collection->getAttribute('documentSecurity', false); $permissions = $collection->getPermissions(); - $this->projectDB->updateCollection($collectionTable, $permissions, $documentSecurity); + $this->dbForProject->updateCollection($collectionTable, $permissions, $documentSecurity); } catch (\Throwable $th) { Console::warning($th->getMessage()); } @@ -94,7 +94,7 @@ private function migrateCollections(): void } try { - $this->projectDB->updateCollection($id, [Permission::create(Role::any())], true); + $this->dbForProject->updateCollection($id, [Permission::create(Role::any())], true); } catch (\Throwable $th) { Console::warning($th->getMessage()); } @@ -105,8 +105,8 @@ private function migrateCollections(): void /** * Create 'passwordHistory' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'passwordHistory'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'passwordHistory'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'passwordHistory' from {$id}: {$th->getMessage()}"); } @@ -116,8 +116,8 @@ private function migrateCollections(): void /** * Create 'prefs' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'prefs'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'prefs'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'prefs' from {$id}: {$th->getMessage()}"); } @@ -127,8 +127,8 @@ private function migrateCollections(): void /** * Create 'options' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'options'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'options'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'options' from {$id}: {$th->getMessage()}"); } @@ -138,7 +138,7 @@ private function migrateCollections(): void /** * Delete 'userInternalId' attribute */ - $this->projectDB->deleteAttribute($id, 'userInternalId'); + $this->dbForProject->deleteAttribute($id, 'userInternalId'); } catch (\Throwable $th) { Console::warning("'userInternalId' from {$id}: {$th->getMessage()}"); } @@ -200,7 +200,7 @@ protected function fixDocument(Document $document): Document $internalBucketId = "bucket_{$this->project->getInternalId()}"; $permissions = $document->getPermissions(); $fileSecurity = $document->getAttribute('fileSecurity', false); - $this->projectDB->updateCollection($internalBucketId, $permissions, $fileSecurity); + $this->dbForProject->updateCollection($internalBucketId, $permissions, $fileSecurity); } catch (\Throwable $th) { Console::warning($th->getMessage()); } @@ -214,8 +214,8 @@ protected function fixDocument(Document $document): Document $data = $document->getAttribute('data', []); $mode = $data['mode'] ?? 'default'; $user = match ($mode) { - 'admin' => $this->consoleDB->getDocument('users', $userId), - default => $this->projectDB->getDocument('users', $userId), + 'admin' => $this->dbForPlatform->getDocument('users', $userId), + default => $this->dbForProject->getDocument('users', $userId), }; if ($user->isEmpty()) { @@ -244,7 +244,7 @@ protected function addDocumentSecurityToProject(): void /** * Create 'documentSecurity' column */ - $this->pdo->prepare("ALTER TABLE `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}__metadata` ADD COLUMN IF NOT EXISTS documentSecurity TINYINT(1);")->execute(); + $this->pdo->prepare("ALTER TABLE `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}__metadata` ADD COLUMN IF NOT EXISTS documentSecurity TINYINT(1);")->execute(); } catch (\Throwable $th) { Console::warning($th->getMessage()); } @@ -253,7 +253,7 @@ protected function addDocumentSecurityToProject(): void /** * Set 'documentSecurity' column to 1 if NULL */ - $this->pdo->prepare("UPDATE `{$this->projectDB->getDatabase()}`.`_{$this->project->getInternalId()}__metadata` SET documentSecurity = 1 WHERE documentSecurity IS NULL")->execute(); + $this->pdo->prepare("UPDATE `{$this->dbForProject->getDatabase()}`.`_{$this->project->getInternalId()}__metadata` SET documentSecurity = 1 WHERE documentSecurity IS NULL")->execute(); } catch (\Throwable $th) { Console::warning($th->getMessage()); } diff --git a/src/Appwrite/Migration/Version/V19.php b/src/Appwrite/Migration/Version/V19.php index 18234ebdc44..cae27cc6edf 100644 --- a/src/Appwrite/Migration/Version/V19.php +++ b/src/Appwrite/Migration/Version/V19.php @@ -10,7 +10,6 @@ use Utopia\Database\Document; use Utopia\Database\Exception; use Utopia\Database\Query; -use Utopia\System\System; class V19 extends Migration { @@ -29,7 +28,7 @@ public function execute(): void } Console::log('Migrating Project: ' . $this->project->getAttribute('name') . ' (' . $this->project->getId() . ')'); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); Console::info('Migrating Collections'); $this->migrateCollections(); @@ -56,7 +55,7 @@ public function execute(): void protected function migrateDomains(): void { - if ($this->consoleDB->exists($this->consoleDB->getDatabase(), 'domains')) { + if ($this->dbForPlatform->exists($this->dbForPlatform->getDatabase(), 'domains')) { foreach ($this->documentsIterator('domains') as $domain) { $status = 'created'; if ($domain->getAttribute('verification', false)) { @@ -83,7 +82,7 @@ protected function migrateDomains(): void ]); try { - $this->consoleDB->createDocument('rules', $ruleDocument); + $this->dbForPlatform->createDocument('rules', $ruleDocument); } catch (\Throwable $th) { Console::warning("Error migrating domain {$domain->getAttribute('domain')}: {$th->getMessage()}"); } @@ -105,8 +104,8 @@ protected function migrateBuckets(): void Console::log("Migrating Bucket {$id} {$bucket->getId()} ({$bucket->getAttribute('name')})"); try { - $this->createAttributeFromCollection($this->projectDB, $id, 'bucketInternalId', 'files'); - $this->projectDB->purgeCachedCollection($id); + $this->createAttributeFromCollection($this->dbForProject, $id, 'bucketInternalId', 'files'); + $this->dbForProject->purgeCachedCollection($id); } catch (\Throwable $th) { Console::warning("'bucketInternalId' from {$id}: {$th->getMessage()}"); } @@ -137,7 +136,7 @@ private function migrateCollections(): void Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_$internalProjectId"); + $this->dbForProject->setNamespace("_$internalProjectId"); switch ($id) { case '_metadata': @@ -149,24 +148,24 @@ private function migrateCollections(): void case 'attributes': case 'indexes': try { - $this->projectDB->updateAttribute($id, 'databaseInternalId', required: true); + $this->dbForProject->updateAttribute($id, 'databaseInternalId', required: true); } catch (\Throwable $th) { Console::warning("'databaseInternalId' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->updateAttribute($id, 'collectionInternalId', required: true); + $this->dbForProject->updateAttribute($id, 'collectionInternalId', required: true); } catch (\Throwable $th) { Console::warning("'collectionInternalId' from {$id}: {$th->getMessage()}"); } try { - $this->createAttributeFromCollection($this->projectDB, $id, 'error'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'error'); } catch (\Throwable $th) { Console::warning("'error' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'buckets': @@ -176,7 +175,7 @@ private function migrateCollections(): void ]; foreach ($indexesToDelete as $index) { try { - $this->projectDB->deleteIndex($id, $index); + $this->dbForProject->deleteIndex($id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } @@ -188,13 +187,13 @@ private function migrateCollections(): void foreach ($indexesToCreate as $index) { try { - $this->createIndexFromCollection($this->projectDB, $id, $index); + $this->createIndexFromCollection($this->dbForProject, $id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'builds': @@ -205,45 +204,45 @@ private function migrateCollections(): void ]; foreach ($attributesToCreate as $attribute) { try { - $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + $this->createAttributeFromCollection($this->dbForProject, $id, $attribute); } catch (\Throwable $th) { Console::warning("$attribute from {$id}: {$th->getMessage()}"); } } try { - $this->projectDB->renameAttribute($id, 'outputPath', 'path'); + $this->dbForProject->renameAttribute($id, 'outputPath', 'path'); } catch (\Throwable $th) { Console::warning("'path' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'certificates': try { - $this->projectDB->renameAttribute($id, 'log', 'logs'); + $this->dbForProject->renameAttribute($id, 'log', 'logs'); } catch (\Throwable $th) { Console::warning("'logs' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->updateAttribute($id, 'logs', size: 1000000); + $this->dbForProject->updateAttribute($id, 'logs', size: 1000000); } catch (\Throwable $th) { Console::warning("'logs' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'databases': try { - $this->createAttributeFromCollection($this->projectDB, $id, 'enabled'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'enabled'); } catch (\Throwable $th) { Console::warning("'enabled' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'deployments': @@ -272,7 +271,7 @@ private function migrateCollections(): void ]; foreach ($attributesToCreate as $attribute) { try { - $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + $this->createAttributeFromCollection($this->dbForProject, $id, $attribute); } catch (\Throwable $th) { Console::warning("$attribute from {$id}: {$th->getMessage()}"); } @@ -287,7 +286,7 @@ private function migrateCollections(): void ]; foreach ($indexesToDelete as $index) { try { - $this->projectDB->deleteIndex($id, $index); + $this->dbForProject->deleteIndex($id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } @@ -300,13 +299,13 @@ private function migrateCollections(): void ]; foreach ($indexesToCreate as $index) { try { - $this->createIndexFromCollection($this->projectDB, $id, $index); + $this->createIndexFromCollection($this->dbForProject, $id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'executions': @@ -320,7 +319,7 @@ private function migrateCollections(): void ]; foreach ($attributesToCreate as $attribute) { try { - $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + $this->createAttributeFromCollection($this->dbForProject, $id, $attribute); } catch (\Throwable $th) { Console::warning("$attribute from {$id}: {$th->getMessage()}"); } @@ -331,43 +330,43 @@ private function migrateCollections(): void ]; foreach ($attributesToDelete as $attribute) { try { - $this->projectDB->deleteAttribute($id, $attribute); + $this->dbForProject->deleteAttribute($id, $attribute); } catch (\Throwable $th) { Console::warning("'$attribute' from {$id}: {$th->getMessage()}"); } } try { - $this->projectDB->renameAttribute($id, 'stderr', 'errors'); + $this->dbForProject->renameAttribute($id, 'stderr', 'errors'); } catch (\Throwable $th) { Console::warning("'errors' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->renameAttribute($id, 'stdout', 'logs'); + $this->dbForProject->renameAttribute($id, 'stdout', 'logs'); } catch (\Throwable $th) { Console::warning("'logs' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->renameAttribute($id, 'statusCode', 'responseStatusCode'); + $this->dbForProject->renameAttribute($id, 'statusCode', 'responseStatusCode'); } catch (\Throwable $th) { Console::warning("'responseStatusCode' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->deleteIndex($id, '_key_statusCode'); + $this->dbForProject->deleteIndex($id, '_key_statusCode'); } catch (\Throwable $th) { Console::warning("'_key_statusCode' from {$id}: {$th->getMessage()}"); } try { - $this->createIndexFromCollection($this->projectDB, $id, '_key_responseStatusCode'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_responseStatusCode'); } catch (\Throwable $th) { Console::warning("'_key_responseStatusCode' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'files': @@ -379,7 +378,7 @@ private function migrateCollections(): void ]; foreach ($indexesToDelete as $index) { try { - $this->projectDB->deleteIndex($id, $index); + $this->dbForProject->deleteIndex($id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } @@ -388,13 +387,13 @@ private function migrateCollections(): void $indexesToCreate = $indexesToDelete; foreach ($indexesToCreate as $index) { try { - $this->createIndexFromCollection($this->projectDB, $id, $index); + $this->createIndexFromCollection($this->dbForProject, $id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'functions': @@ -420,7 +419,7 @@ private function migrateCollections(): void ]; foreach ($attributesToCreate as $attribute) { try { - $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + $this->createAttributeFromCollection($this->dbForProject, $id, $attribute); } catch (\Throwable $th) { Console::warning("'$attribute' from {$id}: {$th->getMessage()}"); } @@ -434,7 +433,7 @@ private function migrateCollections(): void ]; foreach ($indexesToDelete as $index) { try { - $this->projectDB->deleteIndex($id, $index); + $this->dbForProject->deleteIndex($id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } @@ -450,34 +449,34 @@ private function migrateCollections(): void ]; foreach ($indexesToCreate as $index) { try { - $this->createIndexFromCollection($this->projectDB, $id, $index); + $this->createIndexFromCollection($this->dbForProject, $id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'memberships': try { - $this->projectDB->updateAttribute($id, 'teamInternalId', required: true); + $this->dbForProject->updateAttribute($id, 'teamInternalId', required: true); } catch (\Throwable $th) { Console::warning("'teamInternalId' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); // Intentional fall through to update memberships.userInternalId case 'sessions': case 'tokens': try { - $this->projectDB->updateAttribute($id, 'userInternalId', required: true); + $this->dbForProject->updateAttribute($id, 'userInternalId', required: true); } catch (\Throwable $th) { Console::warning("'userInternalId' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'domains': @@ -485,12 +484,12 @@ private function migrateCollections(): void case 'platforms': case 'webhooks': try { - $this->projectDB->updateAttribute($id, 'projectInternalId', required: true); + $this->dbForProject->updateAttribute($id, 'projectInternalId', required: true); } catch (\Throwable $th) { Console::warning("'projectInternalId' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'projects': @@ -501,19 +500,19 @@ private function migrateCollections(): void ]; foreach ($attributesToCreate as $attribute) { try { - $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + $this->createAttributeFromCollection($this->dbForProject, $id, $attribute); } catch (\Throwable $th) { Console::warning("'$attribute' from {$id}: {$th->getMessage()}"); Console::warning($th->getTraceAsString()); } } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'stats': try { - $this->projectDB->updateAttribute($id, 'value', signed: true); + $this->dbForProject->updateAttribute($id, 'value', signed: true); } catch (\Throwable $th) { Console::warning("'value' from {$id}: {$th->getMessage()}"); } @@ -540,64 +539,64 @@ private function migrateCollections(): void // Console::warning("'_key_metric_period_time' from {$id}: {$th->getMessage()}"); // } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'users': try { - $this->createAttributeFromCollection($this->projectDB, $id, 'labels'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'labels'); } catch (\Throwable $th) { Console::warning("'labels' from {$id}: {$th->getMessage()}"); } try { - $this->createAttributeFromCollection($this->projectDB, $id, 'accessedAt'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'accessedAt'); } catch (\Throwable $th) { Console::warning("'accessedAt' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->updateAttribute($id, 'search', filters: ['userSearch']); + $this->dbForProject->updateAttribute($id, 'search', filters: ['userSearch']); } catch (\Throwable $th) { Console::warning("'search' from {$id}: {$th->getMessage()}"); } try { - $this->createIndexFromCollection($this->projectDB, $id, '_key_accessedAt'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_accessedAt'); } catch (\Throwable $th) { Console::warning("'_key_accessedAt' from {$id}: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; case 'variables': try { - $this->projectDB->deleteIndex($id, '_key_function'); + $this->dbForProject->deleteIndex($id, '_key_function'); } catch (\Throwable $th) { Console::warning("'_key_function' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->deleteIndex($id, '_key_uniqueKey'); + $this->dbForProject->deleteIndex($id, '_key_uniqueKey'); } catch (\Throwable $th) { Console::warning("'_key_uniqueKey' from {$id}: {$th->getMessage()}"); } try { - $this->createAttributeFromCollection($this->projectDB, $id, 'resourceType'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'resourceType'); } catch (\Throwable $th) { Console::warning("'resourceType' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->renameAttribute($id, 'functionInternalId', 'resourceInternalId'); + $this->dbForProject->renameAttribute($id, 'functionInternalId', 'resourceInternalId'); } catch (\Throwable $th) { Console::warning("'resourceInternalId' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->renameAttribute($id, 'functionId', 'resourceId'); + $this->dbForProject->renameAttribute($id, 'functionId', 'resourceId'); } catch (\Throwable $th) { Console::warning("'resourceId' from {$id}: {$th->getMessage()}"); } @@ -610,13 +609,13 @@ private function migrateCollections(): void ]; foreach ($indexesToCreate as $index) { try { - $this->createIndexFromCollection($this->projectDB, $id, $index); + $this->createIndexFromCollection($this->dbForProject, $id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } } - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); break; default: @@ -655,10 +654,10 @@ private function migrateEnumAttributeSize(): void ]) as $attribute ) { $attribute->setAttribute('size', Database::LENGTH_KEY); - $this->projectDB->updateDocument('attributes', $attribute->getId(), $attribute); + $this->dbForProject->updateDocument('attributes', $attribute->getId(), $attribute); $databaseInternalId = $attribute->getAttribute('databaseInternalId'); $collectionInternalId = $attribute->getAttribute('collectionInternalId'); - $this->projectDB->updateAttribute('database_' . $databaseInternalId . '_collection_' . $collectionInternalId, $attribute->getAttribute('key'), size: 255); + $this->dbForProject->updateAttribute('database_' . $databaseInternalId . '_collection_' . $collectionInternalId, $attribute->getAttribute('key'), size: 255); } } @@ -680,7 +679,7 @@ protected function fixDocument(Document $document): Document break; case 'builds': $deploymentId = $document->getAttribute('deploymentId'); - $deployment = $this->projectDB->getDocument('deployments', $deploymentId); + $deployment = $this->dbForProject->getDocument('deployments', $deploymentId); $document->setAttribute('deploymentInternalId', $deployment->getInternalId()); $stdout = $document->getAttribute('stdout', ''); @@ -692,12 +691,12 @@ protected function fixDocument(Document $document): Document break; case 'deployments': $resourceId = $document->getAttribute('resourceId'); - $function = $this->projectDB->getDocument('functions', $resourceId); + $function = $this->dbForProject->getDocument('functions', $resourceId); $document->setAttribute('resourceInternalId', $function->getInternalId()); $buildId = $document->getAttribute('buildId'); if (!empty($buildId)) { - $build = $this->projectDB->getDocument('builds', $buildId); + $build = $this->dbForProject->getDocument('builds', $buildId); $document->setAttribute('buildInternalId', $build->getInternalId()); } @@ -707,11 +706,11 @@ protected function fixDocument(Document $document): Document break; case 'executions': $functionId = $document->getAttribute('functionId'); - $function = $this->projectDB->getDocument('functions', $functionId); + $function = $this->dbForProject->getDocument('functions', $functionId); $document->setAttribute('functionInternalId', $function->getInternalId()); $deploymentId = $document->getAttribute('deploymentId'); - $deployment = $this->projectDB->getDocument('deployments', $deploymentId); + $deployment = $this->dbForProject->getDocument('deployments', $deploymentId); $document->setAttribute('deploymentInternalId', $deployment->getInternalId()); break; case 'functions': @@ -721,7 +720,7 @@ protected function fixDocument(Document $document): Document $deploymentId = $document->getAttribute('deployment'); if (!empty($deploymentId)) { - $deployment = $this->projectDB->getDocument('deployments', $deploymentId); + $deployment = $this->dbForProject->getDocument('deployments', $deploymentId); $document->setAttribute('deploymentInternalId', $deployment->getInternalId()); $document->setAttribute('entrypoint', $deployment->getAttribute('entrypoint')); } @@ -730,8 +729,8 @@ protected function fixDocument(Document $document): Document $document->setAttribute('commands', $document->getAttribute('commands', $commands)); if (empty($document->getAttribute('scheduleId', null))) { - $schedule = $this->consoleDB->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), // Todo replace with projects region + $schedule = $this->dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'function', 'resourceId' => $document->getId(), 'resourceInternalId' => $document->getInternalId(), @@ -770,26 +769,26 @@ protected function fixDocument(Document $document): Document private function cleanCollections(): void { try { - $this->projectDB->deleteAttribute('projects', 'domains'); + $this->dbForProject->deleteAttribute('projects', 'domains'); } catch (\Throwable $th) { Console::warning("'domains' from projects: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection('projects'); + $this->dbForProject->purgeCachedCollection('projects'); try { - $this->projectDB->deleteAttribute('builds', 'stderr'); + $this->dbForProject->deleteAttribute('builds', 'stderr'); } catch (\Throwable $th) { Console::warning("'stderr' from builds: {$th->getMessage()}"); } try { - $this->projectDB->deleteAttribute('builds', 'stdout'); + $this->dbForProject->deleteAttribute('builds', 'stdout'); } catch (\Throwable $th) { Console::warning("'stdout' from builds: {$th->getMessage()}"); } - $this->projectDB->purgeCachedCollection('builds'); + $this->dbForProject->purgeCachedCollection('builds'); } /** @@ -830,7 +829,7 @@ public function forEachDocument(callable $callback): void } try { - $this->projectDB->updateDocument($document->getCollection(), $document->getId(), $document); + $this->dbForProject->updateDocument($document->getCollection(), $document->getId(), $document); } catch (\Throwable $th) { Console::error('Failed to update document: ' . $th->getMessage()); return; diff --git a/src/Appwrite/Migration/Version/V20.php b/src/Appwrite/Migration/Version/V20.php index 5a0807cedfb..3a9bba67724 100644 --- a/src/Appwrite/Migration/Version/V20.php +++ b/src/Appwrite/Migration/Version/V20.php @@ -36,7 +36,7 @@ public function execute(): void } Console::log('Migrating Project: ' . $this->project->getAttribute('name') . ' (' . $this->project->getId() . ')'); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); Console::info('Migrating Collections'); $this->migrateCollections(); @@ -94,19 +94,19 @@ private function migrateCollections(): void ) { if (\in_array($attribute->getAttribute('key'), $index->getAttribute('attributes'))) { try { - $this->projectDB->deleteIndex($collectionId, $index->getAttribute('key')); + $this->dbForProject->deleteIndex($collectionId, $index->getAttribute('key')); } catch (Throwable $th) { Console::warning("Failed to delete index: {$th->getMessage()}"); } try { - $this->projectDB->deleteDocument('indexes', $index->getId()); + $this->dbForProject->deleteDocument('indexes', $index->getId()); } catch (Throwable $th) { Console::warning("Failed to remove index: {$th->getMessage()}"); } } } - $this->projectDB->updateAttribute($collectionId, $attribute['key'], $attribute['type']); + $this->dbForProject->updateAttribute($collectionId, $attribute['key'], $attribute['type']); } } @@ -116,19 +116,19 @@ private function migrateCollections(): void Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_$internalProjectId"); + $this->dbForProject->setNamespace("_$internalProjectId"); // Support database array type migration foreach ($collection['attributes'] ?? [] as $attribute) { if ($attribute['array'] === true) { foreach ($collection['indexes'] ?? [] as $index) { if (\in_array($attribute['$id'], $index['attributes'])) { - $this->projectDB->deleteIndex($id, $index['$id']); + $this->dbForProject->deleteIndex($id, $index['$id']); } } try { - $this->projectDB->updateAttribute($id, $attribute['$id'], $attribute['type']); + $this->dbForProject->updateAttribute($id, $attribute['$id'], $attribute['type']); } catch (Throwable $th) { Console::warning("'{$attribute['$id']}' from {$id}: {$th->getMessage()}"); } @@ -151,19 +151,19 @@ private function migrateCollections(): void // Create resourceType attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'resourceType'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'resourceType'); } catch (Throwable $th) { Console::warning("'resourceType' from {$id}: {$th->getMessage()}"); } // Create mimeType attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'mimeType'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'mimeType'); } catch (Throwable $th) { Console::warning("'mimeType' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -174,11 +174,11 @@ private function migrateCollections(): void /** * Delete 'type' attribute */ - $this->projectDB->deleteAttribute($id, 'type'); + $this->dbForProject->deleteAttribute($id, 'type'); /** * Alter `signed` internal type on `value` attr */ - $this->projectDB->updateAttribute(collection: $id, id: 'value', signed: true); + $this->dbForProject->updateAttribute(collection: $id, id: 'value', signed: true); } catch (Throwable $th) { Console::warning("'type' from {$id}: {$th->getMessage()}"); } @@ -187,13 +187,13 @@ private function migrateCollections(): void /** * Ensure 'time' attribute is not required */ - $this->projectDB->updateAttribute($id, 'time', required: false); + $this->dbForProject->updateAttribute($id, 'time', required: false); } catch (Throwable $th) { Console::warning("'time' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -202,13 +202,13 @@ private function migrateCollections(): void $index = '_key_metric_period_time'; try { - $this->projectDB->deleteIndex($id, $index); + $this->dbForProject->deleteIndex($id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } try { - $this->createIndexFromCollection($this->projectDB, $id, $index); + $this->createIndexFromCollection($this->dbForProject, $id, $index); } catch (\Throwable $th) { Console::warning("'$index' from {$id}: {$th->getMessage()}"); } @@ -217,27 +217,27 @@ private function migrateCollections(): void case 'sessions': // Create expire attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'expire'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'expire'); } catch (Throwable $th) { Console::warning("'expire' from {$id}: {$th->getMessage()}"); } // Create factors attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'factors'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'factors'); } catch (Throwable $th) { Console::warning("'factors' from {$id}: {$th->getMessage()}"); } // Create mfaRecoveryCodes attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'mfaUpdatedAt'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'mfaUpdatedAt'); } catch (Throwable $th) { Console::warning("'mfaUpdatedAt' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -246,41 +246,41 @@ private function migrateCollections(): void case 'users': // Create targets attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'targets'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'targets'); } catch (Throwable $th) { Console::warning("'targets' from {$id}: {$th->getMessage()}"); } // Create mfa attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'mfa'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'mfa'); } catch (Throwable $th) { Console::warning("'mfa' from {$id}: {$th->getMessage()}"); } // Create mfaRecoveryCodes attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'mfaRecoveryCodes'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'mfaRecoveryCodes'); } catch (Throwable $th) { Console::warning("'mfaRecoveryCodes' from {$id}: {$th->getMessage()}"); } // Create challenges attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'challenges'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'challenges'); } catch (Throwable $th) { Console::warning("'challenges' from {$id}: {$th->getMessage()}"); } // Create authenticators attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'authenticators'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'authenticators'); } catch (Throwable $th) { Console::warning("'authenticators' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -289,20 +289,20 @@ private function migrateCollections(): void case 'projects': // Rename providers authProviders to oAuthProviders try { - $this->projectDB->renameAttribute($id, 'authProviders', 'oAuthProviders'); + $this->dbForProject->renameAttribute($id, 'authProviders', 'oAuthProviders'); } catch (Throwable $th) { Console::warning("'oAuthProviders' from {$id}: {$th->getMessage()}"); } // Create apis attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'apis'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'apis'); } catch (Throwable $th) { Console::warning("'apis' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -311,27 +311,27 @@ private function migrateCollections(): void case 'webhooks': // Create enabled attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'enabled'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'enabled'); } catch (Throwable $th) { Console::warning("'enabled' from {$id}: {$th->getMessage()}"); } // Create logs attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'logs'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'logs'); } catch (Throwable $th) { Console::warning("'logs' from {$id}: {$th->getMessage()}"); } // Create attempts attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'attempts'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'attempts'); } catch (Throwable $th) { Console::warning("'attempts' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -339,25 +339,25 @@ private function migrateCollections(): void break; case 'topics': try { - $this->projectDB->updateAttributeDefault($id, 'emailTotal', 0); + $this->dbForProject->updateAttributeDefault($id, 'emailTotal', 0); } catch (Throwable $th) { Console::warning("'topics' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->updateAttributeDefault($id, 'pushTotal', 0); + $this->dbForProject->updateAttributeDefault($id, 'pushTotal', 0); } catch (Throwable $th) { Console::warning("'topics' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->updateAttributeDefault($id, 'smsTotal', 0); + $this->dbForProject->updateAttributeDefault($id, 'smsTotal', 0); } catch (Throwable $th) { Console::warning("'topics' from {$id}: {$th->getMessage()}"); } try { - $this->projectDB->purgeCachedCollection($id); + $this->dbForProject->purgeCachedCollection($id); } catch (Throwable $th) { Console::warning("Purge cache from {$id}: {$th->getMessage()}"); } @@ -382,7 +382,7 @@ protected function migrateSessionsMetric(): void */ Console::info('Migrating Sessions metric'); - $sessionsCreated = $this->projectDB->sum('stats', 'value', [ + $sessionsCreated = $this->dbForProject->sum('stats', 'value', [ Query::equal('metric', [ 'sessions.email-password.requests.create', 'sessions.magic-url.requests.create', @@ -394,7 +394,7 @@ protected function migrateSessionsMetric(): void Query::equal('period', ['1d']), ]); - $query = $this->projectDB->findOne('stats', [ + $query = $this->dbForProject->findOne('stats', [ Query::equal('metric', ['sessions.$all.requests.delete']), Query::equal('period', ['1d']), ]); @@ -420,7 +420,7 @@ protected function createInfMetric(string $metric, int $value): void */ Console::log("Creating inf metric to {$metric}"); $id = \md5("_inf_{$metric}"); - $this->projectDB->createDocument('stats', new Document([ + $this->dbForProject->createDocument('stats', new Document([ '$id' => $id, 'metric' => $metric, 'period' => 'inf', @@ -448,7 +448,7 @@ protected function migrateUsageMetrics(string $from, string $to): void str_contains($from, '$all') || str_contains($from, '.total') ) { - $query = $this->projectDB->sum('stats', 'value', [ + $query = $this->dbForProject->sum('stats', 'value', [ Query::equal('metric', [$from]), Query::equal('period', ['1d']), ]); @@ -470,7 +470,7 @@ protected function migrateUsageMetrics(string $from, string $to): void if ($latestDocument !== null) { $paginationQueries[] = Query::cursorAfter($latestDocument); } - $stats = $this->projectDB->find('stats', \array_merge($paginationQueries, [ + $stats = $this->dbForProject->find('stats', \array_merge($paginationQueries, [ Query::equal('metric', [$from]), ])); @@ -479,10 +479,10 @@ protected function migrateUsageMetrics(string $from, string $to): void foreach ($stats as $stat) { $format = $stat['period'] === '1d' ? 'Y-m-d 00:00' : 'Y-m-d H:00'; $time = date($format, strtotime($stat['time'])); - $this->projectDB->deleteDocument('stats', $stat->getId()); + $this->dbForProject->deleteDocument('stats', $stat->getId()); $stat->setAttribute('$id', \md5("{$time}_{$stat['period']}_{$to}")); $stat->setAttribute('metric', $to); - $this->projectDB->createDocument('stats', $stat); + $this->dbForProject->createDocument('stats', $stat); Console::log("deleting metric {$from} and creating {$to}"); } $latestDocument = !empty(array_key_last($stats)) ? $stats[array_key_last($stats)] : null; @@ -610,7 +610,7 @@ protected function fixDocument(Document $document): Document 'identifier' => $document->getAttribute('email'), ]); try { - $this->projectDB->createDocument('targets', $target); + $this->dbForProject->createDocument('targets', $target); } catch (Duplicate $th) { Console::warning("Email target for user {$document->getId()} already exists."); } @@ -625,7 +625,7 @@ protected function fixDocument(Document $document): Document 'identifier' => $document->getAttribute('phone'), ]); try { - $this->projectDB->createDocument('targets', $target); + $this->dbForProject->createDocument('targets', $target); } catch (Duplicate $th) { Console::warning("Email target for user {$document->getId()} already exists."); } diff --git a/src/Appwrite/Migration/Version/V21.php b/src/Appwrite/Migration/Version/V21.php index 51e8a18b9d9..5a5a30bb6f4 100644 --- a/src/Appwrite/Migration/Version/V21.php +++ b/src/Appwrite/Migration/Version/V21.php @@ -29,7 +29,7 @@ public function execute(): void } Console::log('Migrating Project: ' . $this->project->getAttribute('name') . ' (' . $this->project->getId() . ')'); - $this->projectDB->setNamespace("_{$this->project->getInternalId()}"); + $this->dbForProject->setNamespace("_{$this->project->getInternalId()}"); Console::info('Migrating Collections'); $this->migrateCollections(); @@ -63,13 +63,13 @@ private function migrateCollections(): void Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_$internalProjectId"); + $this->dbForProject->setNamespace("_$internalProjectId"); switch ($id) { case 'projects': // Create accessedAt attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'accessedAt'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'accessedAt'); } catch (Throwable $th) { Console::warning("'accessedAt' from {$id}: {$th->getMessage()}"); } @@ -77,32 +77,47 @@ private function migrateCollections(): void case 'platforms': // Increase 'type' length to 255 try { - $this->projectDB->updateAttribute($id, 'type', size: 255); + $this->dbForProject->updateAttribute($id, 'type', size: 255); } catch (Throwable $th) { Console::warning("'type' from {$id}: {$th->getMessage()}"); } break; + case 'migrations': + // Create destination attribute + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'destination'); + } catch (Throwable $th) { + Console::warning("'destination' from {$id}: {$th->getMessage()}"); + } + break; case 'schedules': // Create data attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'data'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'data'); } catch (Throwable $th) { Console::warning("'data' from {$id}: {$th->getMessage()}"); } break; - + case 'databases': + // Create originalId attribute + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'originalId'); + } catch (Throwable $th) { + Console::warning("'originalId' from {$id}: {$th->getMessage()}"); + } + break; case 'functions': // Create scopes attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'scopes'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'scopes'); } catch (Throwable $th) { Console::warning("'scopes' from {$id}: {$th->getMessage()}"); } // Create specification attribute try { - $this->createAttributeFromCollection($this->projectDB, $id, 'specification'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'specification'); } catch (Throwable $th) { Console::warning("'specification' from {$id}: {$th->getMessage()}"); } @@ -111,21 +126,21 @@ private function migrateCollections(): void case 'executions': // Create requestMethod index try { - $this->createIndexFromCollection($this->projectDB, $id, '_key_requestMethod'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_requestMethod'); } catch (\Throwable $th) { Console::warning("'_key_requestMethod' from {$id}: {$th->getMessage()}"); } // Create requestPath index try { - $this->createIndexFromCollection($this->projectDB, $id, '_key_requestPath'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_requestPath'); } catch (\Throwable $th) { Console::warning("'_key_requestPath' from {$id}: {$th->getMessage()}"); } // Create deployment index try { - $this->createIndexFromCollection($this->projectDB, $id, '_key_deployment'); + $this->createIndexFromCollection($this->dbForProject, $id, '_key_deployment'); } catch (\Throwable $th) { Console::warning("'_key_deployment' from {$id}: {$th->getMessage()}"); } @@ -134,7 +149,7 @@ private function migrateCollections(): void /** * Create 'scheduledAt' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'scheduledAt'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'scheduledAt'); } catch (\Throwable $th) { Console::warning("'scheduledAt' from {$id}: {$th->getMessage()}"); } @@ -143,7 +158,7 @@ private function migrateCollections(): void /** * Create 'scheduleInternalId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'scheduleInternalId'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'scheduleInternalId'); } catch (\Throwable $th) { Console::warning("'scheduleInternalId' from {$id}: {$th->getMessage()}"); } @@ -152,7 +167,7 @@ private function migrateCollections(): void /** * Create 'scheduleId' attribute */ - $this->createAttributeFromCollection($this->projectDB, $id, 'scheduleId'); + $this->createAttributeFromCollection($this->dbForProject, $id, 'scheduleId'); } catch (\Throwable $th) { Console::warning("'scheduleId' from {$id}: {$th->getMessage()}"); } @@ -186,7 +201,7 @@ protected function fixDocument(Document $document): Document $document->setAttribute('scopes', []); // Add size attribute - $document->setAttribute('specification', APP_FUNCTION_SPECIFICATION_DEFAULT); + $document->setAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT); } return $document; @@ -203,8 +218,8 @@ private function migrateBuckets(): void $bucketId = 'bucket_' . $bucket['$internalId']; try { - $this->projectDB->updateAttribute($bucketId, 'metadata', size: 65534); - $this->projectDB->purgeCachedCollection($bucketId); + $this->dbForProject->updateAttribute($bucketId, 'metadata', size: 65534); + $this->dbForProject->purgeCachedCollection($bucketId); } catch (\Throwable $th) { Console::warning("'bucketId' from {$bucketId}: {$th->getMessage()}"); } diff --git a/src/Appwrite/Migration/Version/V22.php b/src/Appwrite/Migration/Version/V22.php new file mode 100644 index 00000000000..a5474ff80ce --- /dev/null +++ b/src/Appwrite/Migration/Version/V22.php @@ -0,0 +1,83 @@ +<?php + +namespace Appwrite\Migration\Version; + +use Appwrite\Migration\Migration; +use Exception; +use Throwable; +use Utopia\CLI\Console; +use Utopia\Database\Database; + +class V22 extends Migration +{ + /** + * @throws Throwable + */ + public function execute(): void + { + /** + * Disable SubQueries for Performance. + */ + foreach (['subQueryIndexes', 'subQueryPlatforms', 'subQueryDomains', 'subQueryKeys', 'subQueryWebhooks', 'subQuerySessions', 'subQueryTokens', 'subQueryMemberships', 'subQueryVariables', 'subQueryChallenges', 'subQueryProjectVariables', 'subQueryTargets', 'subQueryTopicTargets'] as $name) { + Database::addFilter( + $name, + fn () => null, + fn () => [] + ); + } + + Console::info('Migrating Collections'); + $this->migrateCollections(); + } + + /** + * Migrate Collections. + * + * @return void + * @throws Exception|Throwable + */ + private function migrateCollections(): void + { + $internalProjectId = $this->project->getInternalId(); + $collectionType = match ($internalProjectId) { + 'console' => 'console', + default => 'projects', + }; + + $collections = $this->collections[$collectionType]; + foreach ($collections as $collection) { + $id = $collection['$id']; + + Console::log("Migrating Collection \"{$id}\""); + + $this->dbForProject->setNamespace("_$internalProjectId"); + + switch ($id) { + case 'installations': + // Create personalAccessToken attribute + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'personalAccessToken'); + } catch (Throwable $th) { + Console::warning("'personalAccessToken' from {$id}: {$th->getMessage()}"); + } + + // Create personalAccessTokenExpiry attribute + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'personalAccessTokenExpiry'); + } catch (Throwable $th) { + Console::warning("'personalAccessTokenExpiry' from {$id}: {$th->getMessage()}"); + } + + // Create personalRefreshToken attribute + try { + $this->createAttributeFromCollection($this->dbForProject, $id, 'personalRefreshToken'); + } catch (Throwable $th) { + Console::warning("'personalRefreshToken' from {$id}: {$th->getMessage()}"); + } + break; + } + + usleep(50000); + } + } +} diff --git a/src/Appwrite/Migration/Version/V23.php b/src/Appwrite/Migration/Version/V23.php new file mode 100644 index 00000000000..400b223756d --- /dev/null +++ b/src/Appwrite/Migration/Version/V23.php @@ -0,0 +1,607 @@ +<?php + +namespace Appwrite\Migration\Version; + +use Appwrite\Migration\Migration; +use Exception; +use Throwable; +use Utopia\CLI\Console; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Conflict; +use Utopia\Database\Exception\Structure; +use Utopia\Database\Exception\Timeout; +use Utopia\Database\Query; + +class V23 extends Migration +{ + /** + * @throws Throwable + */ + public function execute(): void + { + /** + * Disable SubQueries for Performance. + */ + foreach (['subQueryIndexes', 'subQueryPlatforms', 'subQueryDomains', 'subQueryKeys', 'subQueryDevKeys', 'subQueryWebhooks', 'subQuerySessions', 'subQueryTokens', 'subQueryMemberships', 'subQueryVariables', 'subQueryChallenges', 'subQueryProjectVariables', 'subQueryTargets', 'subQueryTopicTargets'] as $name) { + Database::addFilter( + $name, + fn () => null, + fn () => [] + ); + } + + Console::info('Migrating collections'); + $this->migrateCollections(); + + Console::info('Migrating documents'); + $this->forEachDocument($this->migrateDocument(...)); + + Console::info('Cleaning up collections'); + $this->cleanCollections(); + } + + /** + * Migrate Collections. + * + * @return void + * @throws Exception|Throwable + */ + private function migrateCollections(): void + { + $projectInternalId = $this->project->getInternalId(); + + if (empty($projectInternalId)) { + throw new Exception('Project ID is null'); + } + + $collectionType = match ($projectInternalId) { + 'console' => 'console', + default => 'projects', + }; + + $collections = $this->collections[$collectionType]; + + foreach ($collections as $collection) { + $id = $collection['$id']; + + if (empty($id)) { + continue; + } + + Console::log("Migrating collection \"{$id}\""); + + switch ($id) { + case '_metadata': + $this->createCollection('sites'); + $this->createCollection('resourceTokens'); + if ($projectInternalId === 'console') { + $this->createCollection('devKeys'); + } + break; + case 'identities': + $attributes = [ + 'scopes', + 'expire', + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + break; + case 'projects': + try { + $attributes = [ + 'devKeys', + ]; + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + $this->dbForProject->purgeCachedCollection($id); + break; + case 'rules': + $attributes = [ + 'type', + 'trigger', + 'redirectUrl', + 'redirectStatusCode', + 'deploymentResourceType', + 'deploymentId', + 'deploymentInternalId', + 'deploymentResourceId', + 'deploymentResourceInternalId', + 'deploymentVcsProviderBranch', + 'search' + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $indexes = [ + '_key_search', + '_key_type', + '_key_trigger', + '_key_deploymentResourceType', + '_key_deploymentResourceId', + '_key_deploymentResourceInternalId', + '_key_deploymentId', + '_key_deploymentInternalId', + '_key_deploymentVcsProviderBranch', + ]; + + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}"); + } + } + $this->dbForProject->purgeCachedCollection($id); + break; + case 'memberships': + $indexes = [ + '_key_roles', + ]; + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (Throwable $th) { + Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}"); + } + } + $this->dbForProject->purgeCachedCollection($id); + break; + case 'migrations': + $attributes = [ + 'options', + 'resourceId', + 'resourceType' + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $indexes = [ + '_key_resource_id', + ]; + + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (Throwable $th) { + Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'functions': + $attributes = [ + 'deploymentId', + 'deploymentCreatedAt', + 'latestDeploymentId', + 'latestDeploymentInternalId', + 'latestDeploymentCreatedAt', + 'latestDeploymentStatus', + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $indexes = [ + '_key_deploymentId', + ]; + + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (Throwable $th) { + Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'deployments': + $attributes = [ + 'buildCommands', + 'sourcePath', + 'buildOutput', + 'adapter', + 'fallbackFile', + 'sourceSize', + 'sourceMetadata', + 'sourceChunksTotal', + 'sourceChunksUploaded', + 'screenshotLight', + 'screenshotDark', + 'buildStartedAt', + 'buildEndedAt', + 'buildDuration', + 'buildSize', + 'status', + 'buildPath', + 'buildLogs', + 'totalSize', + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $indexes = [ + '_key_sourceSize', + '_key_buildSize', + '_key_totalSize', + '_key_buildDuration', + '_key_type', + '_key_status', + ]; + + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'executions': + $attributes = [ + 'resourceInternalId', + 'resourceId', + 'resourceType' + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $indexes = [ + '_key_resource', + ]; + foreach ($indexes as $index) { + try { + $this->createIndexFromCollection($this->dbForProject, $id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'variables': + $attributes = [ + 'secret', + ]; + try { + $this->createAttributesFromCollection($this->dbForProject, $id, $attributes); + } catch (\Throwable $th) { + Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}"); + } + + $this->dbForProject->purgeCachedCollection($id); + break; + default: + break; + } + } + } + + /** + * Fix run on each document + * + * @param Document $document + * @return Document + * @throws Conflict + * @throws Structure + * @throws Timeout + * @throws \Utopia\Database\Exception + * @throws \Utopia\Database\Exception\Authorization + * @throws \Utopia\Database\Exception\Query + */ + private function migrateDocument(Document $document): Document + { + switch ($document->getCollection()) { + case 'rules': + /* + 1. Convert "resourceType" to "type". Convert "function" to "deployment" + 2. Convert "resourceId" to "deploymentResourceId" + 3. Convert "resourceInternalId" to "deploymentResourceInternalId" + 4. Fill "trigger" with "manual" + 5. Fill "deploymentResourceType". If "resourceType" is "function", set "deploymentResourceType" to "function" + 6. Fill "search" with "{$id} {domain}" + 7. Fill "deploymentId" and "deploymentInternalId". If "deploymentResourceType" is "function", get project DB, and find function with ID "resourceId". Then fill rule's "deploymentId" with function's "deployment", and "deploymentId" as backup + */ + + $deploymentResourceType = null; + + $type = $document->getAttribute('resourceType', $document->getAttribute('type', '')); + if ($type === 'function') { + $type = 'deployment'; + $deploymentResourceType = 'function'; + } + + $resourceId = $document->getAttribute('resourceId', $document->getAttribute('deploymentResourceId')); + $resourceInternalId = $document->getAttribute('resourceInternalId', $document->getAttribute('deploymentResourceInternalId')); + + $document + ->setAttribute('type', $type) + ->setAttribute('trigger', 'manual') + ->setAttribute('deploymentResourceId', $resourceId) + ->setAttribute('deploymentResourceInternalId', $resourceInternalId) + ->setAttribute('deploymentResourceType', $document->getAttribute('deploymentResourceType', $deploymentResourceType)) + ->setAttribute('search', \implode(' ', [$document->getId(), $document->getAttribute('domain', '')])); + + if ($deploymentResourceType === 'function') { + $project = $this->dbForProject->getDocument('projects', $document->getAttribute('projectId')); + $dbForOwnerProject = ($this->getProjectDB)($project); + $function = $dbForOwnerProject->getDocument('functions', $resourceId); + $deploymentId = $function->getAttribute('deployment', $function->getAttribute('deploymentId', $document->getAttribute('deploymentId'))); + $deploymentInternalId = $function->getAttribute('deploymentInternalId', $document->getAttribute('deploymentInternalId', '')); + + $document + ->setAttribute('deploymentId', $deploymentId) + ->setAttribute('deploymentInternalId', $deploymentInternalId); + } + break; + case 'variables': + /* + 1. Fill "secret" with "false" + */ + $document->setAttribute('secret', $document->getAttribute('secret', false)); + break; + case 'executions': + /* + 1. Convert "functionInternalId" to "resourceInternalId" + 2. Convert "functionId" to "resourceId" + 3. Fill "resourceType" with "functions" + */ + $document + ->setAttribute('resourceInternalId', $document->getAttribute('functionInternalId', $document->getAttribute('resourceInternalId'))) + ->setAttribute('resourceId', $document->getAttribute('functionId', $document->getAttribute('resourceId', ''))) + ->setAttribute('resourceType', $document->getAttribute('resourceType', 'functions')); + break; + case 'functions': + /* + 1. Convert "deployment" to "deploymentId" + --- Fetch activeDeployment from "deploymentId" + 2. Fill "deploymentCreatedAt" with deployment's "$createdAt" + --- Fetch latestDeployment using find() + 3. Fill latestDeploymentId with latestDeployment's "$id" + 4. Fill latestDeploymentInternalId with latestDeployment's "$internalId" + 5. Fill latestDeploymentCreatedAt with latestDeployment's "$createdAt" + 6. Fill latestDeploymentStatus with latestDeployment's build's "status" + */ + if ($document->getAttribute('deployment')) { + $document->setAttribute('deploymentId', $document->getAttribute('deployment', $document->getAttribute('deploymentId', ''))); + } + + $deploymentId = $document->getAttribute('deploymentId'); + $deployment = $this->dbForProject->getDocument('deployments', $deploymentId); + $document->setAttribute('deploymentCreatedAt', $deployment->getCreatedAt()); + + $latestDeployment = $this->dbForProject->findOne('deployments', [ + Query::orderDesc(), + Query::equal('resourceId', [$document->getId()]), + Query::equal('resourceType', ['functions']), + ]); + + $latestBuild = $this->dbForProject->getDocument('builds', $latestDeployment->getAttribute('buildId', '')); + + $document + ->setAttribute('latestDeploymentId', $latestDeployment->getId()) + ->setAttribute('latestDeploymentInternalId', $latestDeployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $latestDeployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $latestBuild->getAttribute('status', $document->getAttribute('latestDeploymentStatus', ''))); + break; + case 'deployments': + /* + 6. Convert "commands" to "buildCommands" + 7. Convert "path" to "sourcePath" + 8. Convert "size" to "sourceSize" + 9. Convert "metadata" to "sourceMetadata" + 10. Convert "chunksTotal" to "sourceChunksTotal" + 11. Convert "chunksUploaded" to "sourceChunksUploaded" + --- Get build of deployment + 12. Convert build's "startTime" to "buildStartedAt" + 13. Convert build's "endTime" to "buildEndedAt" + 14. Convert build's "duration" to "buildDuration" + 15. Convert build's "size" to "buildSize" + 16. Convert build's "status" to "status" + 17. Convert build's "path" to "buildPath" + 18. Convert build's "logs" to "buildLogs" + 19. Fill "totalSize" with "buildSize" plus "sourceSize" + */ + + $document + ->setAttribute('buildCommands', $document->getAttribute('commands', $document->getAttribute('buildCommands', ''))) + ->setAttribute('sourcePath', $document->getAttribute('path', $document->getAttribute('sourcePath', ''))) + ->setAttribute('sourceSize', $document->getAttribute('size', $document->getAttribute('sourceSize', 0))) + ->setAttribute('sourceMetadata', $document->getAttribute('metadata', $document->getAttribute('sourceMetadata', []))) + ->setAttribute('sourceChunksTotal', $document->getAttribute('chunksTotal', $document->getAttribute('sourceChunksTotal', 0))) + ->setAttribute('sourceChunksUploaded', $document->getAttribute('chunksUploaded', $document->getAttribute('sourceChunksUploaded', 0))); + + $build = new Document(); + if (!empty($document->getAttribute('buildId'))) { + $build = $this->dbForProject->getDocument('builds', $document->getAttribute('buildId')); + } + + $document + ->setAttribute('buildStartedAt', $build->getAttribute('startTime', $document->getAttribute('buildStartTime', ''))) + ->setAttribute('buildEndedAt', $build->getAttribute('endTime', $document->getAttribute('buildEndTime', ''))) + ->setAttribute('buildDuration', $build->getAttribute('duration', $document->getAttribute('buildDuration', 0))) + ->setAttribute('buildSize', $build->getAttribute('size', $document->getAttribute('buildSize', 0))) + ->setAttribute('status', $build->getAttribute('status', $document->getAttribute('status', ''))) + ->setAttribute('buildPath', $build->getAttribute('path', $document->getAttribute('buildPath', ''))) + ->setAttribute('buildLogs', $build->getAttribute('logs', $document->getAttribute('buildLogs', ''))); + + $totalSize = $document->getAttribute('buildSize', 0) + + $document->getAttribute('sourceSize', 0); + + $document->setAttribute('totalSize', $totalSize); + break; + case 'migrations': + /* + 1. Fill "options" with "[]" + */ + $document->setAttribute('options', $document->getAttribute('options', [])); + break; + default: + break; + } + return $document; + } + + private function cleanCollections(): void + { + $projectInternalId = $this->project->getInternalId(); + + $collectionType = match ($projectInternalId) { + 'console' => 'console', + default => 'projects', + }; + + $collections = $this->collections[$collectionType]; + foreach ($collections as $collection) { + $id = $collection['$id']; + + Console::log("Cleaning up collection \"{$id}\""); + + switch ($id) { + case '_metadata': + if (!$this->dbForProject->getCollection('builds')->isEmpty()) { + $this->dbForProject->deleteCollection('builds'); + } + break; + case 'rules': + $attributes = [ + 'resourceId', + 'resourceInternalId', + 'resourceType', + ]; + foreach ($attributes as $attribute) { + try { + $this->dbForProject->deleteAttribute($id, $attribute); + } catch (\Throwable $th) { + Console::warning("Failed to delete attribute \"$attribute\" from collection {$id}: {$th->getMessage()}"); + } + } + + $indexesToDelete = [ + '_key_resourceId', + '_key_resourceInternalId', + '_key_resourceType', + ]; + foreach ($indexesToDelete as $index) { + try { + $this->dbForProject->deleteIndex($id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to delete index \"$index\" from collection {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'functions': + try { + $this->dbForProject->deleteAttribute($id, 'deployment'); + } catch (\Throwable $th) { + Console::warning("Failed to delete attribute \"deployment\" from collection {$id}: {$th->getMessage()}"); + } + + $indexesToDelete = [ + '_key_deployment' + ]; + foreach ($indexesToDelete as $index) { + try { + $this->dbForProject->deleteIndex($id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to delete index \"$index\" from collection {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'deployments': + $attributes = [ + 'buildInternalId', + 'buildId', + 'commands', + 'path', + 'size', + 'metadata', + 'chunksTotal', + 'chunksUploaded', + 'search' + ]; + foreach ($attributes as $attribute) { + try { + $this->dbForProject->deleteAttribute($id, $attribute); + } catch (\Throwable $th) { + Console::warning("Failed to delete attribute \"$attribute\" from collection {$id}: {$th->getMessage()}"); + } + } + + $indexesToDelete = [ + '_key_buildId', + '_key_size', + '_key_search' + ]; + foreach ($indexesToDelete as $index) { + try { + $this->dbForProject->deleteIndex($id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to delete index \"$index\" from collection {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + case 'executions': + $attributes = [ + 'functionId', + 'functionInternalId', + 'search' + ]; + foreach ($attributes as $attribute) { + try { + $this->dbForProject->deleteAttribute($id, $attribute); + } catch (\Throwable $th) { + Console::warning("Failed to delete attribute \"$attribute\" from collection {$id}: {$th->getMessage()}"); + } + } + + $indexesToDelete = [ + '_key_function', + '_fulltext_search' + ]; + foreach ($indexesToDelete as $index) { + try { + $this->dbForProject->deleteIndex($id, $index); + } catch (\Throwable $th) { + Console::warning("Failed to delete index \"$index\" from collection {$id}: {$th->getMessage()}"); + } + } + + $this->dbForProject->purgeCachedCollection($id); + break; + default: + break; + } + } + } +} diff --git a/src/Appwrite/Network/Validator/CNAME.php b/src/Appwrite/Network/Validator/CNAME.php deleted file mode 100644 index e1ae061c842..00000000000 --- a/src/Appwrite/Network/Validator/CNAME.php +++ /dev/null @@ -1,99 +0,0 @@ -<?php - -namespace Appwrite\Network\Validator; - -use Utopia\Validator; - -class CNAME extends Validator -{ - /** - * @var mixed - */ - protected mixed $logs; - - /** - * @var string - */ - protected $target; - - /** - * @param string $target - */ - public function __construct($target) - { - $this->target = $target; - } - - /** - * @return string - */ - public function getDescription(): string - { - return 'Invalid CNAME record'; - } - - /** - * @return mixed - */ - public function getLogs(): mixed - { - return $this->logs; - } - - /** - * Check if CNAME record target value matches selected target - * - * @param mixed $domain - * - * @return bool - */ - public function isValid($domain): bool - { - if (!is_string($domain)) { - return false; - } - - try { - $records = \dns_get_record($domain, DNS_CNAME); - $this->logs = $records; - } catch (\Throwable $th) { - return false; - } - - if (!$records) { - return false; - } - - foreach ($records as $record) { - if (isset($record['target']) && $record['target'] === $this->target) { - return true; - } - } - - return false; - } - - /** - * Is array - * - * Function will return true if object is array. - * - * @return bool - */ - public function isArray(): bool - { - return false; - } - - /** - * Get Type - * - * Returns validator type. - * - * @return string - */ - public function getType(): string - { - return self::TYPE_STRING; - } -} diff --git a/src/Appwrite/Network/Validator/DNS.php b/src/Appwrite/Network/Validator/DNS.php new file mode 100644 index 00000000000..73494ddc3e9 --- /dev/null +++ b/src/Appwrite/Network/Validator/DNS.php @@ -0,0 +1,111 @@ +<?php + +namespace Appwrite\Network\Validator; + +use Utopia\Validator; + +class DNS extends Validator +{ + public const RECORD_A = 'a'; + public const RECORD_AAAA = 'aaaa'; + public const RECORD_CNAME = 'cname'; + + /** + * @var mixed + */ + protected mixed $logs; + + /** + * @param string $target + */ + public function __construct(protected string $target, protected string $type = self::RECORD_CNAME) + { + } + + /** + * @return string + */ + public function getDescription(): string + { + return 'Invalid DNS record'; + } + + /** + * @return mixed + */ + public function getLogs(): mixed + { + return $this->logs; + } + + /** + * Check if DNS record value matches specific value + * + * @param mixed $domain + * + * @return bool + */ + public function isValid($value): bool + { + $typeNative = match ($this->type) { + self::RECORD_A => DNS_A, + self::RECORD_AAAA => DNS_AAAA, + self::RECORD_CNAME => DNS_CNAME, + default => throw new \Exception('Record type not supported.') + }; + + $dnsKey = match ($this->type) { + self::RECORD_A => 'ip', + self::RECORD_AAAA => 'ipv6', + self::RECORD_CNAME => 'target', + default => throw new \Exception('Record type not supported.') + }; + + if (!is_string($value)) { + return false; + } + + try { + $records = \dns_get_record($value, $typeNative); + $this->logs = $records; + } catch (\Throwable $th) { + return false; + } + + if (!$records) { + return false; + } + + foreach ($records as $record) { + if (isset($record[$dnsKey]) && $record[$dnsKey] === $this->target) { + return true; + } + } + + return false; + } + + /** + * Is array + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_STRING; + } +} diff --git a/src/Appwrite/Platform/Action.php b/src/Appwrite/Platform/Action.php new file mode 100644 index 00000000000..72c41582ea5 --- /dev/null +++ b/src/Appwrite/Platform/Action.php @@ -0,0 +1,90 @@ +<?php + +namespace Appwrite\Platform; + +use Swoole\Coroutine as Co; +use Utopia\Database\Database; +use Utopia\Database\Query; +use Utopia\Platform\Action as UtopiaAction; + +class Action extends UtopiaAction +{ + /** + * Log Error Callback + * + * @var callable + */ + protected mixed $logError; + + /** + * Foreach Document + * Call provided callback for each document in the collection + * + * @param string $projectId + * @param string $collection + * @param array $queries + * @param callable $callback + * + * @return void + */ + protected function foreachDocument(Database $database, string $collection, array $queries = [], callable $callback = null, int $limit = 1000, bool $concurrent = false): void + { + $results = []; + $sum = $limit; + $latestDocument = null; + + while ($sum === $limit) { + $newQueries = $queries; + try { + if ($latestDocument !== null) { + array_unshift($newQueries, Query::cursorAfter($latestDocument)); + } + $newQueries[] = Query::limit($limit); + $database->disableValidation(); + $results = $database->find($collection, $newQueries); + $database->enableValidation(); + } catch (\Exception $e) { + if (!empty($this->logError)) { + call_user_func_array($this->logError, [$e, "CLI", "fetch_documents_namespace_{$database->getNamespace()}_collection{$collection}"]); + } + } + + if (empty($results)) { + return; + } + + $sum = count($results); + + if ($concurrent) { + $callables = []; + $errors = []; + + foreach ($results as $document) { + if (is_callable($callback)) { + $callables[] = Co\go(function () use ($document, $callback, &$errors) { + try { + $callback($document); + } catch (\Throwable $error) { + $errors[] = $error; + } + }); + } + } + + Co::join($callables); + + if (!empty($errors)) { + throw new \Error("Errors found in concurrent foreachDocument: " . \json_encode($errors)); + } + } else { + foreach ($results as $document) { + if (is_callable($callback)) { + $callback($document); + } + } + } + + $latestDocument = $results[array_key_last($results)]; + } + } +} diff --git a/src/Appwrite/Platform/Appwrite.php b/src/Appwrite/Platform/Appwrite.php index 6b3eb077fa6..5752432257e 100644 --- a/src/Appwrite/Platform/Appwrite.php +++ b/src/Appwrite/Platform/Appwrite.php @@ -2,7 +2,13 @@ namespace Appwrite\Platform; +use Appwrite\Platform\Modules\Console; use Appwrite\Platform\Modules\Core; +use Appwrite\Platform\Modules\Functions; +use Appwrite\Platform\Modules\Projects; +use Appwrite\Platform\Modules\Proxy; +use Appwrite\Platform\Modules\Sites; +use Appwrite\Platform\Modules\Tokens; use Utopia\Platform\Platform; class Appwrite extends Platform @@ -10,5 +16,11 @@ class Appwrite extends Platform public function __construct() { parent::__construct(new Core()); + $this->addModule(new Projects\Module()); + $this->addModule(new Functions\Module()); + $this->addModule(new Sites\Module()); + $this->addModule(new Console\Module()); + $this->addModule(new Proxy\Module()); + $this->addModule(new Tokens\Module()); } } diff --git a/src/Appwrite/Platform/Modules/Compute/Base.php b/src/Appwrite/Platform/Modules/Compute/Base.php new file mode 100644 index 00000000000..542b29bcd52 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Compute/Base.php @@ -0,0 +1,274 @@ +<?php + +namespace Appwrite\Platform\Modules\Compute; + +use Appwrite\Event\Build; +use Appwrite\Extend\Exception; +use Appwrite\Query; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Authorization; +use Utopia\Platform\Action; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\VCS\Adapter\Git\GitHub; +use Utopia\VCS\Exception\RepositoryNotFound; + +class Base extends Action +{ + public function redeployVcsFunction(Request $request, Document $function, Document $project, Document $installation, Database $dbForProject, Build $queueForBuilds, Document $template, GitHub $github, bool $activate, string $referenceType = 'branch', string $reference = ''): Document + { + $deploymentId = ID::unique(); + $entrypoint = $function->getAttribute('entrypoint', ''); + $providerInstallationId = $installation->getAttribute('providerInstallationId', ''); + $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); + $githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID'); + $github->initializeVariables($providerInstallationId, $privateKey, $githubAppId); + $owner = $github->getOwnerName($providerInstallationId); + $providerRepositoryId = $function->getAttribute('providerRepositoryId', ''); + try { + $repositoryName = $github->getRepositoryName($providerRepositoryId) ?? ''; + if (empty($repositoryName)) { + throw new Exception(Exception::PROVIDER_REPOSITORY_NOT_FOUND); + } + } catch (RepositoryNotFound $e) { + throw new Exception(Exception::PROVIDER_REPOSITORY_NOT_FOUND); + } + + $commitDetails = []; + $branchUrl = ""; + $providerBranch = ""; + + // TODO: Support tag in future + if ($referenceType === 'branch') { + $providerBranch = empty($reference) ? $function->getAttribute('providerBranch', 'main') : $reference; + $branchUrl = "https://github.com/$owner/$repositoryName/tree/$providerBranch"; + try { + $commitDetails = $github->getLatestCommit($owner, $repositoryName, $providerBranch); + } catch (\Throwable $error) { + // Ignore; deployment can continue + } + } elseif ($referenceType === 'commit') { + try { + $commitDetails = $github->getCommit($owner, $repositoryName, $reference); + } catch (\Throwable $error) { + // Ignore; deployment can continue + } + } + + $repositoryUrl = "https://github.com/$owner/$repositoryName"; + + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceType' => 'functions', + 'entrypoint' => $entrypoint, + 'buildCommands' => $function->getAttribute('commands', ''), + 'type' => 'vcs', + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'repositoryId' => $function->getAttribute('repositoryId', ''), + 'repositoryInternalId' => $function->getAttribute('repositoryInternalId', ''), + 'providerBranchUrl' => $branchUrl, + 'providerRepositoryName' => $repositoryName, + 'providerRepositoryOwner' => $owner, + 'providerRepositoryUrl' => $repositoryUrl, + 'providerCommitHash' => $commitDetails['commitHash'] ?? '', + 'providerCommitAuthorUrl' => $commitDetails['commitAuthorUrl'] ?? '', + 'providerCommitAuthor' => $commitDetails['commitAuthor'] ?? '', + 'providerCommitMessage' => mb_strimwidth($commitDetails['commitMessage'] ?? '', 0, 255, '...'), + 'providerCommitUrl' => $commitDetails['commitUrl'] ?? '', + 'providerBranch' => $providerBranch, + 'providerRootDirectory' => $function->getAttribute('providerRootDirectory', ''), + 'search' => implode(' ', [$deploymentId, $entrypoint]), + 'activate' => $activate, + ])); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($function) + ->setDeployment($deployment) + ->setTemplate($template); + + return $deployment; + } + + public function redeployVcsSite(Request $request, Document $site, Document $project, Document $installation, Database $dbForProject, Database $dbForPlatform, Build $queueForBuilds, Document $template, GitHub $github, bool $activate, string $referenceType = 'branch', string $reference = ''): Document + { + $deploymentId = ID::unique(); + $providerInstallationId = $installation->getAttribute('providerInstallationId', ''); + $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); + $githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID'); + $github->initializeVariables($providerInstallationId, $privateKey, $githubAppId); + $owner = $github->getOwnerName($providerInstallationId); + $providerRepositoryId = $site->getAttribute('providerRepositoryId', ''); + try { + $repositoryName = $github->getRepositoryName($providerRepositoryId) ?? ''; + if (empty($repositoryName)) { + throw new Exception(Exception::PROVIDER_REPOSITORY_NOT_FOUND); + } + } catch (RepositoryNotFound $e) { + throw new Exception(Exception::PROVIDER_REPOSITORY_NOT_FOUND); + } + + $commitDetails = []; + $branchUrl = ""; + $providerBranch = ""; + + // TODO: Support tag in future + if ($referenceType === 'branch') { + $providerBranch = empty($reference) ? $site->getAttribute('providerBranch', 'main') : $reference; + $branchUrl = "https://github.com/$owner/$repositoryName/tree/$providerBranch"; + try { + $commitDetails = $github->getLatestCommit($owner, $repositoryName, $providerBranch); + } catch (\Throwable $error) { + // Ignore; deployment can continue + } + } elseif ($referenceType === 'commit') { + try { + $commitDetails = $github->getCommit($owner, $repositoryName, $reference); + } catch (\Throwable $error) { + // Ignore; deployment can continue + } + } + + $repositoryUrl = "https://github.com/$owner/$repositoryName"; + + $commands = []; + if (!empty($site->getAttribute('installCommand', ''))) { + $commands[] = $site->getAttribute('installCommand', ''); + } + if (!empty($site->getAttribute('buildCommand', ''))) { + $commands[] = $site->getAttribute('buildCommand', ''); + } + + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceId' => $site->getId(), + 'resourceInternalId' => $site->getInternalId(), + 'resourceType' => 'sites', + 'buildCommands' => implode(' && ', $commands), + 'buildOutput' => $site->getAttribute('outputDirectory', ''), + 'adapter' => $site->getAttribute('adapter', ''), + 'fallbackFile' => $site->getAttribute('fallbackFile', ''), + 'type' => 'vcs', + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'repositoryId' => $site->getAttribute('repositoryId', ''), + 'repositoryInternalId' => $site->getAttribute('repositoryInternalId', ''), + 'providerBranchUrl' => $branchUrl, + 'providerRepositoryName' => $repositoryName, + 'providerRepositoryOwner' => $owner, + 'providerRepositoryUrl' => $repositoryUrl, + 'providerCommitHash' => $commitDetails['commitHash'] ?? '', + 'providerCommitAuthorUrl' => $commitDetails['commitAuthorUrl'] ?? '', + 'providerCommitAuthor' => $commitDetails['commitAuthor'] ?? '', + 'providerCommitMessage' => mb_strimwidth($commitDetails['commitMessage'] ?? '', 0, 255, '...'), + 'providerCommitUrl' => $commitDetails['commitUrl'] ?? '', + 'providerBranch' => $providerBranch, + 'providerRootDirectory' => $site->getAttribute('providerRootDirectory', ''), + 'search' => implode(' ', [$deploymentId]), + 'activate' => $activate, + ])); + + $site = $site + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('sites', $site->getId(), $site); + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $domain = ID::unique() . "." . $sitesDomain; + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain) : ID::unique(); + + Authorization::skip( + fn () => $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'trigger' => 'deployment', + 'type' => 'deployment', + 'deploymentId' => $deployment->getId(), + 'deploymentInternalId' => $deployment->getInternalId(), + 'deploymentResourceType' => 'site', + 'deploymentResourceId' => $site->getId(), + 'deploymentResourceInternalId' => $site->getInternalId(), + 'deploymentVcsProviderBranch' => $providerBranch, + 'status' => 'verified', + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain]), + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') + ])) + ); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($site) + ->setDeployment($deployment) + ->setTemplate($template); + + return $deployment; + } + + protected function listRules(Document $project, array $queries, Database $database, callable $callback): void + { + $limit = 100; + $cursor = null; + + do { + $queries = \array_merge([ + Query::limit($limit), + Query::equal("projectInternalId", [$project->getInternalId()]) + ], $queries); + + if ($cursor !== null) { + $queries[] = Query::cursorAfter($cursor); + } + + $results = $database->find('rules', $queries); + + $total = \count($results); + if ($total > 0) { + $cursor = $results[$total - 1]; + } + + if ($total < $limit) { + $cursor = null; + } + + foreach ($results as $document) { + if (is_callable($callback)) { + $callback($document); + } + } + } while (!\is_null($cursor)); + } +} diff --git a/src/Appwrite/Platform/Modules/Compute/Specification.php b/src/Appwrite/Platform/Modules/Compute/Specification.php new file mode 100644 index 00000000000..cf48896a7b5 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Compute/Specification.php @@ -0,0 +1,16 @@ +<?php + +namespace Appwrite\Platform\Modules\Compute; + +class Specification +{ + public const S_05VCPU_512MB = 's-0.5vcpu-512mb'; + public const S_1VCPU_512MB = 's-1vcpu-512mb'; + public const S_1VCPU_1GB = 's-1vcpu-1gb'; + public const S_2VCPU_2GB = 's-2vcpu-2gb'; + public const S_2VCPU_4GB = 's-2vcpu-4gb'; + public const S_4VCPU_4GB = 's-4vcpu-4gb'; + public const S_4VCPU_8GB = 's-4vcpu-8gb'; + public const S_8VCPU_4GB = 's-8vcpu-4gb'; + public const S_8VCPU_8GB = 's-8vcpu-8gb'; +} diff --git a/src/Appwrite/Platform/Modules/Compute/Validator/Specification.php b/src/Appwrite/Platform/Modules/Compute/Validator/Specification.php new file mode 100644 index 00000000000..5c6cf9ce1fd --- /dev/null +++ b/src/Appwrite/Platform/Modules/Compute/Validator/Specification.php @@ -0,0 +1,112 @@ +<?php + +namespace Appwrite\Platform\Modules\Compute\Validator; + +use Utopia\Validator; + +class Specification extends Validator +{ + private array $plan; + + private array $specifications; + + private float $maxCpus; + + private int $maxMemory; + + public function __construct(array $plan, array $specifications, float $maxCpus, int $maxMemory) + { + $this->plan = $plan; + $this->specifications = $specifications; + $this->maxCpus = $maxCpus; + $this->maxMemory = $maxMemory; + } + + /** + * Get Allowed Specifications. + * + * Get allowed specifications taking into account the limits set by the environment variables and the plan. + * + * @return array + */ + public function getAllowedSpecifications(): array + { + $allowedSpecifications = []; + + foreach ($this->specifications as $size => $values) { + if ((empty($this->maxCpus) || $values['cpus'] <= $this->maxCpus) && (empty($this->maxMemory) || $values['memory'] <= $this->maxMemory)) { + if (!empty($this->plan) && array_key_exists('runtimeSpecifications', $this->plan)) { + if (!\in_array($size, $this->plan['runtimeSpecifications'])) { + continue; + } + } + + $allowedSpecifications[] = $size; + } + } + + return $allowedSpecifications; + } + + /** + * Get Description. + * + * Returns validator description. + * + * @return string + */ + public function getDescription(): string + { + return 'Specification must be one of: ' . implode(', ', $this->getAllowedSpecifications()); + } + + /** + * Is valid. + * + * Returns true if valid or false if not. + * + * @param mixed $value + * + * @return bool + */ + public function isValid($value): bool + { + if (empty($value)) { + return false; + } + + if (!\is_string($value)) { + return false; + } + + if (!\in_array($value, $this->getAllowedSpecifications())) { + return false; + } + + return true; + } + + /** + * Is array. + * + * Function will return true if object is array. + * + * @return bool + */ + public function isArray(): bool + { + return false; + } + + /** + * Get Type. + * + * Returns validator type. + * + * @return string + */ + public function getType(): string + { + return self::TYPE_STRING; + } +} diff --git a/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php b/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php new file mode 100644 index 00000000000..16a94dc00ce --- /dev/null +++ b/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php @@ -0,0 +1,90 @@ +<?php + +namespace Appwrite\Platform\Modules\Console\Http\Resources; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Domain; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; + +class Get extends Action +{ + use HTTP; + + public static function getName() + { + return 'getResource'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/console/resources') + ->desc('Check resource ID availability') + ->groups(['api', 'projects']) + ->label('scope', 'rules.read') + ->label('sdk', new Method( + namespace: 'console', + group: null, + name: 'getResource', + description: <<<EOT + Check if a resource ID is available. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE, + )) + ->label('abuse-limit', 120) + ->label('abuse-key', 'userId:{userId}, url:{url}') + ->label('abuse-time', 60) + ->param('value', '', new Text(256), 'Resource value.') + ->param('type', '', new WhiteList(['rules']), 'Resource type.') + ->inject('response') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $value, + string $type, + Response $response, + Database $dbForPlatform + ) { + if ($type === 'rules') { + $validator = new Domain($value); + + if (!$validator->isValid($value)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $validator->getDescription()); + } + + $document = Authorization::skip(fn () => $dbForPlatform->findOne('rules', [ + Query::equal('domain', [$value]), + ])); + + if (!$document->isEmpty()) { + throw new Exception(Exception::RESOURCE_ALREADY_EXISTS); + } + + $response->noContent(); + } + + // Only occurs if type is added into whitelist, but not supported in action + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid type'); + } +} diff --git a/src/Appwrite/Platform/Modules/Console/Module.php b/src/Appwrite/Platform/Modules/Console/Module.php new file mode 100644 index 00000000000..7bf28054799 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Console/Module.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Platform\Modules\Console; + +use Appwrite\Platform\Modules\Console\Services\Http; +use Utopia\Platform; + +class Module extends Platform\Module +{ + public function __construct() + { + $this->addService('http', new Http()); + } +} diff --git a/src/Appwrite/Platform/Modules/Console/Services/Http.php b/src/Appwrite/Platform/Modules/Console/Services/Http.php new file mode 100644 index 00000000000..6221db6a963 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Console/Services/Http.php @@ -0,0 +1,16 @@ +<?php + +namespace Appwrite\Platform\Modules\Console\Services; + +use Appwrite\Platform\Modules\Console\Http\Resources\Get as GetResourceAvailability; +use Utopia\Platform\Service; + +class Http extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_HTTP; + // Resources + $this->addAction(GetResourceAvailability::getName(), new GetResourceAvailability()); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php new file mode 100644 index 00000000000..54894f2caa7 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Create.php @@ -0,0 +1,305 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Query; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; +use Utopia\Storage\Validator\File; +use Utopia\Storage\Validator\FileExt; +use Utopia\Storage\Validator\FileSize; +use Utopia\Storage\Validator\Upload; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions/:functionId/deployments') + ->desc('Create deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('event', 'functions.[functionId].deployments.[deploymentId].create') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'deployment.create') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'createDeployment', + description: <<<EOT + Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID. + + This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions). + + Use the "command" param to set the entrypoint used to execute your code. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + requestType: ContentType::MULTIPART, + type: MethodType::UPLOAD, + packaging: true, + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('entrypoint', null, new Text(1028), 'Entrypoint File.', true) + ->param('commands', null, new Text(8192, 0), 'Build Commands.', true) + ->param('code', [], new File(), 'Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.', skipValidation: true) + ->param('activate', false, new Boolean(true), 'Automatically activate the deployment when it is finished building.') + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->inject('project') + ->inject('deviceForFunctions') + ->inject('deviceForLocal') + ->inject('queueForBuilds') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + ?string $entrypoint, + ?string $commands, + mixed $code, + mixed $activate, + Request $request, + Response $response, + Database $dbForProject, + Event $queueForEvents, + Document $project, + Device $deviceForFunctions, + Device $deviceForLocal, + Build $queueForBuilds + ) { + $activate = \strval($activate) === 'true' || \strval($activate) === '1'; + + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + if ($entrypoint === null) { + $entrypoint = $function->getAttribute('entrypoint', ''); + } + + if ($commands === null) { + $commands = $function->getAttribute('commands', ''); + } + + if (empty($entrypoint)) { + throw new Exception(Exception::FUNCTION_ENTRYPOINT_MISSING); + } + + $file = $request->getFiles('code'); + + // GraphQL multipart spec adds files with index keys + if (empty($file)) { + $file = $request->getFiles(0); + } + + if (empty($file)) { + throw new Exception(Exception::STORAGE_FILE_EMPTY, 'No file sent'); + } + + $fileExt = new FileExt([FileExt::TYPE_GZIP]); + $fileSizeValidator = new FileSize(System::getEnv('_APP_COMPUTE_SIZE_LIMIT', '30000000')); + $upload = new Upload(); + + // Make sure we handle a single file and multiple files the same way + $fileName = (\is_array($file['name']) && isset($file['name'][0])) ? $file['name'][0] : $file['name']; + $fileTmpName = (\is_array($file['tmp_name']) && isset($file['tmp_name'][0])) ? $file['tmp_name'][0] : $file['tmp_name']; + $fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; + + if (!$fileExt->isValid($file['name'])) { // Check if file type is allowed + throw new Exception(Exception::STORAGE_FILE_TYPE_UNSUPPORTED); + } + + $contentRange = $request->getHeader('content-range'); + $deploymentId = ID::unique(); + $chunk = 1; + $chunks = 1; + + if (!empty($contentRange)) { + $start = $request->getContentRangeStart(); + $end = $request->getContentRangeEnd(); + $fileSize = $request->getContentRangeSize(); + $deploymentId = $request->getHeader('x-appwrite-id', $deploymentId); + // TODO make `end >= $fileSize` in next breaking version + if (is_null($start) || is_null($end) || is_null($fileSize) || $end > $fileSize) { + throw new Exception(Exception::STORAGE_INVALID_CONTENT_RANGE); + } + + // TODO remove the condition that checks `$end === $fileSize` in next breaking version + if ($end === $fileSize - 1 || $end === $fileSize) { + //if it's a last chunks the chunk size might differ, so we set the $chunks and $chunk to notify it's last chunk + $chunks = $chunk = -1; + } else { + // Calculate total number of chunks based on the chunk size i.e ($rangeEnd - $rangeStart) + $chunks = (int) ceil($fileSize / ($end + 1 - $start)); + $chunk = (int) ($start / ($end + 1 - $start)) + 1; + } + } + + if (!$fileSizeValidator->isValid($fileSize)) { // Check if file size is exceeding allowed limit + throw new Exception(Exception::STORAGE_INVALID_FILE_SIZE); + } + + if (!$upload->isValid($fileTmpName)) { + throw new Exception(Exception::STORAGE_INVALID_FILE); + } + + // Save to storage + $fileSize ??= $deviceForLocal->getFileSize($fileTmpName); + $path = $deviceForFunctions->getPath($deploymentId . '.' . \pathinfo($fileName, PATHINFO_EXTENSION)); + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + $metadata = ['content_type' => $deviceForLocal->getFileMimeType($fileTmpName)]; + if (!$deployment->isEmpty()) { + $chunks = $deployment->getAttribute('sourceChunksTotal', 1); + $metadata = $deployment->getAttribute('sourceMetadata', []); + if ($chunk === -1) { + $chunk = $chunks; + } + } + + $chunksUploaded = $deviceForFunctions->upload($fileTmpName, $path, $chunk, $chunks, $metadata); + + if (empty($chunksUploaded)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed moving file'); + } + + $type = $request->getHeader('x-sdk-language') === 'cli' ? 'cli' : 'manual'; + + if ($chunksUploaded === $chunks) { + if ($activate) { + // Remove deploy for all other deployments. + $activeDeployments = $dbForProject->find('deployments', [ + Query::equal('activate', [true]), + Query::equal('resourceId', [$functionId]), + Query::equal('resourceType', ['functions']) + ]); + + foreach ($activeDeployments as $activeDeployment) { + $activeDeployment->setAttribute('activate', false); + $dbForProject->updateDocument('deployments', $activeDeployment->getId(), $activeDeployment); + } + } + + $fileSize = $deviceForFunctions->getFileSize($path); + + if ($deployment->isEmpty()) { + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceInternalId' => $function->getInternalId(), + 'resourceId' => $function->getId(), + 'resourceType' => 'functions', + 'entrypoint' => $entrypoint, + 'buildCommands' => $commands, + 'sourcePath' => $path, + 'sourceSize' => $fileSize, + 'totalSize' => $fileSize, + 'activate' => $activate, + 'sourceMetadata' => $metadata, + 'type' => $type + ])); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + } else { + $deployment = $dbForProject->updateDocument('deployments', $deploymentId, $deployment->setAttribute('sourceSize', $fileSize)->setAttribute('sourceMetadata', $metadata)); + } + + // Start the build + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($function) + ->setDeployment($deployment); + } else { + if ($deployment->isEmpty()) { + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceInternalId' => $function->getInternalId(), + 'resourceId' => $function->getId(), + 'resourceType' => 'functions', + 'entrypoint' => $entrypoint, + 'buildCommands' => $commands, + 'sourcePath' => $path, + 'sourceSize' => $fileSize, + 'totalSize' => $fileSize, + 'sourceChunksTotal' => $chunks, + 'sourceChunksUploaded' => $chunksUploaded, + 'activate' => $activate, + 'sourceMetadata' => $metadata, + 'type' => $type + ])); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + } else { + $deployment = $dbForProject->updateDocument('deployments', $deploymentId, $deployment->setAttribute('sourceChunksUploaded', $chunksUploaded)->setAttribute('sourceMetadata', $metadata)); + } + } + + $metadata = null; + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php new file mode 100644 index 00000000000..84878055d83 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Delete.php @@ -0,0 +1,136 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments; + +use Appwrite\Event\Delete as DeleteEvent; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; + +class Delete extends Action +{ + use HTTP; + + public static function getName() + { + return 'deleteDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/functions/:functionId/deployments/:deploymentId') + ->desc('Delete deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].deployments.[deploymentId].delete') + ->label('audits.event', 'deployment.delete') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'deleteDeployment', + description: <<<EOT + Delete a code deployment by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDeletes') + ->inject('queueForEvents') + ->inject('deviceForFunctions') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $deploymentId, + Response $response, + Database $dbForProject, + DeleteEvent $queueForDeletes, + Event $queueForEvents, + Device $deviceForFunctions + ) { + $function = $dbForProject->getDocument('functions', $functionId); + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('resourceId') !== $function->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if (!$dbForProject->deleteDocument('deployments', $deployment->getId())) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove deployment from DB'); + } + + if (!empty($deployment->getAttribute('sourcePath', ''))) { + if (!($deviceForFunctions->delete($deployment->getAttribute('sourcePath', '')))) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove deployment from storage'); + } + } + + if ($function->getAttribute('latestDeploymentId') === $deployment->getId()) { + $latestDeployment = $dbForProject->findOne('deployments', [ + Query::equal('resourceType', ['functions']), + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::orderDesc('$createdAt'), + ]); + $function = $dbForProject->updateDocument( + 'functions', + $function->getId(), + $function + ->setAttribute('latestDeploymentCreatedAt', $latestDeployment->isEmpty() ? '' : $latestDeployment->getCreatedAt()) + ->setAttribute('latestDeploymentInternalId', $latestDeployment->isEmpty() ? '' : $latestDeployment->getInternalId()) + ->setAttribute('latestDeploymentId', $latestDeployment->isEmpty() ? '' : $latestDeployment->getId()) + ->setAttribute('latestDeploymentStatus', $latestDeployment->isEmpty() ? '' : $latestDeployment->getAttribute('status', '')) + ); + } + + if ($function->getAttribute('deploymentId') === $deployment->getId()) { // Reset function deployment + $function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [ + 'deploymentId' => '', + 'deploymentInternalId' => '', + 'deploymentCreatedAt' => '', + ]))); + } + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $queueForDeletes + ->setType(DELETE_TYPE_DOCUMENT) + ->setDocument($deployment); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Download/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Download/Get.php new file mode 100644 index 00000000000..9456ff13a63 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Download/Get.php @@ -0,0 +1,152 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments\Download; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; +use Utopia\Swoole\Request; +use Utopia\Validator\WhiteList; + +class Get extends Action +{ + use HTTP; + + public static function getName() + { + return 'getDeploymentDownload'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/deployments/:deploymentId/download') + ->httpAlias('/v1/functions/:functionId/deployments/:deploymentId/build/download', ['type' => 'output']) + ->groups(['api', 'functions']) + ->desc('Get deployment download') + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'getDeploymentDownload', + description: <<<EOT + Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory. + EOT, + auth: [AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::ANY, + type: MethodType::LOCATION + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->param('type', 'source', new WhiteList(['source', 'output']), 'Deployment file to download. Can be: "source", "output".', true) + ->inject('response') + ->inject('request') + ->inject('dbForProject') + ->inject('deviceForFunctions') + ->inject('deviceForBuilds') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $deploymentId, + string $type, + Response $response, + Request $request, + Database $dbForProject, + Device $deviceForFunctions, + Device $deviceForBuilds + ) { + $function = $dbForProject->getDocument('functions', $functionId); + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('resourceId') !== $function->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + switch ($type) { + case 'output': + $path = $deployment->getAttribute('buildPath', ''); + $device = $deviceForBuilds; + break; + case 'source': + $path = $deployment->getAttribute('sourcePath', ''); + $device = $deviceForFunctions; + break; + } + + if (!$device->exists($path)) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $response + ->setContentType('application/gzip') + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days + ->addHeader('X-Peak', \memory_get_peak_usage()) + ->addHeader('Content-Disposition', 'attachment; filename="' . $deploymentId . '.tar.gz"'); + + $size = $device->getFileSize($path); + $rangeHeader = $request->getHeader('range'); + + if (!empty($rangeHeader)) { + $start = $request->getRangeStart(); + $end = $request->getRangeEnd(); + $unit = $request->getRangeUnit(); + + if ($end === null) { + $end = min(($start + MAX_OUTPUT_CHUNK_SIZE - 1), ($size - 1)); + } + + if ($unit !== 'bytes' || $start >= $end || $end >= $size) { + throw new Exception(Exception::STORAGE_INVALID_RANGE); + } + + $response + ->addHeader('Accept-Ranges', 'bytes') + ->addHeader('Content-Range', 'bytes ' . $start . '-' . $end . '/' . $size) + ->addHeader('Content-Length', $end - $start + 1) + ->setStatusCode(Response::STATUS_CODE_PARTIALCONTENT); + + $response->send($device->read($path, $start, ($end - $start + 1))); + } + + if ($size > APP_STORAGE_READ_BUFFER) { + for ($i = 0; $i < ceil($size / MAX_OUTPUT_CHUNK_SIZE); $i++) { + $response->chunk( + $device->read( + $path, + ($i * MAX_OUTPUT_CHUNK_SIZE), + min(MAX_OUTPUT_CHUNK_SIZE, $size - ($i * MAX_OUTPUT_CHUNK_SIZE)) + ), + (($i + 1) * MAX_OUTPUT_CHUNK_SIZE) >= $size + ); + } + } else { + $response->send($device->read($path)); + } + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php new file mode 100644 index 00000000000..8f739dd37f3 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Duplicate/Create.php @@ -0,0 +1,136 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments\Duplicate; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createDuplicateDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions/:functionId/deployments/duplicate') + ->httpAlias('/v1/functions/:functionId/deployments/:deploymentId/build') + ->httpAlias('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId') + ->desc('Create duplicate deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].deployments.[deploymentId].update') + ->label('audits.event', 'deployment.update') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'createDuplicateDeployment', + description: <<<EOT + Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->param('buildId', '', new UID(), 'Build unique ID.', true) // added as optional param for backward compatibility + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('deviceForFunctions') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $deploymentId, + string $buildId, + Response $response, + Database $dbForProject, + Event $queueForEvents, + Build $queueForBuilds, + Device $deviceForFunctions + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $path = $deployment->getAttribute('sourcePath'); + if (empty($path) || !$deviceForFunctions->exists($path)) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $deploymentId = ID::unique(); + + $destination = $deviceForFunctions->getPath($deploymentId . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); + $deviceForFunctions->transfer($path, $destination, $deviceForFunctions); + + $deployment->removeAttribute('$internalId'); + $deployment = $dbForProject->createDocument('deployments', $deployment->setAttributes([ + '$internalId' => '', + '$id' => $deploymentId, + 'sourcePath' => $destination, + 'totalSize' => $deployment->getAttribute('sourceSize', 0), + 'entrypoint' => $function->getAttribute('entrypoint'), + 'buildCommands' => $function->getAttribute('commands', ''), + 'buildStartedAt' => null, + 'buildEndedAt' => null, + 'buildDuration' => null, + 'buildSize' => null, + 'status' => 'waiting', + 'buildPath' => '', + 'buildLogs' => '', + ])); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($function) + ->setDeployment($deployment); + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Get.php new file mode 100644 index 00000000000..e9c5240f5ca --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Get.php @@ -0,0 +1,79 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Action +{ + use HTTP; + + public static function getName() + { + return 'getDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/deployments/:deploymentId') + ->desc('Get deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'getDeployment', + description: <<<EOT + Get a function deployment by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $deploymentId, + Response $response, + Database $dbForProject + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('resourceId') !== $function->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $response->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Status/Update.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Status/Update.php new file mode 100644 index 00000000000..c5436d1d056 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Status/Update.php @@ -0,0 +1,120 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments\Status; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Executor\Executor; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Update extends Action +{ + use HTTP; + + public static function getName() + { + return 'updateDeploymentStatus'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/functions/:functionId/deployments/:deploymentId/status') + ->httpAlias('/v1/functions/:functionId/deployments/:deploymentId/build') + ->desc('Update deployment status') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'deployment.update') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'updateDeploymentStatus', + description: <<<EOT + Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('project') + ->inject('queueForEvents') + ->inject('executor') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $deploymentId, + Response $response, + Database $dbForProject, + Document $project, + Event $queueForEvents, + Executor $executor + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if (\in_array($deployment->getAttribute('status'), ['ready', 'failed'])) { + throw new Exception(Exception::BUILD_ALREADY_COMPLETED); + } + + $startTime = new \DateTime($deployment->getAttribute('buildStartedAt', 'now')); + $endTime = new \DateTime('now'); + $duration = $endTime->getTimestamp() - $startTime->getTimestamp(); + + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttributes([ + 'buildEndedAt' => DateTime::now(), + 'buildDuration' => $duration, + 'status' => 'canceled' + ])); + + if ($deployment->getInternalId() === $function->getAttribute('latestDeploymentInternalId', '')) { + $function = $function->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + } + + try { + $executor->deleteRuntime($project->getId(), $deploymentId . "-build"); + } catch (\Throwable $th) { + // Don't throw if the deployment doesn't exist + if ($th->getCode() !== 404) { + throw $th; + } + } + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Template/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Template/Create.php new file mode 100644 index 00000000000..55230bd4a53 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Template/Create.php @@ -0,0 +1,174 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments\Template; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; +use Utopia\VCS\Adapter\Git\GitHub; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createTemplateDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions/:functionId/deployments/template') + ->desc('Create template deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('event', 'functions.[functionId].deployments.[deploymentId].create') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'deployment.create') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'createTemplateDeployment', + description: <<<EOT + Create a deployment based on a template. + + Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('repository', '', new Text(128, 0), 'Repository name of the template.') + ->param('owner', '', new Text(128, 0), 'The name of the owner of the template.') + ->param('rootDirectory', '', new Text(128, 0), 'Path to function code in the template repo.') + ->param('version', '', new Text(128, 0), 'Version (tag) for the repo linked to the function template.') + ->param('activate', false, new Boolean(), 'Automatically activate the deployment when it is finished building.', true) + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('queueForEvents') + ->inject('project') + ->inject('queueForBuilds') + ->inject('gitHub') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $repository, + string $owner, + string $rootDirectory, + string $version, + bool $activate, + Request $request, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Event $queueForEvents, + Document $project, + Build $queueForBuilds, + GitHub $github + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $template = new Document([ + 'repositoryName' => $repository, + 'ownerName' => $owner, + 'rootDirectory' => $rootDirectory, + 'version' => $version + ]); + + if (!empty($function->getAttribute('providerRepositoryId'))) { + $installation = $dbForPlatform->getDocument('installations', $function->getAttribute('installationId')); + + $deployment = $this->redeployVcsFunction( + request: $request, + function: $function, + project: $project, + installation: $installation, + dbForProject: $dbForProject, + queueForBuilds: $queueForBuilds, + template: $template, + github: $github, + activate: $activate + ); + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + + return; + } + + $deploymentId = ID::unique(); + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceType' => 'functions', + 'entrypoint' => $function->getAttribute('entrypoint', ''), + 'buildCommands' => $function->getAttribute('commands', ''), + 'type' => 'manual', + 'activate' => $activate, + ])); + + $function = $function + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('functions', $function->getId(), $function); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($function) + ->setDeployment($deployment) + ->setTemplate($template); + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Vcs/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Vcs/Create.php new file mode 100644 index 00000000000..48f3894bb22 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/Vcs/Create.php @@ -0,0 +1,124 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments\Vcs; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; +use Utopia\VCS\Adapter\Git\GitHub; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createVcsDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions/:functionId/deployments/vcs') + ->desc('Create VCS deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].deployments.[deploymentId].create') + ->label('audits.event', 'deployment.create') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'createVcsDeployment', + description: <<<EOT + Create a deployment when a function is connected to VCS. + + This endpoint lets you create deployment from a branch, commit, or a tag. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + )) + ->param('functionId', '', new UID(), 'Function ID.') + // TODO: Support tag in future + ->param('type', '', new WhiteList(['branch', 'commit']), 'Type of reference passed. Allowed values are: branch, commit') + ->param('reference', '', new Text(255), 'VCS reference to create deployment from. Depending on type this can be: branch name, commit hash') + ->param('activate', false, new Boolean(), 'Automatically activate the deployment when it is finished building.', true) + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('project') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('gitHub') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $type, + string $reference, + bool $activate, + Request $request, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Document $project, + Event $queueForEvents, + Build $queueForBuilds, + GitHub $github + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $template = new Document(); + + $installation = $dbForPlatform->getDocument('installations', $function->getAttribute('installationId')); + + $deployment = $this->redeployVcsFunction( + request: $request, + function: $function, + project: $project, + installation: $installation, + dbForProject: $dbForProject, + queueForBuilds: $queueForBuilds, + template: $template, + github: $github, + activate: $activate, + reference: $reference, + referenceType: $type + ); + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php new file mode 100644 index 00000000000..38f1f38e89f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php @@ -0,0 +1,129 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Deployments; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\Deployments; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class XList extends Action +{ + use HTTP; + + public static function getName() + { + return 'listDeployments'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/deployments') + ->desc('List deployments') + ->groups(['api', 'functions']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'listDeployments', + description: <<<EOT + Get a list of all the function's code deployments. You can use the query params to filter your results. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT_LIST, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('queries', [], new Deployments(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Deployments::ALLOWED_ATTRIBUTES), true) + ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + array $queries, + string $search, + Response $response, + Database $dbForProject + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if (!empty($search)) { + $queries[] = Query::search('search', $search); + } + + // Set resource queries + $queries[] = Query::equal('resourceInternalId', [$function->getInternalId()]); + $queries[] = Query::equal('resourceType', ['functions']); + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $deploymentId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('deployments', $deploymentId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Deployment '{$deploymentId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + try { + $results = $dbForProject->find('deployments', $queries); + $total = $dbForProject->count('deployments', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + + $response->dynamic(new Document([ + 'deployments' => $results, + 'total' => $total, + ]), Response::MODEL_DEPLOYMENT_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php new file mode 100644 index 00000000000..fd1b2076a83 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php @@ -0,0 +1,477 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Executions; + +use Ahc\Jwt\JWT; +use Appwrite\Auth\Auth; +use Appwrite\Event\Event; +use Appwrite\Event\Func; +use Appwrite\Event\StatsUsage; +use Appwrite\Extend\Exception; +use Appwrite\Extend\Exception as AppwriteException; +use Appwrite\Functions\Validator\Headers; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Platform\Tasks\ScheduleExecutions; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Executor\Executor; +use MaxMind\Db\Reader; +use Utopia\CLI\Console; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\Validator\AnyOf; +use Utopia\Validator\Assoc; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createExecution'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions/:functionId/executions') + ->desc('Create execution') + ->groups(['api', 'functions']) + ->label('scope', 'execution.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].executions.[executionId].create') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'createExecution', + description: <<<EOT + Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously. + EOT, + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_EXECUTION, + ) + ], + contentType: ContentType::MULTIPART, + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('body', '', new Text(10485760, 0), 'HTTP body of execution. Default value is empty string.', true) + ->param('async', false, new Boolean(true), 'Execute code in the background. Default value is false.', true) + ->param('path', '/', new Text(2048), 'HTTP path of execution. Path can include query params. Default value is /', true) + ->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], true), 'HTTP method of execution. Default value is GET.', true) + ->param('headers', [], new AnyOf([new Assoc(), new Text(65535)], AnyOf::TYPE_MIXED), 'HTTP headers of execution. Defaults to empty.', true) + ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true, precision: DateTimeValidator::PRECISION_MINUTES, offset: 60), 'Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.', true) + ->inject('response') + ->inject('request') + ->inject('project') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('user') + ->inject('queueForEvents') + ->inject('queueForStatsUsage') + ->inject('queueForFunctions') + ->inject('geodb') + ->inject('executor') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $body, + mixed $async, + string $path, + string $method, + mixed $headers, + ?string $scheduledAt, + Response $response, + Request $request, + Document $project, + Database $dbForProject, + Database $dbForPlatform, + Document $user, + Event $queueForEvents, + StatsUsage $queueForStatsUsage, + Func $queueForFunctions, + Reader $geodb, + Executor $executor + ) { + $async = \strval($async) === 'true' || \strval($async) === '1'; + + if (!$async && !is_null($scheduledAt)) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Scheduled executions must run asynchronously. Set scheduledAt to a future date, or set async to true.'); + } + + /** + * @var array<string, mixed> $headers + */ + $assocParams = ['headers']; + foreach ($assocParams as $assocParam) { + if (!empty('headers') && !is_array($$assocParam)) { + $$assocParam = \json_decode($$assocParam, true); + } + } + + $booleanParams = ['async']; + foreach ($booleanParams as $booleamParam) { + if (!empty($$booleamParam) && !is_bool($$booleamParam)) { + $$booleamParam = $$booleamParam === "true" ? true : false; + } + } + + // 'headers' validator + $validator = new Headers(); + if (!$validator->isValid($headers)) { + throw new Exception($validator->getDescription(), 400); + } + + $function = Authorization::skip(fn () => $dbForProject->getDocument('functions', $functionId)); + + $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + + if ($function->isEmpty() || (!$function->getAttribute('enabled') && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $version = $function->getAttribute('version', 'v2'); + $runtimes = Config::getParam($version === 'v2' ? 'runtimes-v2' : 'runtimes', []); + $spec = Config::getParam('specifications')[$function->getAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT)]; + + $runtime = (isset($runtimes[$function->getAttribute('runtime', '')])) ? $runtimes[$function->getAttribute('runtime', '')] : null; + + if (\is_null($runtime)) { + throw new Exception(Exception::FUNCTION_RUNTIME_UNSUPPORTED, 'Runtime "' . $function->getAttribute('runtime', '') . '" is not supported'); + } + + $deployment = Authorization::skip(fn () => $dbForProject->getDocument('deployments', $function->getAttribute('deploymentId', ''))); + + if ($deployment->getAttribute('resourceId') !== $function->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND, 'Deployment not found. Create a deployment before trying to execute a function'); + } + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND, 'Deployment not found. Create a deployment before trying to execute a function'); + } + + if ($deployment->getAttribute('status') !== 'ready') { + throw new Exception(Exception::BUILD_NOT_READY); + } + + $validator = new Authorization('execute'); + + if (!$validator->isValid($function->getAttribute('execute'))) { // Check if user has write access to execute function + throw new Exception(Exception::USER_UNAUTHORIZED, $validator->getDescription()); + } + + $jwt = ''; // initialize + if (!$user->isEmpty()) { // If userId exists, generate a JWT for function + $sessions = $user->getAttribute('sessions', []); + $current = new Document(); + + foreach ($sessions as $session) { + /** @var Utopia\Database\Document $session */ + if ($session->getAttribute('secret') == Auth::hash(Auth::$secret)) { // If current session delete the cookies too + $current = $session; + } + } + + if (!$current->isEmpty()) { + $jwtExpiry = $function->getAttribute('timeout', 900); + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0); + $jwt = $jwtObj->encode([ + 'userId' => $user->getId(), + 'sessionId' => $current->getId(), + ]); + } + } + + $jwtExpiry = $function->getAttribute('timeout', 900); + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0); + $apiKey = $jwtObj->encode([ + 'projectId' => $project->getId(), + 'scopes' => $function->getAttribute('scopes', []) + ]); + + $headers['x-appwrite-key'] = API_KEY_DYNAMIC . '_' . $apiKey; + $headers['x-appwrite-trigger'] = 'http'; + $headers['x-appwrite-user-id'] = $user->getId() ?? ''; + $headers['x-appwrite-user-jwt'] = $jwt ?? ''; + $headers['x-appwrite-country-code'] = ''; + $headers['x-appwrite-continent-code'] = ''; + $headers['x-appwrite-continent-eu'] = 'false'; + + $ip = $headers['x-real-ip'] ?? ''; + if (!empty($ip)) { + $record = $geodb->get($ip); + + if ($record) { + $eu = Config::getParam('locale-eu'); + + $headers['x-appwrite-country-code'] = $record['country']['iso_code'] ?? ''; + $headers['x-appwrite-continent-code'] = $record['continent']['code'] ?? ''; + $headers['x-appwrite-continent-eu'] = (\in_array($record['country']['iso_code'], $eu)) ? 'true' : 'false'; + } + } + + $headersFiltered = []; + foreach ($headers as $key => $value) { + if (\in_array(\strtolower($key), FUNCTION_ALLOWLIST_HEADERS_REQUEST)) { + $headersFiltered[] = ['name' => $key, 'value' => $value]; + } + } + + $executionId = ID::unique(); + + $status = $async ? 'waiting' : 'processing'; + + if (!is_null($scheduledAt)) { + $status = 'scheduled'; + } + + $execution = new Document([ + '$id' => $executionId, + '$permissions' => !$user->isEmpty() ? [Permission::read(Role::user($user->getId()))] : [], + 'resourceInternalId' => $function->getInternalId(), + 'resourceId' => $function->getId(), + 'resourceType' => 'functions', + 'deploymentInternalId' => $deployment->getInternalId(), + 'deploymentId' => $deployment->getId(), + 'trigger' => (!is_null($scheduledAt)) ? 'schedule' : 'http', + 'status' => $status, // waiting / processing / completed / failed / scheduled + 'responseStatusCode' => 0, + 'responseHeaders' => [], + 'requestPath' => $path, + 'requestMethod' => $method, + 'requestHeaders' => $headersFiltered, + 'errors' => '', + 'logs' => '', + 'duration' => 0.0, + ]); + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('executionId', $execution->getId()) + ->setContext('function', $function); + + if ($async) { + if (is_null($scheduledAt)) { + $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); + $queueForFunctions + ->setType('http') + ->setExecution($execution) + ->setFunction($function) + ->setBody($body) + ->setHeaders($headers) + ->setPath($path) + ->setMethod($method) + ->setJWT($jwt) + ->setProject($project) + ->setUser($user) + ->setParam('functionId', $function->getId()) + ->setParam('executionId', $execution->getId()) + ->trigger(); + } else { + $data = [ + 'headers' => $headers, + 'path' => $path, + 'method' => $method, + 'body' => $body, + 'userId' => $user->getId() + ]; + + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), + 'resourceType' => ScheduleExecutions::getSupportedResource(), + 'resourceId' => $execution->getId(), + 'resourceInternalId' => $execution->getInternalId(), + 'resourceUpdatedAt' => DateTime::now(), + 'projectId' => $project->getId(), + 'schedule' => $scheduledAt, + 'data' => $data, + 'active' => true, + ])); + + $execution = $execution + ->setAttribute('scheduleId', $schedule->getId()) + ->setAttribute('scheduleInternalId', $schedule->getInternalId()) + ->setAttribute('scheduledAt', $scheduledAt); + + $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); + } + + return $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($execution, Response::MODEL_EXECUTION); + } + + $durationStart = \microtime(true); + + $vars = []; + + // V2 vars + if ($version === 'v2') { + $vars = \array_merge($vars, [ + 'APPWRITE_FUNCTION_TRIGGER' => $headers['x-appwrite-trigger'] ?? '', + 'APPWRITE_FUNCTION_DATA' => $body ?? '', + 'APPWRITE_FUNCTION_USER_ID' => $headers['x-appwrite-user-id'] ?? '', + 'APPWRITE_FUNCTION_JWT' => $headers['x-appwrite-user-jwt'] ?? '' + ]); + } + + // Shared vars + foreach ($function->getAttribute('varsProject', []) as $var) { + $vars[$var->getAttribute('key')] = $var->getAttribute('value', ''); + } + + // Function vars + foreach ($function->getAttribute('vars', []) as $var) { + $vars[$var->getAttribute('key')] = $var->getAttribute('value', ''); + } + + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; + $hostname = System::getEnv('_APP_DOMAIN'); + $endpoint = $protocol . '://' . $hostname . "/v1"; + + // Appwrite vars + $vars = \array_merge($vars, [ + 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, + 'APPWRITE_FUNCTION_ID' => $functionId, + 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name'), + 'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(), + 'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(), + 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '', + 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '', + 'APPWRITE_FUNCTION_CPUS' => $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, + 'APPWRITE_FUNCTION_MEMORY' => $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, + 'APPWRITE_VERSION' => APP_VERSION_STABLE, + 'APPWRITE_REGION' => $project->getAttribute('region'), + 'APPWRITE_DEPLOYMENT_TYPE' => $deployment->getAttribute('type', ''), + 'APPWRITE_VCS_REPOSITORY_ID' => $deployment->getAttribute('providerRepositoryId', ''), + 'APPWRITE_VCS_REPOSITORY_NAME' => $deployment->getAttribute('providerRepositoryName', ''), + 'APPWRITE_VCS_REPOSITORY_OWNER' => $deployment->getAttribute('providerRepositoryOwner', ''), + 'APPWRITE_VCS_REPOSITORY_URL' => $deployment->getAttribute('providerRepositoryUrl', ''), + 'APPWRITE_VCS_REPOSITORY_BRANCH' => $deployment->getAttribute('providerBranch', ''), + 'APPWRITE_VCS_REPOSITORY_BRANCH_URL' => $deployment->getAttribute('providerBranchUrl', ''), + 'APPWRITE_VCS_COMMIT_HASH' => $deployment->getAttribute('providerCommitHash', ''), + 'APPWRITE_VCS_COMMIT_MESSAGE' => $deployment->getAttribute('providerCommitMessage', ''), + 'APPWRITE_VCS_COMMIT_URL' => $deployment->getAttribute('providerCommitUrl', ''), + 'APPWRITE_VCS_COMMIT_AUTHOR_NAME' => $deployment->getAttribute('providerCommitAuthor', ''), + 'APPWRITE_VCS_COMMIT_AUTHOR_URL' => $deployment->getAttribute('providerCommitAuthorUrl', ''), + 'APPWRITE_VCS_ROOT_DIRECTORY' => $deployment->getAttribute('providerRootDirectory', ''), + ]); + + /** Execute function */ + try { + $version = $function->getAttribute('version', 'v2'); + $command = $runtime['startCommand']; + $command = $version === 'v2' ? '' : 'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '"'; + $executionResponse = $executor->createExecution( + projectId: $project->getId(), + deploymentId: $deployment->getId(), + body: \strlen($body) > 0 ? $body : null, + variables: $vars, + timeout: $function->getAttribute('timeout', 0), + image: $runtime['image'], + source: $deployment->getAttribute('buildPath', ''), + entrypoint: $deployment->getAttribute('entrypoint', ''), + version: $version, + path: $path, + method: $method, + headers: $headers, + runtimeEntrypoint: $command, + cpus: $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, + memory: $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, + logging: $function->getAttribute('logging', true), + requestTimeout: 30 + ); + + $headersFiltered = []; + foreach ($executionResponse['headers'] as $key => $value) { + if (\in_array(\strtolower($key), FUNCTION_ALLOWLIST_HEADERS_RESPONSE)) { + $headersFiltered[] = ['name' => $key, 'value' => $value]; + } + } + + /** Update execution status */ + $status = $executionResponse['statusCode'] >= 500 ? 'failed' : 'completed'; + $execution->setAttribute('status', $status); + $execution->setAttribute('responseStatusCode', $executionResponse['statusCode']); + $execution->setAttribute('responseHeaders', $headersFiltered); + $execution->setAttribute('logs', $executionResponse['logs']); + $execution->setAttribute('errors', $executionResponse['errors']); + $execution->setAttribute('duration', $executionResponse['duration']); + } catch (\Throwable $th) { + $durationEnd = \microtime(true); + + $execution + ->setAttribute('duration', $durationEnd - $durationStart) + ->setAttribute('status', 'failed') + ->setAttribute('responseStatusCode', 500) + ->setAttribute('errors', $th->getMessage() . '\nError Code: ' . $th->getCode()); + Console::error($th->getMessage()); + + if ($th instanceof AppwriteException) { + throw $th; + } + } finally { + $queueForStatsUsage + ->addMetric(METRIC_EXECUTIONS, 1) + ->addMetric(str_replace(['{resourceType}'], [RESOURCE_TYPE_FUNCTIONS], METRIC_RESOURCE_TYPE_EXECUTIONS), 1) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS), 1) + ->addMetric(METRIC_EXECUTIONS_COMPUTE, (int)($execution->getAttribute('duration') * 1000)) // per project + ->addMetric(str_replace(['{resourceType}'], [RESOURCE_TYPE_FUNCTIONS], METRIC_RESOURCE_TYPE_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) // per function + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) // per function + ->addMetric(METRIC_EXECUTIONS_MB_SECONDS, (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}'], [RESOURCE_TYPE_FUNCTIONS], METRIC_RESOURCE_TYPE_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ; + + $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); + } + + $headers = []; + foreach (($executionResponse['headers'] ?? []) as $key => $value) { + $headers[] = ['name' => $key, 'value' => $value]; + } + + $execution->setAttribute('responseBody', $executionResponse['body'] ?? ''); + $execution->setAttribute('responseHeaders', $headers); + + $acceptTypes = \explode(', ', $request->getHeader('accept')); + foreach ($acceptTypes as $acceptType) { + if (\str_starts_with($acceptType, 'application/json') || \str_starts_with($acceptType, 'application/*')) { + $response->setContentType(Response::CONTENT_TYPE_JSON); + break; + } elseif (\str_starts_with($acceptType, 'multipart/form-data') || \str_starts_with($acceptType, 'multipart/*')) { + $response->setContentType(Response::CONTENT_TYPE_MULTIPART); + break; + } + } + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($execution, Response::MODEL_EXECUTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Delete.php b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Delete.php new file mode 100644 index 00000000000..cd85b5e5348 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Delete.php @@ -0,0 +1,123 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Executions; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Platform\Tasks\ScheduleExecutions; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Base +{ + use HTTP; + + public static function getName() + { + return 'deleteExecution'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/functions/:functionId/executions/:executionId') + ->desc('Delete execution') + ->groups(['api', 'functions']) + ->label('scope', 'execution.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].executions.[executionId].delete') + ->label('audits.event', 'executions.delete') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'deleteExecution', + description: <<<EOT + Delete a function execution by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('executionId', '', new UID(), 'Execution ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('queueForEvents') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $executionId, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Event $queueForEvents + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $execution = $dbForProject->getDocument('executions', $executionId); + if ($execution->isEmpty()) { + throw new Exception(Exception::EXECUTION_NOT_FOUND); + } + + if ($execution->getAttribute('resourceType') !== 'functions' && $execution->getAttribute('resourceInternalId') !== $function->getInternalId()) { + throw new Exception(Exception::EXECUTION_NOT_FOUND); + } + $status = $execution->getAttribute('status'); + + if (!in_array($status, ['completed', 'failed', 'scheduled'])) { + throw new Exception(Exception::EXECUTION_IN_PROGRESS); + } + + if (!$dbForProject->deleteDocument('executions', $execution->getId())) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove execution from DB'); + } + + if ($status === 'scheduled') { + $schedule = $dbForPlatform->findOne('schedules', [ + Query::equal('resourceId', [$execution->getId()]), + Query::equal('resourceType', [ScheduleExecutions::getSupportedResource()]), + Query::equal('active', [true]), + ]); + + if (!$schedule->isEmpty()) { + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('active', false); + + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + } + } + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('executionId', $execution->getId()) + ->setPayload($response->output($execution, Response::MODEL_EXECUTION)); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Get.php new file mode 100644 index 00000000000..892ce30f474 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Get.php @@ -0,0 +1,85 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Executions; + +use Appwrite\Auth\Auth; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getExecution'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/executions/:executionId') + ->desc('Get execution') + ->groups(['api', 'functions']) + ->label('scope', 'execution.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'getExecution', + description: <<<EOT + Get a function execution log by its unique ID. + EOT, + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EXECUTION, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('executionId', '', new UID(), 'Execution ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $executionId, + Response $response, + Database $dbForProject + ) { + $function = Authorization::skip(fn () => $dbForProject->getDocument('functions', $functionId)); + + $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + + if ($function->isEmpty() || (!$function->getAttribute('enabled') && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $execution = $dbForProject->getDocument('executions', $executionId); + + if ($execution->getAttribute('resourceType') !== 'functions' || $execution->getAttribute('resourceInternalId') !== $function->getInternalId()) { + throw new Exception(Exception::EXECUTION_NOT_FOUND); + } + + if ($execution->isEmpty()) { + throw new Exception(Exception::EXECUTION_NOT_FOUND); + } + + $response->dynamic($execution, Response::MODEL_EXECUTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Executions/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Executions/XList.php new file mode 100644 index 00000000000..a31e95b1c8e --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Executions/XList.php @@ -0,0 +1,128 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Executions; + +use Appwrite\Auth\Auth; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\Executions; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\Query\Cursor; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listExecutions'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/executions') + ->desc('List executions') + ->groups(['api', 'functions']) + ->label('scope', 'execution.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'listExecutions', + description: <<<EOT + Get a list of all the current user function execution logs. You can use the query params to filter your results. + EOT, + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EXECUTION_LIST, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('queries', [], new Executions(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Executions::ALLOWED_ATTRIBUTES), true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + array $queries, + Response $response, + Database $dbForProject + ) { + $function = Authorization::skip(fn () => $dbForProject->getDocument('functions', $functionId)); + + $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + + if ($function->isEmpty() || (!$function->getAttribute('enabled') && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + // Set internal queries + $queries[] = Query::equal('resourceInternalId', [$function->getInternalId()]); + $queries[] = Query::equal('resourceType', ['functions']); + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $executionId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('executions', $executionId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Execution '{$executionId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + try { + $results = $dbForProject->find('executions', $queries); + $total = $dbForProject->count('executions', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + + $response->dynamic(new Document([ + 'executions' => $results, + 'total' => $total, + ]), Response::MODEL_EXECUTION_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php new file mode 100644 index 00000000000..bc0f1b2dab6 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php @@ -0,0 +1,260 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Functions; + +use Appwrite\Event\Event; +use Appwrite\Event\Validator\FunctionEvent; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Platform\Modules\Compute\Validator\Specification; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Task\Validator\Cron; +use Appwrite\Utopia\Database\Validator\CustomId; +use Appwrite\Utopia\Response; +use Utopia\Abuse\Abuse; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\Roles; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; +use Utopia\Validator\ArrayList; +use Utopia\Validator\Boolean; +use Utopia\Validator\Range; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createFunction'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions') + ->desc('Create function') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('event', 'functions.[functionId].create') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'function.create') + ->label('audits.resource', 'function/{response.$id}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'create', + description: <<<EOT + Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_FUNCTION, + ) + ], + )) + ->param('functionId', '', new CustomId(), 'Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.') + ->param('name', '', new Text(128), 'Function name. Max length: 128 chars.') + ->param('runtime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Execution runtime.') + ->param('execute', [], new Roles(APP_LIMIT_ARRAY_PARAMS_SIZE), 'An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 64 characters long.', true) + ->param('events', [], new ArrayList(new FunctionEvent(), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Events list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' events are allowed.', true) + ->param('schedule', '', new Cron(), 'Schedule CRON syntax.', true) + ->param('timeout', 15, new Range(1, (int) System::getEnv('_APP_FUNCTIONS_TIMEOUT', 900)), 'Function maximum execution time in seconds.', true) + ->param('enabled', true, new Boolean(), 'Is function enabled? When set to \'disabled\', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.', true) + ->param('logging', true, new Boolean(), 'When disabled, executions will exclude logs and errors, and will be slightly faster.', true) + ->param('entrypoint', '', new Text(1028, 0), 'Entrypoint File. This path is relative to the "providerRootDirectory".', true) + ->param('commands', '', new Text(8192, 0), 'Build Commands.', true) + ->param('scopes', [], new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of scopes allowed for API key auto-generated for every execution. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.', true) + ->param('installationId', '', new Text(128, 0), 'Appwrite Installation ID for VCS (Version Control System) deployment.', true) + ->param('providerRepositoryId', '', new Text(128, 0), 'Repository ID of the repo linked to the function.', true) + ->param('providerBranch', '', new Text(128, 0), 'Production branch for the repo linked to the function.', true) + ->param('providerSilentMode', false, new Boolean(), 'Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.', true) + ->param('providerRootDirectory', '', new Text(128, 0), 'Path to function code in the linked repo.', true) + ->param('specification', APP_COMPUTE_SPECIFICATION_DEFAULT, fn (array $plan) => new Specification( + $plan, + Config::getParam('specifications', []), + System::getEnv('_APP_COMPUTE_CPUS', 0), + System::getEnv('_APP_COMPUTE_MEMORY', 0) + ), 'Runtime specification for the function and builds.', true, ['plan']) + ->inject('response') + ->inject('dbForProject') + ->inject('timelimit') + ->inject('project') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $name, + string $runtime, + array $execute, + array $events, + string $schedule, + int $timeout, + bool $enabled, + bool $logging, + string $entrypoint, + string $commands, + array $scopes, + string $installationId, + string $providerRepositoryId, + string $providerBranch, + bool $providerSilentMode, + string $providerRootDirectory, + string $specification, + Response $response, + Database $dbForProject, + callable $timelimit, + Document $project, + Event $queueForEvents, + Database $dbForPlatform + ) { + + // Temporary abuse check + $abuseCheck = function () use ($project, $timelimit, $response) { + $abuseKey = "projectId:{projectId},url:{url}"; + $abuseLimit = System::getEnv('_APP_FUNCTIONS_CREATION_ABUSE_LIMIT', 50); + $abuseTime = 86400; // 1 day + + $timeLimit = $timelimit($abuseKey, $abuseLimit, $abuseTime); + $timeLimit + ->setParam('{projectId}', $project->getId()) + ->setParam('{url}', '/v1/functions'); + + $abuse = new Abuse($timeLimit); + $remaining = $timeLimit->remaining(); + $limit = $timeLimit->limit(); + $time = $timeLimit->time() + $abuseTime; + + $response + ->addHeader('X-RateLimit-Limit', $limit) + ->addHeader('X-RateLimit-Remaining', $remaining) + ->addHeader('X-RateLimit-Reset', $time); + + $enabled = System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') !== 'disabled'; + if ($enabled && $abuse->check()) { + throw new Exception(Exception::GENERAL_RATE_LIMIT_EXCEEDED); + } + }; + + $abuseCheck(); + + $functionId = ($functionId == 'unique()') ? ID::unique() : $functionId; + + $allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', ''))); + + if (!empty($allowList) && !\in_array($runtime, $allowList)) { + throw new Exception(Exception::FUNCTION_RUNTIME_UNSUPPORTED, 'Runtime "' . $runtime . '" is not supported'); + } + + $installation = $dbForPlatform->getDocument('installations', $installationId); + + if (!empty($installationId) && $installation->isEmpty()) { + throw new Exception(Exception::INSTALLATION_NOT_FOUND); + } + + if (!empty($providerRepositoryId) && (empty($installationId) || empty($providerBranch))) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'When connecting to VCS (Version Control System), you need to provide "installationId" and "providerBranch".'); + } + + $function = $dbForProject->createDocument('functions', new Document([ + '$id' => $functionId, + 'execute' => $execute, + 'enabled' => $enabled, + 'live' => true, + 'logging' => $logging, + 'name' => $name, + 'runtime' => $runtime, + 'deploymentInternalId' => '', + 'deploymentId' => '', + 'events' => $events, + 'schedule' => $schedule, + 'scheduleInternalId' => '', + 'scheduleId' => '', + 'timeout' => $timeout, + 'entrypoint' => $entrypoint, + 'commands' => $commands, + 'scopes' => $scopes, + 'search' => implode(' ', [$functionId, $name, $runtime]), + 'version' => 'v5', + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'repositoryId' => '', + 'repositoryInternalId' => '', + 'providerBranch' => $providerBranch, + 'providerRootDirectory' => $providerRootDirectory, + 'providerSilentMode' => $providerSilentMode, + 'specification' => $specification + ])); + + $schedule = Authorization::skip( + fn () => $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), + 'resourceType' => 'function', + 'resourceId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceUpdatedAt' => DateTime::now(), + 'projectId' => $project->getId(), + 'schedule' => $function->getAttribute('schedule'), + 'active' => false, + ])) + ); + + $function->setAttribute('scheduleId', $schedule->getId()); + $function->setAttribute('scheduleInternalId', $schedule->getInternalId()); + + // Git connect logic + if (!empty($providerRepositoryId)) { + $teamId = $project->getAttribute('teamId', ''); + + $repository = $dbForPlatform->createDocument('repositories', new Document([ + '$id' => ID::unique(), + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + Permission::update(Role::team(ID::custom($teamId), 'owner')), + Permission::update(Role::team(ID::custom($teamId), 'developer')), + Permission::delete(Role::team(ID::custom($teamId), 'owner')), + Permission::delete(Role::team(ID::custom($teamId), 'developer')), + ], + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'resourceId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceType' => 'function', + 'providerPullRequestIds' => [] + ])); + + $function->setAttribute('repositoryId', $repository->getId()); + $function->setAttribute('repositoryInternalId', $repository->getInternalId()); + } + + $function = $dbForProject->updateDocument('functions', $function->getId(), $function); + + $queueForEvents->setParam('functionId', $function->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($function, Response::MODEL_FUNCTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Delete.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Delete.php new file mode 100644 index 00000000000..91da68538ce --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Delete.php @@ -0,0 +1,100 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Functions; + +use Appwrite\Event\Delete as DeleteEvent; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Base +{ + use HTTP; + + public static function getName() + { + return 'deleteFunction'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/functions/:functionId') + ->desc('Delete function') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].delete') + ->label('audits.event', 'function.delete') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'delete', + description: <<<EOT + Delete a function by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDeletes') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + Response $response, + Database $dbForProject, + DeleteEvent $queueForDeletes, + Event $queueForEvents, + Database $dbForPlatform + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + if (!$dbForProject->deleteDocument('functions', $function->getId())) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove function from DB'); + } + + // Inform scheduler to no longer run function + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('active', false); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + + $queueForDeletes + ->setType(DELETE_TYPE_DOCUMENT) + ->setDocument($function); + + $queueForEvents->setParam('functionId', $function->getId()); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Deployment/Update.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Deployment/Update.php new file mode 100644 index 00000000000..6de71cfae60 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Deployment/Update.php @@ -0,0 +1,134 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Functions\Deployment; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Query; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Update extends Base +{ + use HTTP; + + public static function getName() + { + return 'updateFunctionDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/functions/:functionId/deployment') + ->httpAlias('/v1/functions/:functionId/deployments/:deploymentId') + ->desc('Update function\'s deployment') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('event', 'functions.[functionId].deployments.[deploymentId].update') + ->label('audits.event', 'deployment.update') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'updateFunctionDeployment', + description: <<<EOT + Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('project') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $deploymentId, + Document $project, + Response $response, + Database $dbForProject, + Event $queueForEvents, + Database $dbForPlatform + ) { + $function = $dbForProject->getDocument('functions', $functionId); + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('status') !== 'ready') { + throw new Exception(Exception::BUILD_NOT_READY); + } + + $oldDeploymentInternalId = $function->getAttribute('deploymentInternalId', ''); + + $function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [ + 'deploymentInternalId' => $deployment->getInternalId(), + 'deploymentId' => $deployment->getId(), + 'deploymentCreatedAt' => $deployment->getCreatedAt(), + ]))); + + // Inform scheduler if function is still active + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('schedule', $function->getAttribute('schedule')) + ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deploymentId'))); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + + $queries = [ + Query::equal('trigger', 'manual'), + Query::equal("type", ["deployment"]), + Query::equal("deploymentResourceType", ["function"]), + Query::equal("deploymentResourceInternalId", [$function->getInternalId()]), + ]; + + if (empty($oldDeploymentInternalId)) { + $queries[] = Query::equal("deploymentInternalId", [""]); + } else { + $queries[] = Query::equal("deploymentInternalId", [$oldDeploymentInternalId]); + } + + $this->listRules($project, $queries, $dbForPlatform, function (Document $rule) use ($dbForPlatform, $deployment) { + $rule = $rule + ->setAttribute('deploymentId', $deployment->getId()) + ->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); + }); + + $queueForEvents + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response->dynamic($function, Response::MODEL_FUNCTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Get.php new file mode 100644 index 00000000000..9ce6560fd01 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Get.php @@ -0,0 +1,68 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Functions; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getFunction'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId') + ->desc('Get function') + ->groups(['api', 'functions']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'get', + description: <<<EOT + Get a function by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + Response $response, + Database $dbForProject + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $response->dynamic($function, Response::MODEL_FUNCTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Update.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Update.php new file mode 100644 index 00000000000..a19ec1e278b --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Update.php @@ -0,0 +1,291 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Functions; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Event\Validator\FunctionEvent; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Platform\Modules\Compute\Validator\Specification; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Task\Validator\Cron; +use Appwrite\Utopia\Response; +use Executor\Executor; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\Roles; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\Validator\ArrayList; +use Utopia\Validator\Boolean; +use Utopia\Validator\Nullable; +use Utopia\Validator\Range; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; +use Utopia\VCS\Adapter\Git\GitHub; + +class Update extends Base +{ + use HTTP; + + public static function getName() + { + return 'updateFunction'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_PUT) + ->setHttpPath('/v1/functions/:functionId') + ->desc('Update function') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('event', 'functions.[functionId].update') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'function.update') + ->label('audits.resource', 'function/{response.$id}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'update', + description: <<<EOT + Update function by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('name', '', new Text(128), 'Function name. Max length: 128 chars.') + ->param('runtime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Execution runtime.', true) + ->param('execute', [], new Roles(APP_LIMIT_ARRAY_PARAMS_SIZE), 'An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 64 characters long.', true) + ->param('events', [], new ArrayList(new FunctionEvent(), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Events list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' events are allowed.', true) + ->param('schedule', '', new Cron(), 'Schedule CRON syntax.', true) + ->param('timeout', 15, new Range(1, (int) System::getEnv('_APP_FUNCTIONS_TIMEOUT', 900)), 'Maximum execution time in seconds.', true) + ->param('enabled', true, new Boolean(), 'Is function enabled? When set to \'disabled\', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.', true) + ->param('logging', true, new Boolean(), 'When disabled, executions will exclude logs and errors, and will be slightly faster.', true) + ->param('entrypoint', '', new Text(1028, 0), 'Entrypoint File. This path is relative to the "providerRootDirectory".', true) + ->param('commands', '', new Text(8192, 0), 'Build Commands.', true) + ->param('scopes', [], new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of scopes allowed for API Key auto-generated for every execution. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.', true) + ->param('installationId', '', new Text(128, 0), 'Appwrite Installation ID for VCS (Version Controle System) deployment.', true) + ->param('providerRepositoryId', null, new Nullable(new Text(128, 0)), 'Repository ID of the repo linked to the function', true) + ->param('providerBranch', '', new Text(128, 0), 'Production branch for the repo linked to the function', true) + ->param('providerSilentMode', false, new Boolean(), 'Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.', true) + ->param('providerRootDirectory', '', new Text(128, 0), 'Path to function code in the linked repo.', true) + ->param('specification', APP_COMPUTE_SPECIFICATION_DEFAULT, fn (array $plan) => new Specification( + $plan, + Config::getParam('specifications', []), + System::getEnv('_APP_COMPUTE_CPUS', 0), + System::getEnv('_APP_COMPUTE_MEMORY', 0) + ), 'Runtime specification for the function and builds.', true, ['plan']) + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('project') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('dbForPlatform') + ->inject('gitHub') + ->inject('executor') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $name, + string $runtime, + array $execute, + array $events, + string $schedule, + int $timeout, + bool $enabled, + bool $logging, + string $entrypoint, + string $commands, + array $scopes, + string $installationId, + ?string $providerRepositoryId, + string $providerBranch, + bool $providerSilentMode, + string $providerRootDirectory, + string $specification, + Request $request, + Response $response, + Database $dbForProject, + Document $project, + Event $queueForEvents, + Build $queueForBuilds, + Database $dbForPlatform, + GitHub $github, + Executor $executor + ) { + // TODO: If only branch changes, re-deploy + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $installation = $dbForPlatform->getDocument('installations', $installationId); + + if (!empty($installationId) && $installation->isEmpty()) { + throw new Exception(Exception::INSTALLATION_NOT_FOUND); + } + + if (!empty($providerRepositoryId) && (empty($installationId) || empty($providerBranch))) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'When connecting to VCS (Version Control System), you need to provide "installationId" and "providerBranch".'); + } + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + if (empty($runtime)) { + $runtime = $function->getAttribute('runtime'); + } + + $enabled ??= $function->getAttribute('enabled', true); + + $repositoryId = $function->getAttribute('repositoryId', ''); + $repositoryInternalId = $function->getAttribute('repositoryInternalId', ''); + + if (empty($entrypoint)) { + $entrypoint = $function->getAttribute('entrypoint', ''); + } + + $isConnected = !empty($function->getAttribute('providerRepositoryId', '')); + + // Git disconnect logic. Disconnecting only when providerRepositoryId is empty, allowing for continue updates without disconnecting git + if ($isConnected && ($providerRepositoryId !== null && empty($providerRepositoryId))) { + $repositories = $dbForPlatform->find('repositories', [ + Query::equal('projectInternalId', [$project->getInternalId()]), + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', ['function']), + Query::limit(100), + ]); + + foreach ($repositories as $repository) { + $dbForPlatform->deleteDocument('repositories', $repository->getId()); + } + + $providerRepositoryId = ''; + $installationId = ''; + $providerBranch = ''; + $providerRootDirectory = ''; + $providerSilentMode = true; + $repositoryId = ''; + $repositoryInternalId = ''; + } + + // Git connect logic + if (!$isConnected && !empty($providerRepositoryId)) { + $teamId = $project->getAttribute('teamId', ''); + + $repository = $dbForPlatform->createDocument('repositories', new Document([ + '$id' => ID::unique(), + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + Permission::update(Role::team(ID::custom($teamId), 'owner')), + Permission::update(Role::team(ID::custom($teamId), 'developer')), + Permission::delete(Role::team(ID::custom($teamId), 'owner')), + Permission::delete(Role::team(ID::custom($teamId), 'developer')), + ], + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'resourceId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceType' => 'function', + 'providerPullRequestIds' => [] + ])); + + $repositoryId = $repository->getId(); + $repositoryInternalId = $repository->getInternalId(); + } + + $live = true; + + if ( + $function->getAttribute('name') !== $name || + $function->getAttribute('entrypoint') !== $entrypoint || + $function->getAttribute('commands') !== $commands || + $function->getAttribute('providerRootDirectory') !== $providerRootDirectory || + $function->getAttribute('runtime') !== $runtime + ) { + $live = false; + } + + // Enforce Cold Start if spec limits change. + if ($function->getAttribute('specification') !== $specification && !empty($function->getAttribute('deploymentId'))) { + try { + $executor->deleteRuntime($project->getId(), $function->getAttribute('deploymentId')); + } catch (\Throwable $th) { + // Don't throw if the deployment doesn't exist + if ($th->getCode() !== 404) { + throw $th; + } + } + } + + $function = $dbForProject->updateDocument('functions', $function->getId(), new Document(array_merge($function->getArrayCopy(), [ + 'execute' => $execute, + 'name' => $name, + 'runtime' => $runtime, + 'events' => $events, + 'schedule' => $schedule, + 'timeout' => $timeout, + 'enabled' => $enabled, + 'live' => $live, + 'logging' => $logging, + 'entrypoint' => $entrypoint, + 'commands' => $commands, + 'scopes' => $scopes, + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'repositoryId' => $repositoryId, + 'repositoryInternalId' => $repositoryInternalId, + 'providerBranch' => $providerBranch, + 'providerRootDirectory' => $providerRootDirectory, + 'providerSilentMode' => $providerSilentMode, + 'specification' => $specification, + 'search' => implode(' ', [$functionId, $name, $runtime]), + ]))); + + // Redeploy logic + if (!$isConnected && !empty($providerRepositoryId)) { + $this->redeployVcsFunction($request, $function, $project, $installation, $dbForProject, $queueForBuilds, new Document(), $github, true); + } + + // Inform scheduler if function is still active + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('schedule', $function->getAttribute('schedule')) + ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deploymentId'))); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + + $queueForEvents->setParam('functionId', $function->getId()); + + $response->dynamic($function, Response::MODEL_FUNCTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/XList.php new file mode 100644 index 00000000000..cd0eba2c50c --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/XList.php @@ -0,0 +1,117 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Functions; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\Functions; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listFunctions'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions') + ->groups(['api', 'functions']) + ->desc('List functions') + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'list', + description: <<<EOT + Get a list of all the project's functions. You can use the query params to filter your results. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION_LIST, + ) + ] + )) + ->param('queries', [], new Functions(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Functions::ALLOWED_ATTRIBUTES), true) + ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + array $queries, + string $search, + Response $response, + Database $dbForProject + ) { + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if (!empty($search)) { + $queries[] = Query::search('search', $search); + } + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $functionId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('functions', $functionId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Function '{$functionId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + try { + $functions = $dbForProject->find('functions', $queries); + $total = $dbForProject->count('functions', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + + $response->dynamic(new Document([ + 'functions' => $functions, + 'total' => $total, + ]), Response::MODEL_FUNCTION_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Runtimes/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Runtimes/XList.php new file mode 100644 index 00000000000..bfccff04790 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Runtimes/XList.php @@ -0,0 +1,74 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Runtimes; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listRuntimes'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/runtimes') + ->groups(['api']) + ->desc('List runtimes') + ->label('scope', 'public') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'runtimes', + name: 'listRuntimes', + description: <<<EOT + Get a list of all runtimes that are currently active on your instance. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_RUNTIME_LIST, + ) + ] + )) + ->inject('response') + ->callback([$this, 'action']); + } + + public function action(Response $response) + { + $runtimes = Config::getParam('runtimes'); + + $allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', ''))); + + $allowed = []; + foreach ($runtimes as $id => $runtime) { + if (!empty($allowList) && !\in_array($id, $allowList)) { + continue; + } + + $runtime['$id'] = $id; + $allowed[] = $runtime; + } + + $response->dynamic(new Document([ + 'total' => count($allowed), + 'runtimes' => $allowed + ]), Response::MODEL_RUNTIME_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Specifications/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Specifications/XList.php new file mode 100644 index 00000000000..39186e7ab7c --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Specifications/XList.php @@ -0,0 +1,81 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Specifications; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listSpecifications'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/specifications') + ->groups(['api', 'functions']) + ->desc('List specifications') + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'runtimes', + name: 'listSpecifications', + description: <<<EOT + List allowed function specifications for this instance. + EOT, + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SPECIFICATION_LIST, + ) + ] + )) + ->inject('response') + ->inject('plan') + ->callback([$this, 'action']); + } + + public function action(Response $response, array $plan) + { + $allSpecs = Config::getParam('specifications', []); + + $specs = []; + foreach ($allSpecs as $spec) { + $spec['enabled'] = true; + + if (array_key_exists('runtimeSpecifications', $plan)) { + $spec['enabled'] = in_array($spec['slug'], $plan['runtimeSpecifications']); + } + + $maxCpus = System::getEnv('_APP_FUNCTIONS_CPUS', 0); + $maxMemory = System::getEnv('_APP_FUNCTIONS_MEMORY', 0); + + // Only add specs that are within the limits set by environment variables + // Treat 0 as no limit + if ((empty($maxCpus) || $spec['cpus'] <= $maxCpus) && (empty($maxMemory) || $spec['memory'] <= $maxMemory)) { + $specs[] = $spec; + } + } + + $response->dynamic(new Document([ + 'specifications' => $specs, + 'total' => count($specs) + ]), Response::MODEL_SPECIFICATION_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php new file mode 100644 index 00000000000..237898f6fa1 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php @@ -0,0 +1,71 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Templates; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getTemplate'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/templates/:templateId') + ->desc('Get function template') + ->groups(['api', 'functions']) + ->label('scope', 'public') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'templates', + name: 'getTemplate', + description: <<<EOT + Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEMPLATE_FUNCTION, + ) + ] + )) + ->param('templateId', '', new Text(128), 'Template ID.') + ->inject('response') + ->callback([$this, 'action']); + } + + public function action(string $templateId, Response $response) + { + $templates = Config::getParam('templates-function', []); + + $filtered = \array_filter($templates, function ($template) use ($templateId) { + return $template['id'] === $templateId; + }); + + $template = array_shift($filtered); + + if (empty($template)) { + throw new Exception(Exception::FUNCTION_TEMPLATE_NOT_FOUND); + } + + $response->dynamic(new Document($template), Response::MODEL_TEMPLATE_FUNCTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php new file mode 100644 index 00000000000..05b54a75d0f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php @@ -0,0 +1,86 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Templates; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\ArrayList; +use Utopia\Validator\Range; +use Utopia\Validator\WhiteList; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listTemplates'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/templates') + ->desc('List templates') + ->groups(['api']) + ->label('scope', 'public') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'templates', + name: 'listTemplates', + description: <<<EOT + List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEMPLATE_FUNCTION_LIST, + ) + ] + )) + ->param('runtimes', [], new ArrayList(new WhiteList(array_keys(Config::getParam('runtimes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of runtimes allowed for filtering function templates. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' runtimes are allowed.', true) + ->param('useCases', [], new ArrayList(new WhiteList(['dev-tools','starter','databases','ai','messaging','utilities']), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of use cases allowed for filtering function templates. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' use cases are allowed.', true) + ->param('limit', 25, new Range(1, 5000), 'Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.', true) + ->param('offset', 0, new Range(0, 5000), 'Offset the list of returned templates. Maximum offset is 5000.', true) + ->inject('response') + ->callback([$this, 'action']); + } + + public function action(array $runtimes, array $usecases, int $limit, int $offset, Response $response) + { + $templates = Config::getParam('templates-function', []); + + if (!empty($runtimes)) { + $templates = \array_filter($templates, function ($template) use ($runtimes) { + return \count(\array_intersect($runtimes, \array_column($template['runtimes'], 'name'))) > 0; + }); + } + + if (!empty($usecases)) { + $templates = \array_filter($templates, function ($template) use ($usecases) { + return \count(\array_intersect($usecases, $template['useCases'])) > 0; + }); + } + + \usort($templates, function ($a, $b) { + return $b['score'] <=> $a['score']; + }); + + $total = \count($templates); + $templates = \array_slice($templates, $offset, $limit); + $response->dynamic(new Document([ + 'templates' => $templates, + 'total' => $total, + ]), Response::MODEL_TEMPLATE_FUNCTION_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Usage/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Usage/Get.php new file mode 100644 index 00000000000..e0d659c9ba7 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Usage/Get.php @@ -0,0 +1,159 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Usage; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\WhiteList; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getUsage'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/usage') + ->desc('Get function usage') + ->groups(['api', 'functions', 'usage']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: null, + name: 'getUsage', + description: <<<EOT + Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_FUNCTION, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function ID.') + ->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $functionId, string $range, Response $response, Database $dbForProject) + { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $periods = Config::getParam('usage', []); + $stats = $usage = []; + $days = $periods[$range]; + $metrics = [ + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_COMPUTE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_COMPUTE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_MB_SECONDS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_MB_SECONDS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_SUCCESS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_FAILED), + ]; + + Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats) { + foreach ($metrics as $metric) { + $result = $dbForProject->findOne('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', ['inf']) + ]); + + $stats[$metric]['total'] = $result['value'] ?? 0; + $limit = $days['limit']; + $period = $days['period']; + $results = $dbForProject->find('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', [$period]), + Query::limit($limit), + Query::orderDesc('time'), + ]); + $stats[$metric]['data'] = []; + foreach ($results as $result) { + $stats[$metric]['data'][$result->getAttribute('time')] = [ + 'value' => $result->getAttribute('value'), + ]; + } + } + }); + + $format = match ($days['period']) { + '1h' => 'Y-m-d\TH:00:00.000P', + '1d' => 'Y-m-d\T00:00:00.000P', + }; + + foreach ($metrics as $metric) { + $usage[$metric]['total'] = $stats[$metric]['total']; + $usage[$metric]['data'] = []; + $leap = time() - ($days['limit'] * $days['factor']); + while ($leap < time()) { + $leap += $days['factor']; + $formatDate = date($format, $leap); + $usage[$metric]['data'][] = [ + 'value' => $stats[$metric]['data'][$formatDate]['value'] ?? 0, + 'date' => $formatDate, + ]; + } + } + + $buildsTimeTotal = $usage[$metrics[4]]['total'] ?? 0; + $buildsTotal = $usage[$metrics[2]]['total'] ?? 0; + $response->dynamic(new Document([ + 'range' => $range, + 'deploymentsTotal' => $usage[$metrics[0]]['total'], + 'deploymentsStorageTotal' => $usage[$metrics[1]]['total'], + 'buildsTotal' => $usage[$metrics[2]]['total'], + 'buildsSuccessTotal' => $usage[$metrics[9]]['total'], + 'buildsFailedTotal' => $usage[$metrics[10]]['total'], + 'buildsStorageTotal' => $usage[$metrics[3]]['total'], + 'buildsTimeTotal' => $usage[$metrics[4]]['total'], + 'buildsTimeAverage' => $buildsTotal === 0 ? 0 : (int) ($buildsTimeTotal / $buildsTotal), + 'executionsTotal' => $usage[$metrics[5]]['total'], + 'executionsTimeTotal' => $usage[$metrics[6]]['total'], + 'buildsMbSecondsTotal' => $usage[$metrics[7]]['total'], + 'executionsMbSecondsTotal' => $usage[$metrics[8]]['total'], + 'deployments' => $usage[$metrics[0]]['data'], + 'deploymentsStorage' => $usage[$metrics[1]]['data'], + 'builds' => $usage[$metrics[2]]['data'], + 'buildsStorage' => $usage[$metrics[3]]['data'], + 'buildsTime' => $usage[$metrics[4]]['data'], + 'executions' => $usage[$metrics[5]]['data'], + 'executionsTime' => $usage[$metrics[6]]['data'], + 'buildsMbSeconds' => $usage[$metrics[7]]['data'], + 'executionsMbSeconds' => $usage[$metrics[8]]['data'], + 'buildsSuccess' => $usage[$metrics[9]]['data'], + 'buildsFailed' => $usage[$metrics[10]]['data'], + ]), Response::MODEL_USAGE_FUNCTION); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Usage/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Usage/XList.php new file mode 100644 index 00000000000..e64fe9a600b --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Usage/XList.php @@ -0,0 +1,149 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Usage; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\WhiteList; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'getFunctionsUsage'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/usage') + ->desc('Get functions usage') + ->groups(['api', 'functions', 'usage']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: null, + name: 'listUsage', + description: <<<EOT + Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_FUNCTIONS, + ) + ] + )) + ->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $range, Response $response, Database $dbForProject) + { + $periods = Config::getParam('usage', []); + $stats = $usage = []; + $days = $periods[$range]; + $metrics = [ + METRIC_FUNCTIONS, + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_DEPLOYMENTS), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_DEPLOYMENTS_STORAGE), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS_STORAGE), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS_COMPUTE), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_EXECUTIONS), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_EXECUTIONS_COMPUTE), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS_MB_SECONDS), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_EXECUTIONS_MB_SECONDS), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS_SUCCESS), + str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS_FAILED), + ]; + + Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats) { + foreach ($metrics as $metric) { + $result = $dbForProject->findOne('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', ['inf']) + ]); + + $stats[$metric]['total'] = $result['value'] ?? 0; + $limit = $days['limit']; + $period = $days['period']; + $results = $dbForProject->find('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', [$period]), + Query::limit($limit), + Query::orderDesc('time'), + ]); + $stats[$metric]['data'] = []; + foreach ($results as $result) { + $stats[$metric]['data'][$result->getAttribute('time')] = [ + 'value' => $result->getAttribute('value'), + ]; + } + } + }); + + $format = match ($days['period']) { + '1h' => 'Y-m-d\TH:00:00.000P', + '1d' => 'Y-m-d\T00:00:00.000P', + }; + + foreach ($metrics as $metric) { + $usage[$metric]['total'] = $stats[$metric]['total']; + $usage[$metric]['data'] = []; + $leap = time() - ($days['limit'] * $days['factor']); + while ($leap < time()) { + $leap += $days['factor']; + $formatDate = date($format, $leap); + $usage[$metric]['data'][] = [ + 'value' => $stats[$metric]['data'][$formatDate]['value'] ?? 0, + 'date' => $formatDate, + ]; + } + } + $response->dynamic(new Document([ + 'range' => $range, + 'functionsTotal' => $usage[$metrics[0]]['total'], + 'deploymentsTotal' => $usage[$metrics[1]]['total'], + 'deploymentsStorageTotal' => $usage[$metrics[2]]['total'], + 'buildsTotal' => $usage[$metrics[3]]['total'], + 'buildsStorageTotal' => $usage[$metrics[4]]['total'], + 'buildsTimeTotal' => $usage[$metrics[5]]['total'], + 'executionsTotal' => $usage[$metrics[6]]['total'], + 'executionsTimeTotal' => $usage[$metrics[7]]['total'], + 'buildsMbSecondsTotal' => $usage[$metrics[8]]['total'], + 'executionsMbSecondsTotal' => $usage[$metrics[9]]['total'], + 'buildsSuccessTotal' => $usage[$metrics[10]]['total'], + 'buildsFailedTotal' => $usage[$metrics[11]]['total'], + 'functions' => $usage[$metrics[0]]['data'], + 'deployments' => $usage[$metrics[1]]['data'], + 'deploymentsStorage' => $usage[$metrics[2]]['data'], + 'builds' => $usage[$metrics[3]]['data'], + 'buildsStorage' => $usage[$metrics[4]]['data'], + 'buildsTime' => $usage[$metrics[5]]['data'], + 'executions' => $usage[$metrics[6]]['data'], + 'executionsTime' => $usage[$metrics[7]]['data'], + 'buildsMbSeconds' => $usage[$metrics[8]]['data'], + 'executionsMbSeconds' => $usage[$metrics[9]]['data'], + 'buildsSuccess' => $usage[$metrics[10]]['data'], + 'buildsFailed' => $usage[$metrics[11]]['data'], + ]), Response::MODEL_USAGE_FUNCTIONS); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Variables/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Create.php new file mode 100644 index 00000000000..9300524c645 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Create.php @@ -0,0 +1,128 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/functions/:functionId/variables') + ->desc('Create variable') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'variable.create') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'variables', + name: 'createVariable', + description: <<<EOT + Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_VARIABLE, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function unique ID.', false) + ->param('key', null, new Text(Database::LENGTH_KEY), 'Variable key. Max length: ' . Database::LENGTH_KEY . ' chars.', false) + ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', false) + ->param('secret', true, new Boolean(), 'Secret variables can be updated or deleted, but only functions can read them during build and runtime.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('project') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $key, + string $value, + bool $secret, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Document $project + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $variableId = ID::unique(); + + $teamId = $project->getAttribute('teamId', ''); + $variable = new Document([ + '$id' => $variableId, + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + Permission::update(Role::team(ID::custom($teamId), 'owner')), + Permission::update(Role::team(ID::custom($teamId), 'developer')), + Permission::delete(Role::team(ID::custom($teamId), 'owner')), + Permission::delete(Role::team(ID::custom($teamId), 'developer')), + ], + 'resourceInternalId' => $function->getInternalId(), + 'resourceId' => $function->getId(), + 'resourceType' => 'function', + 'key' => $key, + 'value' => $value, + 'secret' => $secret, + 'search' => implode(' ', [$variableId, $function->getId(), $key, 'function']), + ]); + + try { + $variable = $dbForProject->createDocument('variables', $variable); + } catch (DuplicateException $th) { + throw new Exception(Exception::VARIABLE_ALREADY_EXISTS); + } + + $dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('live', false)); + + // Inform scheduler to pull the latest changes + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('schedule', $function->getAttribute('schedule')) + ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deploymentId'))); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($variable, Response::MODEL_VARIABLE); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Variables/Delete.php b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Delete.php new file mode 100644 index 00000000000..3d6bfebcb9e --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Delete.php @@ -0,0 +1,99 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Base +{ + use HTTP; + + public static function getName() + { + return 'deleteVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/functions/:functionId/variables/:variableId') + ->desc('Delete variable') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'variable.delete') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'variables', + name: 'deleteVariable', + description: <<<EOT + Delete a variable by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('functionId', '', new UID(), 'Function unique ID.', false) + ->param('variableId', '', new UID(), 'Variable unique ID.', false) + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $variableId, + Response $response, + Database $dbForProject, + Database $dbForPlatform + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $variable = $dbForProject->getDocument('variables', $variableId); + if ($variable === false || $variable->isEmpty() || $variable->getAttribute('resourceInternalId') !== $function->getInternalId() || $variable->getAttribute('resourceType') !== 'function') { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + if ($variable === false || $variable->isEmpty()) { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + $dbForProject->deleteDocument('variables', $variable->getId()); + + $dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('live', false)); + + // Inform scheduler to pull the latest changes + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('schedule', $function->getAttribute('schedule')) + ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deploymentId'))); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Variables/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Get.php new file mode 100644 index 00000000000..70cc66219af --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Get.php @@ -0,0 +1,83 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/variables/:variableId') + ->desc('Get variable') + ->groups(['api', 'functions']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label( + 'sdk', + new Method( + namespace: 'functions', + group: 'variables', + name: 'getVariable', + description: <<<EOT + Get a variable by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ], + ) + ) + ->param('functionId', '', new UID(), 'Function unique ID.', false) + ->param('variableId', '', new UID(), 'Variable unique ID.', false) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $functionId, string $variableId, Response $response, Database $dbForProject) + { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $variable = $dbForProject->getDocument('variables', $variableId); + if ( + $variable === false || + $variable->isEmpty() || + $variable->getAttribute('resourceInternalId') !== $function->getInternalId() || + $variable->getAttribute('resourceType') !== 'function' + ) { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + if ($variable === false || $variable->isEmpty()) { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + $response->dynamic($variable, Response::MODEL_VARIABLE); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Variables/Update.php b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Update.php new file mode 100644 index 00000000000..4102022267b --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Variables/Update.php @@ -0,0 +1,116 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; + +class Update extends Base +{ + use HTTP; + + public static function getName() + { + return 'updateVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_PUT) + ->setHttpPath('/v1/functions/:functionId/variables/:variableId') + ->desc('Update variable') + ->groups(['api', 'functions']) + ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('audits.event', 'variable.update') + ->label('audits.resource', 'function/{request.functionId}') + ->label('sdk', new Method( + namespace: 'functions', + group: 'variables', + name: 'updateVariable', + description: <<<EOT + Update variable by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ] + )) + ->param('functionId', '', new UID(), 'Function unique ID.', false) + ->param('variableId', '', new UID(), 'Variable unique ID.', false) + ->param('key', null, new Text(255), 'Variable key. Max length: 255 chars.', false) + ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', true) + ->param('secret', null, new Boolean(), 'Secret variables can be updated or deleted, but only functions can read them during build and runtime.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $functionId, + string $variableId, + string $key, + ?string $value, + ?bool $secret, + Response $response, + Database $dbForProject, + Database $dbForPlatform + ) { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $variable = $dbForProject->getDocument('variables', $variableId); + if ($variable === false || $variable->isEmpty() || $variable->getAttribute('resourceInternalId') !== $function->getInternalId() || $variable->getAttribute('resourceType') !== 'function') { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + if ($variable->getAttribute('secret') === true && $secret === false) { + throw new Exception(Exception::VARIABLE_CANNOT_UNSET_SECRET); + } + + $variable + ->setAttribute('key', $key) + ->setAttribute('value', $value ?? $variable->getAttribute('value')) + ->setAttribute('secret', $secret ?? $variable->getAttribute('secret')) + ->setAttribute('search', implode(' ', [$variableId, $function->getId(), $key, 'function'])); + + try { + $dbForProject->updateDocument('variables', $variable->getId(), $variable); + } catch (DuplicateException $th) { + throw new Exception(Exception::VARIABLE_ALREADY_EXISTS); + } + + $dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('live', false)); + + // Inform scheduler to pull the latest changes + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('schedule', $function->getAttribute('schedule')) + ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deploymentId'))); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + + $response->dynamic($variable, Response::MODEL_VARIABLE); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Variables/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Variables/XList.php new file mode 100644 index 00000000000..9c02cfe07c5 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Http/Variables/XList.php @@ -0,0 +1,72 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listVariables'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/functions/:functionId/variables') + ->desc('List variables') + ->groups(['api', 'functions']) + ->label('scope', 'functions.read') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label( + 'sdk', + new Method( + namespace: 'functions', + group: 'variables', + name: 'listVariables', + description: <<<EOT + Get a list of all variables of a specific function. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE_LIST, + ) + ], + ) + ) + ->param('functionId', '', new UID(), 'Function unique ID.', false) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $functionId, Response $response, Database $dbForProject) + { + $function = $dbForProject->getDocument('functions', $functionId); + + if ($function->isEmpty()) { + throw new Exception(Exception::FUNCTION_NOT_FOUND); + } + + $response->dynamic(new Document([ + 'variables' => $function->getAttribute('vars', []), + 'total' => \count($function->getAttribute('vars', [])), + ]), Response::MODEL_VARIABLE_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Module.php b/src/Appwrite/Platform/Modules/Functions/Module.php new file mode 100644 index 00000000000..18617bb0c80 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Module.php @@ -0,0 +1,16 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions; + +use Appwrite\Platform\Modules\Functions\Services\Http; +use Appwrite\Platform\Modules\Functions\Services\Workers; +use Utopia\Platform; + +class Module extends Platform\Module +{ + public function __construct() + { + $this->addService('http', new Http()); + $this->addService('workers', new Workers()); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Services/Http.php b/src/Appwrite/Platform/Modules/Functions/Services/Http.php new file mode 100644 index 00000000000..cf475744727 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Services/Http.php @@ -0,0 +1,89 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Services; + +use Appwrite\Platform\Modules\Functions\Http\Deployments\Create as CreateDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Delete as DeleteDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Download\Get as DownloadDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Duplicate\Create as CreateDuplicateDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Get as GetDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Status\Update as UpdateDeploymentStatus; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Template\Create as CreateTemplateDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\Vcs\Create as CreateVcsDeployment; +use Appwrite\Platform\Modules\Functions\Http\Deployments\XList as ListDeployments; +use Appwrite\Platform\Modules\Functions\Http\Executions\Create as CreateExecution; +use Appwrite\Platform\Modules\Functions\Http\Executions\Delete as DeleteExecution; +use Appwrite\Platform\Modules\Functions\Http\Executions\Get as GetExecution; +use Appwrite\Platform\Modules\Functions\Http\Executions\XList as ListExecutions; +use Appwrite\Platform\Modules\Functions\Http\Functions\Create as CreateFunction; +use Appwrite\Platform\Modules\Functions\Http\Functions\Delete as DeleteFunction; +use Appwrite\Platform\Modules\Functions\Http\Functions\Deployment\Update as UpdateFunctionDeployment; +use Appwrite\Platform\Modules\Functions\Http\Functions\Get as GetFunction; +use Appwrite\Platform\Modules\Functions\Http\Functions\Update as UpdateFunction; +use Appwrite\Platform\Modules\Functions\Http\Functions\XList as ListFunctions; +use Appwrite\Platform\Modules\Functions\Http\Runtimes\XList as ListRuntimes; +use Appwrite\Platform\Modules\Functions\Http\Specifications\XList as ListSpecifications; +use Appwrite\Platform\Modules\Functions\Http\Templates\Get as GetTemplate; +use Appwrite\Platform\Modules\Functions\Http\Templates\XList as ListTemplates; +use Appwrite\Platform\Modules\Functions\Http\Usage\Get as GetUsage; +use Appwrite\Platform\Modules\Functions\Http\Usage\XList as ListUsage; +use Appwrite\Platform\Modules\Functions\Http\Variables\Create as CreateVariable; +use Appwrite\Platform\Modules\Functions\Http\Variables\Delete as DeleteVariable; +use Appwrite\Platform\Modules\Functions\Http\Variables\Get as GetVariable; +use Appwrite\Platform\Modules\Functions\Http\Variables\Update as UpdateVariable; +use Appwrite\Platform\Modules\Functions\Http\Variables\XList as ListVariables; +use Utopia\Platform\Service; + +class Http extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_HTTP; + + // Functions + $this->addAction(CreateFunction::getName(), new CreateFunction()); + $this->addAction(GetFunction::getName(), new GetFunction()); + $this->addAction(UpdateFunction::getName(), new UpdateFunction()); + $this->addAction(ListFunctions::getName(), new ListFunctions()); + $this->addAction(DeleteFunction::getName(), new DeleteFunction()); + + // Runtimes + $this->addAction(ListRuntimes::getName(), new ListRuntimes()); + + // Specifications + $this->addAction(ListSpecifications::getName(), new ListSpecifications()); + + // Deployments + $this->addAction(CreateDeployment::getName(), new CreateDeployment()); + $this->addAction(GetDeployment::getName(), new GetDeployment()); + $this->addAction(UpdateFunctionDeployment::getName(), new UpdateFunctionDeployment()); + $this->addAction(ListDeployments::getName(), new ListDeployments()); + $this->addAction(DeleteDeployment::getName(), new DeleteDeployment()); + $this->addAction(CreateTemplateDeployment::getName(), new CreateTemplateDeployment()); + $this->addAction(CreateVcsDeployment::getName(), new CreateVcsDeployment()); + $this->addAction(DownloadDeployment::getName(), new DownloadDeployment()); + $this->addAction(CreateDuplicateDeployment::getName(), new CreateDuplicateDeployment()); + $this->addAction(UpdateDeploymentStatus::getName(), new UpdateDeploymentStatus()); + + // Executions + $this->addAction(CreateExecution::getName(), new CreateExecution()); + $this->addAction(GetExecution::getName(), new GetExecution()); + $this->addAction(ListExecutions::getName(), new ListExecutions()); + $this->addAction(DeleteExecution::getName(), new DeleteExecution()); + + // Usage + $this->addAction(GetUsage::getName(), new GetUsage()); + $this->addAction(ListUsage::getName(), new ListUsage()); + + // Variables + $this->addAction(CreateVariable::getName(), new CreateVariable()); + $this->addAction(GetVariable::getName(), new GetVariable()); + $this->addAction(ListVariables::getName(), new ListVariables()); + $this->addAction(UpdateVariable::getName(), new UpdateVariable()); + $this->addAction(DeleteVariable::getName(), new DeleteVariable()); + + // Templates + $this->addAction(GetTemplate::getName(), new GetTemplate()); + $this->addAction(ListTemplates::getName(), new ListTemplates()); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Services/Workers.php b/src/Appwrite/Platform/Modules/Functions/Services/Workers.php new file mode 100644 index 00000000000..61256b6bf9f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Services/Workers.php @@ -0,0 +1,15 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Services; + +use Appwrite\Platform\Modules\Functions\Workers\Builds; +use Utopia\Platform\Service; + +class Workers extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_WORKER; + $this->addAction(Builds::getName(), new Builds()); + } +} diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php new file mode 100644 index 00000000000..da6f0062652 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -0,0 +1,1447 @@ +<?php + +namespace Appwrite\Platform\Modules\Functions\Workers; + +use Ahc\Jwt\JWT; +use Appwrite\Event\Event; +use Appwrite\Event\Func; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; +use Appwrite\Permission; +use Appwrite\Role; +use Appwrite\Utopia\Response\Model\Deployment; +use Appwrite\Vcs\Comment; +use Exception; +use Executor\Executor; +use Swoole\Coroutine as Co; +use Utopia\Cache\Cache; +use Utopia\CLI\Console; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Exception\Conflict; +use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Restricted; +use Utopia\Database\Exception\Structure; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Detector\Detection\Rendering\SSR; +use Utopia\Detector\Detection\Rendering\XStatic; +use Utopia\Detector\Detector\Rendering; +use Utopia\Fetch\Client as FetchClient; +use Utopia\Logger\Log; +use Utopia\Platform\Action; +use Utopia\Queue\Message; +use Utopia\Storage\Compression\Compression; +use Utopia\Storage\Device; +use Utopia\Storage\Device\Local; +use Utopia\System\System; +use Utopia\VCS\Adapter\Git\GitHub; + +use function Swoole\Coroutine\batch; + +class Builds extends Action +{ + public static function getName(): string + { + return 'builds'; + } + + /** + * @throws Exception + */ + public function __construct() + { + $this + ->desc('Builds worker') + ->inject('message') + ->inject('project') + ->inject('dbForPlatform') + ->inject('queueForEvents') + ->inject('queueForWebhooks') + ->inject('queueForFunctions') + ->inject('queueForRealtime') + ->inject('queueForStatsUsage') + ->inject('cache') + ->inject('dbForProject') + ->inject('deviceForFunctions') + ->inject('deviceForSites') + ->inject('isResourceBlocked') + ->inject('deviceForFiles') + ->inject('log') + ->inject('executor') + ->callback([$this, 'action']); + } + + /** + * @param Message $message + * @param Document $project + * @param Database $dbForPlatform + * @param Event $queueForEvents + * @param Webhook $queueForWebhooks + * @param Func $queueForFunctions + * @param Realtime $queueForRealtime + * @param StatsUsage $queueForStatsUsage + * @param Cache $cache + * @param Database $dbForProject + * @param Device $deviceForFunctions + * @param Device $deviceForSites + * @param Device $deviceForFiles + * @param Log $log + * @param Executor $executor + * @return void + * @throws \Utopia\Database\Exception + */ + public function action( + Message $message, + Document $project, + Database $dbForPlatform, + Event $queueForEvents, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime, + StatsUsage $queueForStatsUsage, + Cache $cache, + Database $dbForProject, + Device $deviceForFunctions, + Device $deviceForSites, + callable $isResourceBlocked, + Device $deviceForFiles, + Log $log, + Executor $executor + ): void { + $payload = $message->getPayload() ?? []; + + if (empty($payload)) { + throw new \Exception('Missing payload'); + } + + $type = $payload['type'] ?? ''; + $resource = new Document($payload['resource'] ?? []); + $deployment = new Document($payload['deployment'] ?? []); + $template = new Document($payload['template'] ?? []); + + $log->addTag('projectId', $project->getId()); + $log->addTag('type', $type); + + switch ($type) { + case BUILD_TYPE_DEPLOYMENT: + case BUILD_TYPE_RETRY: + Console::info('Creating build for deployment: ' . $deployment->getId()); + $github = new GitHub($cache); + $this->buildDeployment( + $deviceForFunctions, + $deviceForSites, + $deviceForFiles, + $queueForWebhooks, + $queueForFunctions, + $queueForRealtime, + $queueForEvents, + $queueForStatsUsage, + $dbForPlatform, + $dbForProject, + $github, + $project, + $resource, + $deployment, + $template, + $isResourceBlocked, + $log, + $executor + ); + break; + + default: + throw new \Exception('Invalid build type'); + } + } + + /** + * @param Device $deviceForFunctions + * @param Device $deviceForSites + * @param Device $deviceForFiles + * @param Webhook $queueForWebhooks + * @param Func $queueForFunctions + * @param Realtime $queueForRealtime + * @param Event $queueForEvents + * @param StatsUsage $queueForStatsUsage + * @param Database $dbForPlatform + * @param Database $dbForProject + * @param GitHub $github + * @param Document $project + * @param Document $resource + * @param Document $deployment + * @param Document $template + * @param Log $log + * @param Executor $executor + * @return void + * @throws \Utopia\Database\Exception + * + * @throws Exception + */ + protected function buildDeployment( + Device $deviceForFunctions, + Device $deviceForSites, + Device $deviceForFiles, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime, + Event $queueForEvents, + StatsUsage $queueForStatsUsage, + Database $dbForPlatform, + Database $dbForProject, + GitHub $github, + Document $project, + Document $resource, + Document $deployment, + Document $template, + callable $isResourceBlocked, + Log $log, + Executor $executor + ): void { + $resourceKey = match ($resource->getCollection()) { + 'functions' => 'functionId', + 'sites' => 'siteId', + default => throw new \Exception('Invalid resource type') + }; + + $device = match ($resource->getCollection()) { + 'sites' => $deviceForSites, + 'functions' => $deviceForFunctions, + }; + + $log->addTag($resourceKey, $resource->getId()); + + $resource = $dbForProject->getDocument($resource->getCollection(), $resource->getId()); + if ($resource->isEmpty()) { + throw new \Exception('Resource not found'); + } + + if ($isResourceBlocked($project, $resourceKey === 'functions' ? RESOURCE_TYPE_FUNCTIONS : RESOURCE_TYPE_SITES, $resource->getId())) { + throw new \Exception('Resource is blocked'); + } + + $log->addTag('deploymentId', $deployment->getId()); + + $deployment = $dbForProject->getDocument('deployments', $deployment->getId()); + if ($deployment->isEmpty()) { + throw new \Exception('Deployment not found'); + } + + if ($resource->getCollection() === 'functions' && empty($deployment->getAttribute('entrypoint', ''))) { + throw new \Exception('Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".'); + } + + $version = $this->getVersion($resource); + $runtime = $this->getRuntime($resource, $version); + + $spec = Config::getParam('specifications')[$resource->getAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT)]; + + if ($resource->getCollection() === 'functions' && \is_null($runtime)) { + throw new \Exception('Runtime "' . $resource->getAttribute('runtime', '') . '" is not supported'); + } + + // Realtime preparation + $event = "{$resource->getCollection()}.[{$resourceKey}].deployments.[deploymentId].update"; + $queueForRealtime + ->setSubscribers(['console']) + ->setProject($project) + ->setEvent($event) + ->setParam($resourceKey, $resource->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $startTime = DateTime::now(); + $durationStart = \microtime(true); + + if ($deployment->getAttribute('status') === 'canceled') { + Console::info('Build has been canceled'); + return; + } + + $deploymentId = $deployment->getId(); + + $deployment->setAttribute('buildStartedAt', $startTime); + $deployment->setAttribute('status', 'processing'); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + if ($deployment->getInternalId() === $resource->getAttribute('latestDeploymentInternalId', '')) { + $resource = $resource->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument($resource->getCollection(), $resource->getId(), $resource); + } + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + $source = $deployment->getAttribute('sourcePath', ''); + $installationId = $deployment->getAttribute('installationId', ''); + $providerRepositoryId = $deployment->getAttribute('providerRepositoryId', ''); + $providerCommitHash = $deployment->getAttribute('providerCommitHash', ''); + $isVcsEnabled = !empty($providerRepositoryId); + $owner = ''; + $repositoryName = ''; + + if ($isVcsEnabled) { + $installation = $dbForPlatform->getDocument('installations', $installationId); + $providerInstallationId = $installation->getAttribute('providerInstallationId'); + $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); + $githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID'); + + $github->initializeVariables($providerInstallationId, $privateKey, $githubAppId); + } + + try { + if (!$isVcsEnabled) { + // Non-VCS + Template + $templateRepositoryName = $template->getAttribute('repositoryName', ''); + $templateOwnerName = $template->getAttribute('ownerName', ''); + $templateVersion = $template->getAttribute('version', ''); + + $templateRootDirectory = $template->getAttribute('rootDirectory', ''); + $templateRootDirectory = \rtrim($templateRootDirectory, '/'); + $templateRootDirectory = \ltrim($templateRootDirectory, '.'); + $templateRootDirectory = \ltrim($templateRootDirectory, '/'); + + if (!empty($templateRepositoryName) && !empty($templateOwnerName) && !empty($templateVersion)) { + $stdout = ''; + $stderr = ''; + + // Clone template repo + $tmpTemplateDirectory = '/tmp/builds/' . $deploymentId . '-template'; + $gitCloneCommandForTemplate = $github->generateCloneCommand($templateOwnerName, $templateRepositoryName, $templateVersion, GitHub::CLONE_TYPE_TAG, $tmpTemplateDirectory, $templateRootDirectory); + $exit = Console::execute($gitCloneCommandForTemplate, '', $stdout, $stderr); + + if ($exit !== 0) { + throw new \Exception('Unable to clone code repository: ' . $stderr); + } + + Console::execute('find ' . \escapeshellarg($tmpTemplateDirectory) . ' -type d -name ".git" -exec rm -rf {} +', '', $stdout, $stderr); + + // Ensure directories + Console::execute('mkdir -p ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory), '', $stdout, $stderr); + + $tmpPathFile = $tmpTemplateDirectory . '/code.tar.gz'; + + $localDevice = new Local(); + + if (substr($tmpTemplateDirectory, -1) !== '/') { + $tmpTemplateDirectory .= '/'; + } + + $tarParamDirectory = \escapeshellarg($tmpTemplateDirectory . (empty($templateRootDirectory) ? '' : '/' . $templateRootDirectory)); + Console::execute('tar --exclude code.tar.gz -czf ' . \escapeshellarg($tmpPathFile) . ' -C ' . \escapeshellcmd($tarParamDirectory) . ' .', '', $stdout, $stderr); // TODO: Replace escapeshellcmd with escapeshellarg if we find a way that doesnt break syntax + + $source = $device->getPath($deployment->getId() . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); + $result = $localDevice->transfer($tmpPathFile, $source, $device); + + if (!$result) { + throw new \Exception("Unable to move file"); + } + + Console::execute('rm -rf ' . \escapeshellarg($tmpTemplateDirectory), '', $stdout, $stderr); + + $directorySize = $device->getFileSize($source); + $deployment + ->setAttribute('sourcePath', $source) + ->setAttribute('sourceSize', $directorySize) + ->setAttribute('totalSize', $directorySize); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + } + } elseif ($isVcsEnabled) { + // VCS and VCS+Temaplte + $tmpDirectory = '/tmp/builds/' . $deploymentId . '/code'; + $rootDirectory = $resource->getAttribute('providerRootDirectory', ''); + $rootDirectory = \rtrim($rootDirectory, '/'); + $rootDirectory = \ltrim($rootDirectory, '.'); + $rootDirectory = \ltrim($rootDirectory, '/'); + + $owner = $github->getOwnerName($providerInstallationId); + $repositoryName = $github->getRepositoryName($providerRepositoryId); + + $cloneOwner = $deployment->getAttribute('providerRepositoryOwner', $owner); + $cloneRepository = $deployment->getAttribute('providerRepositoryName', $repositoryName); + + $branchName = $deployment->getAttribute('providerBranch'); + $commitHash = $deployment->getAttribute('providerCommitHash', ''); + + $cloneVersion = $branchName; + $cloneType = GitHub::CLONE_TYPE_BRANCH; + if (!empty($commitHash)) { + $cloneVersion = $commitHash; + $cloneType = GitHub::CLONE_TYPE_COMMIT; + } + + $gitCloneCommand = $github->generateCloneCommand($cloneOwner, $cloneRepository, $cloneVersion, $cloneType, $tmpDirectory, $rootDirectory); + $stdout = ''; + $stderr = ''; + + Console::execute('mkdir -p ' . \escapeshellarg('/tmp/builds/' . $deploymentId), '', $stdout, $stderr); + + if ($dbForProject->getDocument('deployments', $deploymentId)->getAttribute('status') === 'canceled') { + Console::info('Build has been canceled'); + return; + } + + $exit = Console::execute($gitCloneCommand, '', $stdout, $stderr); + + if ($exit !== 0) { + throw new \Exception('Unable to clone code repository: ' . $stderr); + } + + // Local refactoring for function folder with spaces + if (str_contains($rootDirectory, ' ')) { + $rootDirectoryWithoutSpaces = str_replace(' ', '', $rootDirectory); + $from = $tmpDirectory . '/' . $rootDirectory; + $to = $tmpDirectory . '/' . $rootDirectoryWithoutSpaces; + $exit = Console::execute('mv "' . \escapeshellarg($from) . '" "' . \escapeshellarg($to) . '"', '', $stdout, $stderr); + + if ($exit !== 0) { + throw new \Exception('Unable to move function with spaces' . $stderr); + } + $rootDirectory = $rootDirectoryWithoutSpaces; + } + + + // Build from template + $templateRepositoryName = $template->getAttribute('repositoryName', ''); + $templateOwnerName = $template->getAttribute('ownerName', ''); + $templateVersion = $template->getAttribute('version', ''); + + $templateRootDirectory = $template->getAttribute('rootDirectory', ''); + $templateRootDirectory = \rtrim($templateRootDirectory, '/'); + $templateRootDirectory = \ltrim($templateRootDirectory, '.'); + $templateRootDirectory = \ltrim($templateRootDirectory, '/'); + + if (!empty($templateRepositoryName) && !empty($templateOwnerName) && !empty($templateVersion)) { + // Clone template repo + $tmpTemplateDirectory = '/tmp/builds/' . $deploymentId . '/template'; + + $gitCloneCommandForTemplate = $github->generateCloneCommand($templateOwnerName, $templateRepositoryName, $templateVersion, GitHub::CLONE_TYPE_TAG, $tmpTemplateDirectory, $templateRootDirectory); + $exit = Console::execute($gitCloneCommandForTemplate, '', $stdout, $stderr); + + if ($exit !== 0) { + throw new \Exception('Unable to clone code repository: ' . $stderr); + } + + // Ensure directories + Console::execute('mkdir -p ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory), '', $stdout, $stderr); + Console::execute('mkdir -p ' . \escapeshellarg($tmpDirectory . '/' . $rootDirectory), '', $stdout, $stderr); + + // Merge template into user repo + Console::execute('rsync -av --exclude \'.git\' ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory . '/') . ' ' . \escapeshellarg($tmpDirectory . '/' . $rootDirectory), '', $stdout, $stderr); + + // Commit and push + $exit = Console::execute('git config --global user.email "team@appwrite.io" && git config --global user.name "Appwrite" && cd ' . \escapeshellarg($tmpDirectory) . ' && git add . && git commit -m "Create ' . \escapeshellarg($resource->getAttribute('name', '')) . ' function" && git push origin ' . \escapeshellarg($branchName), '', $stdout, $stderr); + + if ($exit !== 0) { + throw new \Exception('Unable to push code repository: ' . $stderr); + } + + $exit = Console::execute('cd ' . \escapeshellarg($tmpDirectory) . ' && git rev-parse HEAD', '', $stdout, $stderr); + + if ($exit !== 0) { + throw new \Exception('Unable to get vcs commit SHA: ' . $stderr); + } + + $providerCommitHash = \trim($stdout); + $authorUrl = "https://github.com/$cloneOwner"; + + $deployment->setAttribute('providerCommitHash', $providerCommitHash ?? ''); + $deployment->setAttribute('providerCommitAuthorUrl', $authorUrl); + $deployment->setAttribute('providerCommitAuthor', 'Appwrite'); + $deployment->setAttribute('providerCommitMessage', "Create '" . $resource->getAttribute('name', '') . "' function"); + $deployment->setAttribute('providerCommitUrl', "https://github.com/$cloneOwner/$cloneRepository/commit/$providerCommitHash"); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + } + + $tmpPath = '/tmp/builds/' . $deploymentId; + $tmpPathFile = $tmpPath . '/code.tar.gz'; + $localDevice = new Local(); + + if (substr($tmpDirectory, -1) !== '/') { + $tmpDirectory .= '/'; + } + + $directorySize = $localDevice->getDirectorySize($tmpDirectory); + $sizeLimit = (int)System::getEnv('_APP_COMPUTE_SIZE_LIMIT', '30000000'); + + if ($directorySize > $sizeLimit) { + throw new \Exception('Repository directory size should be less than ' . number_format($sizeLimit / 1048576, 2) . ' MBs.'); + } + + Console::execute('find ' . \escapeshellarg($tmpDirectory) . ' -type d -name ".git" -exec rm -rf {} +', '', $stdout, $stderr); + + $tarParamDirectory = '/tmp/builds/' . $deploymentId . '/code' . (empty($rootDirectory) ? '' : '/' . $rootDirectory); + Console::execute('tar --exclude code.tar.gz -czf ' . \escapeshellarg($tmpPathFile) . ' -C ' . \escapeshellcmd($tarParamDirectory) . ' .', '', $stdout, $stderr); // TODO: Replace escapeshellcmd with escapeshellarg if we find a way that doesnt break syntax + + $source = $device->getPath($deployment->getId() . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); + $result = $localDevice->transfer($tmpPathFile, $source, $device); + + if (!$result) { + throw new \Exception("Unable to move file"); + } + + Console::execute('rm -rf ' . \escapeshellarg($tmpPath), '', $stdout, $stderr); + + $directorySize = $device->getFileSize($source); + + $deployment + ->setAttribute('sourcePath', $source) + ->setAttribute('sourceSize', $directorySize) + ->setAttribute('totalSize', $directorySize); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + $this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $resource, $deployment->getId(), $dbForProject, $dbForPlatform); + } + + /** Request the executor to build the code... */ + $deployment->setAttribute('status', 'building'); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + if ($deployment->getInternalId() === $resource->getAttribute('latestDeploymentInternalId', '')) { + $resource = $resource->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument($resource->getCollection(), $resource->getId(), $resource); + } + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + if ($isVcsEnabled) { + $this->runGitAction('building', $github, $providerCommitHash, $owner, $repositoryName, $project, $resource, $deployment->getId(), $dbForProject, $dbForPlatform); + } + + $deploymentModel = new Deployment(); + $deploymentUpdate = + $queueForEvents + ->setProject($project) + ->setEvent("{$resource->getCollection()}.[{$resourceKey}].deployments.[deploymentId].update") + ->setParam($resourceKey, $resource->getId()) + ->setParam('deploymentId', $deployment->getId()) + ->setPayload($deployment->getArrayCopy(array_keys($deploymentModel->getRules()))); + + /** Trigger Webhook */ + $queueForWebhooks + ->from($deploymentUpdate) + ->trigger(); + + /** Trigger Functions */ + $queueForFunctions + ->from($deploymentUpdate) + ->trigger(); + + /** Trigger Realtime Event */ + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + $vars = []; + + // Shared vars + foreach ($resource->getAttribute('varsProject', []) as $var) { + $vars[$var->getAttribute('key')] = $var->getAttribute('value', ''); + } + + // Function vars + foreach ($resource->getAttribute('vars', []) as $var) { + $vars[$var->getAttribute('key')] = $var->getAttribute('value', ''); + } + + // Some runtimes/frameworks can't compile with less memory than this + $minMemory = $resource->getCollection() === 'sites' ? 2048 : 1024; + + if ($resource->getAttribute('framework', '') === 'analog') { + $minMemory = 4096; + } + + $cpus = $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT; + $memory = max($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, $minMemory); + $timeout = (int) System::getEnv('_APP_COMPUTE_BUILD_TIMEOUT', 900); + + + $jwtExpiry = (int)System::getEnv('_APP_COMPUTE_BUILD_TIMEOUT', 900); + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0); + + $apiKey = $jwtObj->encode([ + 'projectId' => $project->getId(), + 'scopes' => $resource->getAttribute('scopes', []) + ]); + + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; + $hostname = System::getEnv('_APP_DOMAIN'); + $endpoint = $protocol . '://' . $hostname . "/v1"; + + // Appwrite vars + $vars = \array_merge($vars, [ + 'APPWRITE_VERSION' => APP_VERSION_STABLE, + 'APPWRITE_REGION' => $project->getAttribute('region'), + 'APPWRITE_DEPLOYMENT_TYPE' => $deployment->getAttribute('type', ''), + 'APPWRITE_VCS_REPOSITORY_ID' => $deployment->getAttribute('providerRepositoryId', ''), + 'APPWRITE_VCS_REPOSITORY_NAME' => $deployment->getAttribute('providerRepositoryName', ''), + 'APPWRITE_VCS_REPOSITORY_OWNER' => $deployment->getAttribute('providerRepositoryOwner', ''), + 'APPWRITE_VCS_REPOSITORY_URL' => $deployment->getAttribute('providerRepositoryUrl', ''), + 'APPWRITE_VCS_REPOSITORY_BRANCH' => $deployment->getAttribute('providerBranch', ''), + 'APPWRITE_VCS_REPOSITORY_BRANCH_URL' => $deployment->getAttribute('providerBranchUrl', ''), + 'APPWRITE_VCS_COMMIT_HASH' => $deployment->getAttribute('providerCommitHash', ''), + 'APPWRITE_VCS_COMMIT_MESSAGE' => $deployment->getAttribute('providerCommitMessage', ''), + 'APPWRITE_VCS_COMMIT_URL' => $deployment->getAttribute('providerCommitUrl', ''), + 'APPWRITE_VCS_COMMIT_AUTHOR_NAME' => $deployment->getAttribute('providerCommitAuthor', ''), + 'APPWRITE_VCS_COMMIT_AUTHOR_URL' => $deployment->getAttribute('providerCommitAuthorUrl', ''), + 'APPWRITE_VCS_ROOT_DIRECTORY' => $deployment->getAttribute('providerRootDirectory', ''), + ]); + + switch ($resource->getCollection()) { + case 'functions': + $vars = [ + ...$vars, + 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, + 'APPWRITE_FUNCTION_API_KEY' => API_KEY_DYNAMIC . '_' . $apiKey, + 'APPWRITE_FUNCTION_ID' => $resource->getId(), + 'APPWRITE_FUNCTION_NAME' => $resource->getAttribute('name'), + 'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(), + 'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(), + 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '', + 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '', + 'APPWRITE_FUNCTION_CPUS' => $cpus, + 'APPWRITE_FUNCTION_MEMORY' => $memory, + ]; + break; + case 'sites': + $vars = [ + ...$vars, + 'APPWRITE_SITE_API_ENDPOINT' => $endpoint, + 'APPWRITE_SITE_API_KEY' => API_KEY_DYNAMIC . '_' . $apiKey, + 'APPWRITE_SITE_ID' => $resource->getId(), + 'APPWRITE_SITE_NAME' => $resource->getAttribute('name'), + 'APPWRITE_SITE_DEPLOYMENT' => $deployment->getId(), + 'APPWRITE_SITE_PROJECT_ID' => $project->getId(), + 'APPWRITE_SITE_RUNTIME_NAME' => $runtime['name'] ?? '', + 'APPWRITE_SITE_RUNTIME_VERSION' => $runtime['version'] ?? '', + 'APPWRITE_SITE_CPUS' => $cpus, + 'APPWRITE_SITE_MEMORY' => $memory, + ]; + break; + } + + $command = $this->getCommand( + resource: $resource, + deployment: $deployment + ); + + $response = null; + $err = null; + + if ($dbForProject->getDocument('deployments', $deploymentId)->getAttribute('status') === 'canceled') { + Console::info('Build has been canceled'); + return; + } + + $isCanceled = false; + + Co::join([ + Co\go(function () use ($executor, &$response, $project, $deployment, $source, $resource, $runtime, $vars, $command, $cpus, $memory, $timeout, &$err, $version) { + try { + if ($version === 'v2') { + $command = 'tar -zxf /tmp/code.tar.gz -C /usr/code && cd /usr/local/src/ && ./build.sh'; + } else { + $command = 'tar -zxf /tmp/code.tar.gz -C /mnt/code && helpers/build.sh ' . \trim(\escapeshellarg($command)); + } + + $response = $executor->createRuntime( + deploymentId: $deployment->getId(), + projectId: $project->getId(), + source: $source, + image: $runtime['image'], + version: $version, + cpus: $cpus, + memory: $memory, + timeout: $timeout, + remove: false, + entrypoint: $deployment->getAttribute('entrypoint', ''), + destination: APP_STORAGE_BUILDS . "/app-{$project->getId()}", + variables: $vars, + command: $command, + outputDirectory: $resource->getAttribute('outputDirectory', '') + ); + } catch (\Throwable $error) { + $err = $error; + } + }), + Co\go(function () use ($executor, $project, &$deployment, &$response, $dbForProject, $timeout, &$err, $queueForRealtime, &$isCanceled) { + try { + $executor->getLogs( + deploymentId: $deployment->getId(), + projectId: $project->getId(), + timeout: $timeout, + callback: function ($logs) use (&$response, &$err, $dbForProject, &$isCanceled, &$deployment, $queueForRealtime) { + if ($isCanceled) { + return; + } + + // If we have response or error from concurrent coroutine, we already have latest logs + if ($response === null && $err === null) { + $deployment = $dbForProject->getDocument('deployments', $deployment->getId()); + + if ($deployment->getAttribute('status') === 'canceled') { + $isCanceled = true; + Console::info('Ignoring realtime logs because build has been canceled'); + return; + } + + // Get only valid UTF8 part - removes leftover half-multibytes causing SQL errors + $logs = \mb_substr($logs, 0, null, 'UTF-8'); + + $currentLogs = $deployment->getAttribute('buildLogs', ''); + + $streamLogs = \str_replace("\\n", "{APPWRITE_LINEBREAK_PLACEHOLDER}", $logs); + foreach (\explode("\n", $streamLogs) as $streamLog) { + if (empty($streamLog)) { + continue; + } + + $streamLog = \str_replace("{APPWRITE_LINEBREAK_PLACEHOLDER}", "\n", $streamLog); + $streamParts = \explode(" ", $streamLog, 2); + + // TODO: use part[0] as timestamp when switching to dbForLogs for build logs + $currentLogs .= $streamParts[1]; + } + + $deployment = $deployment->setAttribute('buildLogs', $currentLogs); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + } + } + ); + } catch (\Throwable $error) { + if (empty($err)) { + $err = $error; + } + } + }), + ]); + + if ($dbForProject->getDocument('deployments', $deploymentId)->getAttribute('status') === 'canceled') { + Console::info('Build has been canceled'); + return; + } + + if ($err) { + throw $err; + } + + $endTime = DateTime::now(); + $durationEnd = \microtime(true); + + $buildSizeLimit = (int)System::getEnv('_APP_COMPUTE_BUILD_SIZE_LIMIT', '2000000000'); + if ($response['size'] > $buildSizeLimit) { + throw new \Exception('Build size should be less than ' . number_format($buildSizeLimit / 1048576, 2) . ' MBs.'); + } + + if ($resource->getCollection() === 'sites') { + // TODO: Refactor with structured command in future, using utopia library (CLI) + $listFilesCommand = "cd /usr/local/build && cd " . \escapeshellarg($resource->getAttribute('outputDirectory', './')) . " && find . -name 'node_modules' -prune -o -type f -print"; + $command = $executor->createCommand( + deploymentId: $deployment->getId(), + projectId: $project->getId(), + command: $listFilesCommand, + timeout: 15 + ); + + $files = \explode("\n", $command['output']); // Parse output + $files = \array_filter($files); // Remove empty + $files = \array_map(fn ($file) => \trim($file), $files); // Remove whitepsaces + $files = \array_map(fn ($file) => \str_starts_with($file, './') ? \substr($file, 2) : $file, $files); // Remove beginning ./ + + $detector = new Rendering($files, $resource->getAttribute('framework', '')); + $detector + ->addOption(new SSR()) + ->addOption(new XStatic()); + $detection = $detector->detect(); + + $adapter = $resource->getAttribute('adapter', ''); + + if (empty($adapter)) { + $resource->setAttribute('adapter', $detection->getName()); + $resource->setAttribute('fallbackFile', $detection->getFallbackFile() ?? ''); + $resource = $dbForProject->updateDocument('sites', $resource->getId(), $resource); + + $deployment->setAttribute('adapter', $detection->getName()); + $deployment->setAttribute('fallbackFile', $detection->getFallbackFile() ?? ''); + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + } elseif ($adapter === 'ssr' && $detection->getName() === 'static') { + throw new \Exception('Adapter mismatch. Detected: ' . $detection->getName() . ' does not match with the set adapter: ' . $adapter); + } + } + + $executor->deleteRuntime($project->getId(), $deployment->getId(), '-build'); + + /** Update the build document */ + $deployment->setAttribute('buildStartedAt', DateTime::format((new \DateTime())->setTimestamp(floor($response['startTime'])))); + $deployment->setAttribute('buildEndedAt', $endTime); + $deployment->setAttribute('buildDuration', \intval(\ceil($durationEnd - $durationStart))); + $deployment->setAttribute('buildPath', $response['path']); + $deployment->setAttribute('buildSize', $response['size']); + $deployment->setAttribute('totalSize', $deployment->getAttribute('buildSize', 0) + $deployment->getAttribute('sourceSize', 0)); + + $logs = ''; + foreach ($response['output'] as $log) { + $logs .= $log['content']; + } + + if ($resource->getCollection() === 'sites') { + $date = \date('H:i:s'); + $logs .= "[$date] [appwrite] Screenshot capturing started. \n"; + } + + $deployment->setAttribute('buildLogs', $logs); + + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + /** Screenshot site */ + if ($resource->getCollection() === 'sites') { + try { + $rule = Authorization::skip(fn () => $dbForPlatform->findOne('rules', [ + Query::equal("projectInternalId", [$project->getInternalId()]), + Query::equal("type", ["deployment"]), + Query::equal('deploymentInternalId', [$deployment->getInternalId()]), + ])); + + if ($rule->isEmpty()) { + throw new \Exception("Rule for build not found"); + } + + $client = new FetchClient(); + $client->setTimeout(\intval($resource->getAttribute('timeout', '15'))); + $client->addHeader('content-type', FetchClient::CONTENT_TYPE_APPLICATION_JSON); + + $bucket = Authorization::skip(fn () => $dbForPlatform->getDocument('buckets', 'screenshots')); + + $configs = [ + 'screenshotLight' => [ + 'headers' => [ 'x-appwrite-hostname' => $rule->getAttribute('domain') ], + 'url' => 'http://appwrite/?appwrite-preview=1&appwrite-theme=light', + 'theme' => 'light' + ], + 'screenshotDark' => [ + 'headers' => [ 'x-appwrite-hostname' => $rule->getAttribute('domain') ], + 'url' => 'http://appwrite/?appwrite-preview=1&appwrite-theme=dark', + 'theme' => 'dark' + ], + ]; + + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 900, 0); + $apiKey = $jwtObj->encode([ + 'hostnameOverride' => true, + 'disabledMetrics' => [ + METRIC_EXECUTIONS, + METRIC_EXECUTIONS_COMPUTE, + METRIC_EXECUTIONS_MB_SECONDS, + METRIC_NETWORK_REQUESTS, + METRIC_NETWORK_INBOUND, + METRIC_NETWORK_OUTBOUND, + str_replace(["{resourceType}"], [RESOURCE_TYPE_SITES], METRIC_RESOURCE_TYPE_EXECUTIONS), + str_replace(["{resourceType}"], [RESOURCE_TYPE_SITES], METRIC_RESOURCE_TYPE_EXECUTIONS_COMPUTE), + str_replace(["{resourceType}"], [RESOURCE_TYPE_SITES], METRIC_RESOURCE_TYPE_EXECUTIONS_MB_SECONDS), + str_replace(["{resourceType}", "{resourceInternalId}"], [RESOURCE_TYPE_SITES, $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS), + str_replace(["{resourceType}", "{resourceInternalId}"], [RESOURCE_TYPE_SITES, $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_COMPUTE), + str_replace(["{resourceType}", "{resourceInternalId}"], [RESOURCE_TYPE_SITES, $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_MB_SECONDS), + ], + 'bannerDisabled' => true, + 'projectCheckDisabled' => true, + 'previewAuthDisabled' => true, + 'deploymentStatusIgnored' => true + ]); + + $screenshotError = null; + $screenshots = batch(\array_map(function ($key) use ($configs, $apiKey, $resource, $client, &$screenshotError) { + return function () use ($key, $configs, $apiKey, $resource, $client, &$screenshotError) { + try { + $config = $configs[$key]; + + $config['headers'] = \array_merge($config['headers'] ?? [], [ + 'x-appwrite-key' => API_KEY_DYNAMIC . '_' . $apiKey + ]); + $config['sleep'] = 3000; + + $frameworks = Config::getParam('frameworks', []); + $framework = $frameworks[$resource->getAttribute('framework', '')] ?? null; + if (!is_null($framework)) { + $config['sleep'] = $framework['screenshotSleep']; + } + + $fetchResponse = $client->fetch( + url: 'http://appwrite-browser:3000/v1/screenshots', + method: 'POST', + body: $config + ); + + if ($fetchResponse->getStatusCode() >= 400) { + throw new \Exception($fetchResponse->getBody()); + } + + $screenshot = $fetchResponse->getBody(); + + return ['key' => $key, 'screenshot' => $screenshot]; + } catch (\Throwable $th) { + $screenshotError = $th->getMessage(); + return; + } + }; + }, \array_keys($configs))); + + if (!\is_null($screenshotError)) { + throw new \Exception($screenshotError); + } + + foreach ($screenshots as $data) { + $key = $data['key']; + $screenshot = $data['screenshot']; + + $fileId = ID::unique(); + $fileName = $fileId . '.png'; + $path = $deviceForFiles->getPath($fileName); + $path = str_ireplace($deviceForFiles->getRoot(), $deviceForFiles->getRoot() . DIRECTORY_SEPARATOR . $bucket->getId(), $path); // Add bucket id to path after root + $success = $deviceForFiles->write($path, $screenshot, "image/png"); + + if (!$success) { + throw new \Exception("Screenshot failed to save"); + } + + $teamId = $project->getAttribute('teamId', ''); + $file = new Document([ + '$id' => $fileId, + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + ], + 'bucketId' => $bucket->getId(), + 'bucketInternalId' => $bucket->getInternalId(), + 'name' => $fileName, + 'path' => $path, + 'signature' => $deviceForFiles->getFileHash($path), + 'mimeType' => $deviceForFiles->getFileMimeType($path), + 'sizeOriginal' => \strlen($screenshot), + 'sizeActual' => $deviceForFiles->getFileSize($path), + 'algorithm' => Compression::GZIP, + 'comment' => '', + 'chunksTotal' => 1, + 'chunksUploaded' => 1, + 'openSSLVersion' => null, + 'openSSLCipher' => null, + 'openSSLTag' => null, + 'openSSLIV' => null, + 'search' => implode(' ', [$fileId, $fileName]), + 'metadata' => ['content_type' => $deviceForFiles->getFileMimeType($path)], + ]); + + Authorization::skip(fn () => $dbForPlatform->createDocument('bucket_' . $bucket->getInternalId(), $file)); + + $deployment->setAttribute($key, $fileId); + } + + $logs = $deployment->getAttribute('buildLogs', ''); + $date = \date('H:i:s'); + $logs .= "[$date] [appwrite] Screenshot capturing finished. \n"; + + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + } catch (\Throwable $th) { + Console::warning("Screenshot failed to generate:"); + Console::warning($th->getMessage()); + Console::warning($th->getTraceAsString()); + + $logs = $deployment->getAttribute('buildLogs', ''); + $date = \date('H:i:s'); + $logs .= "[$date] [appwrite] Screenshot capturing failed. Deployment will continue. \n"; + + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); + } + } + + $logs = $deployment->getAttribute('buildLogs', ''); + $date = \date('H:i:s'); + $logs .= "[$date] [appwrite] Deployment finished. \n"; + $deployment->setAttribute('buildLogs', $logs); + + /** Update the status */ + $deployment->setAttribute('status', 'ready'); + $deployment = $dbForProject->updateDocument('deployments', $deploymentId, $deployment); + + if ($deployment->getInternalId() === $resource->getAttribute('latestDeploymentInternalId', '')) { + $resource = $resource->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument($resource->getCollection(), $resource->getId(), $resource); + } + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + if ($isVcsEnabled) { + $this->runGitAction('ready', $github, $providerCommitHash, $owner, $repositoryName, $project, $resource, $deployment->getId(), $dbForProject, $dbForPlatform); + } + + Console::success("Build id: $deploymentId created"); + + /** Set auto deploy */ + if ($deployment->getAttribute('activate') === true) { + $resource->setAttribute('live', true); + switch ($resource->getCollection()) { + case 'functions': + $oldDeploymentInternalId = $resource->getAttribute('deploymentInternalId', ''); + + $resource->setAttribute('deploymentId', $deployment->getId()); + $resource->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $resource->setAttribute('deploymentCreatedAt', $deployment->getCreatedAt()); + $resource = $dbForProject->updateDocument('functions', $resource->getId(), $resource); + + $queries = [ + Query::equal("projectInternalId", [$project->getInternalId()]), + Query::equal("type", ["deployment"]), + Query::equal("deploymentResourceInternalId", [$resource->getInternalId()]), + Query::equal('deploymentResourceType', ['function']), + Query::equal('trigger', ['manual']), + ]; + + if (empty($oldDeploymentInternalId)) { + $queries[] = Query::equal("deploymentInternalId", [""]); + } else { + $queries[] = Query::equal("deploymentInternalId", [$oldDeploymentInternalId]); + } + + $rulesUpdated = false; + $this->listRules($project, $queries, $dbForPlatform, function (Document $rule) use ($dbForPlatform, $deployment, &$rulesUpdated) { + $rulesUpdated = true; + $rule = $rule + ->setAttribute('deploymentId', $deployment->getId()) + ->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); + }); + break; + case 'sites': + $oldDeploymentInternalId = $resource->getAttribute('deploymentInternalId', ''); + + $resource->setAttribute('deploymentId', $deployment->getId()); + $resource->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $resource->setAttribute('deploymentScreenshotDark', $deployment->getAttribute('screenshotDark', '')); + $resource->setAttribute('deploymentScreenshotLight', $deployment->getAttribute('screenshotLight', '')); + $resource->setAttribute('deploymentCreatedAt', $deployment->getCreatedAt()); + $resource = $dbForProject->updateDocument('sites', $resource->getId(), $resource); + $queries = [ + Query::equal("projectInternalId", [$project->getInternalId()]), + Query::equal("type", ["deployment"]), + Query::equal("deploymentResourceInternalId", [$resource->getInternalId()]), + Query::equal('deploymentResourceType', ['site']), + Query::equal('trigger', ['manual']), + ]; + + if (empty($oldDeploymentInternalId)) { + $queries[] = Query::equal("deploymentInternalId", [""]); + } else { + $queries[] = Query::equal("deploymentInternalId", [$oldDeploymentInternalId]); + } + + $this->listRules($project, $queries, $dbForPlatform, function (Document $rule) use ($dbForPlatform, $deployment) { + $rule = $rule + ->setAttribute('deploymentId', $deployment->getId()) + ->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); + }); + + break; + } + } + + if ($resource->getCollection() === 'sites') { + // VCS branch + $branchName = $deployment->getAttribute('providerBranch'); + if (!empty($branchName)) { + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $domain = "branch-{$branchName}-{$resource->getId()}-{$project->getId()}.{$sitesDomain}"; + $ruleId = md5($domain); + + try { + $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'type' => 'deployment', + 'trigger' => 'deployment', + 'deploymentId' => $deployment->getId(), + 'deploymentInternalId' => $deployment->getInternalId(), + 'deploymentResourceType' => 'site', + 'deploymentResourceId' => $deployment->getId(), + 'deploymentResourceInternalId' => $deployment->getInternalId(), + 'deploymentVcsProviderBranch' => $branchName, + 'status' => 'verified', + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain]), + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') + ])); + } catch (Duplicate $err) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); + $rule = $rule + ->setAttribute('deploymentId', $deployment->getId()) + ->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); + } + + $this->listRules($project, [ + Query::equal("projectInternalId", [$project->getInternalId()]), + Query::equal("type", ["deployment"]), + Query::equal("deploymentResourceInternalId", [$resource->getInternalId()]), + Query::equal('deploymentResourceType', ['site']), + Query::equal("deploymentVcsProviderBranch", [$branchName]), + Query::equal("trigger", ['manual']), + ], $dbForPlatform, function (Document $rule) use ($dbForPlatform, $deployment) { + $rule = $rule + ->setAttribute('deploymentId', $deployment->getId()) + ->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); + }); + } + } + + if ($dbForProject->getDocument('deployments', $deploymentId)->getAttribute('status') === 'canceled') { + Console::info('Build has been canceled'); + return; + } + + /** Update function schedule */ + + // Inform scheduler if function is still active + if ($resource->getCollection() === 'functions') { + $schedule = $dbForPlatform->getDocument('schedules', $resource->getAttribute('scheduleId')); + $schedule + ->setAttribute('resourceUpdatedAt', DateTime::now()) + ->setAttribute('schedule', $resource->getAttribute('schedule')) + ->setAttribute('active', !empty($resource->getAttribute('schedule')) && !empty($resource->getAttribute('deploymentId'))); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); + } + } catch (\Throwable $th) { + Console::warning('Build failed:'); + Console::error($th->getMessage()); + Console::error($th->getFile()); + Console::error($th->getLine()); + Console::error($th->getTraceAsString()); + + if ($dbForProject->getDocument('deployments', $deploymentId)->getAttribute('status') === 'canceled') { + Console::info('Build has been canceled'); + return; + } + + // Color message red + $message = $th->getMessage(); + if (!\str_contains($message, '')) { + $message = "" . $message; + } + + $endTime = DateTime::now(); + $durationEnd = \microtime(true); + $deployment->setAttribute('buildEndedAt', $endTime); + $deployment->setAttribute('buildDuration', \intval(\ceil($durationEnd - $durationStart))); + $deployment->setAttribute('status', 'failed'); + $deployment->setAttribute('buildLogs', $message); + + $deployment = $dbForProject->updateDocument('deployments', $deploymentId, $deployment); + + if ($deployment->getInternalId() === $resource->getAttribute('latestDeploymentInternalId', '')) { + $resource = $resource->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument($resource->getCollection(), $resource->getId(), $resource); + } + + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + if ($isVcsEnabled) { + $this->runGitAction('failed', $github, $providerCommitHash, $owner, $repositoryName, $project, $resource, $deployment->getId(), $dbForProject, $dbForPlatform); + } + } finally { + $queueForRealtime + ->setPayload($deployment->getArrayCopy()) + ->trigger(); + + $this->sendUsage( + resource:$resource, + deployment: $deployment, + project: $project, + queue: $queueForStatsUsage + ); + } + } + + protected function sendUsage(Document $resource, Document $deployment, Document $project, StatsUsage $queue): void + { + switch ($deployment->getAttribute('status')) { + case 'ready': + $queue + ->addMetric(METRIC_BUILDS_SUCCESS, 1) // per project + ->addMetric(METRIC_BUILDS_COMPUTE_SUCCESS, (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_SUCCESS), 1) // per function + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_COMPUTE_SUCCESS), (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_SUCCESS), 1) // per function + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_COMPUTE_SUCCESS), (int)$deployment->getAttribute('buildDuration', 0) * 1000); + break; + case 'failed': + $queue + ->addMetric(METRIC_BUILDS_FAILED, 1) // per project + ->addMetric(METRIC_BUILDS_COMPUTE_FAILED, (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_FAILED), 1) // per function + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_COMPUTE_FAILED), (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_FAILED), 1) // per function + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_COMPUTE_FAILED), (int)$deployment->getAttribute('buildDuration', 0) * 1000); + break; + } + + $queue + ->addMetric(METRIC_BUILDS, 1) // per project + ->addMetric(METRIC_BUILDS_STORAGE, $deployment->getAttribute('buildSize', 0)) + ->addMetric(METRIC_BUILDS_COMPUTE, (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(METRIC_BUILDS_MB_SECONDS, (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $deployment->getAttribute('buildDuration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS), 1) // per function + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_STORAGE), $deployment->getAttribute('buildSize', 0)) + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_COMPUTE), (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(str_replace(['{resourceType}'], [$deployment->getAttribute('resourceType')], METRIC_RESOURCE_TYPE_BUILDS_MB_SECONDS), (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $deployment->getAttribute('buildDuration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS), 1) // per function + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE), $deployment->getAttribute('buildSize', 0)) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_COMPUTE), (int)$deployment->getAttribute('buildDuration', 0) * 1000) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$deployment->getAttribute('resourceType'), $resource->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_MB_SECONDS), (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $deployment->getAttribute('buildDuration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->setProject($project) + ->trigger(); + } + + protected function getRuntime(Document $resource, string $version): array + { + $runtimes = Config::getParam($version === 'v2' ? 'runtimes-v2' : 'runtimes', []); + $key = $resource->getAttribute('runtime'); + $runtime = match ($resource->getCollection()) { + 'functions' => $runtimes[$resource->getAttribute('runtime')] ?? null, + 'sites' => $runtimes[$resource->getAttribute('buildRuntime')] ?? null, + default => null + }; + if (\is_null($runtime)) { + throw new \Exception('Runtime "' . $resource->getAttribute('runtime', '') . '" is not supported'); + } + + return $runtime; + } + + protected function getVersion(Document $resource): string + { + return match ($resource->getCollection()) { + 'functions' => $resource->getAttribute('version', 'v2'), + 'sites' => 'v5', + }; + } + + protected function getCommand(Document $resource, Document $deployment): string + { + if ($resource->getCollection() === 'functions') { + return $deployment->getAttribute('buildCommands', ''); + } elseif ($resource->getCollection() === 'sites') { + $commands = []; + + $frameworks = Config::getParam('frameworks', []); + $framework = $frameworks[$resource->getAttribute('framework', '')] ?? null; + + $envCommand = ''; + $bundleCommand = ''; + if (!is_null($framework)) { + $envCommand = $framework['envCommand'] ?? ''; + $bundleCommand = $framework['bundleCommand'] ?? ''; + } + + $commands[] = $envCommand; + $commands[] = $deployment->getAttribute('buildCommands', ''); + $commands[] = $bundleCommand; + + $commands = array_filter($commands, fn ($command) => !empty($command)); + + return implode(' && ', $commands); + } + + return ''; + } + + /** + * @param string $status + * @param GitHub $github + * @param string $providerCommitHash + * @param string $owner + * @param string $repositoryName + * @param Document $project + * @param Document $resource + * @param string $deploymentId + * @param Database $dbForProject + * @param Database $dbForPlatform + * @return void + * @throws Structure + * @throws \Utopia\Database\Exception + * @throws Authorization + * @throws Conflict + * @throws Restricted + */ + protected function runGitAction( + string $status, + GitHub $github, + string $providerCommitHash, + string $owner, + string $repositoryName, + Document $project, + Document $resource, + string $deploymentId, + Database $dbForProject, + Database $dbForPlatform + ): void { + if ($resource->getAttribute('providerSilentMode', false) === true) { + return; + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + $commentId = $deployment->getAttribute('providerCommentId', ''); + + if (!empty($providerCommitHash)) { + $message = match ($status) { + 'ready' => 'Build succeeded.', + 'failed' => 'Build failed.', + 'processing' => 'Building...', + default => $status + }; + + $state = match ($status) { + 'ready' => 'success', + 'failed' => 'failure', + 'processing' => 'pending', + default => $status + }; + + $resourceName = $resource->getAttribute('name'); + $projectName = $project->getAttribute('name'); + + $name = "{$resourceName} ({$projectName})"; + + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; + $hostname = System::getEnv('_APP_DOMAIN'); + + $projectId = $project->getId(); + $resourceId = $resource->getId(); + $providerTargetUrl = match ($resource->getCollection()) { + 'functions' => "{$protocol}://{$hostname}/console/project-{$projectId}/functions/function-{$resourceId}", + 'sites' => "{$protocol}://{$hostname}/console/project-{$projectId}/sites/site-{$resourceId}", + default => throw new \Exception('Invalid resource type') + }; + + $github->updateCommitStatus($repositoryName, $providerCommitHash, $owner, $state, $message, $providerTargetUrl, $name); + } + + if (!empty($commentId)) { + $retries = 0; + + while (true) { + $retries++; + + try { + $dbForPlatform->createDocument('vcsCommentLocks', new Document([ + '$id' => $commentId + ])); + break; + } catch (\Throwable $err) { + if ($retries >= 9) { + throw $err; + } + + \sleep(1); + } + } + + // Wrap in try/finally to ensure lock file gets deleted + try { + $resourceType = match($resource->getCollection()) { + 'functions' => 'function', + 'sites' => 'site', + default => throw new \Exception('Invalid resource type') + }; + + $rule = Authorization::skip(fn () => $dbForPlatform->findOne('rules', [ + Query::equal("projectInternalId", [$project->getInternalId()]), + Query::equal("type", ["deployment"]), + Query::equal("deploymentInternalId", [$deployment->getInternalId()]), + ])); + + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; + $previewUrl = match($resource->getCollection()) { + 'functions' => '', + 'sites' => !empty($rule) ? ("{$protocol}://" . $rule->getAttribute('domain', '')) : '', + default => throw new \Exception('Invalid resource type') + }; + + $comment = new Comment(); + $comment->parseComment($github->getComment($owner, $repositoryName, $commentId)); + $comment->addBuild($project, $resource, $resourceType, $status, $deployment->getId(), ['type' => 'logs'], $previewUrl); + $github->updateComment($owner, $repositoryName, $commentId, $comment->generateComment()); + } finally { + $dbForPlatform->deleteDocument('vcsCommentLocks', $commentId); + } + } + } + + protected function listRules(Document $project, array $queries, Database $database, callable $callback): void + { + $limit = 100; + $cursor = null; + + do { + $queries = \array_merge([ + Query::limit($limit), + Query::equal("projectInternalId", [$project->getInternalId()]) + ], $queries); + + if ($cursor !== null) { + $queries[] = Query::cursorAfter($cursor); + } + + $results = $database->find('rules', $queries); + + $total = \count($results); + if ($total > 0) { + $cursor = $results[$total - 1]; + } + + if ($total < $limit) { + $cursor = null; + } + + foreach ($results as $document) { + if (is_callable($callback)) { + $callback($document); + } + } + } while (!\is_null($cursor)); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php new file mode 100644 index 00000000000..43f7d4ac028 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php @@ -0,0 +1,96 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects\Http\DevKeys; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class Create extends Action +{ + use HTTP; + public static function getName() + { + return 'createDevKey'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/projects/:projectId/dev-keys') + ->desc('Create dev key') + ->groups(['api', 'projects']) + ->label('scope', 'projects.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'devKeys', + name: 'createDevKey', + description: <<<EOT + Create a new project dev key. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development. Strictly meant for development purposes only. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_DEV_KEY + ) + ], + contentType: ContentType::JSON + )) + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') + ->param('expire', null, new DatetimeValidator(), 'Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.', false) + ->inject('user') + ->inject('response') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action(string $projectId, string $name, ?string $expire, Document $user, Response $response, Database $dbForPlatform) + { + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + throw new Exception(Exception::PROJECT_NOT_FOUND); + } + + $devKeyId = ID::unique(); + $key = new Document([ + '$id' => $devKeyId, + '$permissions' => [ + Permission::read(Role::user($user->getId())), + Permission::update(Role::user($user->getId())), + Permission::delete(Role::user($user->getId())), + ], + 'projectInternalId' => $project->getInternalId(), + 'projectId' => $project->getId(), + 'name' => $name, + 'expire' => $expire, + 'sdks' => [], + 'accessedAt' => null, + 'secret' => \bin2hex(\random_bytes(128)), + ]); + + $key = $dbForPlatform->createDocument('devKeys', $key); + + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($key, Response::MODEL_DEV_KEY); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Delete.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Delete.php new file mode 100644 index 00000000000..f6cb966f500 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Delete.php @@ -0,0 +1,76 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects\Http\DevKeys; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Action +{ + use HTTP; + public static function getName() + { + return 'deleteDevKey'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/projects/:projectId/dev-keys/:keyId') + ->desc('Delete dev key') + ->groups(['api', 'projects']) + ->label('scope', 'projects.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'devKeys', + name: 'deleteDevKey', + description: <<<EOT + Delete a project\'s dev key by its unique ID. Once deleted, the key will no longer allow bypassing of rate limits and better logging of errors. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE + ) + ], + contentType: ContentType::NONE + )) + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('keyId', '', new UID(), 'Key unique ID.') + ->inject('response') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action(string $projectId, string $keyId, Response $response, Database $dbForPlatform) + { + + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + throw new Exception(Exception::PROJECT_NOT_FOUND); + } + + $key = $dbForPlatform->getDocument('devKeys', $keyId); + + if ($key === false || $key->isEmpty() || $key->getAttribute('projectInternalId') !== $project->getInternalId()) { + throw new Exception(Exception::KEY_NOT_FOUND); + } + + $dbForPlatform->deleteDocument('devKeys', $key->getId()); + + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Get.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Get.php new file mode 100644 index 00000000000..bd472b26e7f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Get.php @@ -0,0 +1,72 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects\Http\DevKeys; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Action +{ + use HTTP; + public static function getName() + { + return 'getDevKey'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/projects/:projectId/dev-keys/:keyId') + ->desc('Get dev key') + ->groups(['api', 'projects']) + ->label('scope', 'projects.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'devKeys', + name: 'getDevKey', + description: <<<EOT + Get a project\'s dev key by its unique ID. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEV_KEY + ) + ], + contentType: ContentType::JSON + )) + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('keyId', '', new UID(), 'Key unique ID.') + ->inject('response') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action(string $projectId, string $keyId, Response $response, Database $dbForPlatform) + { + + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + throw new Exception(Exception::PROJECT_NOT_FOUND); + } + + $key = $dbForPlatform->getDocument('devKeys', $keyId); + + if ($key === false || $key->isEmpty() || $key->getAttribute('projectInternalId') !== $project->getInternalId()) { + throw new Exception(Exception::KEY_NOT_FOUND); + } + + $response->dynamic($key, Response::MODEL_DEV_KEY); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Update.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Update.php new file mode 100644 index 00000000000..d5e6839174c --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Update.php @@ -0,0 +1,82 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects\Http\DevKeys; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class Update extends Action +{ + use HTTP; + public static function getName() + { + return 'updateDevKey'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_PUT) + ->setHttpPath('/v1/projects/:projectId/dev-keys/:keyId') + ->desc('Update dev key') + ->groups(['api', 'projects']) + ->label('scope', 'projects.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'devKeys', + name: 'updateDevKey', + description: <<<EOT + Update a project\'s dev key by its unique ID. Use this endpoint to update a project\'s dev key name or expiration time.' + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEV_KEY + ) + ], + contentType: ContentType::JSON + )) + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('keyId', '', new UID(), 'Key unique ID.') + ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') + ->param('expire', null, new DatetimeValidator(), 'Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.') + ->inject('response') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + public function action(string $projectId, string $keyId, string $name, ?string $expire, Response $response, Database $dbForPlatform) + { + + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + throw new Exception(Exception::PROJECT_NOT_FOUND); + } + + $key = $dbForPlatform->getDocument('devKeys', $keyId); + + if ($key === false || $key->isEmpty() || $key->getAttribute('projectInternalId') !== $project->getInternalId()) { + throw new Exception(Exception::KEY_NOT_FOUND); + } + + $key + ->setAttribute('name', $name) + ->setAttribute('expire', $expire); + + $dbForPlatform->updateDocument('devKeys', $key->getId(), $key); + + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); + + $response->dynamic($key, Response::MODEL_DEV_KEY); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/XList.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/XList.php new file mode 100644 index 00000000000..864531d32d2 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/XList.php @@ -0,0 +1,83 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects\Http\DevKeys; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\DevKeys; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class XList extends Action +{ + use HTTP; + public static function getName() + { + return 'listDevKeys'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/projects/:projectId/dev-keys') + ->desc('List dev keys') + ->groups(['api', 'projects']) + ->label('scope', 'projects.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'devKeys', + name: 'listDevKeys', + description: <<<EOT + List all the project\'s dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.' + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEV_KEY_LIST + ) + ], + contentType: ContentType::JSON + )) + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('queries', [], new DevKeys(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', DevKeys::ALLOWED_ATTRIBUTES), true) + ->inject('response') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action(string $projectId, ?array $queries, Response $response, Database $dbForPlatform) + { + + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + throw new Exception(Exception::PROJECT_NOT_FOUND); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + $queries[] = Query::equal('projectInternalId', [$project->getInternalId()]); + + $keys = $dbForPlatform->find('devKeys', $queries); + + $response->dynamic(new Document([ + 'devKeys' => $keys, + 'total' => count($keys), + ]), Response::MODEL_DEV_KEY_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Module.php b/src/Appwrite/Platform/Modules/Projects/Module.php new file mode 100644 index 00000000000..2a550acf546 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Module.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects; + +use Appwrite\Platform\Modules\Projects\Services\Http; +use Utopia\Platform\Module as Base; + +class Module extends Base +{ + public function __construct() + { + $this->addService('http', new Http()); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Services/Http.php b/src/Appwrite/Platform/Modules/Projects/Services/Http.php new file mode 100644 index 00000000000..cec8ed6d161 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Services/Http.php @@ -0,0 +1,23 @@ +<?php + +namespace Appwrite\Platform\Modules\Projects\Services; + +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Create as CreateDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Delete as DeleteDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Get as GetDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Update as UpdateDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\XList as ListDevKeys; +use Utopia\Platform\Service; + +class Http extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_HTTP; + $this->addAction(CreateDevKey::getName(), new CreateDevKey()); + $this->addAction(UpdateDevKey::getName(), new UpdateDevKey()); + $this->addAction(GetDevKey::getName(), new GetDevKey()); + $this->addAction(ListDevKeys::getName(), new ListDevKeys()); + $this->addAction(DeleteDevKey::getName(), new DeleteDevKey()); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php new file mode 100644 index 00000000000..443a5db35e5 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php @@ -0,0 +1,187 @@ +<?php + +namespace Appwrite\Platform\Modules\Proxy\Http\Rules\API; + +use Appwrite\Event\Certificate; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Network\Validator\DNS; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Helpers\ID; +use Utopia\Domains\Domain; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; +use Utopia\Validator\AnyOf; +use Utopia\Validator\Domain as ValidatorDomain; +use Utopia\Validator\IP; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createAPIRule'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/proxy/rules/api') + ->groups(['api', 'proxy']) + ->desc('Create API rule') + ->label('scope', 'rules.write') + ->label('event', 'rules.[ruleId].create') + ->label('audits.event', 'rule.create') + ->label('audits.resource', 'rule/{response.$id}') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'createAPIRule', + description: <<<EOT + Create a new proxy rule for serving Appwrite's API on custom domain. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) + ->label('abuse-limit', 10) + ->label('abuse-key', 'userId:{userId}, url:{url}') + ->label('abuse-time', 60) + ->param('domain', null, new ValidatorDomain(), 'Domain name.') + ->inject('response') + ->inject('project') + ->inject('queueForCertificates') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action(string $domain, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform) + { + $deniedDomains = [ + 'localhost', + APP_HOSTNAME_INTERNAL + ]; + + $mainDomain = System::getEnv('_APP_DOMAIN', ''); + $deniedDomains[] = $mainDomain; + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + if (!empty($sitesDomain)) { + $deniedDomains[] = $sitesDomain; + } + + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + if (!empty($functionsDomain)) { + $deniedDomains[] = $functionsDomain; + } + + $denyListDomains = System::getEnv('_APP_CUSTOM_DOMAIN_DENY_LIST', ''); + $denyListDomains = \array_map('trim', explode(',', $denyListDomains)); + foreach ($denyListDomains as $denyListDomain) { + if (empty($denyListDomain)) { + continue; + } + $deniedDomains[] = $denyListDomain; + } + + if (\in_array($domain, $deniedDomains)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + try { + $domain = new Domain($domain); + } catch (\Throwable) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.'); + } + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique(); + + $status = 'created'; + if (\str_ends_with($domain->get(), $functionsDomain) || \str_ends_with($domain->get(), $sitesDomain)) { + $status = 'verified'; + } + if ($status === 'created') { + $validators = []; + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); + if (!$targetCNAME->isKnown() || $targetCNAME->isTest()) { + $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); + } + if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); + } + if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); + } + + if (empty($validators)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'At least one of domain targets environment variable must be configured.'); + } + + $validator = new AnyOf($validators, AnyOf::TYPE_STRING); + if ($validator->isValid($domain->get())) { + $status = 'verifying'; + } + } + + $owner = ''; + if ( + ($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) || + ($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain)) + ) { + $owner = 'Appwrite'; + } + + $rule = new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain->get(), + 'status' => $status, + 'type' => 'api', + 'trigger' => 'manual', + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain->get()]), + 'owner' => $owner, + 'region' => $project->getAttribute('region') + ]); + + try { + $rule = $dbForPlatform->createDocument('rules', $rule); + } catch (Duplicate $e) { + throw new Exception(Exception::RULE_ALREADY_EXISTS); + } + + if ($rule->getAttribute('status', '') === 'verifying') { + $queueForCertificates + ->setDomain(new Document([ + 'domain' => $rule->getAttribute('domain') + ])) + ->trigger(); + } + + $queueForEvents->setParam('ruleId', $rule->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($rule, Response::MODEL_PROXY_RULE); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php new file mode 100644 index 00000000000..039f5831502 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php @@ -0,0 +1,205 @@ +<?php + +namespace Appwrite\Platform\Modules\Proxy\Http\Rules\Function; + +use Appwrite\Event\Certificate; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Network\Validator\DNS; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Validator\UID; +use Utopia\Domains\Domain; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; +use Utopia\Validator\AnyOf; +use Utopia\Validator\Domain as ValidatorDomain; +use Utopia\Validator\IP; +use Utopia\Validator\Text; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createFunctionRule'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/proxy/rules/function') + ->groups(['api', 'proxy']) + ->desc('Create function rule') + ->label('scope', 'rules.write') + ->label('event', 'rules.[ruleId].create') + ->label('audits.event', 'rule.create') + ->label('audits.resource', 'rule/{response.$id}') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'createFunctionRule', + description: <<<EOT + Create a new proxy rule for executing Appwrite Function on custom domain. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) + ->label('abuse-limit', 10) + ->label('abuse-key', 'userId:{userId}, url:{url}') + ->label('abuse-time', 60) + ->param('domain', null, new ValidatorDomain(), 'Domain name.') + ->param('functionId', '', new UID(), 'ID of function to be executed.') + ->param('branch', '', new Text(255, 0), 'Name of VCS branch to deploy changes automatically', true) + ->inject('response') + ->inject('project') + ->inject('queueForCertificates') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $domain, string $functionId, string $branch, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject) + { + $deniedDomains = [ + 'localhost', + APP_HOSTNAME_INTERNAL + ]; + + $mainDomain = System::getEnv('_APP_DOMAIN', ''); + $deniedDomains[] = $mainDomain; + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + if (!empty($sitesDomain)) { + $deniedDomains[] = $sitesDomain; + } + + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + if (!empty($functionsDomain)) { + $deniedDomains[] = $functionsDomain; + } + + $denyListDomains = System::getEnv('_APP_CUSTOM_DOMAIN_DENY_LIST', ''); + $denyListDomains = \array_map('trim', explode(',', $denyListDomains)); + foreach ($denyListDomains as $denyListDomain) { + if (empty($denyListDomain)) { + continue; + } + $deniedDomains[] = $denyListDomain; + } + + if (\in_array($domain, $deniedDomains)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + try { + $domain = new Domain($domain); + } catch (\Throwable) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.'); + } + + $function = $dbForProject->getDocument('functions', $functionId); + if ($function->isEmpty()) { + throw new Exception(Exception::RULE_RESOURCE_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $function->getAttribute('deploymentId', '')); + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique(); + + $status = 'created'; + if (\str_ends_with($domain->get(), $functionsDomain) || \str_ends_with($domain->get(), $sitesDomain)) { + $status = 'verified'; + } + if ($status === 'created') { + $validators = []; + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); + if (!$targetCNAME->isKnown() || $targetCNAME->isTest()) { + $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); + } + if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); + } + if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); + } + + if (empty($validators)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'At least one of domain targets environment variable must be configured.'); + } + + $validator = new AnyOf($validators, AnyOf::TYPE_STRING); + if ($validator->isValid($domain->get())) { + $status = 'verifying'; + } + } + + $owner = ''; + if ( + ($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) || + ($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain)) + ) { + $owner = 'Appwrite'; + } + + $rule = new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain->get(), + 'status' => $status, + 'type' => 'deployment', + 'trigger' => 'manual', + 'deploymentId' => $deployment->isEmpty() ? '' : $deployment->getId(), + 'deploymentInternalId' => $deployment->isEmpty() ? '' : $deployment->getInternalId(), + 'deploymentResourceType' => 'function', + 'deploymentResourceId' => $function->getId(), + 'deploymentResourceInternalId' => $function->getInternalId(), + 'deploymentVcsProviderBranch' => $branch, + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain->get(), $branch]), + 'owner' => $owner, + 'region' => $project->getAttribute('region') + ]); + + try { + $rule = $dbForPlatform->createDocument('rules', $rule); + } catch (Duplicate $e) { + throw new Exception(Exception::RULE_ALREADY_EXISTS); + } + + if ($rule->getAttribute('status', '') === 'verifying') { + $queueForCertificates + ->setDomain(new Document([ + 'domain' => $rule->getAttribute('domain') + ])) + ->trigger(); + } + + $queueForEvents->setParam('ruleId', $rule->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($rule, Response::MODEL_PROXY_RULE); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php new file mode 100644 index 00000000000..a693e3ec303 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php @@ -0,0 +1,193 @@ +<?php + +namespace Appwrite\Platform\Modules\Proxy\Http\Rules\Redirect; + +use Appwrite\Event\Certificate; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Network\Validator\DNS; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Helpers\ID; +use Utopia\Domains\Domain; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; +use Utopia\Validator\AnyOf; +use Utopia\Validator\Domain as ValidatorDomain; +use Utopia\Validator\IP; +use Utopia\Validator\URL; +use Utopia\Validator\WhiteList; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createRedirectRule'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/proxy/rules/redirect') + ->groups(['api', 'proxy']) + ->desc('Create Redirect rule') + ->label('scope', 'rules.write') + ->label('event', 'rules.[ruleId].create') + ->label('audits.event', 'rule.create') + ->label('audits.resource', 'rule/{response.$id}') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'createRedirectRule', + description: <<<EOT + Create a new proxy rule for to redirect from custom domain to another domain. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) + ->label('abuse-limit', 10) + ->label('abuse-key', 'userId:{userId}, url:{url}') + ->label('abuse-time', 60) + ->param('domain', null, new ValidatorDomain(), 'Domain name.') + ->param('url', null, new URL(), 'Target URL of redirection') + ->param('statusCode', null, new WhiteList([301, 302, 307, 308]), 'Status code of redirection') + ->inject('response') + ->inject('project') + ->inject('queueForCertificates') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action(string $domain, string $url, int $statusCode, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform) + { + $deniedDomains = [ + 'localhost', + APP_HOSTNAME_INTERNAL + ]; + + $mainDomain = System::getEnv('_APP_DOMAIN', ''); + $deniedDomains[] = $mainDomain; + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + if (!empty($sitesDomain)) { + $deniedDomains[] = $sitesDomain; + } + + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + if (!empty($functionsDomain)) { + $deniedDomains[] = $functionsDomain; + } + + $denyListDomains = System::getEnv('_APP_CUSTOM_DOMAIN_DENY_LIST', ''); + $denyListDomains = \array_map('trim', explode(',', $denyListDomains)); + foreach ($denyListDomains as $denyListDomain) { + if (empty($denyListDomain)) { + continue; + } + $deniedDomains[] = $denyListDomain; + } + + if (\in_array($domain, $deniedDomains)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + try { + $domain = new Domain($domain); + } catch (\Throwable) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.'); + } + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique(); + + $status = 'created'; + if (\str_ends_with($domain->get(), $functionsDomain) || \str_ends_with($domain->get(), $sitesDomain)) { + $status = 'verified'; + } + if ($status === 'created') { + $validators = []; + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); + if (!$targetCNAME->isKnown() || $targetCNAME->isTest()) { + $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); + } + if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); + } + if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); + } + + if (empty($validators)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'At least one of domain targets environment variable must be configured.'); + } + + $validator = new AnyOf($validators, AnyOf::TYPE_STRING); + if ($validator->isValid($domain->get())) { + $status = 'verifying'; + } + } + + $owner = ''; + if ( + ($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) || + ($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain)) + ) { + $owner = 'Appwrite'; + } + + $rule = new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain->get(), + 'status' => $status, + 'type' => 'redirect', + 'trigger' => 'manual', + 'redirectUrl' => $url, + 'redirectStatusCode' => $statusCode, + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain->get()]), + 'owner' => $owner, + 'region' => $project->getAttribute('region') + ]); + + try { + $rule = $dbForPlatform->createDocument('rules', $rule); + } catch (Duplicate $e) { + throw new Exception(Exception::RULE_ALREADY_EXISTS); + } + + if ($rule->getAttribute('status', '') === 'verifying') { + $queueForCertificates + ->setDomain(new Document([ + 'domain' => $rule->getAttribute('domain') + ])) + ->trigger(); + } + + $queueForEvents->setParam('ruleId', $rule->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($rule, Response::MODEL_PROXY_RULE); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php new file mode 100644 index 00000000000..ac55b709e8e --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php @@ -0,0 +1,205 @@ +<?php + +namespace Appwrite\Platform\Modules\Proxy\Http\Rules\Site; + +use Appwrite\Event\Certificate; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Network\Validator\DNS; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Validator\UID; +use Utopia\Domains\Domain; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; +use Utopia\Validator\AnyOf; +use Utopia\Validator\Domain as ValidatorDomain; +use Utopia\Validator\IP; +use Utopia\Validator\Text; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createSiteRule'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/proxy/rules/site') + ->groups(['api', 'proxy']) + ->desc('Create site rule') + ->label('scope', 'rules.write') + ->label('event', 'rules.[ruleId].create') + ->label('audits.event', 'rule.create') + ->label('audits.resource', 'rule/{response.$id}') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'createSiteRule', + description: <<<EOT + Create a new proxy rule for serving Appwrite Site on custom domain. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) + ->label('abuse-limit', 10) + ->label('abuse-key', 'userId:{userId}, url:{url}') + ->label('abuse-time', 60) + ->param('domain', null, new ValidatorDomain(), 'Domain name.') + ->param('siteId', '', new UID(), 'ID of site to be executed.') + ->param('branch', '', new Text(255, 0), 'Name of VCS branch to deploy changes automatically', true) + ->inject('response') + ->inject('project') + ->inject('queueForCertificates') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $domain, string $siteId, string $branch, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject) + { + $deniedDomains = [ + 'localhost', + APP_HOSTNAME_INTERNAL + ]; + + $mainDomain = System::getEnv('_APP_DOMAIN', ''); + $deniedDomains[] = $mainDomain; + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + if (!empty($sitesDomain)) { + $deniedDomains[] = $sitesDomain; + } + + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + if (!empty($functionsDomain)) { + $deniedDomains[] = $functionsDomain; + } + + $denyListDomains = System::getEnv('_APP_CUSTOM_DOMAIN_DENY_LIST', ''); + $denyListDomains = \array_map('trim', explode(',', $denyListDomains)); + foreach ($denyListDomains as $denyListDomain) { + if (empty($denyListDomain)) { + continue; + } + $deniedDomains[] = $denyListDomain; + } + + if (\in_array($domain, $deniedDomains)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + try { + $domain = new Domain($domain); + } catch (\Throwable) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.'); + } + + $site = $dbForProject->getDocument('sites', $siteId); + if ($site->isEmpty()) { + throw new Exception(Exception::RULE_RESOURCE_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $site->getAttribute('deploymentId', '')); + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique(); + + $status = 'created'; + if (\str_ends_with($domain->get(), $functionsDomain) || \str_ends_with($domain->get(), $sitesDomain)) { + $status = 'verified'; + } + if ($status === 'created') { + $validators = []; + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); + if (!$targetCNAME->isKnown() || $targetCNAME->isTest()) { + $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); + } + if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); + } + if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); + } + + if (empty($validators)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'At least one of domain targets environment variable must be configured.'); + } + + $validator = new AnyOf($validators, AnyOf::TYPE_STRING); + if ($validator->isValid($domain->get())) { + $status = 'verifying'; + } + } + + $owner = ''; + if ( + ($functionsDomain != '' && \str_ends_with($domain->get(), $functionsDomain)) || + ($sitesDomain != '' && \str_ends_with($domain->get(), $sitesDomain)) + ) { + $owner = 'Appwrite'; + } + + $rule = new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain->get(), + 'status' => $status, + 'type' => 'deployment', + 'trigger' => 'manual', + 'deploymentId' => $deployment->isEmpty() ? '' : $deployment->getId(), + 'deploymentInternalId' => $deployment->isEmpty() ? '' : $deployment->getInternalId(), + 'deploymentResourceType' => 'site', + 'deploymentResourceId' => $site->getId(), + 'deploymentResourceInternalId' => $site->getInternalId(), + 'deploymentVcsProviderBranch' => $branch, + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain->get(), $branch]), + 'owner' => $owner, + 'region' => $project->getAttribute('region') + ]); + + try { + $rule = $dbForPlatform->createDocument('rules', $rule); + } catch (Duplicate $e) { + throw new Exception(Exception::RULE_ALREADY_EXISTS); + } + + if ($rule->getAttribute('status', '') === 'verifying') { + $queueForCertificates + ->setDomain(new Document([ + 'domain' => $rule->getAttribute('domain') + ])) + ->trigger(); + } + + $queueForEvents->setParam('ruleId', $rule->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($rule, Response::MODEL_PROXY_RULE); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Module.php b/src/Appwrite/Platform/Modules/Proxy/Module.php new file mode 100644 index 00000000000..cd8f6f86dce --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Module.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Platform\Modules\Proxy; + +use Appwrite\Platform\Modules\Proxy\Services\Http; +use Utopia\Platform; + +class Module extends Platform\Module +{ + public function __construct() + { + $this->addService('http', new Http()); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Services/Http.php b/src/Appwrite/Platform/Modules/Proxy/Services/Http.php new file mode 100644 index 00000000000..c5f11ad5be5 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Services/Http.php @@ -0,0 +1,23 @@ +<?php + +namespace Appwrite\Platform\Modules\Proxy\Services; + +use Appwrite\Platform\Modules\Proxy\Http\Rules\API\Create as CreateAPIRule; +use Appwrite\Platform\Modules\Proxy\Http\Rules\Function\Create as CreateFunctionRule; +use Appwrite\Platform\Modules\Proxy\Http\Rules\Redirect\Create as CreateRedirectRule; +use Appwrite\Platform\Modules\Proxy\Http\Rules\Site\Create as CreateSiteRule; +use Utopia\Platform\Service; + +class Http extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_HTTP; + + // Rules + $this->addAction(CreateAPIRule::getName(), new CreateAPIRule()); + $this->addAction(CreateSiteRule::getName(), new CreateSiteRule()); + $this->addAction(CreateFunctionRule::getName(), new CreateFunctionRule()); + $this->addAction(CreateRedirectRule::getName(), new CreateRedirectRule()); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php new file mode 100644 index 00000000000..7400d86e740 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Create.php @@ -0,0 +1,363 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; +use Utopia\Storage\Validator\File; +use Utopia\Storage\Validator\FileExt; +use Utopia\Storage\Validator\FileSize; +use Utopia\Storage\Validator\Upload; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/sites/:siteId/deployments') + ->desc('Create deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].deployments.[deploymentId].create') + ->label('audits.event', 'deployment.create') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'createDeployment', + description: <<<EOT + Create a new site code deployment. Use this endpoint to upload a new version of your site code. To activate your newly uploaded code, you'll need to update the function's deployment to use your new deployment ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + requestType: ContentType::MULTIPART, + type: MethodType::UPLOAD, + packaging: true, + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('installCommand', null, new Text(8192, 0), 'Install Commands.', true) + ->param('buildCommand', null, new Text(8192, 0), 'Build Commands.', true) + ->param('outputDirectory', null, new Text(8192, 0), 'Output Directory.', true) + ->param('code', [], new File(), 'Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.', skipValidation: true) + ->param('activate', false, new Boolean(true), 'Automatically activate the deployment when it is finished building.') + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('project') + ->inject('queueForEvents') + ->inject('deviceForSites') + ->inject('deviceForLocal') + ->inject('queueForBuilds') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + ?string $installCommand, + ?string $buildCommand, + ?string $outputDirectory, + mixed $code, + mixed $activate, + Request $request, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Document $project, + Event $queueForEvents, + Device $deviceForSites, + Device $deviceForLocal, + Build $queueForBuilds + ) { + $activate = \strval($activate) === 'true' || \strval($activate) === '1'; + + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + if ($installCommand === null) { + $installCommand = $site->getAttribute('installCommand', ''); + } + + if ($buildCommand === null) { + $buildCommand = $site->getAttribute('buildCommand', ''); + } + + if ($outputDirectory === null) { + $outputDirectory = $site->getAttribute('outputDirectory', ''); + } + + $file = $request->getFiles('code'); + + // GraphQL multipart spec adds files with index keys + if (empty($file)) { + $file = $request->getFiles(0); + } + + if (empty($file)) { + throw new Exception(Exception::STORAGE_FILE_EMPTY, 'No file sent'); + } + + $fileExt = new FileExt([FileExt::TYPE_GZIP]); + $fileSizeValidator = new FileSize(System::getEnv('_APP_COMPUTE_SIZE_LIMIT', '30000000')); + $upload = new Upload(); + + // Make sure we handle a single file and multiple files the same way + $fileName = (\is_array($file['name']) && isset($file['name'][0])) ? $file['name'][0] : $file['name']; + $fileTmpName = (\is_array($file['tmp_name']) && isset($file['tmp_name'][0])) ? $file['tmp_name'][0] : $file['tmp_name']; + $fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; + + if (!$fileExt->isValid($file['name'])) { // Check if file type is allowed + throw new Exception(Exception::STORAGE_FILE_TYPE_UNSUPPORTED); + } + + $contentRange = $request->getHeader('content-range'); + $deploymentId = ID::unique(); + $chunk = 1; + $chunks = 1; + + if (!empty($contentRange)) { + $start = $request->getContentRangeStart(); + $end = $request->getContentRangeEnd(); + $fileSize = $request->getContentRangeSize(); + $deploymentId = $request->getHeader('x-appwrite-id', $deploymentId); + // TODO make `end >= $fileSize` in next breaking version + if (is_null($start) || is_null($end) || is_null($fileSize) || $end > $fileSize) { + throw new Exception(Exception::STORAGE_INVALID_CONTENT_RANGE); + } + + // TODO remove the condition that checks `$end === $fileSize` in next breaking version + if ($end === $fileSize - 1 || $end === $fileSize) { + //if it's a last chunks the chunk size might differ, so we set the $chunks and $chunk to notify it's last chunk + $chunks = $chunk = -1; + } else { + // Calculate total number of chunks based on the chunk size i.e ($rangeEnd - $rangeStart) + $chunks = (int) ceil($fileSize / ($end + 1 - $start)); + $chunk = (int) ($start / ($end + 1 - $start)) + 1; + } + } + + if (!$fileSizeValidator->isValid($fileSize)) { // Check if file size is exceeding allowed limit + throw new Exception(Exception::STORAGE_INVALID_FILE_SIZE); + } + + if (!$upload->isValid($fileTmpName)) { + throw new Exception(Exception::STORAGE_INVALID_FILE); + } + + // Save to storage + $fileSize ??= $deviceForLocal->getFileSize($fileTmpName); + $path = $deviceForSites->getPath($deploymentId . '.' . \pathinfo($fileName, PATHINFO_EXTENSION)); + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + $metadata = ['content_type' => $deviceForLocal->getFileMimeType($fileTmpName)]; + if (!$deployment->isEmpty()) { + $chunks = $deployment->getAttribute('sourceChunksTotal', 1); + $metadata = $deployment->getAttribute('sourceMetadata', []); + if ($chunk === -1) { + $chunk = $chunks; + } + } + + $chunksUploaded = $deviceForSites->upload($fileTmpName, $path, $chunk, $chunks, $metadata); + + if (empty($chunksUploaded)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed moving file'); + } + + $type = $request->getHeader('x-sdk-language') === 'cli' ? 'cli' : 'manual'; + + $commands = []; + if (!empty($installCommand)) { + $commands[] = $installCommand; + } + if (!empty($buildCommand)) { + $commands[] = $buildCommand; + } + + if ($chunksUploaded === $chunks) { + if ($activate) { + // Remove deploy for all other deployments. + $activeDeployments = $dbForProject->find('deployments', [ + Query::equal('activate', [true]), + Query::equal('resourceId', [$siteId]), + Query::equal('resourceType', ['sites']) + ]); + + foreach ($activeDeployments as $activeDeployment) { + $activeDeployment->setAttribute('activate', false); + $dbForProject->updateDocument('deployments', $activeDeployment->getId(), $activeDeployment); + } + } + + $fileSize = $deviceForSites->getFileSize($path); + + if ($deployment->isEmpty()) { + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceInternalId' => $site->getInternalId(), + 'resourceId' => $site->getId(), + 'resourceType' => 'sites', + 'buildCommands' => \implode(' && ', $commands), + 'buildOutput' => $outputDirectory, + 'adapter' => $site->getAttribute('adapter', ''), + 'fallbackFile' => $site->getAttribute('fallbackFile', ''), + 'sourcePath' => $path, + 'sourceSize' => $fileSize, + 'totalSize' => $fileSize, + 'activate' => $activate, + 'sourceMetadata' => $metadata, + 'type' => $type, + ])); + + $site = $site + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('sites', $site->getId(), $site); + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $domain = ID::unique() . "." . $sitesDomain; + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain) : ID::unique(); + + Authorization::skip( + fn () => $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'type' => 'deployment', + 'trigger' => 'deployment', + 'deploymentId' => $deployment->isEmpty() ? '' : $deployment->getId(), + 'deploymentInternalId' => $deployment->isEmpty() ? '' : $deployment->getInternalId(), + 'deploymentResourceType' => 'site', + 'deploymentResourceId' => $site->getId(), + 'deploymentResourceInternalId' => $site->getInternalId(), + 'status' => 'verified', + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain]), + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') + ])) + ); + } else { + $deployment = $dbForProject->updateDocument('deployments', $deploymentId, $deployment->setAttribute('sourceSize', $fileSize)->setAttribute('sourceMetadata', $metadata)); + } + + // Start the build + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($site) + ->setDeployment($deployment); + } else { + if ($deployment->isEmpty()) { + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceInternalId' => $site->getInternalId(), + 'resourceId' => $site->getId(), + 'resourceType' => 'sites', + 'buildCommands' => \implode(' && ', $commands), + 'buildOutput' => $outputDirectory, + 'adapter' => $site->getAttribute('adapter', ''), + 'fallbackFile' => $site->getAttribute('fallbackFile', ''), + 'sourcePath' => $path, + 'sourceSize' => $fileSize, + 'totalSize' => $fileSize, + 'sourceChunksTotal' => $chunks, + 'sourceChunksUploaded' => $chunksUploaded, + 'activate' => $activate, + 'sourceMetadata' => $metadata, + 'type' => $type, + ])); + + $site = $site + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('sites', $site->getId(), $site); + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $domain = ID::unique() . "." . $sitesDomain; + $ruleId = md5($domain); + Authorization::skip( + fn () => $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'type' => 'deployment', + 'trigger' => 'deployment', + 'value' => $deployment->getId(), + 'status' => 'verified', + 'certificateId' => '', + 'search' => implode(' ', [$ruleId, $domain]), + ])) + ); + } else { + $deployment = $dbForProject->updateDocument('deployments', $deploymentId, $deployment->setAttribute('sourceChunksUploaded', $chunksUploaded)->setAttribute('sourceMetadata', $metadata)); + } + } + + $metadata = null; + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php new file mode 100644 index 00000000000..27db10c484c --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php @@ -0,0 +1,138 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments; + +use Appwrite\Event\Delete as DeleteEvent; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; + +class Delete extends Action +{ + use HTTP; + + public static function getName() + { + return 'deleteDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/sites/:siteId/deployments/:deploymentId') + ->desc('Delete deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].deployments.[deploymentId].delete') + ->label('audits.event', 'deployment.delete') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'deleteDeployment', + description: <<<EOT + Delete a site deployment by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDeletes') + ->inject('queueForEvents') + ->inject('deviceForSites') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $deploymentId, + Response $response, + Database $dbForProject, + DeleteEvent $queueForDeletes, + Event $queueForEvents, + Device $deviceForSites + ) { + $site = $dbForProject->getDocument('sites', $siteId); + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('resourceId') !== $site->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if (!$dbForProject->deleteDocument('deployments', $deployment->getId())) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove deployment from DB'); + } + + if (!empty($deployment->getAttribute('sourcePath', ''))) { + if (!($deviceForSites->delete($deployment->getAttribute('sourcePath', '')))) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove deployment from storage'); + } + } + + if ($site->getAttribute('latestDeploymentId') === $deployment->getId()) { + $latestDeployment = $dbForProject->findOne('deployments', [ + Query::equal('resourceType', ['sites']), + Query::equal('resourceInternalId', [$site->getInternalId()]), + Query::orderDesc('$createdAt'), + ]); + $site = $dbForProject->updateDocument( + 'sites', + $site->getId(), + $site + ->setAttribute('latestDeploymentCreatedAt', $latestDeployment->isEmpty() ? '' : $latestDeployment->getCreatedAt()) + ->setAttribute('latestDeploymentInternalId', $latestDeployment->isEmpty() ? '' : $latestDeployment->getInternalId()) + ->setAttribute('latestDeploymentId', $latestDeployment->isEmpty() ? '' : $latestDeployment->getId()) + ->setAttribute('latestDeploymentStatus', $latestDeployment->isEmpty() ? '' : $latestDeployment->getAttribute('status', '')) + ); + } + + if ($site->getAttribute('deploymentId') === $deployment->getId()) { // Reset site deployment + $site = $dbForProject->updateDocument('sites', $site->getId(), new Document(array_merge($site->getArrayCopy(), [ + 'deploymentId' => '', + 'deploymentInternalId' => '', + 'deploymentScreenshotDark' => '', + 'deploymentScreenshotLight' => '', + 'deploymentCreatedAt' => '', + ]))); + } + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $queueForDeletes + ->setType(DELETE_TYPE_DOCUMENT) + ->setDocument($deployment); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php new file mode 100644 index 00000000000..e83af0bab66 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php @@ -0,0 +1,151 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments\Download; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; +use Utopia\Swoole\Request; +use Utopia\Validator\WhiteList; + +class Get extends Action +{ + use HTTP; + + public static function getName() + { + return 'getDeploymentDownload'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/deployments/:deploymentId/download') + ->desc('Get deployment download') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'getDeploymentDownload', + description: <<<EOT + Get a site deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory. + EOT, + auth: [AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE + ) + ], + type: MethodType::LOCATION, + contentType: ContentType::ANY, + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->param('type', 'source', new WhiteList(['source', 'output']), 'Deployment file to download. Can be: "source", "output".', true) + ->inject('response') + ->inject('request') + ->inject('dbForProject') + ->inject('deviceForSites') + ->inject('deviceForBuilds') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $deploymentId, + string $type, + Response $response, + Request $request, + Database $dbForProject, + Device $deviceForSites, + Device $deviceForBuilds + ) { + $site = $dbForProject->getDocument('sites', $siteId); + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('resourceId') !== $site->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + switch ($type) { + case 'output': + $path = $deployment->getAttribute('buildPath', ''); + $device = $deviceForBuilds; + break; + case 'source': + $path = $deployment->getAttribute('sourcePath', ''); + $device = $deviceForSites; + break; + } + + if (!$device->exists($path)) { + throw new Exception(Exception::BUILD_NOT_FOUND); + } + + $response + ->setContentType('application/gzip') + ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('X-Peak', \memory_get_peak_usage()) + ->addHeader('Content-Disposition', 'attachment; filename="' . $deploymentId . '-' . $type . '.tar.gz"'); + + $size = $device->getFileSize($path); + $rangeHeader = $request->getHeader('range'); + + if (!empty($rangeHeader)) { + $start = $request->getRangeStart(); + $end = $request->getRangeEnd(); + $unit = $request->getRangeUnit(); + + if ($end === null) { + $end = min(($start + MAX_OUTPUT_CHUNK_SIZE - 1), ($size - 1)); + } + + if ($unit !== 'bytes' || $start >= $end || $end >= $size) { + throw new Exception(Exception::STORAGE_INVALID_RANGE); + } + + $response + ->addHeader('Accept-Ranges', 'bytes') + ->addHeader('Content-Range', 'bytes ' . $start . '-' . $end . '/' . $size) + ->addHeader('Content-Length', $end - $start + 1) + ->setStatusCode(Response::STATUS_CODE_PARTIALCONTENT); + + $response->send($device->read($path, $start, ($end - $start + 1))); + } + + if ($size > APP_STORAGE_READ_BUFFER) { + for ($i = 0; $i < ceil($size / MAX_OUTPUT_CHUNK_SIZE); $i++) { + $response->chunk( + $device->read( + $path, + ($i * MAX_OUTPUT_CHUNK_SIZE), + min(MAX_OUTPUT_CHUNK_SIZE, $size - ($i * MAX_OUTPUT_CHUNK_SIZE)) + ), + (($i + 1) * MAX_OUTPUT_CHUNK_SIZE) >= $size + ); + } + } else { + $response->send($device->read($path)); + } + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php new file mode 100644 index 00000000000..bff07353289 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Duplicate/Create.php @@ -0,0 +1,182 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments\Duplicate; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Storage\Device; +use Utopia\Swoole\Request; +use Utopia\System\System; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createDuplicateDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/sites/:siteId/deployments/duplicate') + ->desc('Create duplicate deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('event', 'sites.[siteId].deployments.[deploymentId].update') + ->label('audits.event', 'deployment.update') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'createDuplicateDeployment', + description: <<<EOT + Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('request') + ->inject('response') + ->inject('project') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('deviceForSites') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $deploymentId, + Request $request, + Response $response, + Document $project, + Database $dbForProject, + Database $dbForPlatform, + Event $queueForEvents, + Build $queueForBuilds, + Device $deviceForSites + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $path = $deployment->getAttribute('sourcePath'); + if (empty($path) || !$deviceForSites->exists($path)) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $deploymentId = ID::unique(); + + $destination = $deviceForSites->getPath($deploymentId . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); + $deviceForSites->transfer($path, $destination, $deviceForSites); + + $commands = []; + + if (!empty($site->getAttribute('installCommand', ''))) { + $commands[] = $site->getAttribute('installCommand', ''); + } + if (!empty($site->getAttribute('buildCommand', ''))) { + $commands[] = $site->getAttribute('buildCommand', ''); + } + + $deployment->removeAttribute('$internalId'); + $deployment = $dbForProject->createDocument('deployments', $deployment->setAttributes([ + '$internalId' => '', + '$id' => $deploymentId, + 'sourcePath' => $destination, + 'totalSize' => $deployment->getAttribute('sourceSize', 0), + 'buildCommands' => \implode(' && ', $commands), + 'buildOutput' => $site->getAttribute('outputDirectory', ''), + 'adapter' => $site->getAttribute('adapter', ''), + 'fallbackFile' => $site->getAttribute('fallbackFile', ''), + 'screenshotLight' => '', + 'screenshotDark' => '', + 'buildStartedAt' => null, + 'buildEndedAt' => null, + 'buildDuration' => 0, + 'buildSize' => 0, + 'status' => 'waiting', + 'buildPath' => '', + 'buildLogs' => '', + 'type' => $request->getHeader('x-sdk-language') === 'cli' ? 'cli' : 'manual' + ])); + + $site = $site + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('sites', $site->getId(), $site); + + // Preview deployments for sites + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $domain = ID::unique() . "." . $sitesDomain; + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain) : ID::unique(); + + Authorization::skip( + fn () => $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'type' => 'deployment', + 'trigger' => 'deployment', + 'deploymentId' => $deployment->isEmpty() ? '' : $deployment->getId(), + 'deploymentInternalId' => $deployment->isEmpty() ? '' : $deployment->getInternalId(), + 'deploymentResourceType' => 'site', + 'deploymentResourceId' => $site->getId(), + 'deploymentResourceInternalId' => $site->getInternalId(), + 'status' => 'verified', + 'certificateId' => '', + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') + ])) + ); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($site) + ->setDeployment($deployment); + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Get.php new file mode 100644 index 00000000000..d2802311599 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Get.php @@ -0,0 +1,75 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Action +{ + use HTTP; + + public static function getName() + { + return 'getDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/deployments/:deploymentId') + ->desc('Get deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'getDeployment', + description: <<<EOT + Get a site deployment by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, string $deploymentId, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('resourceId') !== $site->getId()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + $response->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Status/Update.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Status/Update.php new file mode 100644 index 00000000000..2c6da43893b --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Status/Update.php @@ -0,0 +1,118 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments\Status; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Executor\Executor; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Update extends Action +{ + use HTTP; + + public static function getName() + { + return 'updateDeploymentStatus'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/sites/:siteId/deployments/:deploymentId/status') + ->desc('Update deployment status') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('audits.event', 'deployment.update') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'updateDeploymentStatus', + description: <<<EOT + Cancel an ongoing site deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('project') + ->inject('queueForEvents') + ->inject('executor') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $deploymentId, + Response $response, + Database $dbForProject, + Document $project, + Event $queueForEvents, + Executor $executor + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if (\in_array($deployment->getAttribute('status'), ['ready', 'failed'])) { + throw new Exception(Exception::BUILD_ALREADY_COMPLETED); + } + + $startTime = new \DateTime($deployment->getAttribute('buildStartedAt', 'now')); + $endTime = new \DateTime('now'); + $duration = $endTime->getTimestamp() - $startTime->getTimestamp(); + + $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttributes([ + 'buildEndedAt' => DateTime::now(), + 'buildDuration' => $duration, + 'status' => 'canceled' + ])); + + if ($deployment->getInternalId() === $site->getAttribute('latestDeploymentInternalId', '')) { + $site = $site->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('sites', $site->getId(), $site); + } + + try { + $executor->deleteRuntime($project->getId(), $deploymentId . "-build"); + } catch (\Throwable $th) { + // Don't throw if the deployment doesn't exist + if ($th->getCode() !== 404) { + throw $th; + } + } + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Template/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Template/Create.php new file mode 100644 index 00000000000..5b29521ce58 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Template/Create.php @@ -0,0 +1,213 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments\Template; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; +use Utopia\VCS\Adapter\Git\GitHub; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createTemplateDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/sites/:siteId/deployments/template') + ->desc('Create template deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].deployments.[deploymentId].create') + ->label('audits.event', 'deployment.create') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'createTemplateDeployment', + description: <<<EOT + Create a deployment based on a template. + + Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/sites#listTemplates) to find the template details. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('repository', '', new Text(128, 0), 'Repository name of the template.') + ->param('owner', '', new Text(128, 0), 'The name of the owner of the template.') + ->param('rootDirectory', '', new Text(128, 0), 'Path to site code in the template repo.') + ->param('version', '', new Text(128, 0), 'Version (tag) for the repo linked to the site template.') + ->param('activate', false, new Boolean(), 'Automatically activate the deployment when it is finished building.', true) + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('project') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('gitHub') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $repository, + string $owner, + string $rootDirectory, + string $version, + bool $activate, + Request $request, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Document $project, + Event $queueForEvents, + Build $queueForBuilds, + GitHub $github + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $template = new Document([ + 'repositoryName' => $repository, + 'ownerName' => $owner, + 'rootDirectory' => $rootDirectory, + 'version' => $version + ]); + + if (!empty($site->getAttribute('providerRepositoryId'))) { + $installation = $dbForPlatform->getDocument('installations', $site->getAttribute('installationId')); + + $deployment = $this->redeployVcsSite( + request: $request, + site: $site, + project: $project, + installation: $installation, + dbForProject: $dbForProject, + dbForPlatform: $dbForPlatform, + queueForBuilds: $queueForBuilds, + template: $template, + github: $github, + activate: $activate, + ); + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + + return; + } + + $commands = []; + if (!empty($site->getAttribute('installCommand', ''))) { + $commands[] = $site->getAttribute('installCommand', ''); + } + if (!empty($site->getAttribute('buildCommand', ''))) { + $commands[] = $site->getAttribute('buildCommand', ''); + } + + $deploymentId = ID::unique(); + $deployment = $dbForProject->createDocument('deployments', new Document([ + '$id' => $deploymentId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'resourceId' => $site->getId(), + 'resourceInternalId' => $site->getInternalId(), + 'resourceType' => 'sites', + 'buildCommands' => \implode(' && ', $commands), + 'buildOutput' => $site->getAttribute('outputDirectory', ''), + 'adapter' => $site->getAttribute('adapter', ''), + 'fallbackFile' => $site->getAttribute('fallbackFile', ''), + 'type' => 'manual', + 'activate' => $activate, + ])); + + $site = $site + ->setAttribute('latestDeploymentId', $deployment->getId()) + ->setAttribute('latestDeploymentInternalId', $deployment->getInternalId()) + ->setAttribute('latestDeploymentCreatedAt', $deployment->getCreatedAt()) + ->setAttribute('latestDeploymentStatus', $deployment->getAttribute('status', '')); + $dbForProject->updateDocument('sites', $site->getId(), $site); + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $domain = ID::unique() . "." . $sitesDomain; + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain) : ID::unique(); + + Authorization::skip( + fn () => $dbForPlatform->createDocument('rules', new Document([ + '$id' => $ruleId, + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'domain' => $domain, + 'type' => 'deployment', + 'trigger' => 'deployment', + 'deploymentId' => $deployment->isEmpty() ? '' : $deployment->getId(), + 'deploymentInternalId' => $deployment->isEmpty() ? '' : $deployment->getInternalId(), + 'deploymentResourceType' => 'site', + 'deploymentResourceId' => $site->getId(), + 'deploymentResourceInternalId' => $site->getInternalId(), + 'status' => 'verified', + 'certificateId' => '', + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') + ])) + ); + + $queueForBuilds + ->setType(BUILD_TYPE_DEPLOYMENT) + ->setResource($site) + ->setDeployment($deployment) + ->setTemplate($template); + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Vcs/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Vcs/Create.php new file mode 100644 index 00000000000..eb6fdf4094d --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Vcs/Create.php @@ -0,0 +1,125 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments\Vcs; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; +use Utopia\VCS\Adapter\Git\GitHub; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createVcsDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/sites/:siteId/deployments/vcs') + ->desc('Create VCS deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].deployments.[deploymentId].create') + ->label('audits.event', 'deployment.create') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'createVcsDeployment', + description: <<<EOT + Create a deployment when a site is connected to VCS. + + This endpoint lets you create deployment from a branch, commit, or a tag. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + )) + ->param('siteId', '', new UID(), 'Site ID.') + // TODO: Support tag in future + ->param('type', '', new WhiteList(['branch', 'commit', 'tag']), 'Type of reference passed. Allowed values are: branch, commit') + ->param('reference', '', new Text(255), 'VCS reference to create deployment from. Depending on type this can be: branch name, commit hash') + ->param('activate', false, new Boolean(), 'Automatically activate the deployment when it is finished building.', true) + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('dbForPlatform') + ->inject('project') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('gitHub') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $type, + string $reference, + bool $activate, + Request $request, + Response $response, + Database $dbForProject, + Database $dbForPlatform, + Document $project, + Event $queueForEvents, + Build $queueForBuilds, + GitHub $github + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $template = new Document(); + + $installation = $dbForPlatform->getDocument('installations', $site->getAttribute('installationId')); + + $deployment = $this->redeployVcsSite( + request: $request, + site: $site, + project: $project, + installation: $installation, + dbForProject: $dbForProject, + dbForPlatform: $dbForPlatform, + queueForBuilds: $queueForBuilds, + template: $template, + github: $github, + activate: $activate, + reference: $reference, + referenceType: $type + ); + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_ACCEPTED) + ->dynamic($deployment, Response::MODEL_DEPLOYMENT); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php new file mode 100644 index 00000000000..d7cfc1d3ad1 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php @@ -0,0 +1,124 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Deployments; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\Deployments; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class XList extends Action +{ + use HTTP; + + public static function getName() + { + return 'listDeployments'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/deployments') + ->desc('List deployments') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'deployments', + name: 'listDeployments', + description: <<<EOT + Get a list of all the site's code deployments. You can use the query params to filter your results. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT_LIST, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('queries', [], new Deployments(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Deployments::ALLOWED_ATTRIBUTES), true) + ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, array $queries, string $search, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if (!empty($search)) { + $queries[] = Query::search('search', $search); + } + + // Set resource queries + $queries[] = Query::equal('resourceInternalId', [$site->getInternalId()]); + $queries[] = Query::equal('resourceType', ['sites']); + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $deploymentId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('deployments', $deploymentId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Deployment '{$deploymentId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + try { + $results = $dbForProject->find('deployments', $queries); + $total = $dbForProject->count('deployments', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + + $response->dynamic(new Document([ + 'deployments' => $results, + 'total' => $total, + ]), Response::MODEL_DEPLOYMENT_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php new file mode 100644 index 00000000000..cf2bb8c62be --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php @@ -0,0 +1,67 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Frameworks; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listFrameworks'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/frameworks') + ->desc('List frameworks') + ->groups(['api']) + ->label('scope', 'public') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'frameworks', + name: 'listFrameworks', + description: <<<EOT + Get a list of all frameworks that are currently available on the server instance. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FRAMEWORK_LIST, + ) + ] + )) + ->inject('response') + ->callback([$this, 'action']); + } + + public function action(Response $response) + { + $frameworks = Config::getParam('frameworks'); + + foreach ($frameworks as $key => $framework) { + if (!empty($framework['adapters'])) { + $frameworks[$key]['adapters'] = \array_values($framework['adapters']); + } + } + + $response->dynamic(new Document([ + 'total' => count($frameworks), + 'frameworks' => \array_values($frameworks) + ]), Response::MODEL_FRAMEWORK_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Logs/Delete.php b/src/Appwrite/Platform/Modules/Sites/Http/Logs/Delete.php new file mode 100644 index 00000000000..a411cee91f7 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Logs/Delete.php @@ -0,0 +1,89 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Logs; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Base +{ + use HTTP; + + public static function getName() + { + return 'deleteLog'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/sites/:siteId/logs/:logId') + ->desc('Delete log') + ->groups(['api', 'sites']) + ->label('scope', 'log.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].logs.[logId].delete') + ->label('audits.event', 'logs.delete') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'logs', + name: 'deleteLog', + description: <<<EOT + Delete a site log by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('logId', '', new UID(), 'Log ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback([$this, 'action']); + } + + public function action(string $siteId, string $logId, Response $response, Database $dbForProject, Event $queueForEvents) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $log = $dbForProject->getDocument('executions', $logId); + if ($log->isEmpty()) { + throw new Exception(Exception::LOG_NOT_FOUND); + } + + if ($log->getAttribute('resourceType') !== 'sites' && $log->getAttribute('resourceInternalId') !== $site->getInternalId()) { + throw new Exception(Exception::LOG_NOT_FOUND); + } + + if (!$dbForProject->deleteDocument('executions', $log->getId())) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove log from DB'); + } + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('logId', $log->getId()) + ->setPayload($response->output($log, Response::MODEL_EXECUTION)); // TODO: Update model + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Logs/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Logs/Get.php new file mode 100644 index 00000000000..3d1ace2d20b --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Logs/Get.php @@ -0,0 +1,76 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Logs; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getLog'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/logs/:logId') + ->desc('Get log') + ->groups(['api', 'sites']) + ->label('scope', 'log.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'logs', + name: 'getLog', + description: <<<EOT + Get a site request log by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EXECUTION, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('logId', '', new UID(), 'Log ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, string $logId, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty() || !$site->getAttribute('enabled')) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $log = $dbForProject->getDocument('executions', $logId); + + if ($log->getAttribute('resourceType') !== 'sites' && $log->getAttribute('resourceInternalId') !== $site->getInternalId()) { + throw new Exception(Exception::LOG_NOT_FOUND); + } + + if ($log->isEmpty()) { + throw new Exception(Exception::LOG_NOT_FOUND); + } + + $response->dynamic($log, Response::MODEL_EXECUTION); //TODO: Change to model log, but model log already exists - decide what to do + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Logs/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Logs/XList.php new file mode 100644 index 00000000000..a873d326036 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Logs/XList.php @@ -0,0 +1,120 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Logs; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\Executions; +use Appwrite\Utopia\Database\Validator\Queries\Logs; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listLogs'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/logs') + ->desc('List logs') + ->groups(['api', 'sites']) + ->label('scope', 'log.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'logs', + name: 'listLogs', + description: <<<EOT + Get a list of all site logs. You can use the query params to filter your results. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EXECUTION_LIST, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('queries', [], new Logs(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Executions::ALLOWED_ATTRIBUTES), true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, array $queries, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty() || !$site->getAttribute('enabled')) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + // Set internal queries + $queries[] = Query::equal('resourceInternalId', [$site->getInternalId()]); + $queries[] = Query::equal('resourceType', ['sites']); + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $logId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('executions', $logId); + + if ($cursorDocument->isEmpty() || $cursorDocument->getAttribute('resourceType') !== 'sites') { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Log '{$logId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + try { + $results = $dbForProject->find('executions', $queries); + $total = $dbForProject->count('executions', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + + $response->dynamic(new Document([ + 'executions' => $results, + 'total' => $total, + ]), Response::MODEL_EXECUTION_LIST); // TODO: Update response model + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php new file mode 100644 index 00000000000..c5097990249 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php @@ -0,0 +1,205 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Sites; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Platform\Modules\Compute\Validator\Specification; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\CustomId; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; +use Utopia\Validator\Boolean; +use Utopia\Validator\Range; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createSite'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/sites') + ->desc('Create site') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].create') + ->label('audits.event', 'site.create') + ->label('audits.resource', 'site/{response.$id}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'sites', + name: 'create', + description: <<<EOT + Create a new site. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SITE, + ) + ], + )) + ->param('siteId', '', new CustomId(), 'Site ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.') + ->param('name', '', new Text(128), 'Site name. Max length: 128 chars.') + ->param('framework', '', new WhiteList(\array_keys(Config::getParam('frameworks')), true), 'Sites framework.') + ->param('enabled', true, new Boolean(), 'Is site enabled? When set to \'disabled\', users cannot access the site but Server SDKs with and API key can still access the site. No data is lost when this is toggled.', true) + ->param('logging', true, new Boolean(), 'When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.', true) + ->param('timeout', 30, new Range(1, (int) System::getEnv('_APP_SITES_TIMEOUT', 30)), 'Maximum request time in seconds.', true) + ->param('installCommand', '', new Text(8192, 0), 'Install Command.', true) + ->param('buildCommand', '', new Text(8192, 0), 'Build Command.', true) + ->param('outputDirectory', '', new Text(8192, 0), 'Output Directory for site.', true) + ->param('buildRuntime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Runtime to use during build step.') + ->param('adapter', '', new WhiteList(['static', 'ssr']), 'Framework adapter defining rendering strategy. Allowed values are: static, ssr', true) + ->param('installationId', '', new Text(128, 0), 'Appwrite Installation ID for VCS (Version Control System) deployment.', true) + ->param('fallbackFile', '', new Text(255, 0), 'Fallback file for single page application sites.', true) + ->param('providerRepositoryId', '', new Text(128, 0), 'Repository ID of the repo linked to the site.', true) + ->param('providerBranch', '', new Text(128, 0), 'Production branch for the repo linked to the site.', true) + ->param('providerSilentMode', false, new Boolean(), 'Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.', true) + ->param('providerRootDirectory', '', new Text(128, 0), 'Path to site code in the linked repo.', true) + ->param('specification', APP_COMPUTE_SPECIFICATION_DEFAULT, fn (array $plan) => new Specification( + $plan, + Config::getParam('specifications', []), + System::getEnv('_APP_COMPUTE_CPUS', 0), + System::getEnv('_APP_COMPUTE_MEMORY', 0) + ), 'Framework specification for the site and builds.', true, ['plan']) + ->inject('response') + ->inject('dbForProject') + ->inject('project') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $name, + string $framework, + bool $enabled, + bool $logging, + int $timeout, + string $installCommand, + string $buildCommand, + string $outputDirectory, + string $buildRuntime, + string $adapter, + string $installationId, + string $fallbackFile, + string $providerRepositoryId, + string $providerBranch, + bool $providerSilentMode, + string $providerRootDirectory, + string $specification, + Response $response, + Database $dbForProject, + Document $project, + Event $queueForEvents, + Database $dbForPlatform + ) { + if (!empty($adapter)) { + $configFramework = Config::getParam('frameworks')[$framework] ?? []; + $adapters = \array_keys($configFramework['adapters'] ?? []); + $validator = new WhiteList($adapters, true); + if (!$validator->isValid($adapter)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Adapter not supported for the selected framework.'); + } + } + + $siteId = ($siteId == 'unique()') ? ID::unique() : $siteId; + + $installation = $dbForPlatform->getDocument('installations', $installationId); + + if (!empty($installationId) && $installation->isEmpty()) { + throw new Exception(Exception::INSTALLATION_NOT_FOUND); + } + + if (!empty($providerRepositoryId) && (empty($installationId) || empty($providerBranch))) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'When connecting to VCS (Version Control System), you need to provide "installationId" and "providerBranch".'); + } + + $site = $dbForProject->createDocument('sites', new Document([ + '$id' => $siteId, + 'enabled' => $enabled, + 'live' => true, + 'logging' => $logging, + 'name' => $name, + 'framework' => $framework, + 'deploymentInternalId' => '', + 'deploymentId' => '', + 'timeout' => $timeout, + 'installCommand' => $installCommand, + 'buildCommand' => $buildCommand, + 'outputDirectory' => $outputDirectory, + 'search' => implode(' ', [$siteId, $name, $framework]), + 'fallbackFile' => $fallbackFile, + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'repositoryId' => '', + 'repositoryInternalId' => '', + 'providerBranch' => $providerBranch, + 'providerRootDirectory' => $providerRootDirectory, + 'providerSilentMode' => $providerSilentMode, + 'specification' => $specification, + 'buildRuntime' => $buildRuntime, + 'adapter' => $adapter, + ])); + + // Git connect logic + if (!empty($providerRepositoryId)) { + $teamId = $project->getAttribute('teamId', ''); + + $repository = $dbForPlatform->createDocument('repositories', new Document([ + '$id' => ID::unique(), + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + Permission::update(Role::team(ID::custom($teamId), 'owner')), + Permission::update(Role::team(ID::custom($teamId), 'developer')), + Permission::delete(Role::team(ID::custom($teamId), 'owner')), + Permission::delete(Role::team(ID::custom($teamId), 'developer')), + ], + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'resourceId' => $site->getId(), + 'resourceInternalId' => $site->getInternalId(), + 'resourceType' => 'site', + 'providerPullRequestIds' => [] + ])); + + $site->setAttribute('repositoryId', $repository->getId()); + $site->setAttribute('repositoryInternalId', $repository->getInternalId()); + } + + $site = $dbForProject->updateDocument('sites', $site->getId(), $site); + + $queueForEvents->setParam('siteId', $site->getId()); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($site, Response::MODEL_SITE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Delete.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Delete.php new file mode 100644 index 00000000000..37666215e5a --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Delete.php @@ -0,0 +1,89 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Sites; + +use Appwrite\Event\Delete as DeleteEvent; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Base +{ + use HTTP; + + public static function getName() + { + return 'deleteSite'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/sites/:siteId') + ->desc('Delete site') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].delete') + ->label('audits.event', 'site.delete') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'sites', + name: 'delete', + description: <<<EOT + Delete a site by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDeletes') + ->inject('queueForEvents') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + Response $response, + Database $dbForProject, + DeleteEvent $queueForDeletes, + Event $queueForEvents + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + if (!$dbForProject->deleteDocument('sites', $site->getId())) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove site from DB'); + } + + $queueForDeletes + ->setType(DELETE_TYPE_DOCUMENT) + ->setDocument($site); + + $queueForEvents->setParam('siteId', $site->getId()); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Deployment/Update.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Deployment/Update.php new file mode 100644 index 00000000000..7f1681c0f1f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Deployment/Update.php @@ -0,0 +1,125 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Sites\Deployment; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Query; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Update extends Base +{ + use HTTP; + + public static function getName() + { + return 'updateSiteDeployment'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/sites/:siteId/deployment') + ->desc('Update site\'s deployment') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].deployments.[deploymentId].update') + ->label('audits.event', 'deployment.update') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'sites', + name: 'updateSiteDeployment', + description: <<<EOT + Update the site active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your site. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SITE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('deploymentId', '', new UID(), 'Deployment ID.') + ->inject('project') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->inject('dbForPlatform') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $deploymentId, + Document $project, + Response $response, + Database $dbForProject, + Event $queueForEvents, + Database $dbForPlatform + ) { + $site = $dbForProject->getDocument('sites', $siteId); + $deployment = $dbForProject->getDocument('deployments', $deploymentId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + if ($deployment->isEmpty()) { + throw new Exception(Exception::DEPLOYMENT_NOT_FOUND); + } + + if ($deployment->getAttribute('status') !== 'ready') { + throw new Exception(Exception::BUILD_NOT_READY); + } + + $oldDeploymentInternalId = $site->getAttribute('deploymentInternalId', ''); + + $site = $dbForProject->updateDocument('sites', $site->getId(), new Document(array_merge($site->getArrayCopy(), [ + 'deploymentInternalId' => $deployment->getInternalId(), + 'deploymentId' => $deployment->getId(), + 'deploymentScreenshotDark' => $deployment->getAttribute('screenshotDark', ''), + 'deploymentScreenshotLight' => $deployment->getAttribute('screenshotLight', ''), + 'deploymentCreatedAt' => $deployment->getCreatedAt(), + ]))); + + $queries = [ + Query::equal('trigger', 'manual'), + Query::equal("type", ["deployment"]), + Query::equal("deploymentResourceType", ["site"]), + Query::equal("deploymentResourceInternalId", [$site->getInternalId()]), + ]; + + if (empty($oldDeploymentInternalId)) { + $queries[] = Query::equal("deploymentInternalId", [""]); + } else { + $queries[] = Query::equal("deploymentInternalId", [$oldDeploymentInternalId]); + } + + $this->listRules($project, $queries, $dbForPlatform, function (Document $rule) use ($dbForPlatform, $deployment) { + $rule = $rule + ->setAttribute('deploymentId', $deployment->getId()) + ->setAttribute('deploymentInternalId', $deployment->getInternalId()); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); + }); + + $queueForEvents + ->setParam('siteId', $site->getId()) + ->setParam('deploymentId', $deployment->getId()); + + $response->dynamic($site, Response::MODEL_SITE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Get.php new file mode 100644 index 00000000000..88ff5f1d51c --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Get.php @@ -0,0 +1,65 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Sites; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getSite'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId') + ->desc('Get site') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'sites', + name: 'get', + description: <<<EOT + Get a site by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SITE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $response->dynamic($site, Response::MODEL_SITE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Update.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Update.php new file mode 100644 index 00000000000..212b4101789 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Update.php @@ -0,0 +1,282 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Sites; + +use Appwrite\Event\Build; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\Platform\Modules\Compute\Validator\Specification; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Executor\Executor; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Query; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Swoole\Request; +use Utopia\System\System; +use Utopia\Validator\Boolean; +use Utopia\Validator\Range; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; +use Utopia\VCS\Adapter\Git\GitHub; + +class Update extends Base +{ + use HTTP; + + public static function getName() + { + return 'updateSite'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_PUT) + ->setHttpPath('/v1/sites/:siteId') + ->desc('Update site') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('event', 'sites.[siteId].update') + ->label('audits.event', 'sites.update') + ->label('audits.resource', 'site/{response.$id}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'sites', + name: 'update', + description: <<<EOT + Update site by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SITE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('name', '', new Text(128), 'Site name. Max length: 128 chars.') + ->param('framework', '', new WhiteList(\array_keys(Config::getParam('frameworks')), true), 'Sites framework.') + ->param('enabled', true, new Boolean(), 'Is site enabled? When set to \'disabled\', users cannot access the site but Server SDKs with and API key can still access the site. No data is lost when this is toggled.', true) + ->param('logging', true, new Boolean(), 'When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.', true) + ->param('timeout', 30, new Range(1, (int) System::getEnv('_APP_SITES_TIMEOUT', 30)), 'Maximum request time in seconds.', true) + ->param('installCommand', '', new Text(8192, 0), 'Install Command.', true) + ->param('buildCommand', '', new Text(8192, 0), 'Build Command.', true) + ->param('outputDirectory', '', new Text(8192, 0), 'Output Directory for site.', true) + ->param('buildRuntime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Runtime to use during build step.', true) + ->param('adapter', '', new WhiteList(['static', 'ssr']), 'Framework adapter defining rendering strategy. Allowed values are: static, ssr', true) + ->param('fallbackFile', '', new Text(255, 0), 'Fallback file for single page application sites.', true) + ->param('installationId', '', new Text(128, 0), 'Appwrite Installation ID for VCS (Version Control System) deployment.', true) + ->param('providerRepositoryId', '', new Text(128, 0), 'Repository ID of the repo linked to the site.', true) + ->param('providerBranch', '', new Text(128, 0), 'Production branch for the repo linked to the site.', true) + ->param('providerSilentMode', false, new Boolean(), 'Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.', true) + ->param('providerRootDirectory', '', new Text(128, 0), 'Path to site code in the linked repo.', true) + ->param('specification', APP_COMPUTE_SPECIFICATION_DEFAULT, fn (array $plan) => new Specification( + $plan, + Config::getParam('specifications', []), + System::getEnv('_APP_COMPUTE_CPUS', 0), + System::getEnv('_APP_COMPUTE_MEMORY', 0) + ), 'Framework specification for the site and builds.', true, ['plan']) + ->inject('request') + ->inject('response') + ->inject('dbForProject') + ->inject('project') + ->inject('queueForEvents') + ->inject('queueForBuilds') + ->inject('dbForPlatform') + ->inject('gitHub') + ->inject('executor') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $name, + string $framework, + bool $enabled, + bool $logging, + int $timeout, + string $installCommand, + string $buildCommand, + string $outputDirectory, + string $buildRuntime, + string $adapter, + string $fallbackFile, + string $installationId, + ?string $providerRepositoryId, + string $providerBranch, + bool $providerSilentMode, + string $providerRootDirectory, + string $specification, + Request $request, + Response $response, + Database $dbForProject, + Document $project, + Event $queueForEvents, + Build $queueForBuilds, + Database $dbForPlatform, + GitHub $github, + Executor $executor + ) { + if (!empty($adapter)) { + $configFramework = Config::getParam('frameworks')[$framework] ?? []; + $adapters = \array_keys($configFramework['adapters'] ?? []); + $validator = new WhiteList($adapters, true); + if (!$validator->isValid($adapter)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Adapter not supported for the selected framework.'); + } + } + + // TODO: If only branch changes, re-deploy + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $installation = $dbForPlatform->getDocument('installations', $installationId); + + if (!empty($installationId) && $installation->isEmpty()) { + throw new Exception(Exception::INSTALLATION_NOT_FOUND); + } + + if (!empty($providerRepositoryId) && (empty($installationId) || empty($providerBranch))) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'When connecting to VCS (Version Control System), you need to provide "installationId" and "providerBranch".'); + } + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + if (empty($framework)) { + $framework = $site->getAttribute('framework'); + } + + $enabled ??= $site->getAttribute('enabled', true); + + $repositoryId = $site->getAttribute('repositoryId', ''); + $repositoryInternalId = $site->getAttribute('repositoryInternalId', ''); + + $isConnected = !empty($site->getAttribute('providerRepositoryId', '')); + + // Git disconnect logic. Disconnecting only when providerRepositoryId is empty, allowing for continue updates without disconnecting git + if ($isConnected && ($providerRepositoryId !== null && empty($providerRepositoryId))) { + $repositories = $dbForPlatform->find('repositories', [ + Query::equal('projectInternalId', [$project->getInternalId()]), + Query::equal('resourceInternalId', [$site->getInternalId()]), + Query::equal('resourceType', ['site']), + Query::limit(100), + ]); + + foreach ($repositories as $repository) { + $dbForPlatform->deleteDocument('repositories', $repository->getId()); + } + + $providerRepositoryId = ''; + $installationId = ''; + $providerBranch = ''; + $providerRootDirectory = ''; + $providerSilentMode = true; + $repositoryId = ''; + $repositoryInternalId = ''; + } + + // Git connect logic + if (!$isConnected && !empty($providerRepositoryId)) { + $teamId = $project->getAttribute('teamId', ''); + + $repository = $dbForPlatform->createDocument('repositories', new Document([ + '$id' => ID::unique(), + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + Permission::update(Role::team(ID::custom($teamId), 'owner')), + Permission::update(Role::team(ID::custom($teamId), 'developer')), + Permission::delete(Role::team(ID::custom($teamId), 'owner')), + Permission::delete(Role::team(ID::custom($teamId), 'developer')), + ], + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'projectId' => $project->getId(), + 'projectInternalId' => $project->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'resourceId' => $site->getId(), + 'resourceInternalId' => $site->getInternalId(), + 'resourceType' => 'site', + 'providerPullRequestIds' => [] + ])); + + $repositoryId = $repository->getId(); + $repositoryInternalId = $repository->getInternalId(); + } + + $live = true; + + if ( + $site->getAttribute('name') !== $name || + $site->getAttribute('buildCommand') !== $buildCommand || + $site->getAttribute('installCommand') !== $installCommand || + $site->getAttribute('outputDirectory') !== $outputDirectory || + $site->getAttribute('providerRootDirectory') !== $providerRootDirectory || + $site->getAttribute('framework') !== $framework + ) { + $live = false; + } + + // Enforce Cold Start if spec limits change. + if ($site->getAttribute('specification') !== $specification && !empty($site->getAttribute('deploymentId'))) { + try { + $executor->deleteRuntime($project->getId(), $site->getAttribute('deploymentId')); + } catch (\Throwable $th) { + // Don't throw if the deployment doesn't exist + if ($th->getCode() !== 404) { + throw $th; + } + } + } + + $site = $dbForProject->updateDocument('sites', $site->getId(), new Document(array_merge($site->getArrayCopy(), [ + 'name' => $name, + 'framework' => $framework, + 'enabled' => $enabled, + 'logging' => $logging, + 'live' => $live, + 'timeout' => $timeout, + 'installCommand' => $installCommand, + 'buildCommand' => $buildCommand, + 'outputDirectory' => $outputDirectory, + 'installationId' => $installation->getId(), + 'installationInternalId' => $installation->getInternalId(), + 'providerRepositoryId' => $providerRepositoryId, + 'repositoryId' => $repositoryId, + 'repositoryInternalId' => $repositoryInternalId, + 'providerBranch' => $providerBranch, + 'providerRootDirectory' => $providerRootDirectory, + 'providerSilentMode' => $providerSilentMode, + 'specification' => $specification, + 'search' => implode(' ', [$siteId, $name, $framework]), + 'buildRuntime' => $buildRuntime, + 'adapter' => $adapter, + 'fallbackFile' => $fallbackFile, + ]))); + + // Redeploy logic + if (!$isConnected && !empty($providerRepositoryId)) { + $this->redeployVcsFunction($request, $site, $project, $installation, $dbForProject, $queueForBuilds, new Document(), $github, true); + } + + $queueForEvents->setParam('siteId', $site->getId()); + + $response->dynamic($site, Response::MODEL_SITE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/XList.php new file mode 100644 index 00000000000..0a3b257f59f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/XList.php @@ -0,0 +1,113 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Sites; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\Sites; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; +use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listSites'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites') + ->desc('List sites') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'sites', + name: 'list', + description: <<<EOT + Get a list of all the project's sites. You can use the query params to filter your results. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SITE_LIST, + ) + ] + )) + ->param('queries', [], new Sites(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Sites::ALLOWED_ATTRIBUTES), true) + ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(array $queries, string $search, Response $response, Database $dbForProject) + { + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if (!empty($search)) { + $queries[] = Query::search('search', $search); + } + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $siteId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('sites', $siteId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Site '{$siteId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + try { + $sites = $dbForProject->find('sites', $queries); + $total = $dbForProject->count('sites', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + + $response->dynamic(new Document([ + 'sites' => $sites, + 'total' => $total, + ]), Response::MODEL_SITE_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Specifications/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Specifications/XList.php new file mode 100644 index 00000000000..2a9447f8c69 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Specifications/XList.php @@ -0,0 +1,81 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Specifications; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\System\System; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listSpecifications'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/specifications') + ->groups(['api', 'sites']) + ->desc('List specifications') + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'frameworks', + name: 'listSpecifications', + description: <<<EOT + List allowed site specifications for this instance. + EOT, + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SPECIFICATION_LIST, + ) + ] + )) + ->inject('response') + ->inject('plan') + ->callback([$this, 'action']); + } + + public function action(Response $response, array $plan) + { + $allSpecs = Config::getParam('specifications', []); + + $specs = []; + foreach ($allSpecs as $spec) { + $spec['enabled'] = true; + + if (array_key_exists('runtimeSpecifications', $plan)) { + $spec['enabled'] = in_array($spec['slug'], $plan['runtimeSpecifications']); + } + + $maxCpus = System::getEnv('_APP_FUNCTIONS_CPUS', 0); + $maxMemory = System::getEnv('_APP_FUNCTIONS_MEMORY', 0); + + // Only add specs that are within the limits set by environment variables + // Treat 0 as no limit + if ((empty($maxCpus) || $spec['cpus'] <= $maxCpus) && (empty($maxMemory) || $spec['memory'] <= $maxMemory)) { + $specs[] = $spec; + } + } + + $response->dynamic(new Document([ + 'specifications' => $specs, + 'total' => count($specs) + ]), Response::MODEL_SPECIFICATION_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php new file mode 100644 index 00000000000..a4066fb7872 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php @@ -0,0 +1,70 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Templates; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Text; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getTemplate'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/templates/:templateId') + ->desc('Get site template') + ->groups(['api']) + ->label('scope', 'public') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'templates', + name: 'getTemplate', + description: <<<EOT + Get a site template using ID. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEMPLATE_SITE, + ) + ] + )) + ->param('templateId', '', new Text(128), 'Template ID.') + ->inject('response') + ->callback([$this, 'action']); + } + + public function action(string $templateId, Response $response) + { + $templates = Config::getParam('templates-site', []); + + $allowedTemplates = \array_filter($templates, function ($item) use ($templateId) { + return $item['key'] === $templateId; + }); + $template = array_shift($allowedTemplates); + + if (empty($template)) { + throw new Exception(Exception::SITE_TEMPLATE_NOT_FOUND); + } + + $response->dynamic(new Document($template), Response::MODEL_TEMPLATE_SITE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php new file mode 100644 index 00000000000..414ecc99870 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php @@ -0,0 +1,91 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Templates; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\ArrayList; +use Utopia\Validator\Range; +use Utopia\Validator\WhiteList; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listTemplates'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/templates') + ->desc('List templates') + ->groups(['api']) + ->label('scope', 'public') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'templates', + name: 'listTemplates', + description: <<<EOT + List available site templates. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEMPLATE_SITE_LIST, + ) + ] + )) + ->param('frameworks', [], new ArrayList(new WhiteList(\array_keys(Config::getParam('frameworks')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of frameworks allowed for filtering site templates. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' frameworks are allowed.', true) + ->param('useCases', [], new ArrayList(new WhiteList(['dev-tools', 'starter', 'databases', 'ai', 'messaging', 'utilities']), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of use cases allowed for filtering site templates. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' use cases are allowed.', true) + ->param('limit', 25, new Range(1, 5000), 'Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.', true) + ->param('offset', 0, new Range(0, 5000), 'Offset the list of returned templates. Maximum offset is 5000.', true) + ->inject('response') + ->callback([$this, 'action']); + } + + public function action( + array $frameworks, + array $usecases, + int $limit, + int $offset, + Response $response + ) { + $templates = Config::getParam('templates-site', []); + + if (!empty($frameworks)) { + $templates = \array_filter($templates, function ($template) use ($frameworks) { + return \count(\array_intersect($frameworks, \array_column($template['frameworks'], 'key'))) > 0; + }); + } + + if (!empty($usecases)) { + $templates = \array_filter($templates, function ($template) use ($usecases) { + return \count(\array_intersect($usecases, $template['useCases'])) > 0; + }); + } + + \usort($templates, function ($a, $b) { + return $b['score'] <=> $a['score']; + }); + + $total = \count($templates); + $templates = \array_slice($templates, $offset, $limit); + $response->dynamic(new Document([ + 'templates' => $templates, + 'total' => $total, + ]), Response::MODEL_TEMPLATE_SITE_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Usage/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Usage/Get.php new file mode 100644 index 00000000000..8bf19a9c287 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Usage/Get.php @@ -0,0 +1,173 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Usage; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\WhiteList; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getUsage'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/usage') + ->desc('Get site usage') + ->groups(['api', 'sites', 'usage']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: null, + name: 'getUsage', + description: <<<EOT + Get usage metrics and statistics for a for a specific site. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_SITE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site ID.') + ->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $range, + Response $response, + Database $dbForProject + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $periods = Config::getParam('usage', []); + $stats = $usage = []; + $days = $periods[$range]; + $metrics = [ + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_COMPUTE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_COMPUTE), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_MB_SECONDS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_MB_SECONDS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_SUCCESS), + str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_SITES, $site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_FAILED), + str_replace(['{siteInternalId}'], [$site->getInternalId()], METRIC_SITES_ID_REQUESTS), + str_replace(['{siteInternalId}'], [$site->getInternalId()], METRIC_SITES_ID_INBOUND), + str_replace(['{siteInternalId}'], [$site->getInternalId()], METRIC_SITES_ID_OUTBOUND), + + ]; + + Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats) { + foreach ($metrics as $metric) { + $result = $dbForProject->findOne('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', ['inf']) + ]); + + $stats[$metric]['total'] = $result['value'] ?? 0; + $limit = $days['limit']; + $period = $days['period']; + $results = $dbForProject->find('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', [$period]), + Query::limit($limit), + Query::orderDesc('time'), + ]); + $stats[$metric]['data'] = []; + foreach ($results as $result) { + $stats[$metric]['data'][$result->getAttribute('time')] = [ + 'value' => $result->getAttribute('value'), + ]; + } + } + }); + + $format = match ($days['period']) { + '1h' => 'Y-m-d\TH:00:00.000P', + '1d' => 'Y-m-d\T00:00:00.000P', + }; + + foreach ($metrics as $metric) { + $usage[$metric]['total'] = $stats[$metric]['total']; + $usage[$metric]['data'] = []; + $leap = time() - ($days['limit'] * $days['factor']); + while ($leap < time()) { + $leap += $days['factor']; + $formatDate = date($format, $leap); + $usage[$metric]['data'][] = [ + 'value' => $stats[$metric]['data'][$formatDate]['value'] ?? 0, + 'date' => $formatDate, + ]; + } + } + + $buildsTimeTotal = $usage[$metrics[4]]['total'] ?? 0; + $buildsTotal = $usage[$metrics[2]]['total'] ?? 0; + $response->dynamic(new Document([ + 'range' => $range, + 'deploymentsTotal' => $usage[$metrics[0]]['total'], + 'deploymentsStorageTotal' => $usage[$metrics[1]]['total'], + 'buildsTotal' => $buildsTotal, + 'buildsStorageTotal' => $usage[$metrics[3]]['total'], + 'buildsTimeTotal' => $buildsTimeTotal, + 'buildsTimeAverage' => $buildsTotal === 0 ? 0 : (int) ($buildsTimeTotal / $buildsTotal), + 'executionsTotal' => $usage[$metrics[5]]['total'], + 'executionsTimeTotal' => $usage[$metrics[6]]['total'], + 'buildsMbSecondsTotal' => $usage[$metrics[7]]['total'], + 'executionsMbSecondsTotal' => $usage[$metrics[8]]['total'], + 'buildsSuccessTotal' => $usage[$metrics[9]]['total'], + 'buildsFailedTotal' => $usage[$metrics[10]]['total'], + 'requestsTotal' => $usage[$metrics[11]]['total'], + 'inboundTotal' => $usage[$metrics[12]]['total'], + 'outboundTotal' => $usage[$metrics[13]]['total'], + 'deployments' => $usage[$metrics[0]]['data'], + 'deploymentsStorage' => $usage[$metrics[1]]['data'], + 'builds' => $usage[$metrics[2]]['data'], + 'buildsStorage' => $usage[$metrics[3]]['data'], + 'buildsTime' => $usage[$metrics[4]]['data'], + 'executions' => $usage[$metrics[5]]['data'], + 'executionsTime' => $usage[$metrics[6]]['data'], + 'buildsMbSeconds' => $usage[$metrics[7]]['data'], + 'executionsMbSeconds' => $usage[$metrics[8]]['data'], + 'buildsSuccess' => $usage[$metrics[9]]['data'], + 'buildsFailed' => $usage[$metrics[10]]['data'], + 'requests' => $usage[$metrics[11]]['data'], + 'inbound' => $usage[$metrics[12]]['data'], + 'outbound' => $usage[$metrics[13]]['data'], + ]), Response::MODEL_USAGE_SITE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Usage/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Usage/XList.php new file mode 100644 index 00000000000..e37d3e792e4 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Usage/XList.php @@ -0,0 +1,158 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Usage; + +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Config\Config; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\WhiteList; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'getSitesUsage'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/usage') + ->desc('Get sites usage') + ->groups(['api', 'sites', 'usage']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: null, + name: 'listUsage', + description: <<<EOT + Get usage metrics and statistics for all sites in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. + EOT, + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_SITES, + ) + ] + )) + ->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $range, Response $response, Database $dbForProject) + { + $periods = Config::getParam('usage', []); + $stats = $usage = []; + $days = $periods[$range]; + $metrics = [ + METRIC_SITES, + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_DEPLOYMENTS), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_DEPLOYMENTS_STORAGE), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS_STORAGE), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS_COMPUTE), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_EXECUTIONS), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_EXECUTIONS_COMPUTE), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS_MB_SECONDS), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_EXECUTIONS_MB_SECONDS), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS_SUCCESS), + str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS_FAILED), + METRIC_SITES_REQUESTS, + METRIC_SITES_INBOUND, + METRIC_SITES_OUTBOUND, + ]; + + Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats) { + foreach ($metrics as $metric) { + $result = $dbForProject->findOne('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', ['inf']) + ]); + + $stats[$metric]['total'] = $result['value'] ?? 0; + $limit = $days['limit']; + $period = $days['period']; + $results = $dbForProject->find('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', [$period]), + Query::limit($limit), + Query::orderDesc('time'), + ]); + $stats[$metric]['data'] = []; + foreach ($results as $result) { + $stats[$metric]['data'][$result->getAttribute('time')] = [ + 'value' => $result->getAttribute('value'), + ]; + } + } + }); + + $format = match ($days['period']) { + '1h' => 'Y-m-d\TH:00:00.000P', + '1d' => 'Y-m-d\T00:00:00.000P', + }; + + foreach ($metrics as $metric) { + $usage[$metric]['total'] = $stats[$metric]['total']; + $usage[$metric]['data'] = []; + $leap = time() - ($days['limit'] * $days['factor']); + while ($leap < time()) { + $leap += $days['factor']; + $formatDate = date($format, $leap); + $usage[$metric]['data'][] = [ + 'value' => $stats[$metric]['data'][$formatDate]['value'] ?? 0, + 'date' => $formatDate, + ]; + } + } + $response->dynamic(new Document([ + 'range' => $range, + 'sitesTotal' => $usage[$metrics[0]]['total'], + 'deploymentsTotal' => $usage[$metrics[1]]['total'], + 'deploymentsStorageTotal' => $usage[$metrics[2]]['total'], + 'buildsTotal' => $usage[$metrics[3]]['total'], + 'buildsStorageTotal' => $usage[$metrics[4]]['total'], + 'buildsTimeTotal' => $usage[$metrics[5]]['total'], + 'executionsTotal' => $usage[$metrics[6]]['total'], + 'executionsTimeTotal' => $usage[$metrics[7]]['total'], + 'buildsMbSecondsTotal' => $usage[$metrics[8]]['total'], + 'executionsMbSecondsTotal' => $usage[$metrics[9]]['total'], + 'buildsSuccessTotal' => $usage[$metrics[10]]['total'], + 'buildsFailedTotal' => $usage[$metrics[11]]['total'], + 'requestsTotal' => $usage[$metrics[12]]['total'], + 'inboundTotal' => $usage[$metrics[13]]['total'], + 'outboundTotal' => $usage[$metrics[14]]['total'], + 'sites' => $usage[$metrics[0]]['data'], + 'deployments' => $usage[$metrics[1]]['data'], + 'deploymentsStorage' => $usage[$metrics[2]]['data'], + 'builds' => $usage[$metrics[3]]['data'], + 'buildsStorage' => $usage[$metrics[4]]['data'], + 'buildsTime' => $usage[$metrics[5]]['data'], + 'executions' => $usage[$metrics[6]]['data'], + 'executionsTime' => $usage[$metrics[7]]['data'], + 'buildsMbSeconds' => $usage[$metrics[8]]['data'], + 'executionsMbSeconds' => $usage[$metrics[9]]['data'], + 'buildsSuccess' => $usage[$metrics[10]]['data'], + 'buildsFailed' => $usage[$metrics[11]]['data'], + 'requests' => $usage[$metrics[12]]['data'], + 'inbound' => $usage[$metrics[13]]['data'], + 'outbound' => $usage[$metrics[14]]['data'], + ]), Response::MODEL_USAGE_SITES); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Variables/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Create.php new file mode 100644 index 00000000000..ff1a5c50ec5 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Create.php @@ -0,0 +1,109 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; + +class Create extends Base +{ + use HTTP; + + public static function getName() + { + return 'createVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/sites/:siteId/variables') + ->desc('Create variable') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('audits.event', 'variable.create') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'variables', + name: 'createVariable', + description: <<<EOT + Create a new site variable. These variables can be accessed during build and runtime (server-side rendering) as environment variables. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_VARIABLE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site unique ID.', false) + ->param('key', null, new Text(Database::LENGTH_KEY), 'Variable key. Max length: ' . Database::LENGTH_KEY . ' chars.', false) + ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', false) + ->param('secret', true, new Boolean(), 'Secret variables can be updated or deleted, but only sites can read them during build and runtime.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('project') + ->callback([$this, 'action']); + } + + public function action(string $siteId, string $key, string $value, bool $secret, Response $response, Database $dbForProject, Document $project) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $variableId = ID::unique(); + + $teamId = $project->getAttribute('teamId', ''); + $variable = new Document([ + '$id' => $variableId, + '$permissions' => [ + Permission::read(Role::team(ID::custom($teamId))), + Permission::update(Role::team(ID::custom($teamId), 'owner')), + Permission::update(Role::team(ID::custom($teamId), 'developer')), + Permission::delete(Role::team(ID::custom($teamId), 'owner')), + Permission::delete(Role::team(ID::custom($teamId), 'developer')), + ], + 'resourceInternalId' => $site->getInternalId(), + 'resourceId' => $site->getId(), + 'resourceType' => 'site', + 'key' => $key, + 'value' => $value, + 'secret' => $secret, + 'search' => implode(' ', [$variableId, $site->getId(), $key, 'site']), + ]); + + try { + $variable = $dbForProject->createDocument('variables', $variable); + } catch (DuplicateException $th) { + throw new Exception(Exception::VARIABLE_ALREADY_EXISTS); + } + + $dbForProject->updateDocument('sites', $site->getId(), $site->setAttribute('live', false)); + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($variable, Response::MODEL_VARIABLE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Variables/Delete.php b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Delete.php new file mode 100644 index 00000000000..e4594a7c3d9 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Delete.php @@ -0,0 +1,83 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Base +{ + use HTTP; + + public static function getName() + { + return 'deleteVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/sites/:siteId/variables/:variableId') + ->desc('Delete variable') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('audits.event', 'variable.delete') + ->label('audits.resource', 'site/{request.siteId}') + ->label('sdk', new Method( + namespace: 'sites', + group: 'variables', + name: 'deleteVariable', + description: <<<EOT + Delete a variable by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('siteId', '', new UID(), 'Site unique ID.', false) + ->param('variableId', '', new UID(), 'Variable unique ID.', false) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, string $variableId, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $variable = $dbForProject->getDocument('variables', $variableId); + if ($variable === false || $variable->isEmpty() || $variable->getAttribute('resourceInternalId') !== $site->getInternalId() || $variable->getAttribute('resourceType') !== 'site') { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + if ($variable === false || $variable->isEmpty()) { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + $dbForProject->deleteDocument('variables', $variable->getId()); + + $dbForProject->updateDocument('sites', $site->getId(), $site->setAttribute('live', false)); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Variables/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Get.php new file mode 100644 index 00000000000..a14129d4325 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Get.php @@ -0,0 +1,83 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Base +{ + use HTTP; + + public static function getName() + { + return 'getVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/variables/:variableId') + ->desc('Get variable') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label( + 'sdk', + new Method( + namespace: 'sites', + group: 'variables', + name: 'getVariable', + description: <<<EOT + Get a variable by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ], + ) + ) + ->param('siteId', '', new UID(), 'Site unique ID.', false) + ->param('variableId', '', new UID(), 'Variable unique ID.', false) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $siteId, string $variableId, Response $response, Database $dbForProject) + { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $variable = $dbForProject->getDocument('variables', $variableId); + if ( + $variable === false || + $variable->isEmpty() || + $variable->getAttribute('resourceInternalId') !== $site->getInternalId() || + $variable->getAttribute('resourceType') !== 'site' + ) { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + if ($variable === false || $variable->isEmpty()) { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + $response->dynamic($variable, Response::MODEL_VARIABLE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Variables/Update.php b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Update.php new file mode 100644 index 00000000000..cd438a0ebbd --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Variables/Update.php @@ -0,0 +1,104 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Boolean; +use Utopia\Validator\Text; + +class Update extends Base +{ + use HTTP; + + public static function getName() + { + return 'updateVariable'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_PUT) + ->setHttpPath('/v1/sites/:siteId/variables/:variableId') + ->desc('Update variable') + ->groups(['api', 'sites']) + ->label('scope', 'sites.write') + ->label('audits.event', 'variable.update') + ->label('audits.resource', 'site/{request.siteId}') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label('sdk', new Method( + namespace: 'sites', + group: 'variables', + name: 'updateVariable', + description: <<<EOT + Update variable by its unique ID. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ] + )) + ->param('siteId', '', new UID(), 'Site unique ID.', false) + ->param('variableId', '', new UID(), 'Variable unique ID.', false) + ->param('key', null, new Text(255), 'Variable key. Max length: 255 chars.', false) + ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', true) + ->param('secret', null, new Boolean(), 'Secret variables can be updated or deleted, but only sites can read them during build and runtime.', true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + string $variableId, + string $key, + ?string $value, + ?bool $secret, + Response $response, + Database $dbForProject + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $variable = $dbForProject->getDocument('variables', $variableId); + if ($variable === false || $variable->isEmpty() || $variable->getAttribute('resourceInternalId') !== $site->getInternalId() || $variable->getAttribute('resourceType') !== 'site') { + throw new Exception(Exception::VARIABLE_NOT_FOUND); + } + + if ($variable->getAttribute('secret') === true && $secret === false) { + throw new Exception(Exception::VARIABLE_CANNOT_UNSET_SECRET); + } + + $variable + ->setAttribute('key', $key) + ->setAttribute('value', $value ?? $variable->getAttribute('value')) + ->setAttribute('secret', $secret ?? $variable->getAttribute('secret')) + ->setAttribute('search', implode(' ', [$variableId, $site->getId(), $key, 'site'])); + + try { + $dbForProject->updateDocument('variables', $variable->getId(), $variable); + } catch (DuplicateException $th) { + throw new Exception(Exception::VARIABLE_ALREADY_EXISTS); + } + + $dbForProject->updateDocument('sites', $site->getId(), $site->setAttribute('live', false)); + + $response->dynamic($variable, Response::MODEL_VARIABLE); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Variables/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Variables/XList.php new file mode 100644 index 00000000000..15e21296a55 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Http/Variables/XList.php @@ -0,0 +1,75 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Http\Variables; + +use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class XList extends Base +{ + use HTTP; + + public static function getName() + { + return 'listVariables'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/sites/:siteId/variables') + ->desc('List variables') + ->groups(['api', 'sites']) + ->label('scope', 'sites.read') + ->label('resourceType', RESOURCE_TYPE_SITES) + ->label( + 'sdk', + new Method( + namespace: 'sites', + group: 'variables', + name: 'listVariables', + description: <<<EOT + Get a list of all variables of a specific site. + EOT, + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE_LIST, + ) + ], + ) + ) + ->param('siteId', '', new UID(), 'Site unique ID.', false) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action( + string $siteId, + Response $response, + Database $dbForProject + ) { + $site = $dbForProject->getDocument('sites', $siteId); + + if ($site->isEmpty()) { + throw new Exception(Exception::SITE_NOT_FOUND); + } + + $response->dynamic(new Document([ + 'variables' => $site->getAttribute('vars', []), + 'total' => \count($site->getAttribute('vars', [])), + ]), Response::MODEL_VARIABLE_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Module.php b/src/Appwrite/Platform/Modules/Sites/Module.php new file mode 100644 index 00000000000..86a6459a862 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Module.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites; + +use Appwrite\Platform\Modules\Sites\Services\Http; +use Utopia\Platform; + +class Module extends Platform\Module +{ + public function __construct() + { + $this->addService('http', new Http()); + } +} diff --git a/src/Appwrite/Platform/Modules/Sites/Services/Http.php b/src/Appwrite/Platform/Modules/Sites/Services/Http.php new file mode 100644 index 00000000000..6bd151f97ed --- /dev/null +++ b/src/Appwrite/Platform/Modules/Sites/Services/Http.php @@ -0,0 +1,86 @@ +<?php + +namespace Appwrite\Platform\Modules\Sites\Services; + +use Appwrite\Platform\Modules\Sites\Http\Deployments\Create as CreateDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Delete as DeleteDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Download\Get as DownloadDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Duplicate\Create as CreateDuplicateDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Get as GetDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Status\Update as UpdateDeploymentStatus; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Template\Create as CreateTemplateDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Vcs\Create as CreateVcsDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\XList as ListDeployments; +use Appwrite\Platform\Modules\Sites\Http\Frameworks\XList as ListFrameworks; +use Appwrite\Platform\Modules\Sites\Http\Logs\Delete as DeleteLog; +use Appwrite\Platform\Modules\Sites\Http\Logs\Get as GetLog; +use Appwrite\Platform\Modules\Sites\Http\Logs\XList as ListLogs; +use Appwrite\Platform\Modules\Sites\Http\Sites\Create as CreateSite; +use Appwrite\Platform\Modules\Sites\Http\Sites\Delete as DeleteSite; +use Appwrite\Platform\Modules\Sites\Http\Sites\Deployment\Update as UpdateSiteDeployment; +use Appwrite\Platform\Modules\Sites\Http\Sites\Get as GetSite; +use Appwrite\Platform\Modules\Sites\Http\Sites\Update as UpdateSite; +use Appwrite\Platform\Modules\Sites\Http\Sites\XList as ListSites; +use Appwrite\Platform\Modules\Sites\Http\Specifications\XList as ListSpecifications; +use Appwrite\Platform\Modules\Sites\Http\Templates\Get as GetTemplate; +use Appwrite\Platform\Modules\Sites\Http\Templates\XList as ListTemplates; +use Appwrite\Platform\Modules\Sites\Http\Usage\Get as GetUsage; +use Appwrite\Platform\Modules\Sites\Http\Usage\XList as ListUsage; +use Appwrite\Platform\Modules\Sites\Http\Variables\Create as CreateVariable; +use Appwrite\Platform\Modules\Sites\Http\Variables\Delete as DeleteVariable; +use Appwrite\Platform\Modules\Sites\Http\Variables\Get as GetVariable; +use Appwrite\Platform\Modules\Sites\Http\Variables\Update as UpdateVariable; +use Appwrite\Platform\Modules\Sites\Http\Variables\XList as ListVariables; +use Utopia\Platform\Service; + +class Http extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_HTTP; + // Sites + $this->addAction(CreateSite::getName(), new CreateSite()); + $this->addAction(GetSite::getName(), new GetSite()); + $this->addAction(ListSites::getName(), new ListSites()); + $this->addAction(UpdateSite::getName(), new UpdateSite()); + $this->addAction(DeleteSite::getName(), new DeleteSite()); + + // Frameworks + $this->addAction(ListFrameworks::getName(), new ListFrameworks()); + + + // Deployments + $this->addAction(CreateDeployment::getName(), new CreateDeployment()); + $this->addAction(CreateTemplateDeployment::getName(), new CreateTemplateDeployment()); + $this->addAction(CreateVcsDeployment::getName(), new CreateVcsDeployment()); + $this->addAction(GetDeployment::getName(), new GetDeployment()); + $this->addAction(ListDeployments::getName(), new ListDeployments()); + $this->addAction(UpdateSiteDeployment::getName(), new UpdateSiteDeployment()); + $this->addAction(DeleteDeployment::getName(), new DeleteDeployment()); + $this->addAction(DownloadDeployment::getName(), new DownloadDeployment()); + $this->addAction(CreateDuplicateDeployment::getName(), new CreateDuplicateDeployment()); + $this->addAction(UpdateDeploymentStatus::getName(), new UpdateDeploymentStatus()); + + // Logs + $this->addAction(GetLog::getName(), new GetLog()); + $this->addAction(ListLogs::getName(), new ListLogs()); + $this->addAction(DeleteLog::getName(), new DeleteLog()); + + // Variables + $this->addAction(CreateVariable::getName(), new CreateVariable()); + $this->addAction(GetVariable::getName(), new GetVariable()); + $this->addAction(ListVariables::getName(), new ListVariables()); + $this->addAction(UpdateVariable::getName(), new UpdateVariable()); + $this->addAction(DeleteVariable::getName(), new DeleteVariable()); + + // Templates + $this->addAction(ListTemplates::getName(), new ListTemplates()); + $this->addAction(GetTemplate::getName(), new GetTemplate()); + + // Usage + $this->addAction(ListUsage::getName(), new ListUsage()); + $this->addAction(GetUsage::getName(), new GetUsage()); + + $this->addAction(ListSpecifications::getName(), new ListSpecifications()); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Action.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Action.php new file mode 100644 index 00000000000..565ab7bab77 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Action.php @@ -0,0 +1,45 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Http\Tokens\Buckets\Files; + +use Appwrite\Auth\Auth; +use Appwrite\Extend\Exception; +use Utopia\Database\Database; +use Utopia\Database\Validator\Authorization; +use Utopia\Platform\Action as UtopiaAction; + +class Action extends UtopiaAction +{ + protected function getFileAndBucket(Database $dbForProject, string $bucketId, string $fileId): array + { + $bucket = Authorization::skip(fn () => $dbForProject->getDocument('buckets', $bucketId)); + + $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + + if ($bucket->isEmpty() || (!$bucket->getAttribute('enabled') && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); + } + + $validator = new Authorization(Database::PERMISSION_READ); + $valid = $validator->isValid($bucket->getRead()); + if (!$valid) { + throw new Exception(Exception::USER_UNAUTHORIZED); + } + + $fileSecurity = $bucket->getAttribute('fileSecurity', false); + if ($fileSecurity) { + $file = $dbForProject->getDocument('bucket_' . $bucket->getInternalId(), $fileId); + } else { + $file = Authorization::skip(fn () => $dbForProject->getDocument('bucket_' . $bucket->getInternalId(), $fileId)); + } + + if ($file->isEmpty()) { + throw new Exception(Exception::STORAGE_FILE_NOT_FOUND); + } + return [ + 'bucket' => $bucket, + 'file' => $file, + ]; + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php new file mode 100644 index 00000000000..4b3b4216968 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/Create.php @@ -0,0 +1,113 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Http\Tokens\Buckets\Files; + +use Appwrite\Auth\Auth; +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Nullable; + +class Create extends Action +{ + use HTTP; + + public static function getName() + { + return 'createFileToken'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/tokens/buckets/:bucketId/files/:fileId') + ->desc('Create file token') + ->groups(['api', 'token']) + ->label('scope', 'tokens.write') + ->label('event', 'tokens.[tokenId].create') + ->label('audits.event', 'token.create') + ->label('audits.resource', 'token/{response.$id}') + ->label('usage.metric', 'tokens.{scope}.requests.create') + ->label('usage.params', ['resourceId:{request.resourceId}', 'resourceType:{request.resourceType}']) + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'tokens', + group: 'files', + name: 'createFileToken', + description: <<<EOT + Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter. + EOT, + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_RESOURCE_TOKEN, + ) + ], + contentType: ContentType::JSON + )) + ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') + ->param('fileId', '', new UID(), 'File unique ID.') + ->param('expire', null, new Nullable(new DatetimeValidator()), 'Token expiry date', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback([$this, 'action']); + } + + public function action(string $bucketId, string $fileId, ?string $expire, Response $response, Database $dbForProject, Event $queueForEvents): void + { + + /** + * @var Document $bucket + * @var Document $file + */ + ['bucket' => $bucket, 'file' => $file] = $this->getFileAndBucket($dbForProject, $bucketId, $fileId); + + $fileSecurity = $bucket->getAttribute('fileSecurity', false); + $validator = new Authorization(Database::PERMISSION_UPDATE); + $bucketPermission = $validator->isValid($bucket->getUpdate()); + + if ($fileSecurity) { + $filePermission = $validator->isValid($file->getUpdate()); + if (!$bucketPermission && !$filePermission) { + throw new Exception(Exception::USER_UNAUTHORIZED); + } + } elseif (!$bucketPermission) { + throw new Exception(Exception::USER_UNAUTHORIZED); + } + + $token = $dbForProject->createDocument('resourceTokens', new Document([ + '$id' => ID::unique(), + 'secret' => Auth::tokenGenerator(128), + 'resourceId' => $bucketId . ':' . $fileId, + 'resourceInternalId' => $bucket->getInternalId() . ':' . $file->getInternalId(), + 'resourceType' => TOKENS_RESOURCE_TYPE_FILES, + 'expire' => $expire, + ])); + + $queueForEvents + ->setParam('bucketId', $bucket->getId()) + ->setParam('fileId', $file->getId()) + ->setParam('tokenId', $token->getId()) + ->setContext('bucket', $bucket) + ; + + $response + ->setStatusCode(Response::STATUS_CODE_CREATED) + ->dynamic($token, Response::MODEL_RESOURCE_TOKEN); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/XList.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/XList.php new file mode 100644 index 00000000000..38fe10e2d94 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Buckets/Files/XList.php @@ -0,0 +1,92 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Http\Tokens\Buckets\Files; + +use Appwrite\Extend\Exception as ExtendException; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Database\Validator\Queries\FileTokens; +use Appwrite\Utopia\Response; +use Exception; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Scope\HTTP; + +class XList extends Action +{ + use HTTP; + + public static function getName() + { + return 'listFileTokens'; + } + + public function __construct() + { + $this + ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/tokens/buckets/:bucketId/files/:fileId') + ->desc('List tokens') + ->groups(['api', 'tokens']) + ->label('scope', 'tokens.read') + ->label('usage.metric', 'tokens.requests.read') + ->label('sdk', new Method( + namespace: 'tokens', + group: 'files', + name: 'list', + description: <<<EOT + List all the tokens created for a specific file or bucket. You can use the query params to filter your results. + EOT, + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_RESOURCE_TOKEN_LIST, + ) + ], + contentType: ContentType::JSON + )) + ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') + ->param('fileId', '', new UID(), 'File unique ID.') + ->param('queries', [], new FileTokens(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', FileTokens::ALLOWED_ATTRIBUTES), true) + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $bucketId, string $fileId, array $queries, Response $response, Database $dbForProject) + { + ['bucket' => $bucket, 'file' => $file] = $this->getFileAndBucket($dbForProject, $bucketId, $fileId); + + $queries = Query::parseQueries($queries); + $queries[] = Query::equal('resourceType', [TOKENS_RESOURCE_TYPE_FILES]); + $queries[] = Query::equal('resourceInternalId', [$bucket->getInternalId() . ':' . $file->getInternalId()]); + // Get cursor document if there was a cursor query + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + $tokenId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('resourceTokens', $tokenId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(ExtendException::GENERAL_CURSOR_NOT_FOUND, "File token '{$tokenId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + $response->dynamic(new Document([ + 'tokens' => $dbForProject->find('resourceTokens', $queries), + 'total' => $dbForProject->count('resourceTokens', $filterQueries, APP_LIMIT_COUNT), + ]), Response::MODEL_RESOURCE_TOKEN_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Delete.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Delete.php new file mode 100644 index 00000000000..fcac9a6b248 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Delete.php @@ -0,0 +1,80 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Http\Tokens; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Delete extends Action +{ + use HTTP; + + public static function getName() + { + return 'deleteToken'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/tokens/:tokenId') + ->desc('Delete token') + ->groups(['api', 'tokens']) + ->label('scope', 'tokens.write') + ->label('event', 'tokens.[tokenId].delete') + ->label('audits.event', 'tokens.delete') + ->label('audits.resource', 'token/{request.tokenId}') + ->label('usage.metric', 'tokens.{scope}.requests.delete') + ->label('usage.params', ['tokenId:{request.tokenId}']) + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'tokens', + group: 'tokens', + name: 'delete', + description: <<<EOT + Delete a token by its unique ID. + EOT, + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('tokenId', '', new UID(), 'Token ID.') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback([$this, 'action']); + } + + public function action(string $tokenId, Response $response, Database $dbForProject, Event $queueForEvents) + { + $token = $dbForProject->getDocument('resourceTokens', $tokenId); + if ($token->isEmpty()) { + throw new Exception(Exception::TOKEN_NOT_FOUND); + } + + $dbForProject->deleteDocument('resourceTokens', $tokenId); + + $queueForEvents + ->setParam('tokenId', $token->getId()) + ->setPayload($response->output($token, Response::MODEL_RESOURCE_TOKEN)) + ; + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Get.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Get.php new file mode 100644 index 00000000000..66b9c1b5cbe --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Get.php @@ -0,0 +1,66 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Http\Tokens; + +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; + +class Get extends Action +{ + use HTTP; + + public static function getName() + { + return 'getToken'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/tokens/:tokenId') + ->desc('Get token') + ->groups(['api', 'tokens']) + ->label('scope', 'tokens.read') + ->label('usage.metric', 'tokens.{scope}.requests.read') + ->label('usage.params', ['tokenId:{request.tokenId}']) + ->label('sdk', new Method( + namespace: 'tokens', + group: 'tokens', + name: 'get', + description: <<<EOT + Get a token by its unique ID. + EOT, + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_RESOURCE_TOKEN, + ) + ], + contentType: ContentType::JSON + )) + ->param('tokenId', '', new UID(), 'Token ID.') + ->inject('response') + ->inject('dbForProject') + ->callback([$this, 'action']); + } + + public function action(string $tokenId, Response $response, Database $dbForProject) + { + $token = $dbForProject->getDocument('resourceTokens', $tokenId); + + if ($token->isEmpty()) { + throw new Exception(Exception::TOKEN_NOT_FOUND); + } + + $response->dynamic($token, Response::MODEL_RESOURCE_TOKEN); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Update.php b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Update.php new file mode 100644 index 00000000000..c341831c0d0 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Http/Tokens/Update.php @@ -0,0 +1,83 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Http\Tokens; + +use Appwrite\Event\Event; +use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Utopia\Database\Database; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\UID; +use Utopia\Platform\Action; +use Utopia\Platform\Scope\HTTP; +use Utopia\Validator\Nullable; + +class Update extends Action +{ + use HTTP; + + public static function getName() + { + return 'updateToken'; + } + + public function __construct() + { + $this->setHttpMethod(Action::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/tokens/:tokenId') + ->desc('Update token') + ->groups(['api', 'tokens']) + ->label('scope', 'tokens.write') + ->label('event', 'tokens.[tokenId].update') + ->label('audits.event', 'tokens.update') + ->label('audits.resource', 'tokens/{response.$id}') + ->label('usage.metric', 'tokens.{scope}.requests.update') + ->label('usage.params', ['tokenId:{request.tokenId}']) + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'tokens', + group: 'tokens', + name: 'update', + description: <<<EOT + Update a token by its unique ID. Use this endpoint to update a token's expiry date. + EOT, + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_RESOURCE_TOKEN, + ) + ], + contentType: ContentType::JSON + )) + ->param('tokenId', '', new UID(), 'Token unique ID.') + ->param('expire', null, new Nullable(new DatetimeValidator()), 'File token expiry date', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback([$this, 'action']); + } + + public function action(string $tokenId, ?string $expire, Response $response, Database $dbForProject, Event $queueForEvents) + { + $token = $dbForProject->getDocument('resourceTokens', $tokenId); + + if ($token->isEmpty()) { + throw new Exception(Exception::TOKEN_NOT_FOUND); + } + + $token->setAttribute('expire', $expire); + + $token = $dbForProject->updateDocument('resourceTokens', $tokenId, $token); + + $queueForEvents->setParam('tokenId', $token->getId()); + + $response->dynamic($token, Response::MODEL_RESOURCE_TOKEN); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Module.php b/src/Appwrite/Platform/Modules/Tokens/Module.php new file mode 100644 index 00000000000..9f49ef01115 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Module.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens; + +use Appwrite\Platform\Modules\Tokens\Services\Http; +use Utopia\Platform; + +class Module extends Platform\Module +{ + public function __construct() + { + $this->addService('http', new Http()); + } +} diff --git a/src/Appwrite/Platform/Modules/Tokens/Services/Http.php b/src/Appwrite/Platform/Modules/Tokens/Services/Http.php new file mode 100644 index 00000000000..ac58c110a5f --- /dev/null +++ b/src/Appwrite/Platform/Modules/Tokens/Services/Http.php @@ -0,0 +1,26 @@ +<?php + +namespace Appwrite\Platform\Modules\Tokens\Services; + +use Appwrite\Platform\Modules\Tokens\Http\Tokens\Buckets\Files\Create as CreateFileToken; +use Appwrite\Platform\Modules\Tokens\Http\Tokens\Buckets\Files\XList as ListFileTokens; +use Appwrite\Platform\Modules\Tokens\Http\Tokens\Delete as DeleteToken; +use Appwrite\Platform\Modules\Tokens\Http\Tokens\Get as GetToken; +use Appwrite\Platform\Modules\Tokens\Http\Tokens\Update as UpdateToken; +use Utopia\Platform\Service; + +class Http extends Service +{ + public function __construct() + { + $this->type = Service::TYPE_HTTP; + $this + ->addAction(CreateFileToken::getName(), new CreateFileToken()) + ->addAction(GetToken::getName(), new GetToken()) + ->addAction(ListFileTokens::getName(), new ListFileTokens()) + ->addAction(UpdateToken::getName(), new UpdateToken()) + ->addAction(DeleteToken::getName(), new DeleteToken()) + ; + + } +} diff --git a/src/Appwrite/Platform/Services/Tasks.php b/src/Appwrite/Platform/Services/Tasks.php index 7a0d5b60ac8..3ada193cf7f 100644 --- a/src/Appwrite/Platform/Services/Tasks.php +++ b/src/Appwrite/Platform/Services/Tasks.php @@ -6,14 +6,15 @@ use Appwrite\Platform\Tasks\Install; use Appwrite\Platform\Tasks\Maintenance; use Appwrite\Platform\Tasks\Migrate; -use Appwrite\Platform\Tasks\QueueCount; use Appwrite\Platform\Tasks\QueueRetry; use Appwrite\Platform\Tasks\ScheduleExecutions; use Appwrite\Platform\Tasks\ScheduleFunctions; use Appwrite\Platform\Tasks\ScheduleMessages; +use Appwrite\Platform\Tasks\Screenshot; use Appwrite\Platform\Tasks\SDKs; use Appwrite\Platform\Tasks\Specs; use Appwrite\Platform\Tasks\SSL; +use Appwrite\Platform\Tasks\StatsResources; use Appwrite\Platform\Tasks\Upgrade; use Appwrite\Platform\Tasks\Vars; use Appwrite\Platform\Tasks\Version; @@ -29,10 +30,10 @@ public function __construct() ->addAction(Install::getName(), new Install()) ->addAction(Maintenance::getName(), new Maintenance()) ->addAction(Migrate::getName(), new Migrate()) - ->addAction(QueueCount::getName(), new QueueCount()) ->addAction(QueueRetry::getName(), new QueueRetry()) ->addAction(SDKs::getName(), new SDKs()) ->addAction(SSL::getName(), new SSL()) + ->addAction(Screenshot::getName(), new Screenshot()) ->addAction(ScheduleFunctions::getName(), new ScheduleFunctions()) ->addAction(ScheduleExecutions::getName(), new ScheduleExecutions()) ->addAction(ScheduleMessages::getName(), new ScheduleMessages()) @@ -40,6 +41,7 @@ public function __construct() ->addAction(Upgrade::getName(), new Upgrade()) ->addAction(Vars::getName(), new Vars()) ->addAction(Version::getName(), new Version()) + ->addAction(StatsResources::getName(), new StatsResources()) ; } } diff --git a/src/Appwrite/Platform/Services/Workers.php b/src/Appwrite/Platform/Services/Workers.php index 0e79f4257cc..e22f402145b 100644 --- a/src/Appwrite/Platform/Services/Workers.php +++ b/src/Appwrite/Platform/Services/Workers.php @@ -3,7 +3,6 @@ namespace Appwrite\Platform\Services; use Appwrite\Platform\Workers\Audits; -use Appwrite\Platform\Workers\Builds; use Appwrite\Platform\Workers\Certificates; use Appwrite\Platform\Workers\Databases; use Appwrite\Platform\Workers\Deletes; @@ -11,8 +10,8 @@ use Appwrite\Platform\Workers\Mails; use Appwrite\Platform\Workers\Messaging; use Appwrite\Platform\Workers\Migrations; -use Appwrite\Platform\Workers\Usage; -use Appwrite\Platform\Workers\UsageDump; +use Appwrite\Platform\Workers\StatsResources; +use Appwrite\Platform\Workers\StatsUsage; use Appwrite\Platform\Workers\Webhooks; use Utopia\Platform\Service; @@ -23,7 +22,6 @@ public function __construct() $this->type = Service::TYPE_WORKER; $this ->addAction(Audits::getName(), new Audits()) - ->addAction(Builds::getName(), new Builds()) ->addAction(Certificates::getName(), new Certificates()) ->addAction(Databases::getName(), new Databases()) ->addAction(Deletes::getName(), new Deletes()) @@ -31,10 +29,9 @@ public function __construct() ->addAction(Mails::getName(), new Mails()) ->addAction(Messaging::getName(), new Messaging()) ->addAction(Webhooks::getName(), new Webhooks()) - ->addAction(UsageDump::getName(), new UsageDump()) - ->addAction(Usage::getName(), new Usage()) + ->addAction(StatsUsage::getName(), new StatsUsage()) ->addAction(Migrations::getName(), new Migrations()) - + ->addAction(StatsResources::getName(), new StatsResources()) ; } } diff --git a/src/Appwrite/Platform/Tasks/Doctor.php b/src/Appwrite/Platform/Tasks/Doctor.php index 82d1ca2d593..790f1a72902 100644 --- a/src/Appwrite/Platform/Tasks/Doctor.php +++ b/src/Appwrite/Platform/Tasks/Doctor.php @@ -3,6 +3,7 @@ namespace Appwrite\Platform\Tasks; use Appwrite\ClamAV\Network; +use Appwrite\PubSub\Adapter; use Utopia\App; use Utopia\CLI\Console; use Utopia\Config\Config; @@ -14,6 +15,7 @@ use Utopia\Storage\Device\Local; use Utopia\Storage\Storage; use Utopia\System\System; +use Utopia\Validator\IP; class Doctor extends Action { @@ -27,7 +29,7 @@ public function __construct() $this ->desc('Validate server health') ->inject('register') - ->callback(fn (Registry $register) => $this->action($register)); + ->callback([$this, 'action']); } public function action(Registry $register): void @@ -42,19 +44,31 @@ public function action(Registry $register): void Console::log('[Settings]'); $domain = new Domain(System::getEnv('_APP_DOMAIN')); + if (!$domain->isKnown() || $domain->isTest()) { + Console::log('🔴 Hostname is not valid (' . $domain->get() . ')'); + } else { + Console::log('🟢 Hostname is valid (' . $domain->get() . ')'); + } + $domain = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME')); if (!$domain->isKnown() || $domain->isTest()) { - Console::log('🔴 Hostname has no public suffix (' . $domain->get() . ')'); + Console::log('🔴 CNAME record target is not valid (' . $domain->get() . ')'); } else { - Console::log('🟢 Hostname has a public suffix (' . $domain->get() . ')'); + Console::log('🟢 CNAME record target is valid (' . $domain->get() . ')'); } - $domain = new Domain(System::getEnv('_APP_DOMAIN_TARGET')); + $ipv4 = new IP(IP::V4); + if (!$ipv4->isValid(System::getEnv('_APP_DOMAIN_TARGET_A'))) { + Console::log('🔴 A record target is not valid (' . System::getEnv('_APP_DOMAIN_TARGET_A') . ')'); + } else { + Console::log('🟢 A record target is valid (' . System::getEnv('_APP_DOMAIN_TARGET_A') . ')'); + } - if (!$domain->isKnown() || $domain->isTest()) { - Console::log('🔴 CNAME target has no public suffix (' . $domain->get() . ')'); + $ipv6 = new IP(IP::V6); + if (!$ipv6->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA'))) { + Console::log('🔴 AAAA record target is not valid (' . System::getEnv('_APP_DOMAIN_TARGET_AAAA') . ')'); } else { - Console::log('🟢 CNAME target has a public suffix (' . $domain->get() . ')'); + Console::log('🟢 AAAA record target is valid (' . System::getEnv('_APP_DOMAIN_TARGET_AAAA') . ')'); } if (System::getEnv('_APP_OPENSSL_KEY_V1') === 'your-secret-key' || empty(System::getEnv('_APP_OPENSSL_KEY_V1'))) { @@ -95,10 +109,10 @@ public function action(Registry $register): void Console::log('🟢 HTTPS force option is enabled'); } - if ('enabled' !== System::getEnv('_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS', 'disabled')) { - Console::log('🔴 HTTPS force option is disabled for function domains'); + if ('enabled' !== System::getEnv('_APP_OPTIONS_ROUTER_FORCE_HTTPS', 'disabled')) { + Console::log('🔴 HTTPS force option is disabled for function/site domains'); } else { - Console::log('🟢 HTTPS force option is enabled for function domains'); + Console::log('🟢 HTTPS force option is enabled for function/site domains'); } $providerConfig = System::getEnv('_APP_LOGGING_CONFIG', ''); @@ -158,6 +172,7 @@ public function action(Registry $register): void foreach ($configs as $key => $config) { foreach ($config as $pool) { try { + /** @var Adapter $adapter */ $adapter = $pools->get($pool)->pop()->getResource(); if ($adapter->ping()) { diff --git a/src/Appwrite/Platform/Tasks/Install.php b/src/Appwrite/Platform/Tasks/Install.php index 4abd2676841..c7b1f72453b 100644 --- a/src/Appwrite/Platform/Tasks/Install.php +++ b/src/Appwrite/Platform/Tasks/Install.php @@ -31,7 +31,7 @@ public function __construct() ->param('image', 'appwrite', new Text(0), 'Main appwrite docker image', true) ->param('interactive', 'Y', new Text(1), 'Run an interactive session', true) ->param('no-start', false, new Boolean(true), 'Run an interactive session', true) - ->callback(fn ($httpPort, $httpsPort, $organization, $image, $interactive, $noStart) => $this->action($httpPort, $httpsPort, $organization, $image, $interactive, $noStart)); + ->callback([$this, 'action']); } public function action(string $httpPort, string $httpsPort, string $organization, string $image, string $interactive, bool $noStart): void diff --git a/src/Appwrite/Platform/Tasks/Maintenance.php b/src/Appwrite/Platform/Tasks/Maintenance.php index 1da8a58ebef..fd9d05dec9e 100644 --- a/src/Appwrite/Platform/Tasks/Maintenance.php +++ b/src/Appwrite/Platform/Tasks/Maintenance.php @@ -23,103 +23,73 @@ public function __construct() { $this ->desc('Schedules maintenance tasks and publishes them to our queues') - ->inject('dbForConsole') + ->inject('dbForPlatform') + ->inject('console') ->inject('queueForCertificates') ->inject('queueForDeletes') - ->callback(fn (Database $dbForConsole, Certificate $queueForCertificates, Delete $queueForDeletes) => $this->action($dbForConsole, $queueForCertificates, $queueForDeletes)); + ->callback([$this, 'action']); } - public function action(Database $dbForConsole, Certificate $queueForCertificates, Delete $queueForDeletes): void + public function action(Database $dbForPlatform, Document $console, Certificate $queueForCertificates, Delete $queueForDeletes): void { Console::title('Maintenance V1'); Console::success(APP_NAME . ' maintenance process v1 has started'); - // # of days in seconds (1 day = 86400s) - $interval = (int) System::getEnv('_APP_MAINTENANCE_INTERVAL', '86400'); - $delay = (int) System::getEnv('_APP_MAINTENANCE_DELAY', '0'); + $interval = (int) System::getEnv('_APP_MAINTENANCE_INTERVAL', '86400'); // 1 day $usageStatsRetentionHourly = (int) System::getEnv('_APP_MAINTENANCE_RETENTION_USAGE_HOURLY', '8640000'); //100 days $cacheRetention = (int) System::getEnv('_APP_MAINTENANCE_RETENTION_CACHE', '2592000'); // 30 days $schedulesDeletionRetention = (int) System::getEnv('_APP_MAINTENANCE_RETENTION_SCHEDULES', '86400'); // 1 Day + $jobInitTime = System::getEnv('_APP_MAINTENANCE_START_TIME', '00:00'); // (hour:minutes) + + $now = new \DateTime(); + $now->setTimezone(new \DateTimeZone(date_default_timezone_get())); + $next = new \DateTime($now->format("Y-m-d $jobInitTime")); + $next->setTimezone(new \DateTimeZone(date_default_timezone_get())); + $delay = $next->getTimestamp() - $now->getTimestamp(); + + /** + * If time passed for the target day. + */ + if ($delay <= 0) { + $next->add(\DateInterval::createFromDateString('1 days')); + $delay = $next->getTimestamp() - $now->getTimestamp(); + } + + Console::info('Setting loop start time to ' . $next->format("Y-m-d H:i:s.v") . '. Delaying for ' . $delay . ' seconds.'); - Console::loop(function () use ($interval, $cacheRetention, $schedulesDeletionRetention, $usageStatsRetentionHourly, $dbForConsole, $queueForDeletes, $queueForCertificates) { + Console::loop(function () use ($interval, $cacheRetention, $schedulesDeletionRetention, $usageStatsRetentionHourly, $dbForPlatform, $console, $queueForDeletes, $queueForCertificates) { $time = DateTime::now(); Console::info("[{$time}] Notifying workers with maintenance tasks every {$interval} seconds"); - $this->foreachProject($dbForConsole, function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) { - $queueForDeletes->setProject($project); - - $this->notifyDeleteTargets($queueForDeletes); - $this->notifyDeleteExecutionLogs($queueForDeletes); - $this->notifyDeleteAbuseLogs($queueForDeletes); - $this->notifyDeleteAuditLogs($queueForDeletes); - $this->notifyDeleteUsageStats($usageStatsRetentionHourly, $queueForDeletes); - $this->notifyDeleteExpiredSessions($queueForDeletes); - }); + $dbForPlatform->foreach( + 'projects', + function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) { + $queueForDeletes + ->setType(DELETE_TYPE_MAINTENANCE) + ->setProject($project) + ->setUsageRetentionHourlyDateTime(DateTime::addSeconds(new \DateTime(), -1 * $usageStatsRetentionHourly)) + ->trigger(); + }, + [ + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), + Query::limit(100), + ] + ); + + $queueForDeletes + ->setType(DELETE_TYPE_MAINTENANCE) + ->setProject($console) + ->setUsageRetentionHourlyDateTime(DateTime::addSeconds(new \DateTime(), -1 * $usageStatsRetentionHourly)) + ->trigger(); $this->notifyDeleteConnections($queueForDeletes); - $this->renewCertificates($dbForConsole, $queueForCertificates); + $this->renewCertificates($dbForPlatform, $queueForCertificates); $this->notifyDeleteCache($cacheRetention, $queueForDeletes); $this->notifyDeleteSchedules($schedulesDeletionRetention, $queueForDeletes); }, $interval, $delay); } - protected function foreachProject(Database $dbForConsole, callable $callback): void - { - // TODO: @Meldiron name of this method no longer matches. It does not delete, and it gives whole document - $count = 0; - $chunk = 0; - $limit = 50; - $sum = $limit; - $executionStart = \microtime(true); - - while ($sum === $limit) { - $projects = $dbForConsole->find('projects', [Query::limit($limit), Query::offset($chunk * $limit)]); - - $chunk++; - - /** @var string[] $projectIds */ - $sum = count($projects); - - foreach ($projects as $project) { - $callback($project); - $count++; - } - } - - $executionEnd = \microtime(true); - Console::info("Found {$count} projects " . ($executionEnd - $executionStart) . " seconds"); - } - - private function notifyDeleteExecutionLogs(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_EXECUTIONS) - ->trigger(); - } - - private function notifyDeleteAbuseLogs(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_ABUSE) - ->trigger(); - } - - private function notifyDeleteAuditLogs(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_AUDIT) - ->trigger(); - } - - private function notifyDeleteUsageStats(int $usageStatsRetentionHourly, Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_USAGE) - ->setUsageRetentionHourlyDateTime(DateTime::addSeconds(new \DateTime(), -1 * $usageStatsRetentionHourly)) - ->trigger(); - } - private function notifyDeleteConnections(Delete $queueForDeletes): void { $queueForDeletes @@ -128,19 +98,13 @@ private function notifyDeleteConnections(Delete $queueForDeletes): void ->trigger(); } - private function notifyDeleteExpiredSessions(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_SESSIONS) - ->trigger(); - } - - private function renewCertificates(Database $dbForConsole, Certificate $queueForCertificate): void + private function renewCertificates(Database $dbForPlatform, Certificate $queueForCertificate): void { $time = DateTime::now(); - $certificates = $dbForConsole->find('certificates', [ + $certificates = $dbForPlatform->find('certificates', [ Query::lessThan('attempts', 5), // Maximum 5 attempts + Query::isNotNull('renewDate'), Query::lessThanEqual('renewDate', $time), // includes 60 days cooldown (we have 30 days to renew) Query::limit(200), // Limit 200 comes from LetsEncrypt (300 orders per 3 hours, keeping some for new domains) ]); @@ -176,11 +140,4 @@ private function notifyDeleteSchedules($interval, Delete $queueForDeletes): void ->setDatetime(DateTime::addSeconds(new \DateTime(), -1 * $interval)) ->trigger(); } - - private function notifyDeleteTargets(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_EXPIRED_TARGETS) - ->trigger(); - } } diff --git a/src/Appwrite/Platform/Tasks/Migrate.php b/src/Appwrite/Platform/Tasks/Migrate.php index dcba59bb1dc..5407c772ab1 100644 --- a/src/Appwrite/Platform/Tasks/Migrate.php +++ b/src/Appwrite/Platform/Tasks/Migrate.php @@ -8,11 +8,10 @@ use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\Document; -use Utopia\Database\Query; +use Utopia\Database\Exception; use Utopia\Database\Validator\Authorization; use Utopia\Platform\Action; use Utopia\Registry\Registry; -use Utopia\System\System; use Utopia\Validator\Text; class Migrate extends Action @@ -28,118 +27,75 @@ public function __construct() { $this ->desc('Migrate Appwrite to new version') - /** @TODO APP_VERSION_STABLE needs to be defined */ - ->param('version', APP_VERSION_STABLE, new Text(8), 'Version to migrate to.', true) - ->inject('dbForConsole') + ->param('version', APP_VERSION_STABLE, new Text(16), 'Version to migrate to.', true) + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('register') - ->callback(function ($version, $dbForConsole, $getProjectDB, Registry $register) { - \Co\run(function () use ($version, $dbForConsole, $getProjectDB, $register) { - $this->action($version, $dbForConsole, $getProjectDB, $register); - }); - }); + ->callback($this->action(...)); } - private function clearProjectsCache(Document $project) - { - try { - $iterator = null; - do { - $pattern = "default-cache-_{$project->getInternalId()}:*"; - $keys = $this->redis->scan($iterator, $pattern, 1000); - if ($keys !== false) { - foreach ($keys as $key) { - $this->redis->del($key); - } - } - } while ($iterator > 0); - } catch (\Throwable $th) { - Console::error('Failed to clear project ("' . $project->getId() . '") cache with error: ' . $th->getMessage()); - } - } - - public function action(string $version, Database $dbForConsole, callable $getProjectDB, Registry $register) - { + /** + * @param string $version + * @param Database $dbForPlatform + * @param callable(Document): Database $getProjectDB + * @param Registry $register + * @return void + * @throws Exception + */ + public function action( + string $version, + Database $dbForPlatform, + callable $getProjectDB, + Registry $register, + ): void { Authorization::disable(); - if (!array_key_exists($version, Migration::$versions)) { + + if (!\array_key_exists($version, Migration::$versions)) { Console::error("Version {$version} not found."); Console::exit(1); - return; } - $this->redis = new Redis(); - $this->redis->connect( - System::getEnv('_APP_REDIS_HOST', null), - System::getEnv('_APP_REDIS_PORT', 6379), - 3, - null, - 10 - ); - - $app = new App('UTC'); - Console::success('Starting Data Migration to version ' . $version); - $console = $app->getResource('console'); - - $limit = 30; - $sum = 30; - $offset = 0; - /** - * @var \Utopia\Database\Document[] $projects - */ - $projects = [$console]; - $count = 0; - - try { - $totalProjects = $dbForConsole->count('projects') + 1; - } catch (\Throwable $th) { - $dbForConsole->setNamespace('_console'); - $totalProjects = $dbForConsole->count('projects') + 1; - } - $class = 'Appwrite\\Migration\\Version\\' . Migration::$versions[$version]; + /** @var Migration $migration */ $migration = new $class(); - while (!empty($projects)) { - foreach ($projects as $project) { - /** - * Skip user projects with id 'console' - */ - if ($project->getId() === 'console' && $project->getInternalId() !== 'console') { - continue; - } - - $this->clearProjectsCache($project); - - try { - // TODO: Iterate through all project DBs - /** @var Database $projectDB */ - $projectDB = $getProjectDB($project); - $projectDB->disableValidation(); - $migration - ->setProject($project, $projectDB, $dbForConsole) - ->setPDO($register->get('db', true)) - ->execute(); - } catch (\Throwable $th) { - Console::error('Failed to update project ("' . $project->getId() . '") version with error: ' . $th->getMessage()); - throw $th; - } - - $this->clearProjectsCache($project); + $count = 0; + $total = $dbForPlatform->count('projects') + 1; + + $dbForPlatform->foreach('projects', function (Document $project) use ($dbForPlatform, $getProjectDB, $register, $migration, &$count, $total) { + /** @var Database $dbForProject */ + $dbForProject = $getProjectDB($project); + $dbForProject->disableValidation(); + + try { + $migration + ->setProject($project, $dbForProject, $dbForPlatform, $getProjectDB) + ->setPDO($register->get('db', true)) + ->execute(); + } catch (\Throwable $th) { + Console::error('Failed to migrate project "' . $project->getId() . '" with error: ' . $th->getMessage()); + throw $th; } - $sum = \count($projects); - $projects = $dbForConsole->find('projects', [Query::limit($limit), Query::offset($offset)]); + Console::log('Migrated ' . ++$count . '/' . $total . ' projects...'); + }); - $offset = $offset + $limit; - $count = $count + $sum; + $console = (new App('UTC'))->getResource('console'); - Console::log('Migrated ' . $count . '/' . $totalProjects . ' projects...'); + try { + $migration + ->setProject($console, $getProjectDB($console), $dbForPlatform, $getProjectDB) + ->setPDO($register->get('db', true)) + ->execute(); + } catch (\Throwable $th) { + Console::error('Failed to migrate project "console" with error: ' . $th->getMessage()); + throw $th; } - Console::success('Data Migration Completed'); + Console::success('Migration completed'); } } diff --git a/src/Appwrite/Platform/Tasks/QueueCount.php b/src/Appwrite/Platform/Tasks/QueueCount.php deleted file mode 100644 index b02165c1d20..00000000000 --- a/src/Appwrite/Platform/Tasks/QueueCount.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php - -namespace Appwrite\Platform\Tasks; - -use Utopia\CLI\Console; -use Utopia\Platform\Action; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; -use Utopia\Validator\Text; -use Utopia\Validator\WhiteList; - -class QueueCount extends Action -{ - public static function getName(): string - { - return 'queue-count'; - } - - - public function __construct() - { - $this - ->desc('Return the number of from a specific queue identified by the name parameter with a specific type') - ->param('name', '', new Text(100), 'Queue name') - ->param('type', '', new WhiteList([ - 'success', - 'failed', - 'processing', - ]), 'Queue type') - ->inject('queue') - ->callback(fn ($name, $type, $queue) => $this->action($name, $type, $queue)); - } - - /** - * @param string $name The name of the queue to count the jobs from - * @param string $type The type of jobs to count - * @param Connection $queue - */ - public function action(string $name, string $type, Connection $queue): void - { - if (!$name) { - Console::error('Missing required parameter $name'); - return; - } - - $queueClient = new Client($name, $queue); - - $count = match ($type) { - 'success' => $queueClient->countSuccessfulJobs(), - 'failed' => $queueClient->countFailedJobs(), - 'processing' => $queueClient->countProcessingJobs(), - default => 0 - }; - - Console::log("Queue: '{$name}' has {$count} {$type} jobs."); - } -} diff --git a/src/Appwrite/Platform/Tasks/QueueRetry.php b/src/Appwrite/Platform/Tasks/QueueRetry.php index b6139dc177a..f8099dcb00a 100644 --- a/src/Appwrite/Platform/Tasks/QueueRetry.php +++ b/src/Appwrite/Platform/Tasks/QueueRetry.php @@ -4,8 +4,8 @@ use Utopia\CLI\Console; use Utopia\Platform\Action; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; +use Utopia\Queue\Queue; use Utopia\Validator\Text; use Utopia\Validator\Wildcard; @@ -23,33 +23,24 @@ public function __construct() ->desc('Retry failed jobs from a specific queue identified by the name parameter') ->param('name', '', new Text(100), 'Queue name') ->param('limit', 0, new Wildcard(), 'jobs limit', true) - ->inject('queue') - ->callback(fn ($name, $limit, $queue) => $this->action($name, $limit, $queue)); + ->inject('publisher') + ->callback([$this, 'action']); } /** * @param string $name The name of the queue to retry jobs from * @param mixed $limit - * @param Connection $queue + * @param Publisher $publisher */ - public function action(string $name, mixed $limit, Connection $queue): void + public function action(string $name, mixed $limit, Publisher $publisher): void { - if (!$name) { Console::error('Missing required parameter $name'); return; } $limit = (int)$limit; - $queueClient = new Client($name, $queue); - - if ($queueClient->countFailedJobs() === 0) { - Console::error('No failed jobs found.'); - return; - } - Console::log('Retrying failed jobs...'); - - $queueClient->retry($limit); + $publisher->retry(new Queue($name), $limit); } } diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 4e9aee6b8a7..cf917ae96b0 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -25,6 +25,9 @@ use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Platform\Action; +use Utopia\Validator\Nullable; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; class SDKs extends Action { @@ -37,23 +40,35 @@ public function __construct() { $this ->desc('Generate Appwrite SDKs') - ->callback(fn () => $this->action()); + ->param('platform', null, new Nullable(new Text(256)), 'Selected Platform', optional: true) + ->param('sdk', null, new Nullable(new Text(256)), 'Selected SDK', optional: true) + ->param('version', null, new Nullable(new Text(256)), 'Selected SDK', optional: true) + ->param('git', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we use git push?', optional: true) + ->param('production', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we push to production?', optional: true) + ->param('message', null, new Nullable(new Text(256)), 'Commit Message', optional: true) + ->callback([$this, 'action']); } - public function action(): void + public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message): void { - $platforms = Config::getParam('platforms'); - $selectedPlatform = Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); - $selectedSDK = \strtolower(Console::confirm('Choose SDK ("*" for all):')); - $version = Console::confirm('Choose an Appwrite version'); - $git = (Console::confirm('Should we use git push? (yes/no)') == 'yes'); - $production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false; - $message = ($git) ? Console::confirm('Please enter your commit message:') : ''; - - if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', '1.6.x', 'latest'])) { + $selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); + $selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):')); + $version ??= Console::confirm('Choose an Appwrite version'); + + $git ??= Console::confirm('Should we use git push? (yes/no)'); + $git = $git === 'yes'; + + if ($git) { + $production ??= Console::confirm('Type "Appwrite" to push code to production git repos'); + $production = $production === 'Appwrite'; + $message ??= Console::confirm('Please enter your commit message:'); + } + + if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', '1.6.x', '1.7.x', 'latest'])) { throw new \Exception('Unknown version given'); } + $platforms = Config::getParam('platforms'); foreach ($platforms as $key => $platform) { if ($selectedPlatform !== $key && $selectedPlatform !== '*') { continue; @@ -235,7 +250,7 @@ public function action(): void ->setTwitter(APP_SOCIAL_TWITTER_HANDLE) ->setDiscord(APP_SOCIAL_DISCORD_CHANNEL, APP_SOCIAL_DISCORD) ->setDefaultHeaders([ - 'X-Appwrite-Response-Format' => '1.6.0', + 'X-Appwrite-Response-Format' => '1.7.0', ]); // Make sure we have a clean slate. @@ -252,9 +267,6 @@ public function action(): void $gitUrl = $language['gitUrl']; $gitBranch = $language['gitBranch']; - // TEMPORARY - $gitBranch = '1.6.x'; - if (!$production) { $gitUrl = 'git@github.com:aw-tests/' . $language['gitRepoName'] . '.git'; } @@ -263,9 +275,13 @@ public function action(): void \exec('rm -rf ' . $target . ' && \ mkdir -p ' . $target . ' && \ cd ' . $target . ' && \ - git init --initial-branch=' . $gitBranch . ' && \ + git init && \ git remote add origin ' . $gitUrl . ' && \ - git fetch origin ' . $gitBranch . ' && \ + git fetch origin && \ + git checkout main || git checkout -b main && \ + git pull origin main && \ + git checkout ' . $gitBranch . ' || git checkout -b ' . $gitBranch . ' && \ + git fetch origin ' . $gitBranch . ' || git push -u origin ' . $gitBranch . ' && \ git pull origin ' . $gitBranch . ' && \ rm -rf ' . $target . '/* && \ cp -r ' . $result . '/. ' . $target . '/ && \ diff --git a/src/Appwrite/Platform/Tasks/SSL.php b/src/Appwrite/Platform/Tasks/SSL.php index 5af0cb6cd8a..ae1c93a3601 100644 --- a/src/Appwrite/Platform/Tasks/SSL.php +++ b/src/Appwrite/Platform/Tasks/SSL.php @@ -24,7 +24,7 @@ public function __construct() ->param('domain', System::getEnv('_APP_DOMAIN', ''), new Hostname(), 'Domain to generate certificate for. If empty, main domain will be used.', true) ->param('skip-check', true, new Boolean(true), 'If DNS and renew check should be skipped. Defaults to true, and when true, all jobs will result in certificate generation attempt.', true) ->inject('queueForCertificates') - ->callback(fn (string $domain, bool|string $skipCheck, Certificate $queueForCertificates) => $this->action($domain, $skipCheck, $queueForCertificates)); + ->callback([$this, 'action']); } public function action(string $domain, bool|string $skipCheck, Certificate $queueForCertificates): void diff --git a/src/Appwrite/Platform/Tasks/ScheduleBase.php b/src/Appwrite/Platform/Tasks/ScheduleBase.php index be0abc4b662..3cf89f9f44a 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleBase.php +++ b/src/Appwrite/Platform/Tasks/ScheduleBase.php @@ -9,11 +9,13 @@ use Utopia\Database\Document; use Utopia\Database\Exception; use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; use Utopia\Platform\Action; use Utopia\Pools\Group; use Utopia\System\System; - -use function Swoole\Coroutine\run; +use Utopia\Telemetry\Adapter as Telemetry; +use Utopia\Telemetry\Gauge; +use Utopia\Telemetry\Histogram; abstract class ScheduleBase extends Action { @@ -22,13 +24,15 @@ abstract class ScheduleBase extends Action protected array $schedules = []; + private ?Histogram $collectSchedulesTelemetryDuration = null; + private ?Gauge $collectSchedulesTelemetryCount = null; + private ?Gauge $scheduleTelemetryCount = null; + private ?Histogram $enqueueDelayTelemetry = null; + abstract public static function getName(): string; abstract public static function getSupportedResource(): string; - - abstract protected function enqueueResources( - Group $pools, - Database $dbForConsole - ); + abstract public static function getCollectionId(): string; + abstract protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void; public function __construct() { @@ -37,9 +41,21 @@ public function __construct() $this ->desc("Execute {$type}s scheduled in Appwrite") ->inject('pools') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') - ->callback(fn (Group $pools, Database $dbForConsole, callable $getProjectDB) => $this->action($pools, $dbForConsole, $getProjectDB)); + ->inject('telemetry') + ->callback($this->action(...)); + } + + protected function updateProjectAccess(Document $project, Database $dbForPlatform): void + { + if (!$project->isEmpty() && $project->getId() !== 'console') { + $accessedAt = $project->getAttribute('accessedAt', 0); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $accessedAt) { + $project->setAttribute('accessedAt', DateTime::now()); + Authorization::skip(fn () => $dbForPlatform->updateDocument('projects', $project->getId(), $project)); + } + } } /** @@ -47,11 +63,47 @@ public function __construct() * 2. Create timer that sync all changes from 'schedules' collection to local copy. Only reading changes thanks to 'resourceUpdatedAt' attribute * 3. Create timer that prepares coroutines for soon-to-execute schedules. When it's ready, coroutine sleeps until exact time before sending request to worker. */ - public function action(Group $pools, Database $dbForConsole, callable $getProjectDB): void + public function action(Group $pools, Database $dbForPlatform, callable $getProjectDB, Telemetry $telemetry): void { Console::title(\ucfirst(static::getSupportedResource()) . ' scheduler V1'); Console::success(APP_NAME . ' ' . \ucfirst(static::getSupportedResource()) . ' scheduler v1 has started'); + $this->scheduleTelemetryCount = $telemetry->createGauge('task.schedule.count'); + $this->collectSchedulesTelemetryDuration = $telemetry->createHistogram('task.schedule.collect_schedules.duration', 's'); + $this->collectSchedulesTelemetryCount = $telemetry->createGauge('task.schedule.collect_schedules.count'); + $this->enqueueDelayTelemetry = $telemetry->createHistogram('task.schedule.enqueue_delay', 's'); + + // start with "0" to load all active documents. + $lastSyncUpdate = "0"; + $this->collectSchedules($pools, $dbForPlatform, $getProjectDB, $lastSyncUpdate); + + Console::success("Starting timers at " . DateTime::now()); + /** + * The timer synchronize $schedules copy with database collection. + */ + Timer::tick(static::UPDATE_TIMER * 1000, function () use ($pools, $dbForPlatform, $getProjectDB, &$lastSyncUpdate) { + $time = DateTime::now(); + Console::log("Sync tick: Running at $time"); + $this->collectSchedules($pools, $dbForPlatform, $getProjectDB, $lastSyncUpdate); + }); + + while (true) { + try { + go(fn () => $this->enqueueResources($pools, $dbForPlatform, $getProjectDB)); + $this->scheduleTelemetryCount->record(count($this->schedules), ['resourceType' => static::getSupportedResource()]); + sleep(static::ENQUEUE_TIMER); + } catch (\Throwable $th) { + Console::error('Failed to enqueue resources: ' . $th->getMessage()); + } + + } + } + + private function collectSchedules(Group $pools, Database $dbForPlatform, callable $getProjectDB, string &$lastSyncUpdate): void + { + // If we haven't synced yet, load all active schedules + $initialLoad = $lastSyncUpdate === "0"; + /** * Extract only necessary attributes to lower memory used. * @@ -59,21 +111,18 @@ public function action(Group $pools, Database $dbForConsole, callable $getProjec * @throws Exception * @var Document $schedule */ - $getSchedule = function (Document $schedule) use ($dbForConsole, $getProjectDB): array { - $project = $dbForConsole->getDocument('projects', $schedule->getAttribute('projectId')); - - $collectionId = match ($schedule->getAttribute('resourceType')) { - 'function' => 'functions', - 'message' => 'messages', - 'execution' => 'executions' - }; + $getSchedule = function (Document $schedule) use ($pools, $dbForPlatform, $getProjectDB): array { + $project = $dbForPlatform->getDocument('projects', $schedule->getAttribute('projectId')); $resource = $getProjectDB($project)->getDocument( - $collectionId, + static::getCollectionId(), $schedule->getAttribute('resourceId') ); + $pools->reclaim(); + return [ + '$internalId' => $schedule->getInternalId(), '$id' => $schedule->getId(), 'resourceId' => $schedule->getAttribute('resourceId'), 'schedule' => $schedule->getAttribute('schedule'), @@ -84,12 +133,12 @@ public function action(Group $pools, Database $dbForConsole, callable $getProjec ]; }; - $lastSyncUpdate = DateTime::now(); + $loadStart = microtime(true); + $time = DateTime::now(); $limit = 10_000; $sum = $limit; $total = 0; - $loadStart = \microtime(true); $latestDocument = null; while ($sum === $limit) { @@ -99,103 +148,64 @@ public function action(Group $pools, Database $dbForConsole, callable $getProjec $paginationQueries[] = Query::cursorAfter($latestDocument); } - $results = $dbForConsole->find('schedules', \array_merge($paginationQueries, [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), - Query::equal('resourceType', [static::getSupportedResource()]), - Query::equal('active', [true]), - ])); - - $sum = \count($results); - $total = $total + $sum; - - foreach ($results as $document) { - try { - $this->schedules[$document['resourceId']] = $getSchedule($document); - } catch (\Throwable $th) { - $collectionId = match ($document->getAttribute('resourceType')) { - 'function' => 'functions', - 'message' => 'messages', - 'execution' => 'executions' - }; - - Console::error("Failed to load schedule for project {$document['projectId']} {$collectionId} {$document['resourceId']}"); - Console::error($th->getMessage()); - } + // Temporarly accepting both 'fra' and 'default' + // When all migrated, only use _APP_REGION with 'default' as default value + $regions = [System::getEnv('_APP_REGION', 'default')]; + if (!in_array('default', $regions)) { + $regions[] = 'default'; } - $latestDocument = \end($results); - } - - $pools->reclaim(); - - Console::success("{$total} resources were loaded in " . (\microtime(true) - $loadStart) . " seconds"); - - Console::success("Starting timers at " . DateTime::now()); - - run(function () use ($dbForConsole, &$lastSyncUpdate, $getSchedule, $pools) { - /** - * The timer synchronize $schedules copy with database collection. - */ - Timer::tick(static::UPDATE_TIMER * 1000, function () use ($dbForConsole, &$lastSyncUpdate, $getSchedule, $pools) { - $time = DateTime::now(); - $timerStart = \microtime(true); + $paginationQueries = [ + ...$paginationQueries, + Query::equal('region', $regions), + Query::equal('resourceType', [static::getSupportedResource()]), + ]; - $limit = 1000; - $sum = $limit; - $total = 0; - $latestDocument = null; + if ($initialLoad) { + $paginationQueries[] = Query::equal('active', [true]); + } else { + $paginationQueries[] = Query::greaterThanEqual('resourceUpdatedAt', $lastSyncUpdate); + } - Console::log("Sync tick: Running at $time"); + $results = $dbForPlatform->find('schedules', $paginationQueries); - while ($sum === $limit) { - $paginationQueries = [Query::limit($limit)]; + $sum = count($results); + $total = $total + $sum; - if ($latestDocument) { - $paginationQueries[] = Query::cursorAfter($latestDocument); + foreach ($results as $document) { + $localDocument = $this->schedules[$document->getInternalId()] ?? null; + + if ($localDocument !== null) { + if (!$document['active']) { + Console::info("Removing: {$document['resourceType']}::{$document['resourceId']}"); + unset($this->schedules[$document->getInternalId()]); + } elseif (strtotime($localDocument['resourceUpdatedAt']) !== strtotime($document['resourceUpdatedAt'])) { + Console::info("Updating: {$document['resourceType']}::{$document['resourceId']}"); + $this->schedules[$document->getInternalId()] = $getSchedule($document); } - - $results = $dbForConsole->find('schedules', \array_merge($paginationQueries, [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), - Query::equal('resourceType', [static::getSupportedResource()]), - Query::greaterThanEqual('resourceUpdatedAt', $lastSyncUpdate), - ])); - - $sum = count($results); - $total = $total + $sum; - - foreach ($results as $document) { - $localDocument = $schedules[$document['resourceId']] ?? null; - - // Check if resource has been updated since last sync - $org = $localDocument !== null ? \strtotime($localDocument['resourceUpdatedAt']) : null; - $new = \strtotime($document['resourceUpdatedAt']); - - if (!$document['active']) { - Console::info("Removing: {$document['resourceId']}"); - unset($this->schedules[$document['resourceId']]); - } elseif ($new !== $org) { - Console::info("Updating: {$document['resourceId']}"); - $this->schedules[$document['resourceId']] = $getSchedule($document); - } + } else { + try { + $this->schedules[$document->getInternalId()] = $getSchedule($document); + } catch (\Throwable $th) { + $collectionId = static::getCollectionId(); + Console::error("Failed to load schedule for project {$document['projectId']} {$collectionId} {$document['resourceId']}"); + Console::error($th->getMessage()); } - - $latestDocument = \end($results); } + } - $lastSyncUpdate = $time; - $timerEnd = \microtime(true); - - $pools->reclaim(); - - Console::log("Sync tick: {$total} schedules were updated in " . ($timerEnd - $timerStart) . " seconds"); - }); + $latestDocument = \end($results); + } - Timer::tick( - static::ENQUEUE_TIMER * 1000, - fn () => $this->enqueueResources($pools, $dbForConsole) - ); + $lastSyncUpdate = $time; + $duration = microtime(true) - $loadStart; + $this->collectSchedulesTelemetryDuration->record($duration, ['initial' => $initialLoad, 'resourceType' => static::getSupportedResource()]); + $this->collectSchedulesTelemetryCount->record($total, ['initial' => $initialLoad, 'resourceType' => static::getSupportedResource()]); + Console::success("{$total} resources were loaded in " . $duration . " seconds"); + } - $this->enqueueResources($pools, $dbForConsole); - }); + protected function recordEnqueueDelay(\DateTime $expectedExecutionSchedule): void + { + $this->enqueueDelayTelemetry->record(time() - $expectedExecutionSchedule->getTimestamp(), ['resourceType' => static::getSupportedResource()]); } } diff --git a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php index c5f9b40d152..2a8fd99b7f9 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php @@ -22,21 +22,26 @@ public static function getSupportedResource(): string return 'execution'; } - protected function enqueueResources(Group $pools, Database $dbForConsole): void + public static function getCollectionId(): string { - $queue = $pools->get('queue')->pop(); + return 'executions'; + } + + protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void + { + $queue = $pools->get('publisher')->pop(); $connection = $queue->getResource(); $queueForFunctions = new Func($connection); $intervalEnd = (new \DateTime())->modify('+' . self::ENQUEUE_TIMER . ' seconds'); foreach ($this->schedules as $schedule) { if (!$schedule['active']) { - $dbForConsole->deleteDocument( + $dbForPlatform->deleteDocument( 'schedules', $schedule['$id'], ); - unset($this->schedules[$schedule['resourceId']]); + unset($this->schedules[$schedule['$internalId']]); continue; } @@ -45,32 +50,40 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void continue; } + $data = $dbForPlatform->getDocument( + 'schedules', + $schedule['$id'], + )->getAttribute('data', []); + $delay = $scheduledAt->getTimestamp() - (new \DateTime())->getTimestamp(); + $this->updateProjectAccess($schedule['project'], $dbForPlatform); - \go(function () use ($queueForFunctions, $schedule, $delay) { + \go(function () use ($queueForFunctions, $schedule, $scheduledAt, $delay, $data) { Co::sleep($delay); - $queueForFunctions - ->setType('schedule') + $queueForFunctions->setType('schedule') // Set functionId instead of function as we don't have $dbForProject // TODO: Refactor to use function instead of functionId - ->setFunctionId($schedule['resource']['functionId']) + ->setFunctionId($schedule['resource']['resourceId']) ->setExecution($schedule['resource']) - ->setMethod($schedule['data']['method'] ?? 'POST') - ->setPath($schedule['data']['path'] ?? '/') - ->setHeaders($schedule['data']['headers'] ?? []) - ->setBody($schedule['data']['body'] ?? '') + ->setMethod($data['method'] ?? 'POST') + ->setPath($data['path'] ?? '/') + ->setHeaders($data['headers'] ?? []) + ->setBody($data['body'] ?? '') ->setProject($schedule['project']) + ->setUserId($data['userId'] ?? '') ->trigger(); + + $this->recordEnqueueDelay($scheduledAt); }); - $dbForConsole->deleteDocument( + $dbForPlatform->deleteDocument( 'schedules', $schedule['$id'], ); - unset($this->schedules[$schedule['resourceId']]); + unset($this->schedules[$schedule['$internalId']]); } $queue->reclaim(); diff --git a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php index e2c278714f3..6788748f3d9 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php @@ -26,7 +26,12 @@ public static function getSupportedResource(): string return 'function'; } - protected function enqueueResources(Group $pools, Database $dbForConsole): void + public static function getCollectionId(): string + { + return 'functions'; + } + + protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void { $timerStart = \microtime(true); $time = DateTime::now(); @@ -41,7 +46,13 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void $delayedExecutions = []; // Group executions with same delay to share one coroutine foreach ($this->schedules as $key => $schedule) { - $cron = new CronExpression($schedule['schedule']); + try { + $cron = new CronExpression($schedule['schedule']); + } catch (\InvalidArgumentException) { + // ignore invalid cron expressions + continue; + } + $nextDate = $cron->getNextRunDate(); $next = DateTime::format($nextDate); @@ -61,17 +72,18 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void $delayedExecutions[$delay] = []; } - $delayedExecutions[$delay][] = $key; + $delayedExecutions[$delay][] = ['key' => $key, 'nextDate' => $nextDate]; } - foreach ($delayedExecutions as $delay => $scheduleKeys) { - \go(function () use ($delay, $scheduleKeys, $pools) { + foreach ($delayedExecutions as $delay => $schedules) { + \go(function () use ($delay, $schedules, $pools, $dbForPlatform) { \sleep($delay); // in seconds - $queue = $pools->get('queue')->pop(); + $queue = $pools->get('publisher')->pop(); $connection = $queue->getResource(); - foreach ($scheduleKeys as $scheduleKey) { + foreach ($schedules as $delayConfig) { + $scheduleKey = $delayConfig['key']; // Ensure schedule was not deleted if (!\array_key_exists($scheduleKey, $this->schedules)) { return; @@ -79,6 +91,8 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void $schedule = $this->schedules[$scheduleKey]; + $this->updateProjectAccess($schedule['project'], $dbForPlatform); + $queueForFunctions = new Func($connection); $queueForFunctions @@ -88,6 +102,8 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void ->setPath('/') ->setProject($schedule['project']) ->trigger(); + + $this->recordEnqueueDelay($delayConfig['nextDate']); } $queue->reclaim(); diff --git a/src/Appwrite/Platform/Tasks/ScheduleMessages.php b/src/Appwrite/Platform/Tasks/ScheduleMessages.php index 145b6ee9766..a15df6ed5b4 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleMessages.php +++ b/src/Appwrite/Platform/Tasks/ScheduleMessages.php @@ -21,7 +21,12 @@ public static function getSupportedResource(): string return 'message'; } - protected function enqueueResources(Group $pools, Database $dbForConsole): void + public static function getCollectionId(): string + { + return 'messages'; + } + + protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void { foreach ($this->schedules as $schedule) { if (!$schedule['active']) { @@ -35,25 +40,27 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void continue; } - \go(function () use ($schedule, $pools, $dbForConsole) { - $queue = $pools->get('queue')->pop(); + \go(function () use ($schedule, $scheduledAt, $pools, $dbForPlatform) { + $queue = $pools->get('publisher')->pop(); $connection = $queue->getResource(); $queueForMessaging = new Messaging($connection); + $this->updateProjectAccess($schedule['project'], $dbForPlatform); + $queueForMessaging ->setType(MESSAGE_SEND_TYPE_EXTERNAL) ->setMessageId($schedule['resourceId']) ->setProject($schedule['project']) ->trigger(); - $dbForConsole->deleteDocument( + $dbForPlatform->deleteDocument( 'schedules', $schedule['$id'], ); $queue->reclaim(); - - unset($this->schedules[$schedule['resourceId']]); + $this->recordEnqueueDelay($scheduledAt); + unset($this->schedules[$schedule['$internalId']]); }); } } diff --git a/src/Appwrite/Platform/Tasks/Screenshot.php b/src/Appwrite/Platform/Tasks/Screenshot.php new file mode 100644 index 00000000000..3a9c9a64f51 --- /dev/null +++ b/src/Appwrite/Platform/Tasks/Screenshot.php @@ -0,0 +1,312 @@ +<?php + +namespace Appwrite\Platform\Tasks; + +use Appwrite\ID; +use Tests\E2E\Client; +use Utopia\CLI\Console; +use Utopia\Config\Config; +use Utopia\Platform\Action; +use Utopia\Validator\Text; + +class Screenshot extends Action +{ + public static function getName(): string + { + return 'screenshot'; + } + + public function __construct() + { + $this + ->desc('Create Site template screenshot') + ->param('templateId', '', new Text(128), 'Template ID.') + ->callback([$this, 'action']); + } + + public function action(string $templateId): void + { + $templates = Config::getParam('templates-site', []); + + $allowedTemplates = \array_filter($templates, function ($item) use ($templateId) { + return $item['key'] === $templateId; + }); + $template = \array_shift($allowedTemplates); + + if (empty($template)) { + throw new \Exception("Template {$templateId} not found. Find correct ID in app/config/templates/site.php"); + } + + Console::info("Found: " . $template['name']); + + $client = new Client(); + $client->setEndpoint('http://localhost/v1'); + $client->addHeader('origin', 'http://localhost'); + + // Register + $email = uniqid() . 'user@localhost.test'; + $password = 'password'; + + Console::info("Email: {$email}"); + Console::info("Pass: {$password}"); + + $user = $client->call(Client::METHOD_POST, '/account', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + ], [ + 'userId' => ID::unique(), + 'email' => $email, + 'password' => $password, + ]); + + if ($user['headers']['status-code'] !== 201) { + Console::error(\json_encode($user)); + throw new \Exception("Failed to register user"); + } + + Console::info("User created"); + + // Login + $session = $client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + ], [ + 'email' => $email, + 'password' => $password, + ]); + + if ($session['headers']['status-code'] !== 201) { + Console::error(\json_encode($session)); + throw new \Exception("Failed to login user"); + } + + Console::info("Session created"); + + $secret = $session['cookies']['a_session_console']; + $cookieConsole = 'a_session_console=' . $secret; + + // Create organization + $team = $client->call(Client::METHOD_POST, '/teams', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => $cookieConsole + ], [ + 'teamId' => ID::unique(), + 'name' => 'Demo Project Team', + ]); + + if ($team['headers']['status-code'] !== 201) { + Console::error(\json_encode($team)); + throw new \Exception("Failed to create team"); + } + + Console::info("Team created"); + + $projectName = 'Demo Project'; + $projectId = ID::unique(); + + // Create project + $project = $client->call(Client::METHOD_POST, '/projects', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => $cookieConsole + ], [ + 'projectId' => $projectId, + 'region' => 'default', + 'name' => $projectName, + 'teamId' => $team['body']['$id'], + 'description' => 'Demo Project Description', + 'url' => 'https://appwrite.io', + ]); + + if ($project['headers']['status-code'] !== 201) { + Console::error(\json_encode($project)); + throw new \Exception("Failed to create project"); + } + + Console::info("Project created"); + + $projectId = $project['body']['$id']; + + $framework = $template['frameworks'][0]; + + // Create site + $site = $client->call(Client::METHOD_POST, '/sites', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-mode' => 'admin', + 'cookie' => $cookieConsole + ], [ + 'siteId' => ID::unique(), + 'name' => $template["name"], + 'framework' => $framework['key'], + 'adapter' => $framework['adapter'], + 'buildCommand' => $framework['buildCommand'] ?? '', + 'buildRuntime' => $framework['buildRuntime'], + 'fallbackFile' => $framework['fallbackFile'] ?? '', + 'installCommand' => $framework['installCommand'] ?? '', + 'outputDirectory' => $framework['outputDirectory'] ?? '', + 'providerRootDirectory' => $framework['providerRootDirectory'], + 'timeout' => 30 + ]); + + if ($site['headers']['status-code'] !== 201) { + Console::error(\json_encode($site)); + throw new \Exception("Failed to create site"); + } + + Console::info("Site created"); + + $siteId = $site['body']['$id']; + + // Create variables + if (!empty($template['variables'] ?? [])) { + foreach ($template['variables'] as $variable) { + if (empty($variable['value'] ?? '')) { + if (($variable['required'] ?? false) === true) { + throw new \Exception("Missing required variable: {$variable['name']}"); + } + + continue; + } + + $value = $variable['value']; + $value = \str_replace('{projectName}', $projectName, $value); + $value = \str_replace('{projectId}', $projectId, $value); + $value = \str_replace('{apiEndpoint}', 'http://localhost/v1', $value); + + $response = $client->call(Client::METHOD_POST, '/sites/' . $siteId . '/variables', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-mode' => 'admin', + 'cookie' => $cookieConsole + ], [ + 'key' => $variable['name'], + 'value' => $value + ]); + + if ($response['headers']['status-code'] !== 201) { + Console::error(\json_encode($response)); + throw new \Exception("Failed to create variable"); + } + } + + Console::info("Variables created"); + } + + // Create deployment + $deployment = $client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments/template', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-mode' => 'admin', + 'cookie' => $cookieConsole + ], [ + 'owner' => $template['providerOwner'], + 'repository' => $template['providerRepositoryId'], + 'rootDirectory' => $framework['providerRootDirectory'], + 'version' => $template['providerVersion'], + 'activate' => true, + ]); + + if ($deployment['headers']['status-code'] !== 202) { + Console::error(\json_encode($deployment)); + throw new \Exception("Failed to create deployment"); + } + + Console::info("Deployment created"); + + $deploymentId = $deployment['body']['$id']; + + // Await screenshot + $attempts = 60; // 5 min + $sleep = 5; + + $idLight = ''; + $idDark = ''; + + $slowTemplates = [ + 'starter-for-react-native', + 'playground-for-react-native' + ]; + if (\in_array($templateId, $slowTemplates)) { + Console::warning("Build for this template is slow, increasing waiting time ..."); + $attempts = 180; // 15 min + } + + Console::log("Awaiting deployment (every $sleep seconds, $attempts attempts)"); + + for ($i = 0; $i < $attempts; $i++) { + $deployment = $client->call(Client::METHOD_GET, '/sites/' . $siteId . '/deployments/' . $deploymentId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-mode' => 'admin', + 'cookie' => $cookieConsole + ]); + + if ($deployment['headers']['status-code'] !== 200) { + Console::error(\json_encode($deployment)); + throw new \Exception("Failed to get deployment"); + } + + if ($deployment['body']['status'] === 'failed') { + Console::error(\json_encode($deployment)); + throw new \Exception("Deployment build failed"); + } + + if ($deployment['body']['status'] !== 'ready') { + Console::log("Deployment not ready yet, status: " . $deployment['body']['status']); + \sleep($sleep); + continue; + } + + + if (empty($deployment['body']['screenshotLight'])) { + Console::log("Light screenshot not available yet"); + \sleep($sleep); + continue; + } + + if (empty($deployment['body']['screenshotDark'])) { + Console::log("Dark screenshot not available yet"); + \sleep($sleep); + continue; + } + + $idLight = $deployment['body']['screenshotLight']; + $idDark = $deployment['body']['screenshotDark']; + break; + } + + if (empty($idLight) || empty($idDark)) { + Console::error(\json_encode($deployment)); + throw new \Exception("Failed to get deployment screenshot"); + } + + Console::info("Screenshots created"); + + $themes = [ + [ 'fileId' => $idLight, 'suffix' => 'light' ], + [ 'fileId' => $idDark, 'suffix' => 'dark' ] + ]; + + foreach ($themes as $theme) { + $file = $client->call(Client::METHOD_GET, '/storage/buckets/screenshots/files/' . $theme['fileId'] . '/download', [ + 'x-appwrite-project' => 'console', + 'cookie' => $cookieConsole + ]); + + if ($file['headers']['status-code'] !== 200) { + Console::error(\json_encode($file)); + throw new \Exception("Failed to download {$theme['suffix']} screenshot"); + } + + $path = "/usr/src/code/public/images/sites/templates/{$template['key']}-{$theme['suffix']}.png"; + + if (!\file_put_contents($path, $file['body'])) { + throw new \Exception("Failed to save {$theme['suffix']} screenshot"); + } + } + + Console::success("Screenshots saved"); + } +} diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index c90d4dabd36..76c9db079ac 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -2,12 +2,16 @@ namespace Appwrite\Platform\Tasks; -use Appwrite\Specification\Format\OpenAPI3; -use Appwrite\Specification\Format\Swagger2; -use Appwrite\Specification\Specification; -use Appwrite\Utopia\Response; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Specification\Format\OpenAPI3; +use Appwrite\SDK\Specification\Format\Swagger2; +use Appwrite\SDK\Specification\Specification; +use Appwrite\Utopia\Request as AppwriteRequest; +use Appwrite\Utopia\Response as AppwriteResponse; use Exception; -use Swoole\Http\Response as HttpResponse; +use Swoole\Http\Request as SwooleRequest; +use Swoole\Http\Response as SwooleResponse; use Utopia\App; use Utopia\Cache\Adapter\None; use Utopia\Cache\Cache; @@ -16,8 +20,8 @@ use Utopia\Database\Adapter\MySQL; use Utopia\Database\Database; use Utopia\Platform\Action; -use Utopia\Registry\Registry; -use Utopia\Request; +use Utopia\Request as UtopiaRequest; +use Utopia\Response as UtopiaResponse; use Utopia\System\System; use Utopia\Validator\Text; use Utopia\Validator\WhiteList; @@ -29,26 +33,35 @@ public static function getName(): string return 'specs'; } + public function getRequest(): UtopiaRequest + { + return new AppwriteRequest(new SwooleRequest()); + } + + public function getResponse(): UtopiaResponse + { + return new AppwriteResponse(new SwooleResponse()); + } + public function __construct() { $this ->desc('Generate Appwrite API specifications') ->param('version', 'latest', new Text(16), 'Spec version', true) ->param('mode', 'normal', new WhiteList(['normal', 'mocks']), 'Spec Mode', true) - ->inject('register') - ->callback(fn (string $version, string $mode, Registry $register) => $this->action($version, $mode, $register)); + ->callback($this->action(...)); } - public function action(string $version, string $mode, Registry $register): void + public function action(string $version, string $mode): void { $appRoutes = App::getRoutes(); - $response = new Response(new HttpResponse()); + $response = $this->getResponse(); $mocks = ($mode === 'mocks'); // Mock dependencies - App::setResource('request', fn () => new Request()); + App::setResource('request', fn () => $this->getRequest()); App::setResource('response', fn () => $response); - App::setResource('dbForConsole', fn () => new Database(new MySQL(''), new Cache(new None()))); + App::setResource('dbForPlatform', fn () => new Database(new MySQL(''), new Cache(new None()))); App::setResource('dbForProject', fn () => new Database(new MySQL(''), new Cache(new None()))); $platforms = [ @@ -169,58 +182,69 @@ public function action(string $version, string $mode, Registry $register): void foreach ($appRoutes as $key => $method) { foreach ($method as $route) { - $hide = $route->getLabel('sdk.hide', false); - if ($hide === true || (\is_array($hide) && \in_array($platform, $hide))) { + $sdks = $route->getLabel('sdk', false); + + if (empty($sdks)) { continue; } - /** @var \Utopia\Route $route */ - $routeSecurity = $route->getLabel('sdk.auth', []); - $sdkPlatforms = []; - - foreach ($routeSecurity as $value) { - switch ($value) { - case APP_AUTH_TYPE_SESSION: - $sdkPlatforms[] = APP_PLATFORM_CLIENT; - break; - case APP_AUTH_TYPE_KEY: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_JWT: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_ADMIN: - $sdkPlatforms[] = APP_PLATFORM_CONSOLE; - break; - } + if (!\is_array($sdks)) { + $sdks = [$sdks]; } - if (empty($routeSecurity)) { - $sdkPlatforms[] = APP_PLATFORM_SERVER; - $sdkPlatforms[] = APP_PLATFORM_CLIENT; - } + foreach ($sdks as $sdk) { + /** @var Method $sdk */ - if (!$route->getLabel('docs', true)) { - continue; - } + $hide = $sdk->isHidden(); + if ($hide === true || (\is_array($hide) && \in_array($platform, $hide))) { + continue; + } - if ($route->getLabel('sdk.mock', false) && !$mocks) { - continue; - } + $routeSecurity = $sdk->getAuth(); + $sdkPlatforms = []; + + foreach ($routeSecurity as $value) { + switch ($value) { + case AuthType::SESSION: + $sdkPlatforms[] = APP_PLATFORM_CLIENT; + break; + case AuthType::JWT: + case AuthType::KEY: + $sdkPlatforms[] = APP_PLATFORM_SERVER; + break; + case AuthType::ADMIN: + $sdkPlatforms[] = APP_PLATFORM_CONSOLE; + break; + } + } - if (!$route->getLabel('sdk.mock', false) && $mocks) { - continue; - } + if (empty($routeSecurity)) { + $sdkPlatforms[] = APP_PLATFORM_SERVER; + $sdkPlatforms[] = APP_PLATFORM_CLIENT; + } - if (empty($route->getLabel('sdk.namespace', null))) { - continue; - } + if (!$route->getLabel('docs', true)) { + continue; + } - if ($platform !== APP_PLATFORM_CONSOLE && !\in_array($platforms[$platform], $sdkPlatforms)) { - continue; - } + if ($route->getLabel('mock', false) && !$mocks) { + continue; + } - $routes[] = $route; + if (!$route->getLabel('mock', false) && $mocks) { + continue; + } + + if (empty($sdk->getNamespace())) { + continue; + } + + if ($platform !== APP_PLATFORM_CONSOLE && !\in_array($platforms[$platform], $sdkPlatforms)) { + continue; + } + + $routes[] = $route; + } } } @@ -237,7 +261,6 @@ public function action(string $version, string $mode, Registry $register): void $services[] = [ 'name' => $service['key'] ?? '', 'description' => $service['subtitle'] ?? '', - 'x-globalAttributes' => $service['globalAttributes'] ?? [], ]; } @@ -249,7 +272,15 @@ public function action(string $version, string $mode, Registry $register): void } } - $arguments = [new App('UTC'), $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0]; + $arguments = [ + new App('UTC'), + $services, + $routes, + $models, + $keys[$platform], + $authCounts[$platform] ?? 0 + ]; + foreach (['swagger2', 'open-api3'] as $format) { $formatInstance = match ($format) { 'swagger2' => new Swagger2(...$arguments), @@ -265,6 +296,7 @@ public function action(string $version, string $mode, Registry $register): void ->setParam('name', APP_NAME) ->setParam('description', 'Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)') ->setParam('endpoint', 'https://cloud.appwrite.io/v1') + ->setParam('endpoint.docs', 'https://<REGION>.cloud.appwrite.io/v1') ->setParam('version', APP_VERSION_STABLE) ->setParam('terms', $endpoint . '/policy/terms') ->setParam('support.email', $email) @@ -280,7 +312,7 @@ public function action(string $version, string $mode, Registry $register): void if ($mocks) { $path = __DIR__ . '/../../../../app/config/specs/' . $format . '-mocks-' . $platform . '.json'; - if (!file_put_contents($path, json_encode($specs->parse()))) { + if (!file_put_contents($path, json_encode($specs->parse(), JSON_PRETTY_PRINT))) { throw new Exception('Failed to save mocks spec file: ' . $path); } @@ -291,7 +323,7 @@ public function action(string $version, string $mode, Registry $register): void $path = __DIR__ . '/../../../../app/config/specs/' . $format . '-' . $version . '-' . $platform . '.json'; - if (!file_put_contents($path, json_encode($specs->parse()))) { + if (!file_put_contents($path, json_encode($specs->parse(), JSON_PRETTY_PRINT))) { throw new Exception('Failed to save spec file: ' . $path); } diff --git a/src/Appwrite/Platform/Tasks/StatsResources.php b/src/Appwrite/Platform/Tasks/StatsResources.php new file mode 100644 index 00000000000..ca2a6860fff --- /dev/null +++ b/src/Appwrite/Platform/Tasks/StatsResources.php @@ -0,0 +1,82 @@ +<?php + +namespace Appwrite\Platform\Tasks; + +use Appwrite\Event\StatsResources as EventStatsResources; +use Appwrite\Platform\Action; +use Utopia\CLI\Console; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\System\System; + +/** + * Usage count + * + * Runs every hour, schedules project + * for aggregating resource count + */ +class StatsResources extends Action +{ + /** + * Log Error Callback + * + * @var callable + */ + protected mixed $logError; + + /** + * Console DB + * + * @var Database + */ + protected Database $dbForPlatform; + + public static function getName() + { + return 'stats-resources'; + } + + public function __construct() + { + $this + ->desc('Schedules projects for usage count') + ->inject('dbForPlatform') + ->inject('logError') + ->inject('queueForStatsResources') + ->callback([$this, 'action']); + } + + public function action(Database $dbForPlatform, callable $logError, EventStatsResources $queue): void + { + $this->logError = $logError; + $this->dbForPlatform = $dbForPlatform; + + Console::title("Stats resources V1"); + + Console::success('Stats resources: started'); + + $interval = (int) System::getEnv('_APP_STATS_RESOURCES_INTERVAL', '3600'); + Console::loop(function () use ($queue) { + Authorization::disable(); + Authorization::setDefaultStatus(false); + + $last24Hours = (new \DateTime())->sub(\DateInterval::createFromDateString('24 hours')); + /** + * For each project that were accessed in last 24 hours + */ + $this->foreachDocument($this->dbForPlatform, 'projects', [ + Query::greaterThanEqual('accessedAt', DateTime::format($last24Hours)), + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]) + ], function ($project) use ($queue) { + $queue + ->setProject($project) + ->trigger(); + Console::success('project: ' . $project->getId() . '(' . $project->getInternalId() . ')' . ' queued'); + }); + }, $interval); + + Console::log("Stats resources: exited"); + } +} diff --git a/src/Appwrite/Platform/Tasks/Upgrade.php b/src/Appwrite/Platform/Tasks/Upgrade.php index 341ce42fc4d..dfd10d347ea 100644 --- a/src/Appwrite/Platform/Tasks/Upgrade.php +++ b/src/Appwrite/Platform/Tasks/Upgrade.php @@ -23,7 +23,7 @@ public function __construct() ->param('image', 'appwrite', new Text(0), 'Main appwrite docker image', true) ->param('interactive', 'Y', new Text(1), 'Run an interactive session', true) ->param('no-start', false, new Boolean(true), 'Run an interactive session', true) - ->callback(fn ($httpPort, $httpsPort, $organization, $image, $interactive, $noStart) => $this->action($httpPort, $httpsPort, $organization, $image, $interactive, $noStart)); + ->callback([$this, 'action']); } public function action(string $httpPort, string $httpsPort, string $organization, string $image, string $interactive, bool $noStart): void diff --git a/src/Appwrite/Platform/Tasks/Vars.php b/src/Appwrite/Platform/Tasks/Vars.php index 499f8b15ec3..70ae550ef93 100644 --- a/src/Appwrite/Platform/Tasks/Vars.php +++ b/src/Appwrite/Platform/Tasks/Vars.php @@ -18,7 +18,7 @@ public function __construct() { $this ->desc('List all the server environment variables') - ->callback(fn () => $this->action()); + ->callback([$this, 'action']); } public function action(): void diff --git a/src/Appwrite/Platform/Workers/Audits.php b/src/Appwrite/Platform/Workers/Audits.php index 86ca59d3fd4..76309145b8a 100644 --- a/src/Appwrite/Platform/Workers/Audits.php +++ b/src/Appwrite/Platform/Workers/Audits.php @@ -2,18 +2,36 @@ namespace Appwrite\Platform\Workers; +use Appwrite\Auth\Auth; use Exception; use Throwable; use Utopia\Audit\Audit; -use Utopia\Database\Database; +use Utopia\CLI\Console; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Structure; use Utopia\Platform\Action; use Utopia\Queue\Message; +use Utopia\System\System; class Audits extends Action { + protected const BATCH_SIZE_DEVELOPMENT = 1; // smaller batch size for development + protected const BATCH_SIZE_PRODUCTION = 5_000; + protected const BATCH_AGGREGATION_INTERVAL = 60; // in seconds + + private int $lastTriggeredTime = 0; + + private array $logs = []; + + + protected function getBatchSize(): int + { + return System::getEnv('_APP_ENV', 'development') === 'development' + ? self::BATCH_SIZE_DEVELOPMENT + : self::BATCH_SIZE_PRODUCTION; + } + public static function getName(): string { return 'audits'; @@ -27,31 +45,40 @@ public function __construct() $this ->desc('Audits worker') ->inject('message') - ->inject('dbForProject') - ->callback(fn ($message, $dbForProject) => $this->action($message, $dbForProject)); + ->inject('getProjectDB') + ->inject('project') + ->callback([$this, 'action']); + + $this->lastTriggeredTime = time(); } /** * @param Message $message - * @param Database $dbForProject + * @param callable $getProjectDB + * @param Document $project * @return void * @throws Throwable * @throws \Utopia\Database\Exception * @throws Authorization * @throws Structure */ - public function action(Message $message, Database $dbForProject): void + public function action(Message $message, callable $getProjectDB, Document $project): void { - $payload = $message->getPayload() ?? []; if (empty($payload)) { throw new Exception('Missing payload'); } + Console::info('Aggregating audit logs'); + $event = $payload['event'] ?? ''; - $auditPayload = $payload['payload'] ?? ''; + + $auditPayload = ''; + if ($project->getId() === 'console') { + $auditPayload = $payload['payload'] ?? ''; + } $mode = $payload['mode'] ?? ''; $resource = $payload['resource'] ?? ''; $userAgent = $payload['userAgent'] ?? ''; @@ -60,23 +87,65 @@ public function action(Message $message, Database $dbForProject): void $userName = $user->getAttribute('name', ''); $userEmail = $user->getAttribute('email', ''); + $userType = $user->getAttribute('type', Auth::ACTIVITY_TYPE_USER); - $audit = new Audit($dbForProject); - $audit->log( - userId: $user->getInternalId(), - // Pass first, most verbose event pattern - event: $event, - resource: $resource, - userAgent: $userAgent, - ip: $ip, - location: '', - data: [ + // Create event data + $eventData = [ + 'userId' => $user->getInternalId(), + 'event' => $event, + 'resource' => $resource, + 'userAgent' => $userAgent, + 'ip' => $ip, + 'location' => '', + 'data' => [ 'userId' => $user->getId(), 'userName' => $userName, 'userEmail' => $userEmail, + 'userType' => $userType, 'mode' => $mode, 'data' => $auditPayload, - ] - ); + ], + 'timestamp' => date("Y-m-d H:i:s", $message->getTimestamp()), + ]; + + if (isset($this->logs[$project->getInternalId()])) { + $this->logs[$project->getInternalId()]['logs'][] = $eventData; + } else { + $this->logs[$project->getInternalId()] = [ + 'project' => new Document([ + '$id' => $project->getId(), + '$internalId' => $project->getInternalId(), + 'database' => $project->getAttribute('database'), + ]), + 'logs' => [$eventData] + ]; + } + + // Check if we should process the batch by checking both for the batch size and the elapsed time + $batchSize = $this->getBatchSize(); + $shouldProcessBatch = \count($this->logs) >= $batchSize; + if (!$shouldProcessBatch && \count($this->logs) > 0) { + $shouldProcessBatch = (\time() - $this->lastTriggeredTime) >= self::BATCH_AGGREGATION_INTERVAL; + } + + if ($shouldProcessBatch) { + try { + foreach ($this->logs as $internalId => $projectLogs) { + $dbForProject = $getProjectDB($projectLogs['project']); + + Console::log('Processing batch with ' . count($projectLogs['logs']) . ' events'); + $audit = new Audit($dbForProject); + + $audit->logBatch($projectLogs['logs']); + Console::success('Audit logs processed successfully'); + + unset($this->logs[$internalId]); + } + } catch (Throwable $e) { + Console::error('Error processing audit logs: ' . $e->getMessage()); + } finally { + $this->lastTriggeredTime = time(); + } + } } } diff --git a/src/Appwrite/Platform/Workers/Builds.php b/src/Appwrite/Platform/Workers/Builds.php deleted file mode 100644 index d8359f5f65e..00000000000 --- a/src/Appwrite/Platform/Workers/Builds.php +++ /dev/null @@ -1,804 +0,0 @@ -<?php - -namespace Appwrite\Platform\Workers; - -use Ahc\Jwt\JWT; -use Appwrite\Event\Event; -use Appwrite\Event\Func; -use Appwrite\Event\Usage; -use Appwrite\Messaging\Adapter\Realtime; -use Appwrite\Utopia\Response\Model\Deployment; -use Appwrite\Vcs\Comment; -use Exception; -use Executor\Executor; -use Swoole\Coroutine as Co; -use Utopia\Cache\Cache; -use Utopia\CLI\Console; -use Utopia\Config\Config; -use Utopia\Database\Database; -use Utopia\Database\DateTime; -use Utopia\Database\Document; -use Utopia\Database\Exception\Conflict; -use Utopia\Database\Exception\Restricted; -use Utopia\Database\Exception\Structure; -use Utopia\Database\Helpers\ID; -use Utopia\Database\Validator\Authorization; -use Utopia\Logger\Log; -use Utopia\Platform\Action; -use Utopia\Queue\Message; -use Utopia\Storage\Device; -use Utopia\Storage\Device\Local; -use Utopia\System\System; -use Utopia\VCS\Adapter\Git\GitHub; - -class Builds extends Action -{ - public static function getName(): string - { - return 'builds'; - } - - /** - * @throws Exception - */ - public function __construct() - { - $this - ->desc('Builds worker') - ->inject('message') - ->inject('dbForConsole') - ->inject('queueForEvents') - ->inject('queueForFunctions') - ->inject('queueForUsage') - ->inject('cache') - ->inject('dbForProject') - ->inject('deviceForFunctions') - ->inject('log') - ->callback(fn ($message, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions, Usage $usage, Cache $cache, Database $dbForProject, Device $deviceForFunctions, Log $log) => $this->action($message, $dbForConsole, $queueForEvents, $queueForFunctions, $usage, $cache, $dbForProject, $deviceForFunctions, $log)); - } - - /** - * @param Message $message - * @param Database $dbForConsole - * @param Event $queueForEvents - * @param Func $queueForFunctions - * @param Usage $queueForUsage - * @param Cache $cache - * @param Database $dbForProject - * @param Device $deviceForFunctions - * @param Log $log - * @return void - * @throws \Utopia\Database\Exception - */ - public function action(Message $message, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions, Usage $queueForUsage, Cache $cache, Database $dbForProject, Device $deviceForFunctions, Log $log): void - { - $payload = $message->getPayload() ?? []; - - if (empty($payload)) { - throw new \Exception('Missing payload'); - } - - $type = $payload['type'] ?? ''; - $project = new Document($payload['project'] ?? []); - $resource = new Document($payload['resource'] ?? []); - $deployment = new Document($payload['deployment'] ?? []); - $template = new Document($payload['template'] ?? []); - - $log->addTag('projectId', $project->getId()); - $log->addTag('type', $type); - - switch ($type) { - case BUILD_TYPE_DEPLOYMENT: - case BUILD_TYPE_RETRY: - Console::info('Creating build for deployment: ' . $deployment->getId()); - $github = new GitHub($cache); - $this->buildDeployment($deviceForFunctions, $queueForFunctions, $queueForEvents, $queueForUsage, $dbForConsole, $dbForProject, $github, $project, $resource, $deployment, $template, $log); - break; - - default: - throw new \Exception('Invalid build type'); - } - } - - /** - * @param Device $deviceForFunctions - * @param Func $queueForFunctions - * @param Event $queueForEvents - * @param Usage $queueForUsage - * @param Database $dbForConsole - * @param Database $dbForProject - * @param GitHub $github - * @param Document $project - * @param Document $function - * @param Document $deployment - * @param Document $template - * @param Log $log - * @return void - * @throws \Utopia\Database\Exception - * @throws Exception - */ - protected function buildDeployment(Device $deviceForFunctions, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Database $dbForConsole, Database $dbForProject, GitHub $github, Document $project, Document $function, Document $deployment, Document $template, Log $log): void - { - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); - - $functionId = $function->getId(); - $log->addTag('functionId', $function->getId()); - - $function = $dbForProject->getDocument('functions', $functionId); - if ($function->isEmpty()) { - throw new \Exception('Function not found', 404); - } - - $deploymentId = $deployment->getId(); - $log->addTag('deploymentId', $deploymentId); - - $deployment = $dbForProject->getDocument('deployments', $deploymentId); - if ($deployment->isEmpty()) { - throw new \Exception('Deployment not found', 404); - } - - if (empty($deployment->getAttribute('entrypoint', ''))) { - throw new \Exception('Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".', 500); - } - - $version = $function->getAttribute('version', 'v2'); - $spec = Config::getParam('runtime-specifications')[$function->getAttribute('specifications', APP_FUNCTION_SPECIFICATION_DEFAULT)]; - $runtimes = Config::getParam($version === 'v2' ? 'runtimes-v2' : 'runtimes', []); - $key = $function->getAttribute('runtime'); - $runtime = $runtimes[$key] ?? null; - if (\is_null($runtime)) { - throw new \Exception('Runtime "' . $function->getAttribute('runtime', '') . '" is not supported'); - } - - // Realtime preparation - $allEvents = Event::generateEvents('functions.[functionId].deployments.[deploymentId].update', [ - 'functionId' => $function->getId(), - 'deploymentId' => $deployment->getId() - ]); - - $startTime = DateTime::now(); - $durationStart = \microtime(true); - $buildId = $deployment->getAttribute('buildId', ''); - $build = $dbForProject->getDocument('builds', $buildId); - $isNewBuild = empty($buildId); - if ($build->isEmpty()) { - $buildId = ID::unique(); - $build = $dbForProject->createDocument('builds', new Document([ - '$id' => $buildId, - '$permissions' => [], - 'startTime' => $startTime, - 'deploymentInternalId' => $deployment->getInternalId(), - 'deploymentId' => $deployment->getId(), - 'status' => 'processing', - 'path' => '', - 'runtime' => $function->getAttribute('runtime'), - 'source' => $deployment->getAttribute('path', ''), - 'sourceType' => strtolower($deviceForFunctions->getType()), - 'logs' => '', - 'endTime' => null, - 'duration' => 0, - 'size' => 0 - ])); - - $deployment->setAttribute('buildId', $build->getId()); - $deployment->setAttribute('buildInternalId', $build->getInternalId()); - $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); - } elseif ($build->getAttribute('status') === 'canceled') { - Console::info('Build has been canceled'); - return; - } else { - $build = $dbForProject->getDocument('builds', $buildId); - } - - $source = $deployment->getAttribute('path', ''); - $installationId = $deployment->getAttribute('installationId', ''); - $providerRepositoryId = $deployment->getAttribute('providerRepositoryId', ''); - $providerCommitHash = $deployment->getAttribute('providerCommitHash', ''); - $isVcsEnabled = !empty($providerRepositoryId); - $owner = ''; - $repositoryName = ''; - - if ($isVcsEnabled) { - $installation = $dbForConsole->getDocument('installations', $installationId); - $providerInstallationId = $installation->getAttribute('providerInstallationId'); - $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); - $githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID'); - - $github->initializeVariables($providerInstallationId, $privateKey, $githubAppId); - } - - try { - if($isNewBuild && !$isVcsEnabled) { - // Non-vcs+Template - - $templateRepositoryName = $template->getAttribute('repositoryName', ''); - $templateOwnerName = $template->getAttribute('ownerName', ''); - $templateVersion = $template->getAttribute('version', ''); - - $templateRootDirectory = $template->getAttribute('rootDirectory', ''); - $templateRootDirectory = \rtrim($templateRootDirectory, '/'); - $templateRootDirectory = \ltrim($templateRootDirectory, '.'); - $templateRootDirectory = \ltrim($templateRootDirectory, '/'); - - if (!empty($templateRepositoryName) && !empty($templateOwnerName) && !empty($templateVersion)) { - $stdout = ''; - $stderr = ''; - - // Clone template repo - $tmpTemplateDirectory = '/tmp/builds/' . $buildId . '-template'; - $gitCloneCommandForTemplate = $github->generateCloneCommand($templateOwnerName, $templateRepositoryName, $templateVersion, GitHub::CLONE_TYPE_TAG, $tmpTemplateDirectory, $templateRootDirectory); - $exit = Console::execute($gitCloneCommandForTemplate, '', $stdout, $stderr); - - if ($exit !== 0) { - throw new \Exception('Unable to clone code repository: ' . $stderr); - } - - // Ensure directories - Console::execute('mkdir -p ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory), '', $stdout, $stderr); - - $tmpPathFile = $tmpTemplateDirectory . '/code.tar.gz'; - - $localDevice = new Local(); - - if (substr($tmpTemplateDirectory, -1) !== '/') { - $tmpTemplateDirectory .= '/'; - } - - $tarParamDirectory = \escapeshellarg($tmpTemplateDirectory . (empty($templateRootDirectory) ? '' : '/' . $templateRootDirectory)); - Console::execute('tar --exclude code.tar.gz -czf ' . \escapeshellarg($tmpPathFile) . ' -C ' . \escapeshellcmd($tarParamDirectory) . ' .', '', $stdout, $stderr); // TODO: Replace escapeshellcmd with escapeshellarg if we find a way that doesnt break syntax - - $source = $deviceForFunctions->getPath($deployment->getId() . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); - $result = $localDevice->transfer($tmpPathFile, $source, $deviceForFunctions); - - if (!$result) { - throw new \Exception("Unable to move file"); - } - - Console::execute('rm -rf ' . \escapeshellarg($tmpTemplateDirectory), '', $stdout, $stderr); - - $directorySize = $deviceForFunctions->getFileSize($source); - $build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('source', $source)); - $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source)->setAttribute('size', $directorySize)); - } - } elseif ($isNewBuild && $isVcsEnabled) { - // VCS and VCS+Temaplte - $tmpDirectory = '/tmp/builds/' . $buildId . '/code'; - $rootDirectory = $function->getAttribute('providerRootDirectory', ''); - $rootDirectory = \rtrim($rootDirectory, '/'); - $rootDirectory = \ltrim($rootDirectory, '.'); - $rootDirectory = \ltrim($rootDirectory, '/'); - - $owner = $github->getOwnerName($providerInstallationId); - $repositoryName = $github->getRepositoryName($providerRepositoryId); - - $cloneOwner = $deployment->getAttribute('providerRepositoryOwner', $owner); - $cloneRepository = $deployment->getAttribute('providerRepositoryName', $repositoryName); - - $branchName = $deployment->getAttribute('providerBranch'); - $commitHash = $deployment->getAttribute('providerCommitHash', ''); - - $cloneVersion = $branchName; - $cloneType = GitHub::CLONE_TYPE_BRANCH; - if(!empty($commitHash)) { - $cloneVersion = $commitHash; - $cloneType = GitHub::CLONE_TYPE_COMMIT; - } - - $gitCloneCommand = $github->generateCloneCommand($cloneOwner, $cloneRepository, $cloneVersion, $cloneType, $tmpDirectory, $rootDirectory); - $stdout = ''; - $stderr = ''; - - Console::execute('mkdir -p ' . \escapeshellarg('/tmp/builds/' . $buildId), '', $stdout, $stderr); - - if ($dbForProject->getDocument('builds', $buildId)->getAttribute('status') === 'canceled') { - Console::info('Build has been canceled'); - return; - } - - $exit = Console::execute($gitCloneCommand, '', $stdout, $stderr); - - if ($exit !== 0) { - throw new \Exception('Unable to clone code repository: ' . $stderr); - } - - // Local refactoring for function folder with spaces - if (str_contains($rootDirectory, ' ')) { - $rootDirectoryWithoutSpaces = str_replace(' ', '', $rootDirectory); - $from = $tmpDirectory . '/' . $rootDirectory; - $to = $tmpDirectory . '/' . $rootDirectoryWithoutSpaces; - $exit = Console::execute('mv "' . \escapeshellarg($from) . '" "' . \escapeshellarg($to) . '"', '', $stdout, $stderr); - - if ($exit !== 0) { - throw new \Exception('Unable to move function with spaces' . $stderr); - } - $rootDirectory = $rootDirectoryWithoutSpaces; - } - - - // Build from template - $templateRepositoryName = $template->getAttribute('repositoryName', ''); - $templateOwnerName = $template->getAttribute('ownerName', ''); - $templateVersion = $template->getAttribute('version', ''); - - $templateRootDirectory = $template->getAttribute('rootDirectory', ''); - $templateRootDirectory = \rtrim($templateRootDirectory, '/'); - $templateRootDirectory = \ltrim($templateRootDirectory, '.'); - $templateRootDirectory = \ltrim($templateRootDirectory, '/'); - - if (!empty($templateRepositoryName) && !empty($templateOwnerName) && !empty($templateVersion)) { - // Clone template repo - $tmpTemplateDirectory = '/tmp/builds/' . $buildId . '/template'; - - $gitCloneCommandForTemplate = $github->generateCloneCommand($templateOwnerName, $templateRepositoryName, $templateVersion, GitHub::CLONE_TYPE_TAG, $tmpTemplateDirectory, $templateRootDirectory); - $exit = Console::execute($gitCloneCommandForTemplate, '', $stdout, $stderr); - - if ($exit !== 0) { - throw new \Exception('Unable to clone code repository: ' . $stderr); - } - - // Ensure directories - Console::execute('mkdir -p ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory), '', $stdout, $stderr); - Console::execute('mkdir -p ' . \escapeshellarg($tmpDirectory . '/' . $rootDirectory), '', $stdout, $stderr); - - // Merge template into user repo - Console::execute('rsync -av --exclude \'.git\' ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory . '/') . ' ' . \escapeshellarg($tmpDirectory . '/' . $rootDirectory), '', $stdout, $stderr); - - // Commit and push - $exit = Console::execute('git config --global user.email "team@appwrite.io" && git config --global user.name "Appwrite" && cd ' . \escapeshellarg($tmpDirectory) . ' && git add . && git commit -m "Create ' . \escapeshellarg($function->getAttribute('name', '')) . ' function" && git push origin ' . \escapeshellarg($branchName), '', $stdout, $stderr); - - if ($exit !== 0) { - throw new \Exception('Unable to push code repository: ' . $stderr); - } - - $exit = Console::execute('cd ' . \escapeshellarg($tmpDirectory) . ' && git rev-parse HEAD', '', $stdout, $stderr); - - if ($exit !== 0) { - throw new \Exception('Unable to get vcs commit SHA: ' . $stderr); - } - - $providerCommitHash = \trim($stdout); - $authorUrl = "https://github.com/$cloneOwner"; - - $deployment->setAttribute('providerCommitHash', $providerCommitHash ?? ''); - $deployment->setAttribute('providerCommitAuthorUrl', $authorUrl); - $deployment->setAttribute('providerCommitAuthor', 'Appwrite'); - $deployment->setAttribute('providerCommitMessage', "Create '" . $function->getAttribute('name', '') . "' function"); - $deployment->setAttribute('providerCommitUrl', "https://github.com/$cloneOwner/$cloneRepository/commit/$providerCommitHash"); - $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); - - /** - * Send realtime Event - */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - } - - $tmpPath = '/tmp/builds/' . $buildId; - $tmpPathFile = $tmpPath . '/code.tar.gz'; - $localDevice = new Local(); - - if (substr($tmpDirectory, -1) !== '/') { - $tmpDirectory .= '/'; - } - - $directorySize = $localDevice->getDirectorySize($tmpDirectory); - $functionsSizeLimit = (int)System::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', '30000000'); - if ($directorySize > $functionsSizeLimit) { - throw new \Exception('Repository directory size should be less than ' . number_format($functionsSizeLimit / 1048576, 2) . ' MBs.'); - } - - $tarParamDirectory = '/tmp/builds/' . $buildId . '/code' . (empty($rootDirectory) ? '' : '/' . $rootDirectory); - Console::execute('tar --exclude code.tar.gz -czf ' . \escapeshellarg($tmpPathFile) . ' -C ' . \escapeshellcmd($tarParamDirectory) . ' .', '', $stdout, $stderr); // TODO: Replace escapeshellcmd with escapeshellarg if we find a way that doesnt break syntax - - $source = $deviceForFunctions->getPath($deployment->getId() . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); - $result = $localDevice->transfer($tmpPathFile, $source, $deviceForFunctions); - - if (!$result) { - throw new \Exception("Unable to move file"); - } - - Console::execute('rm -rf ' . \escapeshellarg($tmpPath), '', $stdout, $stderr); - - $build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('source', $source)); - $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source)); - - $this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); - } - - /** Request the executor to build the code... */ - $build->setAttribute('status', 'building'); - $build = $dbForProject->updateDocument('builds', $buildId, $build); - - if ($isVcsEnabled) { - $this->runGitAction('building', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); - } - - /** Trigger Webhook */ - $deploymentModel = new Deployment(); - $deploymentUpdate = - $queueForEvents - ->setQueue(Event::WEBHOOK_QUEUE_NAME) - ->setClass(Event::WEBHOOK_CLASS_NAME) - ->setProject($project) - ->setEvent('functions.[functionId].deployments.[deploymentId].update') - ->setParam('functionId', $function->getId()) - ->setParam('deploymentId', $deployment->getId()) - ->setPayload($deployment->getArrayCopy(array_keys($deploymentModel->getRules()))); - - $deploymentUpdate->trigger(); - - /** Trigger Functions */ - $queueForFunctions - ->from($deploymentUpdate) - ->trigger(); - - /** Trigger Realtime */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - - $vars = []; - - // Shared vars - foreach ($function->getAttribute('varsProject', []) as $var) { - $vars[$var->getAttribute('key')] = $var->getAttribute('value', ''); - } - - // Function vars - foreach ($function->getAttribute('vars', []) as $var) { - $vars[$var->getAttribute('key')] = $var->getAttribute('value', ''); - } - - $cpus = $spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT; - $memory = max($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT, 1024); // We have a minimum of 1024MB here because some runtimes can't compile with less memory than this. - - $jwtExpiry = (int)System::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900); - $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0); - $apiKey = $jwtObj->encode([ - 'projectId' => $project->getId(), - 'scopes' => $function->getAttribute('scopes', []) - ]); - - $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; - $hostname = System::getEnv('_APP_DOMAIN'); - $endpoint = $protocol . '://' . $hostname . "/v1"; - - // Appwrite vars - $vars = \array_merge($vars, [ - 'APPWRITE_FUNCTION_API_ENDPOINT' => $endpoint, - 'APPWRITE_FUNCTION_API_KEY' => API_KEY_DYNAMIC . '_' . $apiKey, - 'APPWRITE_FUNCTION_ID' => $function->getId(), - 'APPWRITE_FUNCTION_NAME' => $function->getAttribute('name'), - 'APPWRITE_FUNCTION_DEPLOYMENT' => $deployment->getId(), - 'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(), - 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '', - 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '', - 'APPWRITE_FUNCTION_CPUS' => $cpus, - 'APPWRITE_FUNCTION_MEMORY' => $memory, - 'APPWRITE_VERSION' => APP_VERSION_STABLE, - 'APPWRITE_REGION' => $project->getAttribute('region'), - ]); - - $command = $deployment->getAttribute('commands', ''); - - $response = null; - $err = null; - - if ($dbForProject->getDocument('builds', $buildId)->getAttribute('status') === 'canceled') { - Console::info('Build has been canceled'); - return; - } - - $isCanceled = false; - - Co::join([ - Co\go(function () use ($executor, &$response, $project, $deployment, $source, $function, $runtime, $vars, $command, $cpus, $memory, &$err) { - try { - $version = $function->getAttribute('version', 'v2'); - $command = $version === 'v2' ? 'tar -zxf /tmp/code.tar.gz -C /usr/code && cd /usr/local/src/ && ./build.sh' : 'tar -zxf /tmp/code.tar.gz -C /mnt/code && helpers/build.sh "' . \trim(\escapeshellarg($command), "\'") . '"'; - - $response = $executor->createRuntime( - deploymentId: $deployment->getId(), - projectId: $project->getId(), - source: $source, - image: $runtime['image'], - version: $version, - cpus: $cpus, - memory: $memory, - remove: true, - entrypoint: $deployment->getAttribute('entrypoint'), - destination: APP_STORAGE_BUILDS . "/app-{$project->getId()}", - variables: $vars, - command: $command - ); - } catch (\Throwable $error) { - $err = $error; - } - }), - Co\go(function () use ($executor, $project, $deployment, &$response, &$build, $dbForProject, $allEvents, &$err, &$isCanceled) { - try { - $executor->getLogs( - deploymentId: $deployment->getId(), - projectId: $project->getId(), - callback: function ($logs) use (&$response, &$err, &$build, $dbForProject, $allEvents, $project, &$isCanceled) { - if($isCanceled) { - return; - } - - // If we have response or error from concurrent coroutine, we already have latest logs - if ($response === null && $err === null) { - $build = $dbForProject->getDocument('builds', $build->getId()); - - if ($build->isEmpty()) { - throw new \Exception('Build not found', 404); - } - - if ($build->getAttribute('status') === 'canceled') { - $isCanceled = true; - Console::info('Ignoring realtime logs because build has been canceled'); - return; - } - - $logs = \mb_substr($logs, 0, null, 'UTF-8'); // Get only valid UTF8 part - removes leftover half-multibytes causing SQL errors - - $build = $build->setAttribute('logs', $build->getAttribute('logs', '') . $logs); - $build = $dbForProject->updateDocument('builds', $build->getId(), $build); - - /** - * Send realtime Event - */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - } - } - ); - } catch (\Throwable $error) { - if (empty($err)) { - $err = $error; - } - } - }), - ]); - - if ($dbForProject->getDocument('builds', $buildId)->getAttribute('status') === 'canceled') { - Console::info('Build has been canceled'); - return; - } - - if ($err) { - throw $err; - } - - $endTime = DateTime::now(); - $durationEnd = \microtime(true); - - $buildSizeLimit = (int)System::getEnv('_APP_FUNCTIONS_BUILD_SIZE_LIMIT', '2000000000'); - if ($response['size'] > $buildSizeLimit) { - throw new \Exception('Build size should be less than ' . number_format($buildSizeLimit / 1048576, 2) . ' MBs.'); - } - - /** Update the build document */ - $build->setAttribute('startTime', DateTime::format((new \DateTime())->setTimestamp(floor($response['startTime'])))); - $build->setAttribute('endTime', $endTime); - $build->setAttribute('duration', \intval(\ceil($durationEnd - $durationStart))); - $build->setAttribute('status', 'ready'); - $build->setAttribute('path', $response['path']); - $build->setAttribute('size', $response['size']); - $build->setAttribute('logs', $response['output']); - - $build = $dbForProject->updateDocument('builds', $buildId, $build); - - if ($isVcsEnabled) { - $this->runGitAction('ready', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); - } - - Console::success("Build id: $buildId created"); - - /** Set auto deploy */ - if ($deployment->getAttribute('activate') === true) { - $function->setAttribute('deploymentInternalId', $deployment->getInternalId()); - $function->setAttribute('deployment', $deployment->getId()); - $function->setAttribute('live', true); - $function = $dbForProject->updateDocument('functions', $function->getId(), $function); - } - - if ($dbForProject->getDocument('builds', $buildId)->getAttribute('status') === 'canceled') { - Console::info('Build has been canceled'); - return; - } - - /** Update function schedule */ - - // Inform scheduler if function is still active - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); - $schedule - ->setAttribute('resourceUpdatedAt', DateTime::now()) - ->setAttribute('schedule', $function->getAttribute('schedule')) - ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); - } catch (\Throwable $th) { - if ($dbForProject->getDocument('builds', $buildId)->getAttribute('status') === 'canceled') { - Console::info('Build has been canceled'); - return; - } - - $endTime = DateTime::now(); - $durationEnd = \microtime(true); - $build->setAttribute('endTime', $endTime); - $build->setAttribute('duration', \intval(\ceil($durationEnd - $durationStart))); - $build->setAttribute('status', 'failed'); - $build->setAttribute('logs', $th->getMessage()); - - $build = $dbForProject->updateDocument('builds', $buildId, $build); - - if ($isVcsEnabled) { - $this->runGitAction('failed', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); - } - } finally { - /** - * Send realtime Event - */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - - /** Trigger usage queue */ - if ($build->getAttribute('status') === 'ready') { - $queueForUsage - ->addMetric(METRIC_BUILDS_SUCCESS, 1) // per project - ->addMetric(METRIC_BUILDS_COMPUTE_SUCCESS, (int)$build->getAttribute('duration', 0) * 1000) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_SUCCESS), 1) // per function - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_SUCCESS), (int)$build->getAttribute('duration', 0) * 1000); - } elseif ($build->getAttribute('status') === 'failed') { - $queueForUsage - ->addMetric(METRIC_BUILDS_FAILED, 1) // per project - ->addMetric(METRIC_BUILDS_COMPUTE_FAILED, (int)$build->getAttribute('duration', 0) * 1000) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_FAILED), 1) // per function - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_FAILED), (int)$build->getAttribute('duration', 0) * 1000); - } - - $queueForUsage - ->addMetric(METRIC_BUILDS, 1) // per project - ->addMetric(METRIC_BUILDS_STORAGE, $build->getAttribute('size', 0)) - ->addMetric(METRIC_BUILDS_COMPUTE, (int)$build->getAttribute('duration', 0) * 1000) - ->addMetric(METRIC_BUILDS_MB_SECONDS, (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $build->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS), 1) // per function - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_STORAGE), $build->getAttribute('size', 0)) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE), (int)$build->getAttribute('duration', 0) * 1000) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_MB_SECONDS), (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $build->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) - ->setProject($project) - ->trigger(); - } - } - - /** - * @param string $status - * @param GitHub $github - * @param string $providerCommitHash - * @param string $owner - * @param string $repositoryName - * @param Document $project - * @param Document $function - * @param string $deploymentId - * @param Database $dbForProject - * @param Database $dbForConsole - * @return void - * @throws Structure - * @throws \Utopia\Database\Exception - * @throws Authorization - * @throws Conflict - * @throws Restricted - */ - protected function runGitAction(string $status, GitHub $github, string $providerCommitHash, string $owner, string $repositoryName, Document $project, Document $function, string $deploymentId, Database $dbForProject, Database $dbForConsole): void - { - if ($function->getAttribute('providerSilentMode', false) === true) { - return; - } - - $deployment = $dbForProject->getDocument('deployments', $deploymentId); - $commentId = $deployment->getAttribute('providerCommentId', ''); - - if (!empty($providerCommitHash)) { - $message = match ($status) { - 'ready' => 'Build succeeded.', - 'failed' => 'Build failed.', - 'processing' => 'Building...', - default => $status - }; - - $state = match ($status) { - 'ready' => 'success', - 'failed' => 'failure', - 'processing' => 'pending', - default => $status - }; - - $functionName = $function->getAttribute('name'); - $projectName = $project->getAttribute('name'); - - $name = "{$functionName} ({$projectName})"; - - $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; - $hostname = System::getEnv('_APP_DOMAIN'); - $functionId = $function->getId(); - $projectId = $project->getId(); - $providerTargetUrl = $protocol . '://' . $hostname . "/console/project-$projectId/functions/function-$functionId"; - - $github->updateCommitStatus($repositoryName, $providerCommitHash, $owner, $state, $message, $providerTargetUrl, $name); - } - - if (!empty($commentId)) { - $retries = 0; - - while (true) { - $retries++; - - try { - $dbForConsole->createDocument('vcsCommentLocks', new Document([ - '$id' => $commentId - ])); - break; - } catch (\Throwable $err) { - if ($retries >= 9) { - throw $err; - } - - \sleep(1); - } - } - - // Wrap in try/finally to ensure lock file gets deleted - try { - $comment = new Comment(); - $comment->parseComment($github->getComment($owner, $repositoryName, $commentId)); - $comment->addBuild($project, $function, $status, $deployment->getId(), ['type' => 'logs']); - $github->updateComment($owner, $repositoryName, $commentId, $comment->generateComment()); - } finally { - $dbForConsole->deleteDocument('vcsCommentLocks', $commentId); - } - } - } -} diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index 58dc1dd28a3..0c0229b88a2 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -2,16 +2,17 @@ namespace Appwrite\Platform\Workers; +use Appwrite\Certificates\Adapter as CertificatesAdapter; use Appwrite\Event\Event; use Appwrite\Event\Func; use Appwrite\Event\Mail; -use Appwrite\Messaging\Adapter\Realtime; -use Appwrite\Network\Validator\CNAME; +use Appwrite\Event\Realtime; +use Appwrite\Event\Webhook; +use Appwrite\Network\Validator\DNS; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model\Rule; use Exception; use Throwable; -use Utopia\App; use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\DateTime; @@ -27,6 +28,8 @@ use Utopia\Platform\Action; use Utopia\Queue\Message; use Utopia\System\System; +use Utopia\Validator\AnyOf; +use Utopia\Validator\IP; class Certificates extends Action { @@ -43,27 +46,44 @@ public function __construct() $this ->desc('Certificates worker') ->inject('message') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForMails') ->inject('queueForEvents') + ->inject('queueForWebhooks') ->inject('queueForFunctions') + ->inject('queueForRealtime') ->inject('log') - ->callback(fn (Message $message, Database $dbForConsole, Mail $queueForMails, Event $queueForEvents, Func $queueForFunctions, Log $log) => $this->action($message, $dbForConsole, $queueForMails, $queueForEvents, $queueForFunctions, $log)); + ->inject('certificates') + ->inject('plan') + ->callback([$this, 'action']); } /** * @param Message $message - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails * @param Event $queueForEvents + * @param Webhook $queueForWebhooks * @param Func $queueForFunctions + * @param Realtime $queueForRealtime * @param Log $log + * @param CertificatesAdapter $certificates * @return void * @throws Throwable * @throws \Utopia\Database\Exception */ - public function action(Message $message, Database $dbForConsole, Mail $queueForMails, Event $queueForEvents, Func $queueForFunctions, Log $log): void - { + public function action( + Message $message, + Database $dbForPlatform, + Mail $queueForMails, + Event $queueForEvents, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime, + Log $log, + CertificatesAdapter $certificates, + array $plan + ): void { $payload = $message->getPayload() ?? []; if (empty($payload)) { @@ -76,33 +96,46 @@ public function action(Message $message, Database $dbForConsole, Mail $queueForM $log->addTag('domain', $domain->get()); - $this->execute($domain, $dbForConsole, $queueForMails, $queueForEvents, $queueForFunctions, $log, $skipRenewCheck); + $this->execute($domain, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates, $skipRenewCheck, $plan); } /** * @param Domain $domain - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails * @param Event $queueForEvents * @param Func $queueForFunctions + * @param Realtime $queueForRealtime + * @param CertificatesAdapter $certificates * @param bool $skipRenewCheck + * @param array $plan * @return void * @throws Throwable * @throws \Utopia\Database\Exception */ - private function execute(Domain $domain, Database $dbForConsole, Mail $queueForMails, Event $queueForEvents, Func $queueForFunctions, Log $log, bool $skipRenewCheck = false): void - { + private function execute( + Domain $domain, + Database $dbForPlatform, + Mail $queueForMails, + Event $queueForEvents, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime, + Log $log, + CertificatesAdapter $certificates, + bool $skipRenewCheck = false, + array $plan = [] + ): void { /** * 1. Read arguments and validate domain * 2. Get main domain * 3. Validate CNAME DNS if parameter is not main domain (meaning it's custom domain) - * 4. Validate security email. Cannot be empty, required by LetsEncrypt - * 5. Validate renew date with certificate file, unless requested to skip by parameter - * 6. Issue a certificate using certbot CLI - * 7. Update 'log' attribute on certificate document with Certbot message - * 8. Create storage folder for certificate, if not ready already - * 9. Move certificates from Certbot location to our Storage - * 10. Create/Update our Storage with new Traefik config with new certificate paths + * 4. Validate renew date with certificate file, unless requested to skip by parameter + * 5. Issue a certificate using certbot CLI + * 6. Update 'log' attribute on certificate document with Certbot message + * 7. Create storage folder for certificate, if not ready already + * 8. Move certificates from Certbot location to our Storage + * 9. Create/Update our Storage with new Traefik config with new certificate paths * 11. Read certificate file and update 'renewDate' on certificate document * 12. Update 'issueDate' and 'attempts' on certificate * @@ -119,14 +152,14 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM * 2. Save document to database * 3. Update all domains documents with current certificate ID * - * Note: Renewals are checked and scheduled from maintenence worker + * Note: Renewals are checked and scheduled from maintenance worker */ // Get current certificate - $certificate = $dbForConsole->findOne('certificates', [Query::equal('domain', [$domain->get()])]); + $certificate = $dbForPlatform->findOne('certificates', [Query::equal('domain', [$domain->get()])]); // If we don't have certificate for domain yet, let's create new document. At the end we save it - if (!$certificate) { + if ($certificate->isEmpty()) { $certificate = new Document(); $certificate->setAttribute('domain', $domain->get()); } @@ -134,40 +167,28 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM $success = false; try { - // Email for alerts is required by LetsEncrypt - $email = System::getEnv('_APP_EMAIL_CERTIFICATES', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS')); - if (empty($email)) { - throw new Exception('You must set a valid security email address (_APP_EMAIL_CERTIFICATES) to issue an SSL certificate.'); - } - // Validate domain and DNS records. Skip if job is forced if (!$skipRenewCheck) { $mainDomain = $this->getMainDomain(); $isMainDomain = !isset($mainDomain) || $domain->get() === $mainDomain; $this->validateDomain($domain, $isMainDomain, $log); - } - // If certificate exists already, double-check expiry date. Skip if job is forced - if (!$skipRenewCheck && !$this->isRenewRequired($domain->get(), $log)) { - throw new Exception('Renew isn\'t required.'); + // If certificate exists already, double-check expiry date. Skip if job is forced + if (!$certificates->isRenewRequired($domain->get(), $log)) { + Console::info("Skipping, renew isn't required"); + return; + } } - // Prepare folder name for certbot. Using this helps prevent miss-match in LetsEncrypt configuration when renewing certificate - $folder = ID::unique(); - - // Generate certificate files using Let's Encrypt - $letsEncryptData = $this->issueCertificate($folder, $domain->get(), $email); + // Prepare unique cert name. Using this helps prevent miss-match in configuration when renewing certificates. + $certName = ID::unique(); + $renewDate = $certificates->issueCertificate($certName, $domain->get()); // Command succeeded, store all data into document - $logs = 'Certificate successfully generated.'; - $certificate->setAttribute('logs', \mb_strcut($logs, 0, 1000000));// Limit to 1MB - - - // Give certificates to Traefik - $this->applyCertificateFiles($folder, $domain->get(), $letsEncryptData); + $certificate->setAttribute('logs', 'Certificate successfully generated.'); // Update certificate info stored in database - $certificate->setAttribute('renewDate', $this->getRenewDate($domain->get())); + $certificate->setAttribute('renewDate', $renewDate); $certificate->setAttribute('attempts', 0); $certificate->setAttribute('issueDate', DateTime::now()); $success = true; @@ -181,11 +202,11 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM $attempts = $certificate->getAttribute('attempts', 0) + 1; $certificate->setAttribute('attempts', $attempts); - // Store cuttent time as renew date to ensure another attempt in next maintenance cycle + // Store current time as renew date to ensure another attempt in next maintenance cycle. $certificate->setAttribute('renewDate', DateTime::now()); // Send email to security email - $this->notifyError($domain->get(), $e->getMessage(), $attempts, $queueForMails); + $this->notifyError($domain->get(), $e->getMessage(), $attempts, $queueForMails, $plan); throw $e; } finally { @@ -193,7 +214,7 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM $certificate->setAttribute('updated', DateTime::now()); // Save all changes we made to certificate document into database - $this->saveCertificateDocument($domain->get(), $certificate, $success, $dbForConsole, $queueForEvents, $queueForFunctions); + $this->saveCertificateDocument($domain->get(), $certificate, $success, $dbForPlatform, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime); } } @@ -203,30 +224,39 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM * @param string $domain Domain name that certificate is for * @param Document $certificate Certificate document that we need to save * @param bool $success - * @param Database $dbForConsole Database connection for console + * @param Database $dbForPlatform Database connection for console * @param Event $queueForEvents * @param Func $queueForFunctions + * @param Realtime $queueForRealtime * @return void * @throws \Utopia\Database\Exception * @throws Authorization * @throws Conflict * @throws Structure */ - private function saveCertificateDocument(string $domain, Document $certificate, bool $success, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions): void - { + private function saveCertificateDocument( + string $domain, + Document $certificate, + bool $success, + Database $dbForPlatform, + Event $queueForEvents, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime + ): void { // Check if update or insert required - $certificateDocument = $dbForConsole->findOne('certificates', [Query::equal('domain', [$domain])]); - if (!empty($certificateDocument) && !$certificateDocument->isEmpty()) { + $certificateDocument = $dbForPlatform->findOne('certificates', [Query::equal('domain', [$domain])]); + if (!$certificateDocument->isEmpty()) { // Merge new data with current data $certificate = new Document(\array_merge($certificateDocument->getArrayCopy(), $certificate->getArrayCopy())); - $certificate = $dbForConsole->updateDocument('certificates', $certificate->getId(), $certificate); + $certificate = $dbForPlatform->updateDocument('certificates', $certificate->getId(), $certificate); } else { $certificate->removeAttribute('$internalId'); - $certificate = $dbForConsole->createDocument('certificates', $certificate); + $certificate = $dbForPlatform->createDocument('certificates', $certificate); } $certificateId = $certificate->getId(); - $this->updateDomainDocuments($certificateId, $domain, $success, $dbForConsole, $queueForEvents, $queueForFunctions); + $this->updateDomainDocuments($certificateId, $domain, $success, $dbForPlatform, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime); } /** @@ -245,8 +275,8 @@ private function getMainDomain(): ?string } /** - * Internal domain validation functionality to prevent unnecessary attempts failed from Let's Encrypt side. We check: - * - Domain needs to be public and valid (prevents NFT domains that are not supported by Let's Encrypt) + * Internal domain validation functionality to prevent unnecessary attempts. We check: + * - Domain needs to be public and valid (prevents NFT domains that are not supported) * - Domain must have proper DNS record * * @param Domain $domain Domain which we validate @@ -266,22 +296,39 @@ private function validateDomain(Domain $domain, bool $isMainDomain, Log $log): v } if (!$isMainDomain) { - // TODO: Would be awesome to also support A/AAAA records here. Maybe dry run? - // Validate if domain target is properly configured - $target = new Domain(System::getEnv('_APP_DOMAIN_TARGET', '')); + $validationStart = \microtime(true); - if (!$target->isKnown() || $target->isTest()) { - throw new Exception('Unreachable CNAME target (' . $target->get() . '), please use a domain with a public suffix.'); + $validators = []; + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); + if (!$targetCNAME->isKnown() || $targetCNAME->isTest()) { + $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); + } + if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); + } + if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); + } + + // Validate if domain target is properly configured + if (empty($validators)) { + throw new Exception('At least one of domain targets environment variable must be configured.'); } // Verify domain with DNS records - $validationStart = \microtime(true); - $validator = new CNAME($target->get()); + $validator = new AnyOf($validators, AnyOf::TYPE_STRING); if (!$validator->isValid($domain->get())) { $log->addExtra('dnsTiming', \strval(\microtime(true) - $validationStart)); $log->addTag('dnsDomain', $domain->get()); - $error = $validator->getLogs(); + $errors = []; + foreach ($validators as $validator) { + if (!empty($validator->getLogs())) { + $errors[] = $validator->getLogs(); + } + } + + $error = \implode("\n", $errors); $log->addExtra('dnsResponse', \is_array($error) ? \json_encode($error) : \strval($error)); throw new Exception('Failed to verify domain DNS records.'); @@ -292,136 +339,6 @@ private function validateDomain(Domain $domain, bool $isMainDomain, Log $log): v } } - /** - * Reads expiry date of certificate from file and decides if renewal is required or not. - * - * @param string $domain Domain for which we check certificate file - * @return bool True, if certificate needs to be renewed - * @throws Exception - */ - private function isRenewRequired(string $domain, Log $log): bool - { - $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; - if (\file_exists($certPath)) { - $validTo = null; - - $certData = openssl_x509_parse(file_get_contents($certPath)); - $validTo = $certData['validTo_time_t'] ?? 0; - - if (empty($validTo)) { - $log->addTag('certificateDomain', $domain); - throw new Exception('Unable to read certificate file (cert.pem).'); - } - - // LetsEncrypt allows renewal 30 days before expiry - $expiryInAdvance = (60 * 60 * 24 * 30); - if ($validTo - $expiryInAdvance > \time()) { - $log->addTag('certificateDomain', $domain); - $log->addExtra('certificateData', \is_array($certData) ? \json_encode($certData) : \strval($certData)); - return false; - } - } - - return true; - } - - /** - * LetsEncrypt communication to issue certificate (using certbot CLI) - * - * @param string $folder Folder into which certificates should be generated - * @param string $domain Domain to generate certificate for - * @return array Named array with keys 'stdout' and 'stderr', both string - * @throws Exception - */ - private function issueCertificate(string $folder, string $domain, string $email): array - { - $stdout = ''; - $stderr = ''; - - $staging = (App::isProduction()) ? '' : ' --dry-run'; - $exit = Console::execute("certbot certonly -v --webroot --noninteractive --agree-tos{$staging}" - . " --email " . $email - . " --cert-name " . $folder - . " -w " . APP_STORAGE_CERTIFICATES - . " -d {$domain}", '', $stdout, $stderr); - - // Unexpected error, usually 5XX, API limits, ... - if ($exit !== 0) { - throw new Exception('Failed to issue a certificate with message: ' . $stderr); - } - - return [ - 'stdout' => $stdout, - 'stderr' => $stderr - ]; - } - - /** - * Read new renew date from certificate file generated by Let's Encrypt - * - * @param string $domain Domain which certificate was generated for - * @return string - * @throws \Utopia\Database\Exception - */ - private function getRenewDate(string $domain): string - { - $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; - $certData = openssl_x509_parse(file_get_contents($certPath)); - $validTo = $certData['validTo_time_t'] ?? null; - $dt = (new \DateTime())->setTimestamp($validTo); - return DateTime::addSeconds($dt, -60 * 60 * 24 * 30); // -30 days - } - - /** - * Method to take files from Let's Encrypt, and put it into Traefik. - * - * @param string $domain Domain which certificate was generated for - * @param string $folder Folder in which certificates were generated - * @param array $letsEncryptData Let's Encrypt logs to use for additional info when throwing error - * @return void - * @throws Exception - */ - private function applyCertificateFiles(string $folder, string $domain, array $letsEncryptData): void - { - - // Prepare folder in storage for domain - $path = APP_STORAGE_CERTIFICATES . '/' . $domain; - if (!\is_readable($path)) { - if (!\mkdir($path, 0755, true)) { - throw new Exception('Failed to create path for certificate.'); - } - } - - // Move generated files - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/cert.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem')) { - throw new Exception('Failed to rename certificate cert.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/chain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/chain.pem')) { - throw new Exception('Failed to rename certificate chain.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/fullchain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/fullchain.pem')) { - throw new Exception('Failed to rename certificate fullchain.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/privkey.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/privkey.pem')) { - throw new Exception('Failed to rename certificate privkey.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - $config = \implode(PHP_EOL, [ - "tls:", - " certificates:", - " - certFile: /storage/certificates/{$domain}/fullchain.pem", - " keyFile: /storage/certificates/{$domain}/privkey.pem" - ]); - - // Save configuration into Traefik using our new cert files - if (!\file_put_contents(APP_STORAGE_CONFIG . '/' . $domain . '.yml', $config)) { - throw new Exception('Failed to save Traefik configuration.'); - } - } - /** * Method to make sure information about error is delivered to admnistrator. * @@ -429,10 +346,11 @@ private function applyCertificateFiles(string $folder, string $domain, array $le * @param string $errorMessage Verbose error message * @param int $attempt How many times it failed already * @param Mail $queueForMails + * @param array $plan * @return void * @throws Exception */ - private function notifyError(string $domain, string $errorMessage, int $attempt, Mail $queueForMails): void + private function notifyError(string $domain, string $errorMessage, int $attempt, Mail $queueForMails, array $plan): void { // Log error into console Console::warning('Cannot renew domain (' . $domain . ') on attempt no. ' . $attempt . ' certificate: ' . $errorMessage); @@ -444,6 +362,15 @@ private function notifyError(string $domain, string $errorMessage, int $attempt, $template->setParam('{{domain}}', $domain); $template->setParam('{{error}}', \nl2br($errorMessage)); $template->setParam('{{attempts}}', $attempt); + + $template->setParam('{{logoUrl}}', $plan['logoUrl'] ?? APP_EMAIL_LOGO_URL); + $template->setParam('{{accentColor}}', $plan['accentColor'] ?? APP_EMAIL_ACCENT_COLOR); + $template->setParam('{{twitterUrl}}', $plan['twitterUrl'] ?? APP_SOCIAL_TWITTER); + $template->setParam('{{discordUrl}}', $plan['discordUrl'] ?? APP_SOCIAL_DISCORD); + $template->setParam('{{githubUrl}}', $plan['githubUrl'] ?? APP_SOCIAL_GITHUB_APPWRITE); + $template->setParam('{{termsUrl}}', $plan['termsUrl'] ?? APP_EMAIL_TERMS_URL); + $template->setParam('{{privacyUrl}}', $plan['privacyUrl'] ?? APP_EMAIL_PRIVACY_URL); + $body = $template->render(); $emailVariables = [ @@ -475,17 +402,29 @@ private function notifyError(string $domain, string $errorMessage, int $attempt, * * @return void */ - private function updateDomainDocuments(string $certificateId, string $domain, bool $success, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions): void - { - - $rule = $dbForConsole->findOne('rules', [ - Query::equal('domain', [$domain]), - ]); + private function updateDomainDocuments( + string $certificateId, + string $domain, + bool $success, + Database $dbForPlatform, + Event $queueForEvents, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime + ): void { + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + if (System::getEnv('_APP_RULES_FORMAT') === 'md5') { + $rule = $dbForPlatform->getDocument('rules', md5($domain)); + } else { + $rule = $dbForPlatform->findOne('rules', [ + Query::equal('domain', [$domain]), + ]); + } - if ($rule !== false && !$rule->isEmpty()) { + if (!$rule->isEmpty()) { $rule->setAttribute('certificateId', $certificateId); $rule->setAttribute('status', $success ? 'verified' : 'unverified'); - $dbForConsole->updateDocument('rules', $rule->getId(), $rule); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); $projectId = $rule->getAttribute('projectId'); @@ -494,50 +433,34 @@ private function updateDomainDocuments(string $certificateId, string $domain, bo return; } - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + return; + } - /** Trigger Webhook */ $ruleModel = new Rule(); $queueForEvents ->setProject($project) ->setEvent('rules.[ruleId].update') ->setParam('ruleId', $rule->getId()) - ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))) - ->trigger(); + ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))); + /** Trigger Webhook */ + $queueForWebhooks + ->from($queueForEvents) + ->trigger(); /** Trigger Functions */ $queueForFunctions - ->setProject($project) - ->setEvent('rules.[ruleId].update') - ->setParam('ruleId', $rule->getId()) - ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))) + ->from($queueForEvents) ->trigger(); - /** Trigger realtime event */ - $allEvents = Event::generateEvents('rules.[ruleId].update', [ - 'ruleId' => $rule->getId(), - ]); - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $rule, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $rule->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - Realtime::send( - projectId: $project->getId(), - payload: $rule->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + /** Trigger Realtime Events */ + $queueForRealtime + ->from($queueForEvents) + ->setSubscribers(['console', $projectId]) + ->trigger(); } } } diff --git a/src/Appwrite/Platform/Workers/Databases.php b/src/Appwrite/Platform/Workers/Databases.php index 56f5f012e80..b2691b420ec 100644 --- a/src/Appwrite/Platform/Workers/Databases.php +++ b/src/Appwrite/Platform/Workers/Databases.php @@ -2,16 +2,15 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\Event; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\Event\Realtime; use Exception; -use Utopia\Audit\Audit; use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Exception as DatabaseException; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Conflict; +use Utopia\Database\Exception\NotFound; use Utopia\Database\Exception\Restricted; use Utopia\Database\Exception\Structure; use Utopia\Database\Query; @@ -34,30 +33,33 @@ public function __construct() $this ->desc('Databases worker') ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('dbForProject') + ->inject('queueForRealtime') ->inject('log') - ->callback(fn (Message $message, Database $dbForConsole, Database $dbForProject, Log $log) => $this->action($message, $dbForConsole, $dbForProject, $log)); + ->callback([$this, 'action']); } /** * @param Message $message - * @param Database $dbForConsole + * @param Document $project + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @param Log $log * @return void * @throws \Exception */ - public function action(Message $message, Database $dbForConsole, Database $dbForProject, Log $log): void + public function action(Message $message, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime, Log $log): void { $payload = $message->getPayload() ?? []; if (empty($payload)) { - throw new \Exception('Missing payload'); + throw new Exception('Missing payload'); } $type = $payload['type']; - $project = new Document($payload['project']); $collection = new Document($payload['collection'] ?? []); $document = new Document($payload['document'] ?? []); $database = new Document($payload['database'] ?? []); @@ -74,11 +76,11 @@ public function action(Message $message, Database $dbForConsole, Database $dbFor match (\strval($type)) { DATABASE_TYPE_DELETE_DATABASE => $this->deleteDatabase($database, $project, $dbForProject), DATABASE_TYPE_DELETE_COLLECTION => $this->deleteCollection($database, $collection, $project, $dbForProject), - DATABASE_TYPE_CREATE_ATTRIBUTE => $this->createAttribute($database, $collection, $document, $project, $dbForConsole, $dbForProject), - DATABASE_TYPE_DELETE_ATTRIBUTE => $this->deleteAttribute($database, $collection, $document, $project, $dbForConsole, $dbForProject), - DATABASE_TYPE_CREATE_INDEX => $this->createIndex($database, $collection, $document, $project, $dbForConsole, $dbForProject), - DATABASE_TYPE_DELETE_INDEX => $this->deleteIndex($database, $collection, $document, $project, $dbForConsole, $dbForProject), - default => throw new \Exception('No database operation for type: ' . \strval($type)), + DATABASE_TYPE_CREATE_ATTRIBUTE => $this->createAttribute($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + DATABASE_TYPE_DELETE_ATTRIBUTE => $this->deleteAttribute($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + DATABASE_TYPE_CREATE_INDEX => $this->createIndex($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + DATABASE_TYPE_DELETE_INDEX => $this->deleteIndex($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + default => throw new Exception('No database operation for type: ' . \strval($type)), }; } @@ -87,15 +89,24 @@ public function action(Message $message, Database $dbForConsole, Database $dbFor * @param Document $collection * @param Document $attribute * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws \Exception + * @throws \Throwable */ - private function createAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForConsole, Database $dbForProject): void - { + private function createAttribute( + Document $database, + Document $collection, + Document $attribute, + Document $project, + Database $dbForPlatform, + Database $dbForProject, + Realtime $queueForRealtime + ): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); } @@ -104,12 +115,7 @@ private function createAttribute(Document $database, Document $collection, Docum } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].attributes.[attributeId].update', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'attributeId' => $attribute->getId() - ]); + $event = "databases.[databaseId].collections.[collectionId].attributes.[attributeId].update"; /** * TODO @christyjacob4 verify if this is still the case * Fetch attribute from the database, since with Resque float values are loosing informations. @@ -133,8 +139,10 @@ private function createAttribute(Document $database, Document $collection, Docum $formatOptions = $attribute->getAttribute('formatOptions', []); $filters = $attribute->getAttribute('filters', []); $options = $attribute->getAttribute('options', []); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); + $relatedAttribute = new Document(); + $relatedCollection = new Document(); try { switch ($type) { @@ -165,18 +173,17 @@ private function createAttribute(Document $database, Document $collection, Docum break; default: if (!$dbForProject->createAttribute('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key, $type, $size, $required, $default, $signed, $array, $format, $formatOptions, $filters)) { - throw new \Exception('Failed to create Attribute'); + throw new Exception('Failed to create Attribute'); } } $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'available')); } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry Console::error($e->getMessage()); if ($e instanceof DatabaseException) { $attribute->setAttribute('error', $e->getMessage()); - if (isset($relatedAttribute)) { + if (! $relatedAttribute->isEmpty()) { $relatedAttribute->setAttribute('error', $e->getMessage()); } } @@ -187,22 +194,24 @@ private function createAttribute(Document $database, Document $collection, Docum $attribute->setAttribute('status', 'failed') ); - if (isset($relatedAttribute)) { + if (! $relatedAttribute->isEmpty()) { $dbForProject->updateDocument( 'attributes', $relatedAttribute->getId(), $relatedAttribute->setAttribute('status', 'failed') ); } + + throw $e; } finally { - $this->trigger($database, $collection, $attribute, $project, $projectId, $events); - } + $this->trigger($database, $collection, $project, $event, $queueForRealtime, $attribute); - if ($type === Database::VAR_RELATIONSHIP && $options['twoWay']) { - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); - } + if (! $relatedCollection->isEmpty()) { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); + } - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + } } /** @@ -210,14 +219,16 @@ private function createAttribute(Document $database, Document $collection, Docum * @param Document $collection * @param Document $attribute * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws \Exception + * @throws \Throwable **/ - private function deleteAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForConsole, Database $dbForProject): void + private function deleteAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -227,17 +238,11 @@ private function deleteAttribute(Document $database, Document $collection, Docum } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].attributes.[attributeId].delete', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'attributeId' => $attribute->getId() - ]); + $event = 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].delete'; $collectionId = $collection->getId(); $key = $attribute->getAttribute('key', ''); - $status = $attribute->getAttribute('status', ''); $type = $attribute->getAttribute('type', ''); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); $options = $attribute->getAttribute('options', []); $relatedAttribute = new Document(); $relatedCollection = new Document(); @@ -249,7 +254,7 @@ private function deleteAttribute(Document $database, Document $collection, Docum // - stuck: attribute was available but cannot be removed try { - if ($status !== 'failed') { + try { if ($type === Database::VAR_RELATIONSHIP) { if ($options['twoWay']) { $relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $options['relatedCollection']); @@ -266,96 +271,105 @@ private function deleteAttribute(Document $database, Document $collection, Docum } elseif (!$dbForProject->deleteAttribute('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key)) { throw new DatabaseException('Failed to delete Attribute'); } - } - $dbForProject->deleteDocument('attributes', $attribute->getId()); + $dbForProject->deleteDocument('attributes', $attribute->getId()); - if (!$relatedAttribute->isEmpty()) { - $dbForProject->deleteDocument('attributes', $relatedAttribute->getId()); - } - } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry - Console::error($e->getMessage()); + if (!$relatedAttribute->isEmpty()) { + $dbForProject->deleteDocument('attributes', $relatedAttribute->getId()); + } + + } catch (NotFound $e) { + Console::error($e->getMessage()); + + $dbForProject->deleteDocument('attributes', $attribute->getId()); - if ($e instanceof DatabaseException) { - $attribute->setAttribute('error', $e->getMessage()); if (!$relatedAttribute->isEmpty()) { - $relatedAttribute->setAttribute('error', $e->getMessage()); + $dbForProject->deleteDocument('attributes', $relatedAttribute->getId()); + } + + } catch (\Throwable $e) { + Console::error($e->getMessage()); + + if ($e instanceof DatabaseException) { + $attribute->setAttribute('error', $e->getMessage()); + if (!$relatedAttribute->isEmpty()) { + $relatedAttribute->setAttribute('error', $e->getMessage()); + } } - } - $dbForProject->updateDocument( - 'attributes', - $attribute->getId(), - $attribute->setAttribute('status', 'stuck') - ); - if (!$relatedAttribute->isEmpty()) { $dbForProject->updateDocument( 'attributes', - $relatedAttribute->getId(), - $relatedAttribute->setAttribute('status', 'stuck') + $attribute->getId(), + $attribute->setAttribute('status', 'stuck') ); + if (!$relatedAttribute->isEmpty()) { + $dbForProject->updateDocument( + 'attributes', + $relatedAttribute->getId(), + $relatedAttribute->setAttribute('status', 'stuck') + ); + } + + throw $e; + } finally { + $this->trigger($database, $collection, $project, $event, $queueForRealtime, $attribute); } - } finally { - $this->trigger($database, $collection, $attribute, $project, $projectId, $events); - } - // The underlying database removes/rebuilds indexes when attribute is removed - // Update indexes table with changes - /** @var Document[] $indexes */ - $indexes = $collection->getAttribute('indexes', []); - - foreach ($indexes as $index) { - /** @var string[] $attributes */ - $attributes = $index->getAttribute('attributes'); - $lengths = $index->getAttribute('lengths'); - $orders = $index->getAttribute('orders'); - - $found = \array_search($key, $attributes); - - if ($found !== false) { - // If found, remove entry from attributes, lengths, and orders - // array_values wraps array_diff to reindex array keys - // when found attribute is removed from array - $attributes = \array_values(\array_diff($attributes, [$attributes[$found]])); - $lengths = \array_values(\array_diff($lengths, isset($lengths[$found]) ? [$lengths[$found]] : [])); - $orders = \array_values(\array_diff($orders, isset($orders[$found]) ? [$orders[$found]] : [])); - - if (empty($attributes)) { - $dbForProject->deleteDocument('indexes', $index->getId()); - } else { - $index - ->setAttribute('attributes', $attributes, Document::SET_TYPE_ASSIGN) - ->setAttribute('lengths', $lengths, Document::SET_TYPE_ASSIGN) - ->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN); - - // Check if an index exists with the same attributes and orders - $exists = false; - foreach ($indexes as $existing) { - if ( - $existing->getAttribute('key') !== $index->getAttribute('key') // Ignore itself - && $existing->getAttribute('attributes') === $index->getAttribute('attributes') - && $existing->getAttribute('orders') === $index->getAttribute('orders') - ) { - $exists = true; - break; + // The underlying database removes/rebuilds indexes when attribute is removed + // Update indexes table with changes + /** @var Document[] $indexes */ + $indexes = $collection->getAttribute('indexes', []); + + foreach ($indexes as $index) { + /** @var string[] $attributes */ + $attributes = $index->getAttribute('attributes'); + $lengths = $index->getAttribute('lengths'); + $orders = $index->getAttribute('orders'); + + $found = \array_search($key, $attributes); + + if ($found !== false) { + // If found, remove entry from attributes, lengths, and orders + // array_values wraps array_diff to reindex array keys + // when found attribute is removed from array + $attributes = \array_values(\array_diff($attributes, [$attributes[$found]])); + $lengths = \array_values(\array_diff($lengths, isset($lengths[$found]) ? [$lengths[$found]] : [])); + $orders = \array_values(\array_diff($orders, isset($orders[$found]) ? [$orders[$found]] : [])); + + if (empty($attributes)) { + $dbForProject->deleteDocument('indexes', $index->getId()); + } else { + $index + ->setAttribute('attributes', $attributes, Document::SET_TYPE_ASSIGN) + ->setAttribute('lengths', $lengths, Document::SET_TYPE_ASSIGN) + ->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN); + + // Check if an index exists with the same attributes and orders + $exists = false; + foreach ($indexes as $existing) { + if ( + $existing->getAttribute('key') !== $index->getAttribute('key') // Ignore itself + && $existing->getAttribute('attributes') === $index->getAttribute('attributes') + && $existing->getAttribute('orders') === $index->getAttribute('orders') + ) { + $exists = true; + break; + } } - } - if ($exists) { // Delete the duplicate if created, else update in db - $this->deleteIndex($database, $collection, $index, $project, $dbForConsole, $dbForProject); - } else { - $dbForProject->updateDocument('indexes', $index->getId(), $index); + if ($exists) { // Delete the duplicate if created, else update in db + $this->deleteIndex($database, $collection, $index, $project, $dbForPlatform, $dbForProject, $queueForRealtime); + } else { + $dbForProject->updateDocument('indexes', $index->getId(), $index); + } } } } - } - - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); - $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); + } finally { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); - if (!$relatedCollection->isEmpty() && !$relatedAttribute->isEmpty()) { - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); - $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); + if (! $relatedCollection->isEmpty()) { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); + } } } @@ -364,15 +378,17 @@ private function deleteAttribute(Document $database, Document $collection, Docum * @param Document $collection * @param Document $index * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws Structure * @throws DatabaseException + * @throws \Throwable */ - private function createIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForConsole, Database $dbForProject): void + private function createIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -382,19 +398,14 @@ private function createIndex(Document $database, Document $collection, Document } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].indexes.[indexId].update', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'indexId' => $index->getId() - ]); + $event = 'databases.[databaseId].collections.[collectionId].indexes.[indexId].update'; $collectionId = $collection->getId(); $key = $index->getAttribute('key', ''); $type = $index->getAttribute('type', ''); $attributes = $index->getAttribute('attributes', []); $lengths = $index->getAttribute('lengths', []); $orders = $index->getAttribute('orders', []); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); try { if (!$dbForProject->createIndex('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key, $type, $attributes, $lengths, $orders)) { @@ -402,9 +413,7 @@ private function createIndex(Document $database, Document $collection, Document } $dbForProject->updateDocument('indexes', $index->getId(), $index->setAttribute('status', 'available')); } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry Console::error($e->getMessage()); - if ($e instanceof DatabaseException) { $index->setAttribute('error', $e->getMessage()); } @@ -413,11 +422,12 @@ private function createIndex(Document $database, Document $collection, Document $index->getId(), $index->setAttribute('status', 'failed') ); + + throw $e; } finally { - $this->trigger($database, $collection, $index, $project, $projectId, $events); + $this->trigger($database, $collection, $project, $event, $queueForRealtime, null, $index); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); } - - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); } /** @@ -425,15 +435,17 @@ private function createIndex(Document $database, Document $collection, Document * @param Document $collection * @param Document $index * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws Structure * @throws DatabaseException + * @throws \Throwable */ - private function deleteIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForConsole, Database $dbForProject): void + private function deleteIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -443,15 +455,10 @@ private function deleteIndex(Document $database, Document $collection, Document } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].indexes.[indexId].delete', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'indexId' => $index->getId() - ]); + $event = 'databases.[databaseId].collections.[collectionId].indexes.[indexId].delete'; $key = $index->getAttribute('key'); $status = $index->getAttribute('status', ''); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); try { if ($status !== 'failed' && !$dbForProject->deleteIndex('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key)) { @@ -460,7 +467,6 @@ private function deleteIndex(Document $database, Document $collection, Document $dbForProject->deleteDocument('indexes', $index->getId()); $index->setAttribute('status', 'deleted'); } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry Console::error($e->getMessage()); if ($e instanceof DatabaseException) { @@ -471,11 +477,13 @@ private function deleteIndex(Document $database, Document $collection, Document $index->getId(), $index->setAttribute('status', 'stuck') ); + + throw $e; + } finally { - $this->trigger($database, $collection, $index, $project, $projectId, $events); + $this->trigger($database, $collection, $project, $event, $queueForRealtime, null, $index); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collection->getId()); } - - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collection->getId()); } /** @@ -492,8 +500,6 @@ protected function deleteDatabase(Document $database, Document $project, $dbForP }); $dbForProject->deleteCollection('database_' . $database->getInternalId()); - - $this->deleteAuditLogsByResource('database/' . $database->getId(), $project, $dbForProject); } /** @@ -517,9 +523,10 @@ protected function deleteCollection(Document $database, Document $collection, Do $collectionId = $collection->getId(); $collectionInternalId = $collection->getInternalId(); - $databaseId = $database->getId(); $databaseInternalId = $database->getInternalId(); + $dbForProject->deleteCollection('database_' . $databaseInternalId . '_collection_' . $collection->getInternalId()); + /** * Related collections relating to current collection */ @@ -538,8 +545,6 @@ function ($attribute) use ($dbForProject, $databaseInternalId) { } ); - $dbForProject->deleteCollection('database_' . $databaseInternalId . '_collection_' . $collection->getInternalId()); - $this->deleteByGroup('attributes', [ Query::equal('databaseInternalId', [$databaseInternalId]), Query::equal('collectionInternalId', [$collectionInternalId]) @@ -549,94 +554,74 @@ function ($attribute) use ($dbForProject, $databaseInternalId) { Query::equal('databaseInternalId', [$databaseInternalId]), Query::equal('collectionInternalId', [$collectionInternalId]) ], $dbForProject); - - $this->deleteAuditLogsByResource('database/' . $databaseId . '/collection/' . $collectionId, $project, $dbForProject); } - /** - * @param string $resource - * @param Document $project - * @param Database $dbForProject - * @return void - * @throws Exception - */ - protected function deleteAuditLogsByResource(string $resource, Document $project, Database $dbForProject): void - { - $this->deleteByGroup(Audit::COLLECTION, [ - Query::equal('resource', [$resource]) - ], $dbForProject); - } /** - * @param string $collection collectionID + * @param string $collectionId * @param array $queries * @param Database $database * @param callable|null $callback * @return void * @throws Exception */ - protected function deleteByGroup(string $collection, array $queries, Database $database, callable $callback = null): void + protected function deleteByGroup(string $collectionId, array $queries, Database $database, callable $callback = null): void { - $count = 0; - $chunk = 0; - $limit = 50; - $sum = $limit; - - $executionStart = \microtime(true); + $start = \microtime(true); - while ($sum === $limit) { - $chunk++; - - $results = $database->find($collection, \array_merge([Query::limit($limit)], $queries)); - - $sum = count($results); - - Console::info('Deleting chunk #' . $chunk . '. Found ' . $sum . ' documents'); - - foreach ($results as $document) { - if ($database->deleteDocument($document->getCollection(), $document->getId())) { - Console::success('Deleted document "' . $document->getId() . '" successfully'); - - if (\is_callable($callback)) { - $callback($document); - } - } else { - Console::warning('Failed to delete document: ' . $document->getId()); - } - $count++; - } + try { + $count = $database->deleteDocuments( + $collectionId, + $queries, + Database::DELETE_BATCH_SIZE, + $callback + ); + } catch (\Throwable $th) { + $tenant = $database->getSharedTables() ? 'Tenant:'.$database->getTenant() : ''; + Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collectionId} {$tenant} :{$th->getMessage()}"); + return; } - $executionEnd = \microtime(true); - - Console::info("Deleted {$count} document by group in " . ($executionEnd - $executionStart) . " seconds"); + $end = \microtime(true); + Console::info("Deleted {$count} documents by group in " . ($end - $start) . " seconds"); } + /** + * @param Document $database + * @param Document $collection + * @param Document $project + * @param Realtime $queueForRealtime + * @param Document|null $attribute + * @param Document|null $index + * @return void + */ protected function trigger( Document $database, Document $collection, - Document $attribute, Document $project, - string $projectId, - array $events + string $event, + Realtime $queueForRealtime, + Document|null $attribute = null, + Document|null $index = null, ): void { - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $events[0], - payload: $attribute, - project: $project, - ); - Realtime::send( - projectId: 'console', - payload: $attribute->getArrayCopy(), - events: $events, - channels: $target['channels'], - roles: $target['roles'], - options: [ - 'projectId' => $projectId, - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId() - ] - ); + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console']) + ->setEvent($event) + ->setParam('databaseId', $database->getId()) + ->setParam('collectionId', $collection->getId()); + + if ($attribute !== null && !empty($attribute)) { + $queueForRealtime + ->setParam('attributeId', $attribute->getId()) + ->setPayload($attribute->getArrayCopy()); + } + if ($index !== null && !empty($index)) { + $queueForRealtime + ->setParam('indexId', $index->getId()) + ->setPayload($index->getArrayCopy()); + } + + $queueForRealtime->trigger(); } } diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index c70d9ca11b2..12143b41063 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -3,11 +3,13 @@ namespace Appwrite\Platform\Workers; use Appwrite\Auth\Auth; +use Appwrite\Certificates\Adapter as CertificatesAdapter; +use Appwrite\Deletes\Identities; +use Appwrite\Deletes\Targets; use Appwrite\Extend\Exception; use Executor\Executor; use Throwable; -use Utopia\Abuse\Abuse; -use Utopia\Abuse\Adapters\Database\TimeLimit; +use Utopia\Abuse\Adapters\TimeLimit\Database as AbuseDatabase; use Utopia\Audit\Audit; use Utopia\Cache\Adapter\Filesystem; use Utopia\Cache\Cache; @@ -22,6 +24,7 @@ use Utopia\Database\Exception\Restricted; use Utopia\Database\Exception\Structure; use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization as ValidatorAuthorization; use Utopia\DSN\DSN; use Utopia\Logger\Log; use Utopia\Platform\Action; @@ -31,6 +34,8 @@ class Deletes extends Action { + protected array $selects = ['$internalId', '$id', '$collection', '$permissions', '$updatedAt']; + public static function getName(): string { return 'deletes'; @@ -44,25 +49,44 @@ public function __construct() $this ->desc('Deletes worker') ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('getProjectDB') + ->inject('getLogsDB') ->inject('deviceForFiles') ->inject('deviceForFunctions') + ->inject('deviceForSites') ->inject('deviceForBuilds') ->inject('deviceForCache') - ->inject('abuseRetention') + ->inject('certificates') + ->inject('executor') ->inject('executionRetention') ->inject('auditRetention') ->inject('log') - ->callback(fn ($message, $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, string $abuseRetention, string $executionRetention, string $auditRetention, Log $log) => $this->action($message, $dbForConsole, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $abuseRetention, $executionRetention, $auditRetention, $log)); + ->callback([$this, 'action']); } /** * @throws Exception * @throws Throwable */ - public function action(Message $message, Database $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, string $abuseRetention, string $executionRetention, string $auditRetention, Log $log): void - { + public function action( + Message $message, + Document $project, + Database $dbForPlatform, + callable $getProjectDB, + callable $getLogsDB, + Device $deviceForFiles, + Device $deviceForFunctions, + Device $deviceForSites, + Device $deviceForBuilds, + Device $deviceForCache, + CertificatesAdapter $certificates, + Executor $executor, + string $executionRetention, + string $auditRetention, + Log $log + ): void { $payload = $message->getPayload() ?? []; if (empty($payload)) { @@ -75,7 +99,6 @@ public function action(Message $message, Database $dbForConsole, callable $getPr $resource = $payload['resource'] ?? null; $resourceType = $payload['resourceType'] ?? null; $document = new Document($payload['document'] ?? []); - $project = new Document($payload['project'] ?? []); $log->addTag('projectId', $project->getId()); $log->addTag('type', $type); @@ -84,13 +107,16 @@ public function action(Message $message, Database $dbForConsole, callable $getPr case DELETE_TYPE_DOCUMENT: switch ($document->getCollection()) { case DELETE_TYPE_PROJECTS: - $this->deleteProject($dbForConsole, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $document); + $this->deleteProject($dbForPlatform, $getProjectDB, $deviceForFiles, $deviceForSites, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $certificates, $document); + break; + case DELETE_TYPE_SITES: + $this->deleteSite($dbForPlatform, $getProjectDB, $deviceForSites, $deviceForBuilds, $deviceForFiles, $document, $certificates, $project); break; case DELETE_TYPE_FUNCTIONS: - $this->deleteFunction($dbForConsole, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $project); + $this->deleteFunction($dbForPlatform, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $certificates, $document, $project, $executor); break; case DELETE_TYPE_DEPLOYMENTS: - $this->deleteDeployment($getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $project); + $this->deleteDeployment($dbForPlatform, $getProjectDB, $deviceForFunctions, $deviceForSites, $deviceForBuilds, $deviceForFiles, $document, $certificates, $project, $executor); break; case DELETE_TYPE_USERS: $this->deleteUser($getProjectDB, $document, $project); @@ -99,10 +125,10 @@ public function action(Message $message, Database $dbForConsole, callable $getPr $this->deleteBucket($getProjectDB, $deviceForFiles, $document, $project); break; case DELETE_TYPE_INSTALLATIONS: - $this->deleteInstallation($dbForConsole, $getProjectDB, $document, $project); + $this->deleteInstallation($dbForPlatform, $getProjectDB, $document, $project); break; case DELETE_TYPE_RULES: - $this->deleteRule($dbForConsole, $document); + $this->deleteRule($dbForPlatform, $document, $certificates); break; default: Console::error('No lazy delete operation available for document of type: ' . $document->getCollection()); @@ -110,7 +136,7 @@ public function action(Message $message, Database $dbForConsole, callable $getPr } break; case DELETE_TYPE_TEAM_PROJECTS: - $this->deleteProjectsByTeam($dbForConsole, $getProjectDB, $document); + $this->deleteProjectsByTeam($dbForPlatform, $getProjectDB, $certificates, $document); break; case DELETE_TYPE_EXECUTIONS: $this->deleteExecutionLogs($project, $getProjectDB, $executionRetention); @@ -119,22 +145,15 @@ public function action(Message $message, Database $dbForConsole, callable $getPr if (!$project->isEmpty()) { $this->deleteAuditLogs($project, $getProjectDB, $auditRetention); } - - if (!$document->isEmpty()) { - $this->deleteAuditLogsByResource($getProjectDB, 'document/' . $document->getId(), $project); - } - break; - case DELETE_TYPE_ABUSE: - $this->deleteAbuseLogs($project, $getProjectDB, $abuseRetention); break; case DELETE_TYPE_REALTIME: - $this->deleteRealtimeUsage($dbForConsole, $datetime); + $this->deleteRealtimeUsage($dbForPlatform, $datetime); break; case DELETE_TYPE_SESSIONS: $this->deleteExpiredSessions($project, $getProjectDB); break; case DELETE_TYPE_USAGE: - $this->deleteUsageStats($project, $getProjectDB, $hourlyUsageRetentionDatetime); + $this->deleteUsageStats($project, $getProjectDB, $getLogsDB, $hourlyUsageRetentionDatetime); break; case DELETE_TYPE_CACHE_BY_RESOURCE: $this->deleteCacheByResource($project, $getProjectDB, $resource, $resourceType); @@ -143,13 +162,13 @@ public function action(Message $message, Database $dbForConsole, callable $getPr $this->deleteCacheByDate($project, $getProjectDB, $datetime); break; case DELETE_TYPE_SCHEDULES: - $this->deleteSchedules($dbForConsole, $getProjectDB, $datetime); + $this->deleteSchedules($dbForPlatform, $getProjectDB, $datetime); break; case DELETE_TYPE_TOPIC: $this->deleteTopic($project, $getProjectDB, $document); break; case DELETE_TYPE_TARGET: - $this->deleteTargetSubscribers($project, $getProjectDB, $document); + Targets::deleteSubscribers($getProjectDB($project), $document); break; case DELETE_TYPE_EXPIRED_TARGETS: $this->deleteExpiredTargets($project, $getProjectDB); @@ -157,13 +176,20 @@ public function action(Message $message, Database $dbForConsole, callable $getPr case DELETE_TYPE_SESSION_TARGETS: $this->deleteSessionTargets($project, $getProjectDB, $document); break; + case DELETE_TYPE_MAINTENANCE: + $this->deleteExpiredTargets($project, $getProjectDB); + $this->deleteExecutionLogs($project, $getProjectDB, $executionRetention); + $this->deleteAuditLogs($project, $getProjectDB, $auditRetention); + $this->deleteUsageStats($project, $getProjectDB, $getLogsDB, $hourlyUsageRetentionDatetime); + $this->deleteExpiredSessions($project, $getProjectDB); + break; default: throw new \Exception('No delete operation for type: ' . \strval($type)); } } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param string $datetime * @param Document|null $document @@ -174,34 +200,47 @@ public function action(Message $message, Database $dbForConsole, callable $getPr * @throws Structure * @throws DatabaseException */ - private function deleteSchedules(Database $dbForConsole, callable $getProjectDB, string $datetime): void + private function deleteSchedules(Database $dbForPlatform, callable $getProjectDB, string $datetime): void { + // Temporarly accepting both 'fra' and 'default' + // When all migrated, only use _APP_REGION with 'default' as default value + $regions = [System::getEnv('_APP_REGION', 'default')]; + if (!in_array('default', $regions)) { + $regions[] = 'default'; + } + $this->listByGroup( 'schedules', [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), + Query::equal('region', $regions), Query::lessThanEqual('resourceUpdatedAt', $datetime), Query::equal('active', [false]), ], - $dbForConsole, - function (Document $document) use ($dbForConsole, $getProjectDB) { - $project = $dbForConsole->getDocument('projects', $document->getAttribute('projectId')); + $dbForPlatform, + function (Document $document) use ($dbForPlatform, $getProjectDB) { + $project = $dbForPlatform->getDocument('projects', $document->getAttribute('projectId')); if ($project->isEmpty()) { - $dbForConsole->deleteDocument('schedules', $document->getId()); + $dbForPlatform->deleteDocument('schedules', $document->getId()); Console::success('Deleted schedule for deleted project ' . $document->getAttribute('projectId')); return; } $collectionId = match ($document->getAttribute('resourceType')) { 'function' => 'functions', + 'execution' => 'executions', 'message' => 'messages' }; - $resource = $getProjectDB($project)->getDocument( - $collectionId, - $document->getAttribute('resourceId') - ); + try { + $resource = $getProjectDB($project)->getDocument( + $collectionId, + $document->getAttribute('resourceId') + ); + } catch (Throwable $e) { + Console::error('Failed to get resource for schedule ' . $document->getId() . ' ' . $e->getMessage()); + return; + } $delete = true; @@ -209,10 +248,13 @@ function (Document $document) use ($dbForConsole, $getProjectDB) { case 'function': $delete = $resource->isEmpty(); break; + case 'execution': + $delete = false; + break; } if ($delete) { - $dbForConsole->deleteDocument('schedules', $document->getId()); + $dbForPlatform->deleteDocument('schedules', $document->getId()); Console::success('Deleting schedule for ' . $document->getAttribute('resourceType') . ' ' . $document->getAttribute('resourceId')); } } @@ -235,52 +277,13 @@ private function deleteTopic(Document $project, callable $getProjectDB, Document $this->deleteByGroup( 'subscribers', [ - Query::equal('topicInternalId', [$topic->getInternalId()]) + Query::equal('topicInternalId', [$topic->getInternalId()]), + Query::orderAsc(), ], $getProjectDB($project) ); } - /** - * @param Document $project - * @param callable $getProjectDB - * @param Document $target - * @throws Exception - */ - private function deleteTargetSubscribers(Document $project, callable $getProjectDB, Document $target): void - { - /** @var Database */ - $dbForProject = $getProjectDB($project); - - // Delete subscribers and decrement topic counts - $this->deleteByGroup( - 'subscribers', - [ - Query::equal('targetInternalId', [$target->getInternalId()]) - ], - $dbForProject, - function (Document $subscriber) use ($dbForProject, $target) { - $topicId = $subscriber->getAttribute('topicId'); - $topicInternalId = $subscriber->getAttribute('topicInternalId'); - $topic = $dbForProject->getDocument('topics', $topicId); - if (!$topic->isEmpty() && $topic->getInternalId() === $topicInternalId) { - $totalAttribute = match ($target->getAttribute('providerType')) { - MESSAGE_TYPE_EMAIL => 'emailTotal', - MESSAGE_TYPE_SMS => 'smsTotal', - MESSAGE_TYPE_PUSH => 'pushTotal', - default => throw new Exception('Invalid target provider type'), - }; - $dbForProject->decreaseDocumentAttribute( - 'topics', - $topicId, - $totalAttribute, - min: 0 - ); - } - } - ); - } - /** * @param Document $project * @param callable $getProjectDB @@ -290,30 +293,12 @@ function (Document $subscriber) use ($dbForProject, $target) { */ private function deleteExpiredTargets(Document $project, callable $getProjectDB): void { - $this->deleteByGroup( - 'targets', - [ - Query::equal('expired', [true]) - ], - $getProjectDB($project), - function (Document $target) use ($getProjectDB, $project) { - $this->deleteTargetSubscribers($project, $getProjectDB, $target); - } - ); + Targets::delete($getProjectDB($project), Query::equal('expired', [true])); } private function deleteSessionTargets(Document $project, callable $getProjectDB, Document $session): void { - $this->deleteByGroup( - 'targets', - [ - Query::equal('sessionInternalId', [$session->getInternalId()]) - ], - $getProjectDB($project), - function (Document $target) use ($getProjectDB, $project) { - $this->deleteTargetSubscribers($project, $getProjectDB, $target); - } - ); + Targets::delete($getProjectDB($project), Query::equal('sessionInternalId', [$session->getInternalId()])); } /** @@ -334,14 +319,20 @@ private function deleteCacheByResource(Document $project, callable $getProjectDB new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId) ); - $query[] = Query::equal('resource', [$resource]); + $queries = [ + Query::equal('resource', [$resource]) + ]; + if (!empty($resourceType)) { - $query[] = Query::equal('resourceType', [$resourceType]); + $queries[] = Query::equal('resourceType', [$resourceType]); } + $queries[] = Query::select($this->selects); + $queries[] = Query::orderAsc(); + $this->deleteByGroup( 'cache', - $query, + $queries, $dbForProject, function (Document $document) use ($cache, $projectId) { $path = APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId . DIRECTORY_SEPARATOR . $document->getId(); @@ -372,13 +363,16 @@ private function deleteCacheByDate(Document $project, callable $getProjectDB, st new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId) ); - $query = [ + $queries = [ + Query::select([...$this->selects, 'accessedAt']), Query::lessThan('accessedAt', $datetime), + Query::orderDesc('accessedAt'), + Query::orderDesc(), ]; $this->deleteByGroup( 'cache', - $query, + $queries, $dbForProject, function (Document $document) use ($cache, $projectId) { $path = APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId . DIRECTORY_SEPARATOR . $document->getId(); @@ -393,20 +387,41 @@ function (Document $document) use ($cache, $projectId) { } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param string $hourlyUsageRetentionDatetime * @return void * @throws Exception */ - private function deleteUsageStats(Document $project, callable $getProjectDB, string $hourlyUsageRetentionDatetime): void + private function deleteUsageStats(Document $project, callable $getProjectDB, callable $getLogsDB, string $hourlyUsageRetentionDatetime): void { + /** @var Database $dbForProject*/ $dbForProject = $getProjectDB($project); - // Delete Usage stats + + $selects = [...$this->selects, 'time']; + + // Delete Usage stats from projectDB $this->deleteByGroup('stats', [ - Query::lessThan('time', $hourlyUsageRetentionDatetime), + Query::select($selects), Query::equal('period', ['1h']), + Query::lessThan('time', $hourlyUsageRetentionDatetime), + Query::orderDesc('time'), + Query::orderDesc(), ], $dbForProject); + + if ($project->getId() !== 'console') { + /** @var Database $dbForLogs*/ + $dbForLogs = call_user_func($getLogsDB, $project); + + // Delete Usage stats from logsDB + $this->deleteByGroup('stats', [ + Query::select($selects), + Query::equal('period', ['1h']), + Query::lessThan('time', $hourlyUsageRetentionDatetime), + Query::orderDesc('time'), + Query::orderDesc(), + ], $dbForLogs); + } } /** @@ -425,7 +440,8 @@ public function deleteMemberships(callable $getProjectDB, Document $document, Do $this->deleteByGroup( 'memberships', [ - Query::equal('teamInternalId', [$teamInternalId]) + Query::equal('teamInternalId', [$teamInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $membership) use ($dbForProject) { @@ -436,36 +452,38 @@ function (Document $membership) use ($dbForProject) { } /** - * @param Database $dbForConsole - * @param Document $document - * @return void - * @throws Authorization - * @throws DatabaseException - * @throws Conflict - * @throws Restricted - * @throws Structure - * @throws Exception - */ - private function deleteProjectsByTeam(Database $dbForConsole, callable $getProjectDB, Document $document): void + * @param Database $dbForPlatform + * @param Document $document + * @return void + * @throws Authorization + * @throws DatabaseException + * @throws Conflict + * @throws Restricted + * @throws Structure + * @throws Exception + */ + protected function deleteProjectsByTeam(Database $dbForPlatform, callable $getProjectDB, CertificatesAdapter $certificates, Document $document): void { - $projects = $dbForConsole->find('projects', [ - Query::equal('teamInternalId', [$document->getInternalId()]) + $projects = $dbForPlatform->find('projects', [ + Query::equal('teamInternalId', [$document->getInternalId()]), + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]) ]); foreach ($projects as $project) { $deviceForFiles = getDevice(APP_STORAGE_UPLOADS . '/app-' . $project->getId()); + $deviceForSites = getDevice(APP_STORAGE_SITES . '/app-' . $project->getId()); $deviceForFunctions = getDevice(APP_STORAGE_FUNCTIONS . '/app-' . $project->getId()); $deviceForBuilds = getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId()); $deviceForCache = getDevice(APP_STORAGE_CACHE . '/app-' . $project->getId()); - $this->deleteProject($dbForConsole, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $project); - $dbForConsole->deleteDocument('projects', $project->getId()); + $this->deleteProject($dbForPlatform, $getProjectDB, $deviceForFiles, $deviceForSites, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $certificates, $project); + $dbForPlatform->deleteDocument('projects', $project->getId()); } } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param Device $deviceForFiles * @param Device $deviceForFunctions @@ -477,9 +495,10 @@ private function deleteProjectsByTeam(Database $dbForConsole, callable $getProje * @throws Authorization * @throws DatabaseException */ - private function deleteProject(Database $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, Document $document): void + private function deleteProject(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFiles, Device $deviceForSites, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, CertificatesAdapter $certificates, Document $document): void { $projectInternalId = $document->getInternalId(); + $projectId = $document->getId(); try { $dsn = new DSN($document->getAttribute('database', 'console')); @@ -493,79 +512,116 @@ private function deleteProject(Database $dbForConsole, callable $getProjectDB, D $projectCollectionIds = [ ...\array_keys(Config::getParam('collections', [])['projects']), Audit::COLLECTION, - TimeLimit::COLLECTION, + AbuseDatabase::COLLECTION, ]; - $limit = \count($projectCollectionIds) + 25; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + $sharedTablesV1 = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES_V1', '')); - while (true) { - $collections = $dbForProject->listCollections($limit); + $projectTables = !\in_array($dsn->getHost(), $sharedTables); + $sharedTablesV1 = \in_array($dsn->getHost(), $sharedTablesV1); + $sharedTablesV2 = !$projectTables && !$sharedTablesV1; - foreach ($collections as $collection) { - if ($dsn->getHost() !== System::getEnv('_APP_DATABASE_SHARED_TABLES', '') || !\in_array($collection->getId(), $projectCollectionIds)) { + /** + * @var $dbForProject Database + */ + $dbForProject->foreach(Database::METADATA, function (Document $collection) use ($dbForProject, $projectTables, $projectCollectionIds) { + try { + if ($projectTables || !\in_array($collection->getId(), $projectCollectionIds)) { $dbForProject->deleteCollection($collection->getId()); } else { - $this->deleteByGroup($collection->getId(), [], database: $dbForProject); - } - } - - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $collectionsIds = \array_map(fn ($collection) => $collection->getId(), $collections); - - if (empty(\array_diff($collectionsIds, $projectCollectionIds))) { - break; + $this->deleteByGroup( + $collection->getId(), + [ + Query::orderAsc() + ], + database: $dbForProject + ); } - } elseif (empty($collections)) { - break; + } catch (Throwable $e) { + Console::error('Error deleting '.$collection->getId().' '.$e->getMessage()); } - } + }); // Delete Platforms $this->deleteByGroup('platforms', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete project and function rules $this->deleteByGroup('rules', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole, function (Document $document) use ($dbForConsole) { - $this->deleteRule($dbForConsole, $document); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform, function (Document $document) use ($dbForPlatform, $certificates) { + $this->deleteRule($dbForPlatform, $document, $certificates); }); // Delete Keys $this->deleteByGroup('keys', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete Webhooks $this->deleteByGroup('webhooks', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete VCS Installations $this->deleteByGroup('installations', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete VCS Repositories $this->deleteByGroup('repositories', [ Query::equal('projectInternalId', [$projectInternalId]), - ], $dbForConsole); + Query::orderAsc() + ], $dbForPlatform); // Delete VCS comments $this->deleteByGroup('vcsComments', [ Query::equal('projectInternalId', [$projectInternalId]), - ], $dbForConsole); + Query::orderAsc() + ], $dbForPlatform); + + // Delete Schedules + $this->deleteByGroup('schedules', [ + Query::equal('projectId', [$projectId]), + Query::orderAsc() + ], $dbForPlatform); // Delete metadata table - if ($dsn->getHost() !== System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $dbForProject->deleteCollection('_metadata'); - } else { - $this->deleteByGroup('_metadata', [], $dbForProject); + if ($projectTables) { + $dbForProject->deleteCollection(Database::METADATA); + } elseif ($sharedTablesV1) { + $this->deleteByGroup( + Database::METADATA, + [ + Query::orderAsc() + ], + $dbForProject + ); + } elseif ($sharedTablesV2) { + $queries = \array_map( + fn ($id) => Query::notEqual('$id', $id), + $projectCollectionIds + ); + + $queries[] = Query::orderAsc(); + + $this->deleteByGroup( + Database::METADATA, + $queries, + $dbForProject + ); } // Delete all storage directories $deviceForFiles->delete($deviceForFiles->getRoot(), true); + $deviceForSites->delete($deviceForSites->getRoot(), true); $deviceForFunctions->delete($deviceForFunctions->getRoot(), true); $deviceForBuilds->delete($deviceForBuilds->getRoot(), true); $deviceForCache->delete($deviceForCache->getRoot(), true); @@ -586,14 +642,16 @@ private function deleteUser(callable $getProjectDB, Document $document, Document // Delete all sessions of this user from the sessions table and update the sessions field of the user record $this->deleteByGroup('sessions', [ - Query::equal('userInternalId', [$userInternalId]) + Query::equal('userInternalId', [$userInternalId]), + Query::orderAsc() ], $dbForProject); $dbForProject->purgeCachedDocument('users', $userId); // Delete Memberships and decrement team membership counts $this->deleteByGroup('memberships', [ - Query::equal('userInternalId', [$userInternalId]) + Query::equal('userInternalId', [$userInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $document) use ($dbForProject) { if ($document->getAttribute('confirm')) { // Count only confirmed members $teamId = $document->getAttribute('teamId'); @@ -606,29 +664,19 @@ private function deleteUser(callable $getProjectDB, Document $document, Document // Delete tokens $this->deleteByGroup('tokens', [ - Query::equal('userInternalId', [$userInternalId]) + Query::equal('userInternalId', [$userInternalId]), + Query::orderAsc() ], $dbForProject); // Delete identities - $this->deleteByGroup('identities', [ - Query::equal('userInternalId', [$userInternalId]) - ], $dbForProject); + Identities::delete($dbForProject, Query::equal('userInternalId', [$userInternalId])); // Delete targets - $this->deleteByGroup( - 'targets', - [ - Query::equal('userInternalId', [$userInternalId]) - ], - $dbForProject, - function (Document $target) use ($getProjectDB, $project) { - $this->deleteTargetSubscribers($project, $getProjectDB, $target); - } - ); + Targets::delete($dbForProject, Query::equal('userInternalId', [$userInternalId])); } /** - * @param database $dbForConsole + * @param database $dbForPlatform * @param callable $getProjectDB * @param string $datetime * @return void @@ -637,14 +685,18 @@ function (Document $target) use ($getProjectDB, $project) { private function deleteExecutionLogs(Document $project, callable $getProjectDB, string $datetime): void { $dbForProject = $getProjectDB($project); + // Delete Executions $this->deleteByGroup('executions', [ - Query::lessThan('$createdAt', $datetime) + Query::select([...$this->selects, '$createdAt']), + Query::lessThan('$createdAt', $datetime), + Query::orderDesc('$createdAt'), + Query::orderDesc(), ], $dbForProject); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @return void * @throws Exception|Throwable @@ -657,49 +709,33 @@ private function deleteExpiredSessions(Document $project, callable $getProjectDB // Delete Sessions $this->deleteByGroup('sessions', [ - Query::lessThan('$createdAt', $expired) + Query::select([...$this->selects, '$createdAt']), + Query::lessThan('$createdAt', $expired), + Query::orderDesc('$createdAt'), + Query::orderDesc(), ], $dbForProject); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param string $datetime * @return void * @throws Exception */ - private function deleteRealtimeUsage(Database $dbForConsole, string $datetime): void + private function deleteRealtimeUsage(Database $dbForPlatform, string $datetime): void { // Delete Dead Realtime Logs $this->deleteByGroup('realtime', [ - Query::lessThan('timestamp', $datetime) - ], $dbForConsole); + Query::lessThan('timestamp', $datetime), + Query::orderDesc('timestamp'), + Query::orderAsc(), + ], $dbForPlatform); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB - * @param string $datetime - * @return void - * @throws Exception - */ - private function deleteAbuseLogs(Document $project, callable $getProjectDB, string $abuseRetention): void - { - $projectId = $project->getId(); - $dbForProject = $getProjectDB($project); - $timeLimit = new TimeLimit("", 0, 1, $dbForProject); - $abuse = new Abuse($timeLimit); - - try { - $abuse->cleanup($abuseRetention); - } catch (DatabaseException $e) { - Console::error('Failed to delete abuse logs for project ' . $projectId . ': ' . $e->getMessage()); - } - } - - /** - * @param Database $dbForConsole - * @param callable $getProjectDB - * @param string $datetime + * @param string $auditRetention * @return void * @throws Exception */ @@ -707,10 +743,14 @@ private function deleteAuditLogs(Document $project, callable $getProjectDB, stri { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); - $audit = new Audit($dbForProject); try { - $audit->cleanup($auditRetention); + $this->deleteByGroup(Audit::COLLECTION, [ + Query::select([...$this->selects, 'time']), + Query::lessThan('time', $auditRetention), + Query::orderDesc('time'), + Query::orderAsc(), + ], $dbForProject); } catch (DatabaseException $e) { Console::error('Failed to delete audit logs for project ' . $projectId . ': ' . $e->getMessage()); } @@ -718,18 +758,86 @@ private function deleteAuditLogs(Document $project, callable $getProjectDB, stri /** * @param callable $getProjectDB - * @param string $resource + * @param Device $deviceForSites + * @param Device $deviceForBuilds + * @param Document $document function document * @param Document $project * @return void * @throws Exception */ - private function deleteAuditLogsByResource(callable $getProjectDB, string $resource, Document $project): void + private function deleteSite(Database $dbForPlatform, callable $getProjectDB, Device $deviceForSites, Device $deviceForBuilds, Device $deviceForFiles, Document $document, CertificatesAdapter $certificates, Document $project): void { $dbForProject = $getProjectDB($project); + $siteId = $document->getId(); + $siteInternalId = $document->getInternalId(); - $this->deleteByGroup(Audit::COLLECTION, [ - Query::equal('resource', [$resource]) + /** + * Delete rules for site + */ + Console::info("Deleting rules for site " . $siteId); + $this->deleteByGroup('rules', [ + Query::equal('type', ['deployment']), + Query::equal('deploymentResourceType', ['site']), + Query::equal('deploymentResourceInternalId', [$siteInternalId]), + Query::equal('projectInternalId', [$project->getInternalId()]) + ], $dbForPlatform, function (Document $document) use ($dbForPlatform, $certificates) { + $this->deleteRule($dbForPlatform, $document, $certificates); + }); + + /** + * Delete Variables + */ + Console::info("Deleting variables for site " . $siteId); + $this->deleteByGroup('variables', [ + Query::equal('resourceType', ['site']), + Query::equal('resourceInternalId', [$siteInternalId]) + ], $dbForProject); + + /** + * Delete Deployments + */ + Console::info("Deleting deployments for site " . $siteId); + $deploymentInternalIds = []; + $deploymentIds = []; + $this->deleteByGroup('deployments', [ + Query::equal('resourceInternalId', [$siteInternalId]), + Query::equal('resourceType', ['site']), + Query::orderAsc() + ], $dbForProject, function (Document $document) use ($project, $certificates, $deviceForSites, $deviceForBuilds, $deviceForFiles, $dbForPlatform, &$deploymentInternalIds) { + $deploymentInternalIds[] = $document->getInternalId(); + $deploymentIds[] = $document->getId(); + $this->deleteBuildFiles($deviceForBuilds, $document); + $this->deleteDeploymentFiles($deviceForSites, $document); + $this->deleteDeploymentScreenshots($deviceForFiles, $dbForPlatform, $document); + }); + + /** + * Delete Logs + */ + Console::info("Deleting logs for site " . $siteId); + $this->deleteByGroup('executions', [ + Query::select($this->selects), + Query::equal('resourceInternalId', [$siteInternalId]), + Query::equal('resourceType', ['sites']), + Query::orderAsc() ], $dbForProject); + + /** + * Delete VCS Repositories and VCS Comments + */ + Console::info("Deleting VCS repositories and comments linked to site " . $siteId); + $this->deleteByGroup('repositories', [ + Query::equal('projectInternalId', [$project->getInternalId()]), + Query::equal('resourceInternalId', [$siteInternalId]), + Query::equal('resourceType', ['site']), + ], $dbForPlatform, function (Document $document) use ($dbForPlatform) { + $providerRepositoryId = $document->getAttribute('providerRepositoryId', ''); + $projectInternalId = $document->getAttribute('projectInternalId', ''); + $this->deleteByGroup('vcsComments', [ + Query::equal('providerRepositoryId', [$providerRepositoryId]), + Query::equal('projectInternalId', [$projectInternalId]), + ], $dbForPlatform); + }); } /** @@ -738,10 +846,11 @@ private function deleteAuditLogsByResource(callable $getProjectDB, string $resou * @param Device $deviceForBuilds * @param Document $document function document * @param Document $project + * @param Executor $executor * @return void * @throws Exception */ - private function deleteFunction(Database $dbForConsole, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Document $document, Document $project): void + private function deleteFunction(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, CertificatesAdapter $certificates, Document $document, Document $project, Executor $executor): void { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); @@ -753,11 +862,13 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, */ Console::info("Deleting rules for function " . $functionId); $this->deleteByGroup('rules', [ - Query::equal('resourceType', ['function']), - Query::equal('resourceInternalId', [$functionInternalId]), - Query::equal('projectInternalId', [$project->getInternalId()]) - ], $dbForConsole, function (Document $document) use ($project, $dbForConsole) { - $this->deleteRule($dbForConsole, $document); + Query::equal('type', ['deployment']), + Query::equal('deploymentResourceType', ['function']), + Query::equal('deploymentResourceInternalId', [$functionInternalId]), + Query::equal('projectInternalId', [$project->getInternalId()]), + Query::orderAsc() + ], $dbForPlatform, function (Document $document) use ($project, $dbForPlatform, $certificates) { + $this->deleteRule($dbForPlatform, $document, $certificates); }); /** @@ -765,8 +876,9 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, */ Console::info("Deleting variables for function " . $functionId); $this->deleteByGroup('variables', [ + Query::equal('resourceInternalId', [$functionInternalId]), Query::equal('resourceType', ['function']), - Query::equal('resourceInternalId', [$functionInternalId]) + Query::orderAsc() ], $dbForProject); /** @@ -776,31 +888,24 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, $deploymentInternalIds = []; $this->deleteByGroup('deployments', [ - Query::equal('resourceInternalId', [$functionInternalId]) - ], $dbForProject, function (Document $document) use ($deviceForFunctions, &$deploymentInternalIds) { + Query::equal('resourceInternalId', [$functionInternalId]), + Query::equal('resourceType', ['function']), + Query::orderAsc() + ], $dbForProject, function (Document $document) use ($dbForPlatform, $project, $certificates, $deviceForFunctions, $deviceForBuilds, &$deploymentInternalIds) { $deploymentInternalIds[] = $document->getInternalId(); $this->deleteDeploymentFiles($deviceForFunctions, $document); + $this->deleteBuildFiles($deviceForBuilds, $document); }); - /** - * Delete builds - */ - Console::info("Deleting builds for function " . $functionId); - - foreach ($deploymentInternalIds as $deploymentInternalId) { - $this->deleteByGroup('builds', [ - Query::equal('deploymentInternalId', [$deploymentInternalId]) - ], $dbForProject, function (Document $document) use ($deviceForBuilds) { - $this->deleteBuildFiles($deviceForBuilds, $document); - }); - } - /** * Delete Executions */ Console::info("Deleting executions for function " . $functionId); $this->deleteByGroup('executions', [ - Query::equal('functionInternalId', [$functionInternalId]) + Query::select($this->selects), + Query::equal('resourceInternalId', [$functionInternalId]), + Query::equal('resourceType', ['functions']), + Query::orderAsc() ], $dbForProject); /** @@ -811,20 +916,70 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, Query::equal('projectInternalId', [$project->getInternalId()]), Query::equal('resourceInternalId', [$functionInternalId]), Query::equal('resourceType', ['function']), - ], $dbForConsole, function (Document $document) use ($dbForConsole) { + Query::orderAsc() + ], $dbForPlatform, function (Document $document) use ($dbForPlatform) { $providerRepositoryId = $document->getAttribute('providerRepositoryId', ''); $projectInternalId = $document->getAttribute('projectInternalId', ''); + $this->deleteByGroup('vcsComments', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::equal('projectInternalId', [$projectInternalId]), - ], $dbForConsole); + Query::orderAsc() + ], $dbForPlatform); }); /** * Request executor to delete all deployment containers */ Console::info("Requesting executor to delete all deployment containers for function " . $functionId); - $this->deleteRuntimes($getProjectDB, $document, $project); + $this->deleteRuntimes($getProjectDB, $document, $project, $executor); + } + + private function deleteDeploymentScreenshots(Device $deviceForFiles, Database $dbForPlatform, Document $deployment): void + { + $screenshotIds = []; + if (!empty($deployment->getAttribute('screenshotLight', ''))) { + $screenshotIds[] = $deployment->getAttribute('screenshotLight', ''); + } + if (!empty($deployment->getAttribute('screenshotDark', ''))) { + $screenshotIds[] = $deployment->getAttribute('screenshotDark', ''); + } + + if (empty($screenshotIds)) { + return; + } + Console::info("Deleting screenshots for deployment " . $deployment->getId()); + + $bucket = ValidatorAuthorization::skip(fn () => $dbForPlatform->getDocument('buckets', 'screenshots')); + if ($bucket->isEmpty()) { + Console::error('Failed to get bucket for deployment screenshots'); + return; + } + + foreach ($screenshotIds as $id) { + $file = ValidatorAuthorization::skip(fn () => $dbForPlatform->getDocument('bucket_' . $bucket->getInternalId(), $id)); + + if ($file->isEmpty()) { + Console::error('Failed to get deployment screenshot: ' . $id); + continue; + } + + $path = $file->getAttribute('path', ''); + + try { + if ($deviceForFiles->delete($path, true)) { + Console::success('Deleted deployment screenshot: ' . $path); + } else { + Console::error('Failed to delete deployment screenshot: ' . $path); + } + } catch (\Throwable $th) { + Console::error('Failed to delete deployment screenshot: ' . $path); + Console::error('[Error] Type: ' . get_class($th)); + Console::error('[Error] Message: ' . $th->getMessage()); + Console::error('[Error] File: ' . $th->getFile()); + Console::error('[Error] Line: ' . $th->getLine()); + } + } } /** @@ -835,7 +990,7 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, private function deleteDeploymentFiles(Device $device, Document $deployment): void { $deploymentId = $deployment->getId(); - $deploymentPath = $deployment->getAttribute('path', ''); + $deploymentPath = $deployment->getAttribute('sourcePath', ''); if (empty($deploymentPath)) { Console::info("No deployment files for deployment " . $deploymentId); @@ -850,7 +1005,7 @@ private function deleteDeploymentFiles(Device $device, Document $deployment): vo } else { Console::error('Failed to delete deployment files: ' . $deploymentPath); } - } catch (\Throwable $th) { + } catch (Throwable $th) { Console::error('Failed to delete deployment files: ' . $deploymentPath); Console::error('[Error] Type: ' . get_class($th)); Console::error('[Error] Message: ' . $th->getMessage()); @@ -864,13 +1019,13 @@ private function deleteDeploymentFiles(Device $device, Document $deployment): vo * @param Document $build * @return void */ - private function deleteBuildFiles(Device $device, Document $build): void + private function deleteBuildFiles(Device $device, Document $deployment): void { - $buildId = $build->getId(); - $buildPath = $build->getAttribute('path', ''); + $deploymentId = $deployment->getId(); + $buildPath = $deployment->getAttribute('buildPath', ''); if (empty($buildPath)) { - Console::info("No build files for build " . $buildId); + Console::info("No build files for deployment " . $deploymentId); return; } @@ -880,7 +1035,7 @@ private function deleteBuildFiles(Device $device, Document $build): void } else { Console::error('Failed to delete build files: ' . $buildPath); } - } catch (\Throwable $th) { + } catch (Throwable $th) { Console::error('Failed to delete deployment files: ' . $buildPath); Console::error('[Error] Type: ' . get_class($th)); Console::error('[Error] Message: ' . $th->getMessage()); @@ -892,13 +1047,15 @@ private function deleteBuildFiles(Device $device, Document $build): void /** * @param callable $getProjectDB * @param Device $deviceForFunctions + * @param Device $deviceForSites * @param Device $deviceForBuilds * @param Document $document * @param Document $project + * @param Executor $executor * @return void * @throws Exception */ - private function deleteDeployment(callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Document $document, Document $project): void + private function deleteDeployment(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForSites, Device $deviceForBuilds, Device $deviceForFiles, Document $document, CertificatesAdapter $certificates, Document $project, Executor $executor): void { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); @@ -908,85 +1065,76 @@ private function deleteDeployment(callable $getProjectDB, Device $deviceForFunct /** * Delete deployment files */ - $this->deleteDeploymentFiles($deviceForFunctions, $document); + match ($document->getAttribute('resourceType')) { + 'functions' => $this->deleteDeploymentFiles($deviceForFunctions, $document), + 'sites' => $this->deleteDeploymentFiles($deviceForSites, $document), + default => throw new Exception('Invalid resource type') + }; /** - * Delete builds + * Delete deployment screenshots */ - Console::info("Deleting builds for deployment " . $deploymentId); + $this->deleteDeploymentScreenshots($deviceForFiles, $dbForPlatform, $document); - $this->deleteByGroup('builds', [ - Query::equal('deploymentInternalId', [$deploymentInternalId]) - ], $dbForProject, function (Document $document) use ($deviceForBuilds) { - $this->deleteBuildFiles($deviceForBuilds, $document); + /** + * Delete deployment build + */ + $this->deleteBuildFiles($deviceForBuilds, $document); + + /** + * Delete rules associated with the deployment + */ + Console::info("Deleting rules for deployment " . $deploymentId); + $this->deleteByGroup('rules', [ + Query::equal('trigger', ['deployment']), + Query::equal('type', ['deployment']), + Query::equal('deploymentInternalId', [$deploymentInternalId]), + Query::equal('projectInternalId', [$project->getInternalId()]) + ], $dbForPlatform, function (Document $document) use ($dbForPlatform, $certificates) { + $this->deleteRule($dbForPlatform, $document, $certificates); }); /** * Request executor to delete all deployment containers */ Console::info("Requesting executor to delete deployment container for deployment " . $deploymentId); - $this->deleteRuntimes($getProjectDB, $document, $project); - } - - /** - * @param Document $document to be deleted - * @param Database $database to delete it from - * @param callable|null $callback to perform after document is deleted - * @return void - */ - private function deleteById(Document $document, Database $database, callable $callback = null): void - { - if ($database->deleteDocument($document->getCollection(), $document->getId())) { - Console::success('Deleted document "' . $document->getId() . '" successfully'); - - if (is_callable($callback)) { - $callback($document); - } - } else { - Console::error('Failed to delete document: ' . $document->getId()); - } + $this->deleteRuntimes($getProjectDB, $document, $project, $executor); } /** * @param string $collection collectionID * @param array $queries * @param Database $database - * @param callable|null $callback + * @param ?callable $callback * @return void - * @throws Exception + * @throws DatabaseException */ - private function deleteByGroup(string $collection, array $queries, Database $database, callable $callback = null): void - { - $count = 0; - $chunk = 0; - $limit = 50; - $sum = $limit; - - $executionStart = \microtime(true); - - while ($sum === $limit) { - $chunk++; - - try { - $results = $database->find($collection, [Query::limit($limit), ...$queries]); - } catch (DatabaseException $e) { - Console::error('Failed to find documents for collection ' . $collection . ': ' . $e->getMessage()); - return; - } - - $sum = count($results); - - Console::info('Deleting chunk #' . $chunk . '. Found ' . $sum . ' documents'); + protected function deleteByGroup( + string $collection, + array $queries, + Database $database, + ?callable $callback = null + ): void { + $start = \microtime(true); - foreach ($results as $document) { - $this->deleteById($document, $database, $callback); - $count++; - } + /** + * deleteDocuments uses a cursor, we need to add a unique order by field or use default + */ + try { + $count = $database->deleteDocuments( + $collection, + $queries, + Database::DELETE_BATCH_SIZE, + $callback + ); + } catch (Throwable $th) { + $tenant = $database->getSharedTables() ? 'Tenant:'.$database->getTenant() : ''; + Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collection} {$tenant} :{$th->getMessage()}"); + return; } - $executionEnd = \microtime(true); - - Console::info("Deleted {$count} document by group in " . ($executionEnd - $executionStart) . " seconds"); + $end = \microtime(true); + Console::info("Deleted {$count} documents by group in " . ($end - $start) . " seconds"); } /** @@ -997,28 +1145,26 @@ private function deleteByGroup(string $collection, array $queries, Database $dat * @return void * @throws Exception */ - private function listByGroup(string $collection, array $queries, Database $database, callable $callback = null): void + protected function listByGroup(string $collection, array $queries, Database $database, callable $callback = null): void { $count = 0; - $chunk = 0; - $limit = 50; - $results = []; + $limit = 1000; $sum = $limit; $cursor = null; - $executionStart = \microtime(true); + $start = \microtime(true); while ($sum === $limit) { - $chunk++; - $mergedQueries = \array_merge([Query::limit($limit)], $queries); - if ($cursor instanceof Document) { - $mergedQueries[] = Query::cursorAfter($cursor); + $queries = \array_merge([Query::limit($limit)], $queries); + + if ($cursor !== null) { + $queries[] = Query::cursorAfter($cursor); } - $results = $database->find($collection, $mergedQueries); + $results = $database->find($collection, $queries); - $sum = count($results); + $sum = \count($results); if ($sum > 0) { $cursor = $results[$sum - 1]; @@ -1033,35 +1179,24 @@ private function listByGroup(string $collection, array $queries, Database $datab } } - $executionEnd = \microtime(true); + $end = \microtime(true); - Console::info("Listed {$count} document by group in " . ($executionEnd - $executionStart) . " seconds"); + Console::info("Listed {$count} documents by group in " . ($end - $start) . " seconds"); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Document $document rule document * @return void */ - private function deleteRule(Database $dbForConsole, Document $document): void + private function deleteRule(Database $dbForPlatform, Document $document, CertificatesAdapter $certificates): void { - $domain = $document->getAttribute('domain'); - $directory = APP_STORAGE_CERTIFICATES . '/' . $domain; - $checkTraversal = realpath($directory) === $directory; - - if ($checkTraversal && is_dir($directory)) { - // Delete files, so Traefik is aware of change - array_map('unlink', glob($directory . '/*.*')); - rmdir($directory); - Console::info("Deleted certificate files for {$domain}"); - } else { - Console::info("No certificate files found for {$domain}"); - } + $certificates->deleteCertificate($domain); // Delete certificate document, so Appwrite is aware of change if (isset($document['certificateId'])) { - $dbForConsole->deleteDocument('certificates', $document['certificateId']); + $dbForPlatform->deleteDocument('certificates', $document['certificateId']); } } @@ -1082,21 +1217,21 @@ private function deleteBucket(callable $getProjectDB, Device $deviceForFiles, Do } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param Document $document * @param Document $project * @return void * @throws Exception */ - private function deleteInstallation(Database $dbForConsole, callable $getProjectDB, Document $document, Document $project): void + private function deleteInstallation(Database $dbForPlatform, callable $getProjectDB, Document $document, Document $project): void { $dbForProject = $getProjectDB($project); $this->listByGroup('functions', [ Query::equal('installationInternalId', [$document->getInternalId()]) - ], $dbForProject, function ($function) use ($dbForProject, $dbForConsole) { - $dbForConsole->deleteDocument('repositories', $function->getAttribute('repositoryId')); + ], $dbForProject, function ($function) use ($dbForProject, $dbForPlatform) { + $dbForPlatform->deleteDocument('repositories', $function->getAttribute('repositoryId')); $function = $function ->setAttribute('installationId', '') @@ -1115,13 +1250,12 @@ private function deleteInstallation(Database $dbForConsole, callable $getProject * @param callable $getProjectDB * @param ?Document $function * @param Document $project + * @param Executor $executor * @return void * @throws Exception */ - private function deleteRuntimes(callable $getProjectDB, ?Document $function, Document $project): void + private function deleteRuntimes(callable $getProjectDB, ?Document $function, Document $project, Executor $executor): void { - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); - $deleteByFunction = function (Document $function) use ($getProjectDB, $project, $executor) { $this->listByGroup( 'deployments', diff --git a/src/Appwrite/Platform/Workers/Functions.php b/src/Appwrite/Platform/Workers/Functions.php index 7e82c9c0c68..c8c68a58ba8 100644 --- a/src/Appwrite/Platform/Workers/Functions.php +++ b/src/Appwrite/Platform/Workers/Functions.php @@ -5,8 +5,9 @@ use Ahc\Jwt\JWT; use Appwrite\Event\Event; use Appwrite\Event\Func; -use Appwrite\Event\Usage; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; use Appwrite\Utopia\Response\Model\Execution; use Exception; use Executor\Executor; @@ -41,53 +42,71 @@ public function __construct() $this ->desc('Functions worker') ->groups(['functions']) + ->inject('project') ->inject('message') ->inject('dbForProject') + ->inject('queueForWebhooks') ->inject('queueForFunctions') + ->inject('queueForRealtime') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('log') - ->callback(fn (Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Log $log) => $this->action($message, $dbForProject, $queueForFunctions, $queueForEvents, $queueForUsage, $log)); + ->inject('executor') + ->inject('isResourceBlocked') + ->callback([$this, 'action']); } - /** - * @param Message $message - * @param Database $dbForProject - * @param Func $queueForFunctions - * @param Event $queueForEvents - * @param Usage $queueForUsage - * @param Log $log - * @return void - * @throws Authorization - * @throws Structure - * @throws \Utopia\Database\Exception - * @throws Conflict - */ - public function action(Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Log $log): void - { + public function action( + Document $project, + Message $message, + Database $dbForProject, + Webhook $queueForWebhooks, + Func $queueForFunctions, + Realtime $queueForRealtime, + Event $queueForEvents, + StatsUsage $queueForStatsUsage, + Log $log, + Executor $executor, + callable $isResourceBlocked + ): void { $payload = $message->getPayload() ?? []; if (empty($payload)) { throw new Exception('Missing payload'); } - $payload = $message->getPayload() ?? []; + $type = $payload['type'] ?? ''; - if (empty($payload)) { - throw new Exception('Missing payload'); + // Short-term solution to offhand write operation from API container + if ($type === Func::TYPE_ASYNC_WRITE) { + $execution = new Document($payload['execution'] ?? []); + $dbForProject->createDocument('executions', $execution); + return; } - $type = $payload['type'] ?? ''; $events = $payload['events'] ?? []; $data = $payload['body'] ?? ''; $eventData = $payload['payload'] ?? ''; - $project = new Document($payload['project'] ?? []); $function = new Document($payload['function'] ?? []); $functionId = $payload['functionId'] ?? ''; $user = new Document($payload['user'] ?? []); + $userId = $payload['userId'] ?? ''; $method = $payload['method'] ?? 'POST'; $headers = $payload['headers'] ?? []; $path = $payload['path'] ?? '/'; + $jwt = $payload['jwt'] ?? ''; + + if ($user->isEmpty() && !empty($userId)) { + $user = $dbForProject->getDocument('users', $userId); + } + + if (empty($jwt) && !$user->isEmpty()) { + $jwtExpiry = $function->getAttribute('timeout', 900); + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0); + $jwt = $jwtObj->encode([ + 'userId' => $user->getId(), + ]); + } if ($project->getId() === 'console') { return; @@ -105,7 +124,6 @@ public function action(Message $message, Database $dbForProject, Func $queueForF $limit = 30; $sum = 30; $offset = 0; - /** @var Document[] $functions */ while ($sum >= $limit) { $functions = $dbForProject->find('functions', [ Query::limit($limit), @@ -122,16 +140,25 @@ public function action(Message $message, Database $dbForProject, Func $queueForF if (!array_intersect($events, $function->getAttribute('events', []))) { continue; } + + if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $function->getId())) { + Console::log('Function ' . $function->getId() . ' is blocked, skipping execution.'); + continue; + } + Console::success('Iterating function: ' . $function->getAttribute('name')); $this->execute( log: $log, dbForProject: $dbForProject, + queueForWebhooks: $queueForWebhooks, queueForFunctions: $queueForFunctions, - queueForUsage: $queueForUsage, + queueForRealtime: $queueForRealtime, + queueForStatsUsage: $queueForStatsUsage, queueForEvents: $queueForEvents, project: $project, function: $function, + executor: $executor, trigger: 'event', path: '/', method: 'POST', @@ -152,22 +179,29 @@ function: $function, return; } + if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $function->getId())) { + Console::log('Function ' . $function->getId() . ' is blocked, skipping execution.'); + return; + } + /** * Handle Schedule and HTTP execution. */ switch ($type) { case 'http': - $jwt = $payload['jwt'] ?? ''; $execution = new Document($payload['execution'] ?? []); $user = new Document($payload['user'] ?? []); $this->execute( log: $log, dbForProject: $dbForProject, + queueForWebhooks: $queueForWebhooks, queueForFunctions: $queueForFunctions, - queueForUsage: $queueForUsage, + queueForRealtime: $queueForRealtime, + queueForStatsUsage: $queueForStatsUsage, queueForEvents: $queueForEvents, project: $project, function: $function, + executor: $executor, trigger: 'http', path: $path, method: $method, @@ -185,18 +219,21 @@ function: $function, $this->execute( log: $log, dbForProject: $dbForProject, + queueForWebhooks: $queueForWebhooks, queueForFunctions: $queueForFunctions, - queueForUsage: $queueForUsage, + queueForRealtime: $queueForRealtime, + queueForStatsUsage: $queueForStatsUsage, queueForEvents: $queueForEvents, project: $project, function: $function, + executor: $executor, trigger: 'schedule', path: $path, method: $method, headers: $headers, - data: null, - user: null, - jwt: null, + data: $data, + user: $user, + jwt: $jwt, event: null, eventData: null, executionId: $execution->getId() ?? null @@ -243,8 +280,9 @@ private function fail( $execution = new Document([ '$id' => $executionId, '$permissions' => $user->isEmpty() ? [] : [Permission::read(Role::user($user->getId()))], - 'functionInternalId' => $function->getInternalId(), - 'functionId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceId' => $function->getId(), + 'resourceType' => 'functions', 'deploymentInternalId' => '', 'deploymentId' => '', 'trigger' => $trigger, @@ -257,12 +295,9 @@ private function fail( 'errors' => $message, 'logs' => '', 'duration' => 0.0, - 'search' => implode(' ', [$function->getId(), $executionId]), ]); - if ($function->getAttribute('logging')) { - $execution = $dbForProject->createDocument('executions', $execution); - } + $execution = $dbForProject->createDocument('executions', $execution); if ($execution->isEmpty()) { throw new Exception('Failed to create execution'); @@ -273,10 +308,12 @@ private function fail( * @param Log $log * @param Database $dbForProject * @param Func $queueForFunctions - * @param Usage $queueForUsage + * @param Realtime $queueForRealtime + * @param StatsUsage $queueForStatsUsage * @param Event $queueForEvents * @param Document $project * @param Document $function + * @param Executor $executor * @param string $trigger * @param string $path * @param string $method @@ -296,11 +333,14 @@ private function fail( private function execute( Log $log, Database $dbForProject, + Webhook $queueForWebhooks, Func $queueForFunctions, - Usage $queueForUsage, + Realtime $queueForRealtime, + StatsUsage $queueForStatsUsage, Event $queueForEvents, Document $project, Document $function, + Executor $executor, string $trigger, string $path, string $method, @@ -314,8 +354,8 @@ private function execute( ): void { $user ??= new Document(); $functionId = $function->getId(); - $deploymentId = $function->getAttribute('deployment', ''); - $spec = Config::getParam('runtime-specifications')[$function->getAttribute('specification', APP_FUNCTION_SPECIFICATION_DEFAULT)]; + $deploymentId = $function->getAttribute('deploymentId', ''); + $spec = Config::getParam('specifications')[$function->getAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT)]; $log->addTag('deploymentId', $deploymentId); @@ -334,19 +374,7 @@ private function execute( return; } - $buildId = $deployment->getAttribute('buildId', ''); - - $log->addTag('buildId', $buildId); - - /** Check if build has exists */ - $build = $dbForProject->getDocument('builds', $buildId); - if ($build->isEmpty()) { - $errorMessage = 'The execution could not be completed because a corresponding deployment was not found. A function deployment needs to be created before it can be executed. Please create a deployment for your function and try again.'; - $this->fail($errorMessage, $dbForProject, $function, $trigger, $path, $method, $user, $jwt, $event); - return; - } - - if ($build->getAttribute('status') !== 'ready') { + if ($deployment->getAttribute('status') !== 'ready') { $errorMessage = 'The execution could not be completed because the build is not ready. Please wait for the build to complete and try again.'; $this->fail($errorMessage, $dbForProject, $function, $trigger, $path, $method, $user, $jwt, $event); return; @@ -392,8 +420,9 @@ private function execute( $execution = new Document([ '$id' => $executionId, '$permissions' => $user->isEmpty() ? [] : [Permission::read(Role::user($user->getId()))], - 'functionInternalId' => $function->getInternalId(), - 'functionId' => $function->getId(), + 'resourceInternalId' => $function->getInternalId(), + 'resourceId' => $function->getId(), + 'resourceType' => 'functions', 'deploymentInternalId' => $deployment->getInternalId(), 'deploymentId' => $deployment->getId(), 'trigger' => $trigger, @@ -406,7 +435,6 @@ private function execute( 'errors' => '', 'logs' => '', 'duration' => 0.0, - 'search' => implode(' ', [$functionId, $executionId]), ]); $execution = $dbForProject->createDocument('executions', $execution); @@ -468,17 +496,29 @@ private function execute( 'APPWRITE_FUNCTION_PROJECT_ID' => $project->getId(), 'APPWRITE_FUNCTION_RUNTIME_NAME' => $runtime['name'] ?? '', 'APPWRITE_FUNCTION_RUNTIME_VERSION' => $runtime['version'] ?? '', - 'APPWRITE_FUNCTION_CPUS' => ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT), - 'APPWRITE_FUNCTION_MEMORY' => ($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT), + 'APPWRITE_FUNCTION_CPUS' => ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT), + 'APPWRITE_FUNCTION_MEMORY' => ($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT), 'APPWRITE_VERSION' => APP_VERSION_STABLE, 'APPWRITE_REGION' => $project->getAttribute('region'), + 'APPWRITE_DEPLOYMENT_TYPE' => $deployment->getAttribute('type', ''), + 'APPWRITE_VCS_REPOSITORY_ID' => $deployment->getAttribute('providerRepositoryId', ''), + 'APPWRITE_VCS_REPOSITORY_NAME' => $deployment->getAttribute('providerRepositoryName', ''), + 'APPWRITE_VCS_REPOSITORY_OWNER' => $deployment->getAttribute('providerRepositoryOwner', ''), + 'APPWRITE_VCS_REPOSITORY_URL' => $deployment->getAttribute('providerRepositoryUrl', ''), + 'APPWRITE_VCS_REPOSITORY_BRANCH' => $deployment->getAttribute('providerBranch', ''), + 'APPWRITE_VCS_REPOSITORY_BRANCH_URL' => $deployment->getAttribute('providerBranchUrl', ''), + 'APPWRITE_VCS_COMMIT_HASH' => $deployment->getAttribute('providerCommitHash', ''), + 'APPWRITE_VCS_COMMIT_MESSAGE' => $deployment->getAttribute('providerCommitMessage', ''), + 'APPWRITE_VCS_COMMIT_URL' => $deployment->getAttribute('providerCommitUrl', ''), + 'APPWRITE_VCS_COMMIT_AUTHOR_NAME' => $deployment->getAttribute('providerCommitAuthor', ''), + 'APPWRITE_VCS_COMMIT_AUTHOR_URL' => $deployment->getAttribute('providerCommitAuthorUrl', ''), + 'APPWRITE_VCS_ROOT_DIRECTORY' => $deployment->getAttribute('providerRootDirectory', ''), ]); /** Execute function */ try { $version = $function->getAttribute('version', 'v2'); $command = $runtime['startCommand']; - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); $command = $version === 'v2' ? '' : 'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '"'; $executionResponse = $executor->createExecution( projectId: $project->getId(), @@ -487,15 +527,15 @@ private function execute( variables: $vars, timeout: $function->getAttribute('timeout', 0), image: $runtime['image'], - source: $build->getAttribute('path', ''), + source: $deployment->getAttribute('buildPath', ''), entrypoint: $deployment->getAttribute('entrypoint', ''), version: $version, path: $path, method: $method, headers: $headers, runtimeEntrypoint: $command, - cpus: $spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT, - memory: $spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT, + cpus: $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, + memory: $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, logging: $function->getAttribute('logging', true), ); @@ -528,32 +568,38 @@ private function execute( $errorCode = $th->getCode(); } finally { /** Trigger usage queue */ - $queueForUsage + $queueForStatsUsage ->setProject($project) ->addMetric(METRIC_EXECUTIONS, 1) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS), 1) + ->addMetric(str_replace(['{resourceType}'], [RESOURCE_TYPE_FUNCTIONS], METRIC_RESOURCE_TYPE_EXECUTIONS), 1) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS), 1) ->addMetric(METRIC_EXECUTIONS_COMPUTE, (int)($execution->getAttribute('duration') * 1000))// per project - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) - ->addMetric(METRIC_EXECUTIONS_MB_SECONDS, (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}'], [RESOURCE_TYPE_FUNCTIONS], METRIC_RESOURCE_TYPE_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) + ->addMetric(METRIC_EXECUTIONS_MB_SECONDS, (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}'], [RESOURCE_TYPE_FUNCTIONS], METRIC_RESOURCE_TYPE_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) + ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS, $function->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT))) ->trigger() ; } - $execution = $dbForProject->updateDocument('executions', $executionId, $execution); - /** Trigger Webhook */ $executionModel = new Execution(); + $realtimeExecution = $executionModel->filter(new Document($execution->getArrayCopy())); + $realtimeExecution = $realtimeExecution->getArrayCopy(\array_keys($executionModel->getRules())); + $queueForEvents - ->setQueue(Event::WEBHOOK_QUEUE_NAME) - ->setClass(Event::WEBHOOK_CLASS_NAME) ->setProject($project) ->setUser($user) ->setEvent('functions.[functionId].executions.[executionId].update') ->setParam('functionId', $function->getId()) ->setParam('executionId', $execution->getId()) - ->setPayload($execution->getArrayCopy(array_keys($executionModel->getRules()))) + ->setPayload($realtimeExecution); + + /** Trigger Webhook */ + $queueForWebhooks + ->from($queueForEvents) ->trigger(); /** Trigger Functions */ @@ -561,30 +607,11 @@ private function execute( ->from($queueForEvents) ->trigger(); - /** Trigger realtime event */ - $allEvents = Event::generateEvents('functions.[functionId].executions.[executionId].update', [ - 'functionId' => $function->getId(), - 'executionId' => $execution->getId() - ]); - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $execution - ); - Realtime::send( - projectId: 'console', - payload: $execution->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - Realtime::send( - projectId: $project->getId(), - payload: $execution->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + /** Trigger Realtime Events */ + $queueForRealtime + ->setSubscribers(['console', $project->getId()]) + ->from($queueForEvents) + ->trigger(); if (!empty($error)) { throw new Exception($error, $errorCode); diff --git a/src/Appwrite/Platform/Workers/Mails.php b/src/Appwrite/Platform/Workers/Mails.php index e48f96ea903..3a15182e51c 100644 --- a/src/Appwrite/Platform/Workers/Mails.php +++ b/src/Appwrite/Platform/Workers/Mails.php @@ -29,7 +29,7 @@ public function __construct() ->inject('message') ->inject('register') ->inject('log') - ->callback(fn (Message $message, Registry $register, Log $log) => $this->action($message, $register, $log)); + ->callback([$this, 'action']); } /** diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index 6f642fabb7d..8491e91a6c4 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -2,7 +2,7 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\Usage; +use Appwrite\Event\StatsUsage; use Appwrite\Messaging\Status as MessageStatus; use Swoole\Runtime; use Utopia\CLI\Console; @@ -22,6 +22,9 @@ use Utopia\Messaging\Adapter\Push as PushAdapter; use Utopia\Messaging\Adapter\Push\FCM; use Utopia\Messaging\Adapter\SMS as SMSAdapter; +use Utopia\Messaging\Adapter\SMS\Fast2SMS; +use Utopia\Messaging\Adapter\SMS\GEOSMS; +use Utopia\Messaging\Adapter\SMS\Inforu; use Utopia\Messaging\Adapter\SMS\Mock; use Utopia\Messaging\Adapter\SMS\Msg91; use Utopia\Messaging\Adapter\SMS\Telesign; @@ -32,6 +35,7 @@ use Utopia\Messaging\Messages\Email\Attachment; use Utopia\Messaging\Messages\Push; use Utopia\Messaging\Messages\SMS; +use Utopia\Messaging\Priority; use Utopia\Platform\Action; use Utopia\Queue\Message; use Utopia\Storage\Device; @@ -45,6 +49,8 @@ class Messaging extends Action { private ?Local $localDevice = null; + private ?SMSAdapter $adapter = null; + public static function getName(): string { return 'messaging'; @@ -55,31 +61,37 @@ public static function getName(): string */ public function __construct() { + + $this->adapter = $this->createInternalSMSAdapter(); + $this ->desc('Messaging worker') ->inject('message') + ->inject('project') ->inject('log') ->inject('dbForProject') ->inject('deviceForFiles') - ->inject('queueForUsage') - ->callback(fn (Message $message, Log $log, Database $dbForProject, Device $deviceForFiles, Usage $queueForUsage) => $this->action($message, $log, $dbForProject, $deviceForFiles, $queueForUsage)); + ->inject('queueForStatsUsage') + ->callback([$this, 'action']); } /** * @param Message $message + * @param Document $project * @param Log $log * @param Database $dbForProject * @param Device $deviceForFiles - * @param Usage $queueForUsage + * @param StatsUsage $queueForStatsUsage * @return void * @throws \Exception */ public function action( Message $message, + Document $project, Log $log, Database $dbForProject, Device $deviceForFiles, - Usage $queueForUsage + StatsUsage $queueForStatsUsage ): void { Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP); $payload = $message->getPayload() ?? []; @@ -89,19 +101,18 @@ public function action( } $type = $payload['type'] ?? ''; - $project = new Document($payload['project'] ?? []); switch ($type) { case MESSAGE_SEND_TYPE_INTERNAL: $message = new Document($payload['message'] ?? []); $recipients = $payload['recipients'] ?? []; - $this->sendInternalSMSMessage($message, $project, $recipients, $queueForUsage, $log); + $this->sendInternalSMSMessage($message, $project, $recipients, $log); break; case MESSAGE_SEND_TYPE_EXTERNAL: $message = $dbForProject->getDocument('messages', $payload['messageId']); - $this->sendExternalMessage($dbForProject, $message, $deviceForFiles, $project); + $this->sendExternalMessage($dbForProject, $message, $deviceForFiles, $project, $queueForStatsUsage); break; default: throw new \Exception('Unknown message type: ' . $type); @@ -113,6 +124,7 @@ private function sendExternalMessage( Document $message, Device $deviceForFiles, Document $project, + StatsUsage $queueForStatsUsage ): void { $topicIds = $message->getAttribute('topics', []); $targetIds = $message->getAttribute('targets', []); @@ -177,7 +189,7 @@ private function sendExternalMessage( Query::equal('type', [$providerType]), ]); - if ($default === false || $default->isEmpty()) { + if ($default->isEmpty()) { $dbForProject->updateDocument('messages', $message->getId(), $message->setAttributes([ 'status' => MessageStatus::FAILED, 'deliveryErrors' => ['No enabled provider found.'] @@ -218,8 +230,8 @@ private function sendExternalMessage( /** * @var array<array> $results */ - $results = batch(\array_map(function ($providerId) use ($identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project) { - return function () use ($providerId, $identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project) { + $results = batch(\array_map(function ($providerId) use ($identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { + return function () use ($providerId, $identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { if (\array_key_exists($providerId, $providers)) { $provider = $providers[$providerId]; } else { @@ -246,8 +258,8 @@ private function sendExternalMessage( $adapter->getMaxMessagesPerRequest() ); - return batch(\array_map(function ($batch) use ($message, $provider, $adapter, $dbForProject, $deviceForFiles, $project) { - return function () use ($batch, $message, $provider, $adapter, $dbForProject, $deviceForFiles, $project) { + return batch(\array_map(function ($batch) use ($message, $provider, $adapter, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { + return function () use ($batch, $message, $provider, $adapter, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { $deliveredTotal = 0; $deliveryErrors = []; $messageData = clone $message; @@ -274,7 +286,7 @@ private function sendExternalMessage( Query::equal('identifier', [$result['recipient']]) ]); - if ($target instanceof Document && !$target->isEmpty()) { + if (!$target->isEmpty()) { $dbForProject->updateDocument( 'targets', $target->getId(), @@ -286,6 +298,20 @@ private function sendExternalMessage( } catch (\Throwable $e) { $deliveryErrors[] = 'Failed sending to targets with error: ' . $e->getMessage(); } finally { + $errorTotal = \count($deliveryErrors); + $queueForStatsUsage + ->setProject($project) + ->addMetric(METRIC_MESSAGES, ($deliveredTotal + $errorTotal)) + ->addMetric(METRIC_MESSAGES_SENT, $deliveredTotal) + ->addMetric(METRIC_MESSAGES_FAILED, $errorTotal) + ->addMetric(str_replace('{type}', $provider->getAttribute('type'), METRIC_MESSAGES_TYPE), ($deliveredTotal + $errorTotal)) + ->addMetric(str_replace('{type}', $provider->getAttribute('type'), METRIC_MESSAGES_TYPE_SENT), $deliveredTotal) + ->addMetric(str_replace('{type}', $provider->getAttribute('type'), METRIC_MESSAGES_TYPE_FAILED), $errorTotal) + ->addMetric(str_replace(['{type}', '{provider}'], [$provider->getAttribute('type'), $provider->getAttribute('provider')], METRIC_MESSAGES_TYPE_PROVIDER), ($deliveredTotal + $errorTotal)) + ->addMetric(str_replace(['{type}', '{provider}'], [$provider->getAttribute('type'), $provider->getAttribute('provider')], METRIC_MESSAGES_TYPE_PROVIDER_SENT), $deliveredTotal) + ->addMetric(str_replace(['{type}', '{provider}'], [$provider->getAttribute('type'), $provider->getAttribute('provider')], METRIC_MESSAGES_TYPE_PROVIDER_FAILED), $errorTotal) + ->trigger(); + return [ 'deliveredTotal' => $deliveredTotal, 'deliveryErrors' => $deliveryErrors, @@ -361,123 +387,79 @@ private function sendExternalMessage( } } - private function sendInternalSMSMessage(Document $message, Document $project, array $recipients, Usage $queueForUsage, Log $log): void + private function sendInternalSMSMessage(Document $message, Document $project, array $recipients, Log $log): void { - if (empty(System::getEnv('_APP_SMS_PROVIDER')) || empty(System::getEnv('_APP_SMS_FROM'))) { - throw new \Exception('Skipped SMS processing. Missing "_APP_SMS_PROVIDER" or "_APP_SMS_FROM" environment variables.'); + if ($this->adapter === null) { + Console::warning('Skipped SMS processing. SMS adapter is not set.'); + return; } if ($project->isEmpty()) { throw new \Exception('Project not set in payload'); } - Console::log('Project: ' . $project->getId()); - + Console::log('Processing project: ' . $project->getId()); $denyList = System::getEnv('_APP_SMS_PROJECTS_DENY_LIST', ''); $denyList = explode(',', $denyList); - if (\in_array($project->getId(), $denyList)) { Console::error('Project is in the deny list. Skipping...'); return; } - $smsDSN = new DSN(System::getEnv('_APP_SMS_PROVIDER')); - $host = $smsDSN->getHost(); - $password = $smsDSN->getPassword(); - $user = $smsDSN->getUser(); - - $log->addTag('type', $host); - - $from = System::getEnv('_APP_SMS_FROM'); - - $provider = new Document([ - '$id' => ID::unique(), - 'provider' => $host, - 'type' => MESSAGE_TYPE_SMS, - 'name' => 'Internal SMS', - 'enabled' => true, - 'credentials' => match ($host) { - 'twilio' => [ - 'accountSid' => $user, - 'authToken' => $password, - // Twilio Messaging Service SIDs always start with MG - // https://www.twilio.com/docs/messaging/services - 'messagingServiceSid' => \str_starts_with($from, 'MG') ? $from : null - ], - 'textmagic' => [ - 'username' => $user, - 'apiKey' => $password - ], - 'telesign' => [ - 'customerId' => $user, - 'apiKey' => $password - ], - 'msg91' => [ - 'senderId' => $user, - 'authKey' => $password, - 'templateId' => $smsDSN->getParam('templateId', $from), - ], - 'vonage' => [ - 'apiKey' => $user, - 'apiSecret' => $password - ], - default => null - }, - 'options' => match ($host) { - 'twilio' => [ - 'from' => \str_starts_with($from, 'MG') ? null : $from - ], - default => [ - 'from' => $from - ] - } - ]); - - $adapter = $this->getSmsAdapter($provider); - - $batches = \array_chunk( + $from = System::getEnv('_APP_SMS_FROM', ''); + $sms = new SMS( $recipients, - $adapter->getMaxMessagesPerRequest() + $message->getAttribute('data')['content'], + $from ); - batch(\array_map(function ($batch) use ($message, $provider, $adapter, $project, $queueForUsage) { - return function () use ($batch, $message, $provider, $adapter, $project, $queueForUsage) { - $message->setAttribute('to', $batch); - - $data = $this->buildSmsMessage($message, $provider); - - try { - $adapter->send($data); - - $countryCode = $adapter->getCountryCode($message['to'][0] ?? ''); - if (!empty($countryCode)) { - $queueForUsage - ->addMetric(str_replace('{countryCode}', $countryCode, METRIC_MESSAGES_COUNTRY_CODE), 1); - } - $queueForUsage - ->addMetric(METRIC_MESSAGES, 1) - ->setProject($project) - ->trigger(); - } catch (\Throwable $th) { - throw new \Exception('Failed sending to targets with error: ' . $th->getMessage()); - } - }; - }, $batches)); + try { + $result = $this->adapter->send($sms); + } catch (\Throwable $th) { + throw new \Exception('Failed sending to targets with error: ' . $th->getMessage()); + } } - private function getSmsAdapter(Document $provider): ?SMSAdapter { $credentials = $provider->getAttribute('credentials'); return match ($provider->getAttribute('provider')) { 'mock' => new Mock('username', 'password'), - 'twilio' => new Twilio($credentials['accountSid'], $credentials['authToken'], null, isset($credentials['messagingServiceSid']) ? $credentials['messagingServiceSid'] : null), - 'textmagic' => new TextMagic($credentials['username'], $credentials['apiKey']), - 'telesign' => new Telesign($credentials['customerId'], $credentials['apiKey']), - 'msg91' => new Msg91($credentials['senderId'], $credentials['authKey'], $credentials['templateId']), - 'vonage' => new Vonage($credentials['apiKey'], $credentials['apiSecret']), + 'twilio' => new Twilio( + $credentials['accountSid'] ?? '', + $credentials['authToken'] ?? '', + null, + $credentials['messagingServiceSid'] ?? null + ), + 'textmagic' => new TextMagic( + $credentials['username'] ?? '', + $credentials['apiKey'] ?? '' + ), + 'telesign' => new Telesign( + $credentials['customerId'] ?? '', + $credentials['apiKey'] ?? '' + ), + 'msg91' => new Msg91( + $credentials['senderId'] ?? '', + $credentials['authKey'] ?? '', + $credentials['templateId'] ?? '' + ), + 'vonage' => new Vonage( + $credentials['apiKey'] ?? '', + $credentials['apiSecret'] ?? '' + ), + 'fast2sms' => new Fast2SMS( + $credentials['apiKey'] ?? '', + $credentials['senderId'] ?? '', + $credentials['messageId'] ?? '', + $credentials['useDLT'] ?? true + ), + 'inforu' => new Inforu( + $credentials['senderId'] ?? '', + $credentials['apiKey'] ?? '', + ), default => null }; } @@ -490,11 +472,11 @@ private function getPushAdapter(Document $provider): ?PushAdapter return match ($provider->getAttribute('provider')) { 'mock' => new Mock('username', 'password'), 'apns' => new APNS( - $credentials['authKey'], - $credentials['authKeyId'], - $credentials['teamId'], - $credentials['bundleId'], - $options['sandbox'] + $credentials['authKey'] ?? '', + $credentials['authKeyId'] ?? '', + $credentials['teamId'] ?? '', + $credentials['bundleId'] ?? '', + $options['sandbox'] ?? false ), 'fcm' => new FCM(\json_encode($credentials['serviceAccountJSON'])), default => null @@ -505,24 +487,25 @@ private function getEmailAdapter(Document $provider): ?EmailAdapter { $credentials = $provider->getAttribute('credentials', []); $options = $provider->getAttribute('options', []); + $apiKey = $credentials['apiKey'] ?? ''; return match ($provider->getAttribute('provider')) { 'mock' => new Mock('username', 'password'), 'smtp' => new SMTP( - $credentials['host'], - $credentials['port'], - $credentials['username'], - $credentials['password'], - $options['encryption'], - $options['autoTLS'], - $options['mailer'], + $credentials['host'] ?? '', + $credentials['port'] ?? 25, + $credentials['username'] ?? '', + $credentials['password'] ?? '', + $options['encryption'] ?? '', + $options['autoTLS'] ?? false, + $options['mailer'] ?? '', ), 'mailgun' => new Mailgun( - $credentials['apiKey'], - $credentials['domain'], - $credentials['isEuRegion'] + $apiKey, + $credentials['domain'] ?? '', + $credentials['isEuRegion'] ?? false ), - 'sendgrid' => new Sendgrid($credentials['apiKey']), + 'sendgrid' => new Sendgrid($apiKey), default => null }; } @@ -641,8 +624,8 @@ private function buildSmsMessage(Document $message, Document $provider): SMS private function buildPushMessage(Document $message): Push { $to = $message['to']; - $title = $message['data']['title']; - $body = $message['data']['body']; + $title = $message['data']['title'] ?? null; + $body = $message['data']['body'] ?? null; $data = $message['data']['data'] ?? null; $action = $message['data']['action'] ?? null; $image = $message['data']['image']['url'] ?? null; @@ -651,6 +634,21 @@ private function buildPushMessage(Document $message): Push $color = $message['data']['color'] ?? null; $tag = $message['data']['tag'] ?? null; $badge = $message['data']['badge'] ?? null; + $contentAvailable = $message['data']['contentAvailable'] ?? null; + $critical = $message['data']['critical'] ?? null; + $priority = $message['data']['priority'] ?? null; + + if ($title === '') { + $title = null; + } + if ($body === '') { + $body = null; + } + if ($priority !== null) { + $priority = $priority === 'high' + ? Priority::HIGH + : Priority::NORMAL; + } return new Push( $to, @@ -663,16 +661,146 @@ private function buildPushMessage(Document $message): Push $icon, $color, $tag, - $badge + $badge, + $contentAvailable, + $critical, + $priority ); } private function getLocalDevice($project): Local { - if($this->localDevice === null) { + if ($this->localDevice === null) { $this->localDevice = new Local(APP_STORAGE_UPLOADS . '/app-' . $project->getId()); } return $this->localDevice; } + + private function createInternalSMSAdapter(): ?SMSAdapter + { + if (empty(System::getEnv('_APP_SMS_PROVIDER')) || empty(System::getEnv('_APP_SMS_FROM'))) { + Console::warning('Skipped SMS processing. Missing "_APP_SMS_PROVIDER" or "_APP_SMS_FROM" environment variables.'); + return null; + } + + $providers = System::getEnv('_APP_SMS_PROVIDER', ''); + + $dsns = []; + if (!empty($providers)) { + $providers = explode(',', $providers); + foreach ($providers as $provider) { + $dsns[] = new DSN($provider); + } + } + + if (count($dsns) === 1) { + $provider = $this->createProviderFromDSN($dsns[0]); + $adapter = $this->getSmsAdapter($provider); + return $adapter; + } + + $defaultDSN = null; + $localDSNs = []; + + /** @var DSN $dsn */ + foreach ($dsns as $dsn) { + if ($dsn->getParam('local', '') === 'default') { + $defaultDSN = $dsn; + } else { + $localDSNs[] = $dsn; + } + } + + if ($defaultDSN === null) { + throw new \Exception('No default SMS provider found'); + } + + $defaultProvider = $this->createProviderFromDSN($defaultDSN); + $adapter = $this->getSmsAdapter($defaultProvider); + $geosms = new GEOSMS($adapter); + + /** @var DSN $localDSN */ + foreach ($localDSNs as $localDSN) { + try { + $provider = $this->createProviderFromDSN($localDSN); + $adapter = $this->getSmsAdapter($provider); + } catch (\Exception) { + Console::warning('Unable to create adapter: ' . $localDSN->getHost()); + continue; + } + + $callingCode = $localDSN->getParam('local', ''); + if (empty($callingCode)) { + Console::warning('Unable to register adapter: ' . $localDSN->getHost() . '. Missing `local` parameter.'); + continue; + } + + $geosms->setLocal($callingCode, $adapter); + } + return $geosms; + } + + private function createProviderFromDSN(DSN $dsn): Document + { + $host = $dsn->getHost(); + $password = $dsn->getPassword(); + $user = $dsn->getUser(); + $from = System::getEnv('_APP_SMS_FROM'); + + $provider = new Document([ + '$id' => ID::unique(), + 'provider' => $host, + 'type' => MESSAGE_TYPE_SMS, + 'name' => 'Internal SMS', + 'enabled' => true, + 'credentials' => match ($host) { + 'twilio' => [ + 'accountSid' => $user, + 'authToken' => $password, + // Twilio Messaging Service SIDs always start with MG + // https://www.twilio.com/docs/messaging/services + 'messagingServiceSid' => \str_starts_with($from, 'MG') ? $from : null + ], + 'textmagic' => [ + 'username' => $user, + 'apiKey' => $password + ], + 'telesign' => [ + 'customerId' => $user, + 'apiKey' => $password + ], + 'msg91' => [ + 'senderId' => $user, + 'authKey' => $password, + 'templateId' => $dsn->getParam('templateId', $from), + ], + 'vonage' => [ + 'apiKey' => $user, + 'apiSecret' => $password + ], + 'fast2sms' => [ + 'senderId' => $user, + 'apiKey' => $password, + 'messageId' => $dsn->getParam('messageId'), + 'useDLT' => $dsn->getParam('useDLT'), + ], + 'inforu' => [ + 'senderId' => $user, + 'apiKey' => $password, + ], + default => null + }, + 'options' => match ($host) { + 'twilio' => [ + 'from' => \str_starts_with($from, 'MG') ? null : $from + ], + default => [ + 'from' => $from + ] + } + ]); + + return $provider; + } } diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 8ab5ebac465..b746365f200 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -2,36 +2,53 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\Event; -use Appwrite\Messaging\Adapter\Realtime; -use Appwrite\Permission; -use Appwrite\Role; +use Ahc\Jwt\JWT; +use Appwrite\Event\Realtime; use Exception; use Utopia\CLI\Console; +use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Conflict; use Utopia\Database\Exception\Restricted; use Utopia\Database\Exception\Structure; -use Utopia\Database\Helpers\ID; -use Utopia\Logger\Log; -use Utopia\Logger\Log\Breadcrumb; -use Utopia\Migration\Destinations\Appwrite as DestinationsAppwrite; +use Utopia\Migration\Destination; +use Utopia\Migration\Destinations\Appwrite as DestinationAppwrite; use Utopia\Migration\Exception as MigrationException; use Utopia\Migration\Source; -use Utopia\Migration\Sources\Appwrite; +use Utopia\Migration\Sources\Appwrite as SourceAppwrite; +use Utopia\Migration\Sources\CSV; use Utopia\Migration\Sources\Firebase; use Utopia\Migration\Sources\NHost; use Utopia\Migration\Sources\Supabase; use Utopia\Migration\Transfer; use Utopia\Platform\Action; use Utopia\Queue\Message; +use Utopia\Storage\Device; +use Utopia\System\System; class Migrations extends Action { - private ?Database $dbForProject = null; - private ?Database $dbForConsole = null; + protected Database $dbForProject; + + protected Database $dbForPlatform; + + protected Device $deviceForImports; + + protected Document $project; + + /** + * Cached for performance. + * + * @var array<string, int> + */ + protected array $sourceReport = []; + + /** + * @var callable + */ + protected $logError; public static function getName(): string { @@ -46,30 +63,28 @@ public function __construct() $this ->desc('Migrations worker') ->inject('message') + ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') - ->inject('log') - ->callback(fn (Message $message, Database $dbForProject, Database $dbForConsole, Log $log) => $this->action($message, $dbForProject, $dbForConsole, $log)); + ->inject('dbForPlatform') + ->inject('logError') + ->inject('queueForRealtime') + ->inject('deviceForImports') + ->callback([$this, 'action']); } /** - * @param Message $message - * @param Database $dbForProject - * @param Database $dbForConsole - * @param Log $log - * @return void * @throws Exception */ - public function action(Message $message, Database $dbForProject, Database $dbForConsole, Log $log): void + public function action(Message $message, Document $project, Database $dbForProject, Database $dbForPlatform, callable $logError, Realtime $queueForRealtime, Device $deviceForImports): void { $payload = $message->getPayload() ?? []; + $this->deviceForImports = $deviceForImports; if (empty($payload)) { throw new Exception('Missing payload'); } $events = $payload['events'] ?? []; - $project = new Document($payload['project'] ?? []); $migration = new Document($payload['migration'] ?? []); if ($project->getId() === 'console') { @@ -77,7 +92,9 @@ public function action(Message $message, Database $dbForProject, Database $dbFor } $this->dbForProject = $dbForProject; - $this->dbForConsole = $dbForConsole; + $this->dbForPlatform = $dbForPlatform; + $this->project = $project; + $this->logError = $logError; /** * Handle Event execution. @@ -86,21 +103,20 @@ public function action(Message $message, Database $dbForProject, Database $dbFor return; } - $log->addTag('migrationId', $migration->getId()); - $log->addTag('projectId', $project->getId()); - - $this->processMigration($project, $migration, $log); + $this->processMigration($migration, $queueForRealtime); } /** - * @param string $source - * @param array $credentials - * @return Source * @throws Exception */ - protected function processSource(string $source, array $credentials): Source + protected function processSource(Document $migration): Source { - return match ($source) { + $source = $migration->getAttribute('source'); + $resourceId = $migration->getAttribute('resourceId'); + $credentials = $migration->getAttribute('credentials'); + $migrationOptions = $migration->getAttribute('options'); + + $migrationSource = match ($source) { Firebase::getName() => new Firebase( json_decode($credentials['serviceAccount'], true), ), @@ -122,156 +138,140 @@ protected function processSource(string $source, array $credentials): Source $credentials['password'], $credentials['port'], ), - Appwrite::getName() => new Appwrite($credentials['projectId'], str_starts_with($credentials['endpoint'], 'http://localhost/v1') ? 'http://appwrite/v1' : $credentials['endpoint'], $credentials['apiKey']), + SourceAppwrite::getName() => new SourceAppwrite( + $credentials['projectId'], + $credentials['endpoint'] === 'http://localhost/v1' ? 'http://appwrite/v1' : $credentials['endpoint'], + $credentials['apiKey'], + ), + CSV::getName() => new CSV( + $resourceId, + $migrationOptions['path'], + $this->deviceForImports, + $this->dbForProject + ), default => throw new \Exception('Invalid source type'), }; + + $this->sourceReport = $migrationSource->report(); + + return $migrationSource; } /** - * @throws Authorization - * @throws Structure - * @throws Conflict - * @throws \Utopia\Database\Exception * @throws Exception */ - protected function updateMigrationDocument(Document $migration, Document $project): Document + protected function processDestination(Document $migration, string $apiKey): Destination { - /** Trigger Realtime */ - $allEvents = Event::generateEvents('migrations.[migrationId].update', [ - 'migrationId' => $migration->getId(), - ]); - - $target = Realtime::fromPayload( - event: $allEvents[0], - payload: $migration, - project: $project - ); - - Realtime::send( - projectId: 'console', - payload: $migration->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'], - ); - - Realtime::send( - projectId: $project->getId(), - payload: $migration->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'], - ); + $destination = $migration->getAttribute('destination'); - return $this->dbForProject->updateDocument('migrations', $migration->getId(), $migration); + return match ($destination) { + DestinationAppwrite::getName() => new DestinationAppwrite( + $this->project->getId(), + 'http://appwrite/v1', + $apiKey, + $this->dbForProject, + Config::getParam('collections', [])['databases']['collections'], + ), + default => throw new \Exception('Invalid destination type'), + }; } /** - * @param Document $apiKey - * @return void - * @throws \Utopia\Database\Exception * @throws Authorization - * @throws Conflict - * @throws Restricted * @throws Structure + * @throws Conflict + * @throws \Utopia\Database\Exception + * @throws Exception */ - protected function removeAPIKey(Document $apiKey): void + protected function updateMigrationDocument(Document $migration, Document $project, Realtime $queueForRealtime): Document { - $this->dbForConsole->deleteDocument('keys', $apiKey->getId()); + /** Trigger Realtime Events */ + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console', $project->getId()]) + ->setEvent('migrations.[migrationId].update') + ->setParam('migrationId', $migration->getId()) + ->setPayload($migration->getArrayCopy()) + ->trigger(); + + return $this->dbForProject->updateDocument('migrations', $migration->getId(), $migration); } /** - * @param Document $project - * @return Document - * @throws Authorization - * @throws Structure - * @throws \Utopia\Database\Exception * @throws Exception */ - protected function generateAPIKey(Document $project): Document + protected function generateAPIKey(Document $project): string { - $generatedSecret = bin2hex(\random_bytes(128)); - - $key = new Document([ - '$id' => ID::unique(), - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::any()), - Permission::delete(Role::any()), - ], - 'projectInternalId' => $project->getInternalId(), + $jwt = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 86400, 0); + + $apiKey = $jwt->encode([ 'projectId' => $project->getId(), - 'name' => 'Transfer API Key', + 'disabledMetrics' => [ + METRIC_DATABASES_OPERATIONS_READS, + METRIC_DATABASES_OPERATIONS_WRITES, + METRIC_NETWORK_REQUESTS, + METRIC_NETWORK_INBOUND, + METRIC_NETWORK_OUTBOUND, + ], 'scopes' => [ 'users.read', 'users.write', 'teams.read', 'teams.write', - 'databases.read', - 'databases.write', - 'collections.read', - 'collections.write', - 'documents.read', - 'documents.write', 'buckets.read', 'buckets.write', 'files.read', 'files.write', 'functions.read', 'functions.write', - ], - 'expire' => null, - 'sdks' => [], - 'accessedAt' => null, - 'secret' => $generatedSecret, + 'databases.read', + 'collections.read', + 'documents.read', + 'documents.write', + 'tokens.read', + 'tokens.write', + ] ]); - $this->dbForConsole->createDocument('keys', $key); - $this->dbForConsole->purgeCachedDocument('projects', $project->getId()); - - return $key; + return API_KEY_DYNAMIC . '_' . $apiKey; } /** - * @param Document $project - * @param Document $migration - * @param Log $log - * @return void * @throws Authorization * @throws Conflict * @throws Restricted * @throws Structure * @throws \Utopia\Database\Exception + * @throws Exception */ - protected function processMigration(Document $project, Document $migration, Log $log): void + protected function processMigration(Document $migration, Realtime $queueForRealtime): void { - /** - * @var Document $migrationDocument - * @var Transfer $transfer - */ - $migrationDocument = null; - $transfer = null; - $projectDocument = $this->dbForConsole->getDocument('projects', $project->getId()); + $project = $this->project; + $projectDocument = $this->dbForPlatform->getDocument('projects', $project->getId()); $tempAPIKey = $this->generateAPIKey($projectDocument); + $transfer = $source = $destination = null; + try { - $migrationDocument = $this->dbForProject->getDocument('migrations', $migration->getId()); - $migrationDocument->setAttribute('stage', 'processing'); - $migrationDocument->setAttribute('status', 'processing'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'processing'", \microtime(true))); - $this->updateMigrationDocument($migrationDocument, $projectDocument); + if ( + $migration->getAttribute('source') === SourceAppwrite::getName() && + empty($migration->getAttribute('credentials', [])) + ) { + $credentials = $migration->getAttribute('credentials', []); - $log->addTag('type', $migrationDocument->getAttribute('source')); + $credentials['projectId'] = $credentials['projectId'] ?? $projectDocument->getId(); + $credentials['endpoint'] = $credentials['endpoint'] ?? 'http://appwrite/v1'; + $credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey; - $source = $this->processSource($migrationDocument->getAttribute('source'), $migrationDocument->getAttribute('credentials')); + $migration->setAttribute('credentials', $credentials); + } - $source->report(); + $migration->setAttribute('stage', 'processing'); + $migration->setAttribute('status', 'processing'); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); - $destination = new DestinationsAppwrite( - $projectDocument->getId(), - 'http://appwrite/v1', - $tempAPIKey['secret'], - ); + $source = $this->processSource($migration); + $destination = $this->processDestination($migration, $tempAPIKey); $transfer = new Transfer( $source, @@ -279,53 +279,71 @@ protected function processMigration(Document $project, Document $migration, Log ); /** Start Transfer */ - $migrationDocument->setAttribute('stage', 'migrating'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'migrating'", \microtime(true))); - $this->updateMigrationDocument($migrationDocument, $projectDocument); - $transfer->run($migrationDocument->getAttribute('resources'), function () use ($migrationDocument, $transfer, $projectDocument) { - $migrationDocument->setAttribute('resourceData', json_encode($transfer->getCache())); - $migrationDocument->setAttribute('statusCounters', json_encode($transfer->getStatusCounters())); + $migration->setAttribute('stage', 'migrating'); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); + + $transfer->run( + $migration->getAttribute('resources'), + function () use ($migration, $transfer, $projectDocument, $queueForRealtime) { + $migration->setAttribute('resourceData', json_encode($transfer->getCache())); + $migration->setAttribute('statusCounters', json_encode($transfer->getStatusCounters())); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); + }, + $migration->getAttribute('resourceId'), + $migration->getAttribute('resourceType') + ); - $this->updateMigrationDocument($migrationDocument, $projectDocument); - }); + $destination->shutDown(); + $source->shutDown(); $sourceErrors = $source->getErrors(); $destinationErrors = $destination->getErrors(); - if (!empty($sourceErrors) || !empty($destinationErrors)) { - $migrationDocument->setAttribute('status', 'failed'); - $migrationDocument->setAttribute('stage', 'finished'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'finished' and failed", \microtime(true))); + if (! empty($sourceErrors) || ! empty($destinationErrors)) { + $migration->setAttribute('status', 'failed'); + $migration->setAttribute('stage', 'finished'); $errorMessages = []; foreach ($sourceErrors as $error) { - /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while fetching '{$error->getResourceGroup()}:{$error->getResourceId()}' from source with message: '{$error->getMessage()}'"; + $message = "Error occurred while fetching '{$error->getResourceName()}:{$error->getResourceId()}' from source with message: '{$error->getMessage()}'"; + if ($error->getPrevious()) { + $message .= " Message: ".$error->getPrevious()->getMessage() . " File: ".$error->getPrevious()->getFile() . " Line: ".$error->getPrevious()->getLine(); + } + + $errorMessages[] = $message; } foreach ($destinationErrors as $error) { + $message = "Error occurred while pushing '{$error->getResourceName()}:{$error->getResourceId()}' to destination with message: '{$error->getMessage()}'"; + + if ($error->getPrevious()) { + $message .= " Message: ".$error->getPrevious()->getMessage() . " File: ".$error->getPrevious()->getFile() . " Line: ".$error->getPrevious()->getLine(); + } + /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while pushing '{$error->getResourceGroup()}:{$error->getResourceId()}' to destination with message: '{$error->getMessage()}'"; + $errorMessages[] = $message; } - $migrationDocument->setAttribute('errors', $errorMessages); - $log->addExtra('migrationErrors', json_encode($errorMessages)); - $this->updateMigrationDocument($migrationDocument, $projectDocument); + $migration->setAttribute('errors', $errorMessages); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); return; } - $migrationDocument->setAttribute('status', 'completed'); - $migrationDocument->setAttribute('stage', 'finished'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'finished' and succeeded", \microtime(true))); + $migration->setAttribute('status', 'completed'); + $migration->setAttribute('stage', 'finished'); } catch (\Throwable $th) { Console::error($th->getMessage()); + Console::error($th->getTraceAsString()); + + if (! $migration->isEmpty()) { + $migration->setAttribute('status', 'failed'); + $migration->setAttribute('stage', 'finished'); - if ($migrationDocument) { - Console::error($th->getMessage()); - Console::error($th->getTraceAsString()); - $migrationDocument->setAttribute('status', 'failed'); - $migrationDocument->setAttribute('stage', 'finished'); - $migrationDocument->setAttribute('errors', [$th->getMessage()]); + call_user_func($this->logError, $th, 'appwrite-worker', 'appwrite-queue-'.self::getName(), [ + 'migrationId' => $migration->getId(), + 'source' => $migration->getAttribute('source') ?? '', + 'destination' => $migration->getAttribute('destination') ?? '', + ]); return; } @@ -337,27 +355,56 @@ protected function processMigration(Document $project, Document $migration, Log $errorMessages = []; foreach ($sourceErrors as $error) { /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while fetching '{$error->getResourceGroup()}:{$error->getResourceId()}' from source with message '{$error->getMessage()}'"; + $errorMessages[] = "Error occurred while fetching '{$error->getResourceName()}:{$error->getResourceId()}' from source with message '{$error->getMessage()}'"; } foreach ($destinationErrors as $error) { /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while pushing '{$error->getResourceGroup()}:{$error->getResourceId()}' to destination with message '{$error->getMessage()}'"; + $errorMessages[] = "Error occurred while pushing '{$error->getResourceName()}:{$error->getResourceId()}' to destination with message '{$error->getMessage()}'"; } - $migrationDocument->setAttribute('errors', $errorMessages); - $log->addTag('migrationErrors', json_encode($errorMessages)); + $migration->setAttribute('errors', $errorMessages); } } finally { - if ($tempAPIKey) { - $this->removeAPIKey($tempAPIKey); - } - if ($migrationDocument) { - $this->updateMigrationDocument($migrationDocument, $projectDocument); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); + + if ($migration->getAttribute('status', '') === 'failed') { + Console::error('Migration('.$migration->getInternalId().':'.$migration->getId().') failed, Project('.$this->project->getInternalId().':'.$this->project->getId().')'); + + if ($destination) { + $destination->error(); + + foreach ($destination->getErrors() as $error) { + /** @var MigrationException $error */ + call_user_func($this->logError, $error, 'appwrite-worker', 'appwrite-queue-' . self::getName(), [ + 'migrationId' => $migration->getId(), + 'source' => $migration->getAttribute('source') ?? '', + 'destination' => $migration->getAttribute('destination') ?? '', + 'resourceName' => $error->getResourceName(), + 'resourceGroup' => $error->getResourceGroup() + ]); + } + } - if ($migrationDocument->getAttribute('status', '') == 'failed') { - throw new Exception("Migration failed"); + if ($source) { + $source->error(); + + foreach ($source->getErrors() as $error) { + /** @var MigrationException $error */ + call_user_func($this->logError, $error, 'appwrite-worker', 'appwrite-queue-' . self::getName(), [ + 'migrationId' => $migration->getId(), + 'source' => $migration->getAttribute('source') ?? '', + 'destination' => $migration->getAttribute('destination') ?? '', + 'resourceName' => $error->getResourceName(), + 'resourceGroup' => $error->getResourceGroup() + ]); + } } } + + if ($migration->getAttribute('status', '') === 'completed') { + $destination?->success(); + $source?->success(); + } } } } diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php new file mode 100644 index 00000000000..19d1223d954 --- /dev/null +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -0,0 +1,442 @@ +<?php + +namespace Appwrite\Platform\Workers; + +use Appwrite\Platform\Action; +use Exception; +use Throwable; +use Utopia\CLI\Console; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Queue\Message; + +class StatsResources extends Action +{ + /** + * Date format for different periods + */ + protected array $periods = [ + '1h' => 'Y-m-d H:00', + '1d' => 'Y-m-d 00:00', + 'inf' => '0000-00-00 00:00' + ]; + + /** + * @var array $documents + * + * Array of documents to batch write + * + */ + protected array $documents = []; + + public static function getName(): string + { + return 'stats-resources'; + } + + + /** + * @throws Exception + */ + public function __construct() + { + $this + ->desc('Stats resources worker') + ->inject('message') + ->inject('project') + ->inject('getProjectDB') + ->inject('getLogsDB') + ->inject('dbForPlatform') + ->inject('logError') + ->callback([$this, 'action']); + } + + /** + * @param Message $message + * @param Document $project + * @param callable $getProjectDB + * @return void + * @throws \Utopia\Database\Exception + * @throws Exception + */ + public function action(Message $message, Document $project, callable $getProjectDB, callable $getLogsDB, Database $dbForPlatform, callable $logError): void + { + $this->logError = $logError; + + $payload = $message->getPayload() ?? []; + if (empty($payload)) { + throw new Exception('Missing payload'); + } + + if (empty($project->getAttribute('database'))) { + return; + } + + // Reset documents for each job + $this->documents = []; + + $startTime = microtime(true); + $this->countForProject($dbForPlatform, $getLogsDB, $getProjectDB, $project); + $endTime = microtime(true); + $executionTime = $endTime - $startTime; + Console::info('Project: ' . $project->getId() . '(' . $project->getInternalId() . ') aggregated in ' . $executionTime .' seconds'); + } + + protected function countForProject(Database $dbForPlatform, callable $getLogsDB, callable $getProjectDB, Document $project): void + { + Console::info('Begining count for: ' . $project->getId()); + + $dbForLogs = null; + $dbForProject = null; + try { + /** @var \Utopia\Database\Database $dbForLogs */ + $dbForLogs = call_user_func($getLogsDB, $project); + /** @var \Utopia\Database\Database $dbForProject */ + $dbForProject = call_user_func($getProjectDB, $project); + } catch (Throwable $th) { + Console::error('Unable to get database'); + Console::error($th->getMessage()); + return; + } + + try { + + $region = $project->getAttribute('region'); + + $platforms = $dbForPlatform->count('platforms', [ + Query::equal('projectInternalId', [$project->getInternalId()]) + ]); + $webhooks = $dbForPlatform->count('webhooks', [ + Query::equal('projectInternalId', [$project->getInternalId()]) + ]); + $keys = $dbForPlatform->count('keys', [ + Query::equal('projectInternalId', [$project->getInternalId()]) + ]); + + $domains = $dbForPlatform->count('rules', [ + Query::equal('projectInternalId', [$project->getInternalId()]), + Query::equal('owner', ['']), + ]); + + + $databases = $dbForProject->count('databases'); + $buckets = $dbForProject->count('buckets'); + $users = $dbForProject->count('users'); + + $last30Days = (new \DateTime())->sub(\DateInterval::createFromDateString('30 days'))->format('Y-m-d 00:00:00'); + $usersMAU = $dbForProject->count('users', [ + Query::greaterThanEqual('accessedAt', $last30Days) + ]); + $last24Hours = (new \DateTime())->sub(\DateInterval::createFromDateString('24 hours'))->format('Y-m-d h:m:00'); + $usersDAU = $dbForProject->count('users', [ + Query::greaterThanEqual('accessedAt', $last24Hours) + ]); + $last7Days = (new \DateTime())->sub(\DateInterval::createFromDateString('7 days'))->format('Y-m-d 00:00:00'); + $usersWAU = $dbForProject->count('users', [ + Query::greaterThanEqual('accessedAt', $last7Days) + ]); + $teams = $dbForProject->count('teams'); + $functions = $dbForProject->count('functions'); + + $messages = $dbForProject->count('messages'); + $providers = $dbForProject->count('providers'); + $topics = $dbForProject->count('topics'); + $targets = $dbForProject->count('targets'); + $emailTargets = $dbForProject->count('targets', [ + Query::equal('providerType', [MESSAGE_TYPE_EMAIL]) + ]); + $pushTargets = $dbForProject->count('targets', [ + Query::equal('providerType', [MESSAGE_TYPE_PUSH]) + ]); + $smsTargets = $dbForProject->count('targets', [ + Query::equal('providerType', [MESSAGE_TYPE_SMS]) + ]); + + $metrics = [ + METRIC_DATABASES => $databases, + METRIC_BUCKETS => $buckets, + METRIC_USERS => $users, + METRIC_FUNCTIONS => $functions, + METRIC_TEAMS => $teams, + METRIC_MESSAGES => $messages, + METRIC_MAU => $usersMAU, + METRIC_DAU => $usersDAU, + METRIC_WAU => $usersWAU, + METRIC_WEBHOOKS => $webhooks, + METRIC_PLATFORMS => $platforms, + METRIC_PROVIDERS => $providers, + METRIC_TOPICS => $topics, + METRIC_KEYS => $keys, + METRIC_DOMAINS => $domains, + METRIC_TARGETS => $targets, + str_replace('{providerType}', MESSAGE_TYPE_EMAIL, METRIC_PROVIDER_TYPE_TARGETS) => $emailTargets, + str_replace('{providerType}', MESSAGE_TYPE_PUSH, METRIC_PROVIDER_TYPE_TARGETS) => $pushTargets, + str_replace('{providerType}', MESSAGE_TYPE_SMS, METRIC_PROVIDER_TYPE_TARGETS) => $smsTargets, + ]; + + foreach ($metrics as $metric => $value) { + $this->createStatsDocuments($region, $metric, $value); + } + + try { + $this->countForBuckets($dbForProject, $dbForLogs, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]); + } + + try { + $this->countImageTransformations($dbForProject, $dbForLogs, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]); + } + + try { + $this->countForDatabase($dbForProject, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_database_{$project->getId()}"]); + } + + try { + $this->countForSitesAndFunctions($dbForProject, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_functions_{$project->getId()}"]); + } + + $this->writeDocuments($dbForLogs, $project); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_project_{$project->getId()}"]); + } + + Console::info('End of count for: ' . $project->getId()); + } + + protected function countForBuckets(Database $dbForProject, Database $dbForLogs, string $region) + { + $totalFiles = 0; + $totalStorage = 0; + $this->foreachDocument($dbForProject, 'buckets', [], function ($bucket) use ($dbForProject, $dbForLogs, $region, &$totalFiles, &$totalStorage) { + $files = $dbForProject->count('bucket_' . $bucket->getInternalId()); + + $metric = str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES); + $this->createStatsDocuments($region, $metric, $files); + + $storage = $dbForProject->sum('bucket_' . $bucket->getInternalId(), 'sizeActual'); + $metric = str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_STORAGE); + $this->createStatsDocuments($region, $metric, $storage); + + $totalStorage += $storage; + $totalFiles += $files; + }); + + $this->createStatsDocuments($region, METRIC_FILES, $totalFiles); + $this->createStatsDocuments($region, METRIC_FILES_STORAGE, $totalStorage); + } + + /** + * Need separate function to count per period data + */ + protected function countImageTransformations(Database $dbForProject, Database $dbForLogs, string $region) + { + $totalImageTransformations = 0; + $last30Days = (new \DateTime())->sub(\DateInterval::createFromDateString('30 days'))->format('Y-m-d 00:00:00'); + $this->foreachDocument($dbForProject, 'buckets', [], function ($bucket) use ($dbForProject, $last30Days, $region, &$totalImageTransformations) { + $imageTransformations = $dbForProject->count('bucket_' . $bucket->getInternalId(), [ + Query::greaterThanEqual('transformedAt', $last30Days), + ]); + $metric = str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_IMAGES_TRANSFORMED); + $this->createStatsDocuments($region, $metric, $imageTransformations); + $totalImageTransformations += $imageTransformations; + }); + + $this->createStatsDocuments($region, METRIC_FILES_IMAGES_TRANSFORMED, $totalImageTransformations); + } + + protected function countForDatabase(Database $dbForProject, string $region) + { + $totalCollections = 0; + $totalDocuments = 0; + + $totalDatabaseStorage = 0; + + $this->foreachDocument($dbForProject, 'databases', [], function ($database) use ($dbForProject, $region, &$totalCollections, &$totalDocuments, &$totalDatabaseStorage) { + $collections = $dbForProject->count('database_' . $database->getInternalId()); + + $metric = str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_COLLECTIONS); + $this->createStatsDocuments($region, $metric, $collections); + + [$documents, $storage] = $this->countForCollections($dbForProject, $database, $region); + + $totalDatabaseStorage += $storage; + $totalDocuments += $documents; + $totalCollections += $collections; + }); + + $this->createStatsDocuments($region, METRIC_COLLECTIONS, $totalCollections); + $this->createStatsDocuments($region, METRIC_DOCUMENTS, $totalDocuments); + $this->createStatsDocuments($region, METRIC_DATABASES_STORAGE, $totalDatabaseStorage); + } + protected function countForCollections(Database $dbForProject, Document $database, string $region): array + { + $databaseDocuments = 0; + $databaseStorage = 0; + $this->foreachDocument($dbForProject, 'database_' . $database->getInternalId(), [], function ($collection) use ($dbForProject, $database, $region, &$databaseStorage, &$databaseDocuments) { + $documents = $dbForProject->count('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); + $metric = str_replace(['{databaseInternalId}', '{collectionInternalId}'], [$database->getInternalId(), $collection->getInternalId()], METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS); + $this->createStatsDocuments($region, $metric, $documents); + $databaseDocuments += $documents; + + $collectionStorage = $dbForProject->getSizeOfCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); + $metric = str_replace(['{databaseInternalId}', '{collectionInternalId}'], [$database->getInternalId(), $collection->getInternalId()], METRIC_DATABASE_ID_COLLECTION_ID_STORAGE); + $this->createStatsDocuments($region, $metric, $collectionStorage); + $databaseStorage += $collectionStorage; + + }); + + $metric = str_replace(['{databaseInternalId}'], [$database->getInternalId()], METRIC_DATABASE_ID_DOCUMENTS); + $this->createStatsDocuments($region, $metric, $databaseDocuments); + + $metric = str_replace(['{databaseInternalId}'], [$database->getInternalId()], METRIC_DATABASE_ID_STORAGE); + $this->createStatsDocuments($region, $metric, $databaseStorage); + + return [$databaseDocuments, $databaseStorage]; + } + + protected function countForSitesAndFunctions(Database $dbForProject, string $region): void + { + $deploymentsStorage = $dbForProject->sum('deployments', 'sourceSize'); + $buildsStorage = $dbForProject->sum('deployments', 'buildSize'); + $this->createStatsDocuments($region, METRIC_DEPLOYMENTS_STORAGE, $deploymentsStorage); + $this->createStatsDocuments($region, METRIC_BUILDS_STORAGE, $buildsStorage); + + $deployments = $dbForProject->count('deployments'); + $this->createStatsDocuments($region, METRIC_DEPLOYMENTS, $deployments); + $this->createStatsDocuments($region, METRIC_BUILDS, $deployments); + + $this->countForFunctions($dbForProject, $region); + $this->countForSites($dbForProject, $region); + } + + protected function countForFunctions(Database $dbForProject, string $region) + { + + $deploymentsStorage = $dbForProject->sum('deployments', 'sourceSize', [ + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]) + ]); + $buildsStorage = $dbForProject->sum('deployments', 'buildSize', [ + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]) + ]); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_DEPLOYMENTS_STORAGE), $deploymentsStorage); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS_STORAGE), $buildsStorage); + + $deployments = $dbForProject->count('deployments', [ + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]) + ]); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_DEPLOYMENTS), $deployments); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_FUNCTIONS, METRIC_RESOURCE_TYPE_BUILDS), $deployments); + + $this->foreachDocument($dbForProject, 'functions', [], function (Document $function) use ($dbForProject, $region) { + $functionDeploymentsStorage = $dbForProject->sum('deployments', 'sourceSize', [ + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]), + ]); + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE), $functionDeploymentsStorage); + + $functionDeployments = $dbForProject->count('deployments', [ + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]), + ]); + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS), $functionDeployments); + + /** + * As deployments and builds have 1-1 relationship, + * the count for one should match the other + */ + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS), $functionDeployments); + + $functionBuildsStorage = 0; + + $this->foreachDocument($dbForProject, 'deployments', [ + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]), + ], function (Document $deployment) use (&$functionBuildsStorage): void { + $functionBuildsStorage += $deployment->getAttribute('buildSize', 0); + }); + + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE), $functionBuildsStorage); + }); + } + + protected function countForSites(Database $dbForProject, string $region) + { + + $deploymentsStorage = $dbForProject->sum('deployments', 'sourceSize', [ + Query::equal('resourceType', [RESOURCE_TYPE_SITES]) + ]); + $buildsStorage = $dbForProject->sum('deployments', 'buildSize', [ + Query::equal('resourceType', [RESOURCE_TYPE_SITES]) + ]); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_DEPLOYMENTS_STORAGE), $deploymentsStorage); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS_STORAGE), $buildsStorage); + + $deployments = $dbForProject->count('deployments', [ + Query::equal('resourceType', [RESOURCE_TYPE_SITES]) + ]); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_DEPLOYMENTS), $deployments); + $this->createStatsDocuments($region, str_replace("{resourceType}", RESOURCE_TYPE_SITES, METRIC_RESOURCE_TYPE_BUILDS), $deployments); + + $this->foreachDocument($dbForProject, 'sites', [], function (Document $site) use ($dbForProject, $region) { + $siteDeploymentsStorage = $dbForProject->sum('deployments', 'sourceSize', [ + Query::equal('resourceInternalId', [$site->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_SITES]), + ]); + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_SITES,$site->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE), $siteDeploymentsStorage); + + $siteDeployments = $dbForProject->count('deployments', [ + Query::equal('resourceInternalId', [$site->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_SITES]), + ]); + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_SITES,$site->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS), $siteDeployments); + + /** + * As deployments and builds have 1-1 relationship, + * the count for one should match the other + */ + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_SITES,$site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS), $siteDeployments); + + $siteBuildsStorage = $dbForProject->sum('deployments', 'buildSize', [ + Query::equal('resourceInternalId', [$site->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_SITES]), + ]); + + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_SITES,$site->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE), $siteBuildsStorage); + }); + } + + protected function createStatsDocuments(string $region, string $metric, int $value) + { + foreach ($this->periods as $period => $format) { + $time = 'inf' === $period ? null : \date($format, \time()); + $id = \md5("{$time}_{$period}_{$metric}"); + + $this->documents[] = new Document([ + '$id' => $id, + 'metric' => $metric, + 'period' => $period, + 'region' => $region, + 'value' => $value, + 'time' => $time, + ]); + } + } + + protected function writeDocuments(Database $dbForLogs, Document $project): void + { + $dbForLogs->createOrUpdateDocuments( + 'stats', + $this->documents + ); + $this->documents = []; + Console::success('Stats written to logs db for project: ' . $project->getId() . '(' . $project->getInternalId() . ')'); + } +} diff --git a/src/Appwrite/Platform/Workers/StatsUsage.php b/src/Appwrite/Platform/Workers/StatsUsage.php new file mode 100644 index 00000000000..07131593e20 --- /dev/null +++ b/src/Appwrite/Platform/Workers/StatsUsage.php @@ -0,0 +1,483 @@ +<?php + +namespace Appwrite\Platform\Workers; + +use Exception; +use Throwable; +use Utopia\CLI\Console; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Queue\Message; +use Utopia\Registry\Registry; +use Utopia\System\System; + +class StatsUsage extends Action +{ + /** + * In memory per project metrics calculation + */ + private array $stats = []; + private int $lastTriggeredTime = 0; + private int $keys = 0; + private const INFINITY_PERIOD = '_inf_'; + private const BATCH_SIZE_DEVELOPMENT = 1; + private const BATCH_SIZE_PRODUCTION = 10_000; + + /** + * Stats for batch write separated per project + * @var array + */ + private array $projects = []; + + /** + * Array of stat documents to batch write to logsDB + * @var array + */ + private array $statDocuments = []; + + protected Registry $register; + + /** + * Metrics to skip writing to logsDB + * As these metrics are calculated separately + * by logs DB + * @var array + */ + protected array $skipBaseMetrics = [ + METRIC_DATABASES => true, + METRIC_BUCKETS => true, + METRIC_USERS => true, + METRIC_FUNCTIONS => true, + METRIC_TEAMS => true, + METRIC_MESSAGES => true, + METRIC_MAU => true, + METRIC_WEBHOOKS => true, + METRIC_PLATFORMS => true, + METRIC_PROVIDERS => true, + METRIC_TOPICS => true, + METRIC_KEYS => true, + METRIC_FILES => true, + METRIC_FILES_STORAGE => true, + METRIC_DEPLOYMENTS_STORAGE => true, + METRIC_BUILDS_STORAGE => true, + METRIC_DEPLOYMENTS => true, + METRIC_BUILDS => true, + METRIC_COLLECTIONS => true, + METRIC_DOCUMENTS => true, + METRIC_DATABASES_STORAGE => true, + ]; + + /** + * Skip metrics associated with parent IDs + * these need to be checked individually with `str_ends_with` + */ + protected array $skipParentIdMetrics = [ + '.files', + '.files.storage', + '.collections', + '.documents', + '.deployments', + '.deployments.storage', + '.builds', + '.builds.storage', + '.databases.storage' + ]; + + /** + * @var callable(): Database + */ + protected mixed $getLogsDB; + + protected array $periods = [ + '1h' => 'Y-m-d H:00', + '1d' => 'Y-m-d 00:00', + 'inf' => '0000-00-00 00:00' + ]; + + public static function getName(): string + { + return 'stats-usage'; + } + + private function getBatchSize(): int + { + return System::getEnv('_APP_ENV', 'development') === 'development' + ? self::BATCH_SIZE_DEVELOPMENT + : self::BATCH_SIZE_PRODUCTION; + } + /** + * @throws Exception + */ + public function __construct() + { + + $this + ->desc('Stats usage worker') + ->inject('message') + ->inject('getProjectDB') + ->inject('getLogsDB') + ->inject('register') + ->callback([$this, 'action']); + + $this->lastTriggeredTime = time(); + } + + /** + * @param Message $message + * @param callable(): Database $getProjectDB + * @param callable(): Database $getLogsDB + * @param Registry $register + * @return void + * @throws \Utopia\Database\Exception + * @throws Exception + */ + public function action(Message $message, callable $getProjectDB, callable $getLogsDB, Registry $register): void + { + $this->getLogsDB = $getLogsDB; + $this->register = $register; + $payload = $message->getPayload() ?? []; + if (empty($payload)) { + throw new Exception('Missing payload'); + } + //Todo Figure out way to preserve keys when the container is being recreated @shimonewman + + $aggregationInterval = (int) System::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', '20'); + $project = new Document($payload['project'] ?? []); + $projectId = $project->getInternalId(); + foreach ($payload['reduce'] ?? [] as $document) { + if (empty($document)) { + continue; + } + + $this->reduce( + project: $project, + document: new Document($document), + metrics: $payload['metrics'], + getProjectDB: $getProjectDB + ); + } + + $this->stats[$projectId]['project'] = $project; + $this->stats[$projectId]['receivedAt'] = DateTime::now(); + foreach ($payload['metrics'] ?? [] as $metric) { + $this->keys++; + if (!isset($this->stats[$projectId]['keys'][$metric['key']])) { + $this->stats[$projectId]['keys'][$metric['key']] = $metric['value']; + continue; + } + + $this->stats[$projectId]['keys'][$metric['key']] += $metric['value']; + } + + // If keys crossed threshold or X time passed since the last send and there are some keys in the array ($this->stats) + if ( + $this->keys >= $this->getBatchSize() || + (time() - $this->lastTriggeredTime > $aggregationInterval && $this->keys > 0) + ) { + Console::warning('[' . DateTime::now() . '] Aggregated ' . $this->keys . ' keys'); + + $this->commitToDB($getProjectDB); + + $this->stats = []; + $this->keys = 0; + $this->lastTriggeredTime = time(); + } + } + + /** + * On Documents that tied by relations like functions>deployments>build || documents>collection>database || buckets>files. + * When we remove a parent document we need to deduct his children aggregation from the project scope. + * @param Document $project + * @param Document $document + * @param array $metrics + * @param callable(): Database $getProjectDB + * @return void + */ + private function reduce(Document $project, Document $document, array &$metrics, callable $getProjectDB): void + { + $dbForProject = $getProjectDB($project); + + try { + switch (true) { + case $document->getCollection() === 'users': // users + $sessions = count($document->getAttribute(METRIC_SESSIONS, 0)); + if (!empty($sessions)) { + $metrics[] = [ + 'key' => METRIC_SESSIONS, + 'value' => ($sessions * -1), + ]; + } + break; + case $document->getCollection() === 'databases': // databases + $collections = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{databaseInternalId}', $document->getInternalId(), METRIC_DATABASE_ID_COLLECTIONS))); + $documents = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{databaseInternalId}', $document->getInternalId(), METRIC_DATABASE_ID_DOCUMENTS))); + if (!empty($collections['value'])) { + $metrics[] = [ + 'key' => METRIC_COLLECTIONS, + 'value' => ($collections['value'] * -1), + ]; + } + + if (!empty($documents['value'])) { + $metrics[] = [ + 'key' => METRIC_DOCUMENTS, + 'value' => ($documents['value'] * -1), + ]; + } + break; + case str_starts_with($document->getCollection(), 'database_') && !str_contains($document->getCollection(), 'collection'): //collections + $parts = explode('_', $document->getCollection()); + $databaseInternalId = $parts[1] ?? 0; + $documents = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace( + ['{databaseInternalId}', '{collectionInternalId}'], + [$databaseInternalId, $document->getInternalId()], + METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS + ))); + + if (!empty($documents['value'])) { + $metrics[] = [ + 'key' => METRIC_DOCUMENTS, + 'value' => ($documents['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace('{databaseInternalId}', $databaseInternalId, METRIC_DATABASE_ID_DOCUMENTS), + 'value' => ($documents['value'] * -1), + ]; + } + break; + + case $document->getCollection() === 'buckets': + $files = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{bucketInternalId}', $document->getInternalId(), METRIC_BUCKET_ID_FILES))); + $storage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{bucketInternalId}', $document->getInternalId(), METRIC_BUCKET_ID_FILES_STORAGE))); + + if (!empty($files['value'])) { + $metrics[] = [ + 'key' => METRIC_FILES, + 'value' => ($files['value'] * -1), + ]; + } + + if (!empty($storage['value'])) { + $metrics[] = [ + 'key' => METRIC_FILES_STORAGE, + 'value' => ($storage['value'] * -1), + ]; + } + break; + + case $document->getCollection() === 'functions' || $document->getCollection() === 'sites': + $deployments = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS))); + $deploymentsStorage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE))); + $builds = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS))); + $buildsStorage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE))); + $buildsCompute = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_COMPUTE))); + $executions = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS))); + $executionsCompute = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getCollection(), $document->getInternalId()], METRIC_RESOURCE_TYPE_ID_EXECUTIONS_COMPUTE))); + + if (!empty($deployments['value'])) { + $metrics[] = [ + 'key' => METRIC_DEPLOYMENTS, + 'value' => ($deployments['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_DEPLOYMENTS), + 'value' => ($deployments['value'] * -1), + ]; + } + + if (!empty($deploymentsStorage['value'])) { + $metrics[] = [ + 'key' => METRIC_DEPLOYMENTS_STORAGE, + 'value' => ($deploymentsStorage['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_DEPLOYMENTS_STORAGE), + 'value' => ($deploymentsStorage['value'] * -1), + ]; + } + + if (!empty($builds['value'])) { + $metrics[] = [ + 'key' => METRIC_BUILDS, + 'value' => ($builds['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_BUILDS), + 'value' => ($builds['value'] * -1), + ]; + } + + if (!empty($buildsStorage['value'])) { + $metrics[] = [ + 'key' => METRIC_BUILDS_STORAGE, + 'value' => ($buildsStorage['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_BUILDS_STORAGE), + 'value' => ($buildsStorage['value'] * -1), + ]; + } + + if (!empty($buildsCompute['value'])) { + $metrics[] = [ + 'key' => METRIC_BUILDS_COMPUTE, + 'value' => ($buildsCompute['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_BUILDS_COMPUTE), + 'value' => ($buildsCompute['value'] * -1), + ]; + } + + if (!empty($executions['value'])) { + $metrics[] = [ + 'key' => METRIC_EXECUTIONS, + 'value' => ($executions['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_EXECUTIONS), + 'value' => ($executions['value'] * -1), + ]; + } + + if (!empty($executionsCompute['value'])) { + $metrics[] = [ + 'key' => METRIC_EXECUTIONS_COMPUTE, + 'value' => ($executionsCompute['value'] * -1), + ]; + $metrics[] = [ + 'key' => str_replace("{resourceType}", $document->getCollection(), METRIC_RESOURCE_TYPE_EXECUTIONS_COMPUTE), + 'value' => ($executionsCompute['value'] * -1), + ]; + } + break; + default: + break; + } + } catch (Throwable $e) { + console::error("[reducer] " . " {DateTime::now()} " . " {$project->getInternalId()} " . " {$e->getMessage()}"); + } + } + + /** + * Commit stats to DB + * @param callable(): Database $getProjectDB + * @return void + */ + public function commitToDb(callable $getProjectDB): void + { + foreach ($this->stats as $stats) { + $project = $stats['project'] ?? new Document([]); + $numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0; + $receivedAt = $stats['receivedAt'] ?? null; + if ($numberOfKeys === 0) { + continue; + } + + console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); + + try { + foreach ($stats['keys'] ?? [] as $key => $value) { + if ($value == 0) { + continue; + } + + foreach ($this->periods as $period => $format) { + $time = null; + + if ($period !== 'inf') { + $time = !empty($receivedAt) ? (new \DateTime($receivedAt))->format($format) : date($format, time()); + } + $id = \md5("{$time}_{$period}_{$key}"); + + $document = new Document([ + '$id' => $id, + 'period' => $period, + 'time' => $time, + 'metric' => $key, + 'value' => $value, + 'region' => System::getEnv('_APP_REGION', 'default'), + ]); + + + $this->projects[$project->getInternalId()]['project'] = new Document([ + '$id' => $project->getId(), + '$internalId' => $project->getInternalId(), + 'database' => $project->getAttribute('database'), + ]); + $this->projects[$project->getInternalId()]['stats'][] = $document; + + $this->prepareForLogsDB($project, $document); + } + } + } catch (Exception $e) { + console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); + } + } + + foreach ($this->projects as $internalId => $projectStats) { + if (empty($internalId)) { + continue; + } + try { + $dbForProject = $getProjectDB($projectStats['project']); + Console::log('Processing batch with ' . count($projectStats['stats']) . ' stats'); + $dbForProject->createOrUpdateDocumentsWithIncrease('stats', 'value', $projectStats['stats']); + Console::success('Batch successfully written to DB'); + + unset($this->projects[$internalId]); + } catch (Throwable $e) { + Console::error('Error processing stats: ' . $e->getMessage()); + } + } + + $this->writeToLogsDB(); + + } + + protected function prepareForLogsDB(Document $project, Document $stat) + { + if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { + return; + } + if (array_key_exists($stat->getAttribute('metric'), $this->skipBaseMetrics)) { + return; + } + foreach ($this->skipParentIdMetrics as $skipMetric) { + if (str_ends_with($stat->getAttribute('metric'), $skipMetric)) { + return; + } + } + $documentClone = clone $stat; + $documentClone->setAttribute('$tenant', (int) $project->getInternalId()); + $this->statDocuments[] = $documentClone; + } + + protected function writeToLogsDB(): void + { + if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { + Console::log('Dual Writing is disabled. Skipping...'); + return; + } + + $dbForLogs = call_user_func($this->getLogsDB); + $dbForLogs + ->setTenant(null) + ->setTenantPerDocument(true); + + try { + Console::log('Processing batch with ' . count($this->statDocuments) . ' stats'); + $dbForLogs->createOrUpdateDocumentsWithIncrease( + 'stats', + 'value', + $this->statDocuments + ); + Console::success('Usage logs pushed to Logs DB'); + } catch (Throwable $th) { + Console::error($th->getMessage()); + } + $this->register->get('pools')->get('logs')->reclaim(); + } +} diff --git a/src/Appwrite/Platform/Workers/StatsUsageDump.php b/src/Appwrite/Platform/Workers/StatsUsageDump.php new file mode 100644 index 00000000000..b9d486e0d89 --- /dev/null +++ b/src/Appwrite/Platform/Workers/StatsUsageDump.php @@ -0,0 +1,209 @@ +<?php + +namespace Appwrite\Platform\Workers; + +use Appwrite\Extend\Exception; +use Utopia\CLI\Console; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Queue\Message; +use Utopia\Registry\Registry; +use Utopia\System\System; + +/** + * TODO remove later + */ +class StatsUsageDump extends Action +{ + public const METRIC_COLLECTION_LEVEL_STORAGE = 4; + public const METRIC_DATABASE_LEVEL_STORAGE = 3; + public const METRIC_PROJECT_LEVEL_STORAGE = 2; + protected array $stats = []; + + protected Registry $register; + + /** + * Metrics to skip writing to logsDB + * As these metrics are calculated separately + * by logs DB + * @var array + */ + protected array $skipBaseMetrics = [ + METRIC_DATABASES => true, + METRIC_BUCKETS => true, + METRIC_USERS => true, + METRIC_FUNCTIONS => true, + METRIC_TEAMS => true, + METRIC_MESSAGES => true, + METRIC_MAU => true, + METRIC_WEBHOOKS => true, + METRIC_PLATFORMS => true, + METRIC_PROVIDERS => true, + METRIC_TOPICS => true, + METRIC_KEYS => true, + METRIC_FILES => true, + METRIC_FILES_STORAGE => true, + METRIC_DEPLOYMENTS_STORAGE => true, + METRIC_BUILDS_STORAGE => true, + METRIC_DEPLOYMENTS => true, + METRIC_BUILDS => true, + METRIC_COLLECTIONS => true, + METRIC_DOCUMENTS => true, + METRIC_DATABASES_STORAGE => true, + ]; + + /** + * Skip metrics associated with parent IDs + * these need to be checked individually with `str_ends_with` + */ + protected array $skipParentIdMetrics = [ + '.files', + '.files.storage', + '.collections', + '.documents', + '.deployments', + '.deployments.storage', + '.builds', + '.builds.storage', + '.databases.storage' + ]; + + /** + * @var callable + */ + protected mixed $getLogsDB; + + protected array $periods = [ + '1h' => 'Y-m-d H:00', + '1d' => 'Y-m-d 00:00', + 'inf' => '0000-00-00 00:00' + ]; + + public static function getName(): string + { + return 'stats-usage-dump'; + } + + /** + * @throws \Exception + */ + public function __construct() + { + $this + ->inject('message') + ->inject('getProjectDB') + ->inject('getLogsDB') + ->inject('register') + ->callback([$this, 'action']); + } + + /** + * @param Message $message + * @param callable $getProjectDB + * @param callable $getLogsDB + * @param Registry $register + * @return void + * @throws Exception + * @throws \Throwable + * @throws \Utopia\Database\Exception + */ + public function action(Message $message, callable $getProjectDB, callable $getLogsDB, Registry $register): void + { + $this->getLogsDB = $getLogsDB; + $this->register = $register; + $payload = $message->getPayload() ?? []; + if (empty($payload)) { + throw new Exception('Missing payload'); + } + + foreach ($payload['stats'] ?? [] as $stats) { + $project = new Document($stats['project'] ?? []); + + $numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0; + $receivedAt = $stats['receivedAt'] ?? null; + if ($numberOfKeys === 0) { + continue; + } + + console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); + + try { + /** @var \Utopia\Database\Database $dbForProject */ + $dbForProject = $getProjectDB($project); + foreach ($stats['keys'] ?? [] as $key => $value) { + if ($value == 0) { + continue; + } + + if (str_contains($key, METRIC_DATABASES_STORAGE)) { + continue; + } + + foreach ($this->periods as $period => $format) { + $time = null; + + if ($period !== 'inf') { + $time = !empty($receivedAt) ? (new \DateTime($receivedAt))->format($format) : date($format, time()); + } + $id = \md5("{$time}_{$period}_{$key}"); + + $document = new Document([ + '$id' => $id, + 'period' => $period, + 'time' => $time, + 'metric' => $key, + 'value' => $value, + 'region' => System::getEnv('_APP_REGION', 'default'), + ]); + + $documentClone = clone $document; + + $dbForProject->createOrUpdateDocumentsWithIncrease( + 'stats', + 'value', + [$document] + ); + + $this->writeToLogsDB($project, $documentClone); + } + } + } catch (\Exception $e) { + console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); + } + } + } + + protected function writeToLogsDB(Document $project, Document $document): void + { + if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { + Console::log('Dual Writing is disabled. Skipping...'); + return; + } + + if (array_key_exists($document->getAttribute('metric'), $this->skipBaseMetrics)) { + return; + } + foreach ($this->skipParentIdMetrics as $skipMetric) { + if (str_ends_with($document->getAttribute('metric'), $skipMetric)) { + return; + } + } + + /** @var \Utopia\Database\Database $dbForLogs*/ + $dbForLogs = call_user_func($this->getLogsDB, $project); + + try { + $dbForLogs->createOrUpdateDocumentsWithIncrease( + 'stats', + 'value', + [$document] + ); + Console::success('Usage logs pushed to Logs DB'); + } catch (\Throwable $th) { + Console::error($th->getMessage()); + } + + $this->register->get('pools')->get('logs')->reclaim(); + } +} diff --git a/src/Appwrite/Platform/Workers/Usage.php b/src/Appwrite/Platform/Workers/Usage.php deleted file mode 100644 index 034e558d5d1..00000000000 --- a/src/Appwrite/Platform/Workers/Usage.php +++ /dev/null @@ -1,280 +0,0 @@ -<?php - -namespace Appwrite\Platform\Workers; - -use Appwrite\Event\UsageDump; -use Exception; -use Utopia\CLI\Console; -use Utopia\Database\DateTime; -use Utopia\Database\Document; -use Utopia\Platform\Action; -use Utopia\Queue\Message; -use Utopia\System\System; - -class Usage extends Action -{ - private array $stats = []; - private int $lastTriggeredTime = 0; - private int $keys = 0; - private const INFINITY_PERIOD = '_inf_'; - private const KEYS_THRESHOLD = 10000; - - public static function getName(): string - { - return 'usage'; - } - - /** - * @throws Exception - */ - public function __construct() - { - - $this - ->desc('Usage worker') - ->inject('message') - ->inject('getProjectDB') - ->inject('queueForUsageDump') - ->callback(function (Message $message, callable $getProjectDB, UsageDump $queueForUsageDump) { - $this->action($message, $getProjectDB, $queueForUsageDump); - }); - - $this->lastTriggeredTime = time(); - } - - /** - * @param Message $message - * @param callable $getProjectDB - * @param UsageDump $queueForUsageDump - * @return void - * @throws \Utopia\Database\Exception - * @throws Exception - */ - public function action(Message $message, callable $getProjectDB, UsageDump $queueForUsageDump): void - { - $payload = $message->getPayload() ?? []; - if (empty($payload)) { - throw new Exception('Missing payload'); - } - //Todo Figure out way to preserve keys when the container is being recreated @shimonewman - - $aggregationInterval = (int) System::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', '20'); - $project = new Document($payload['project'] ?? []); - $projectId = $project->getInternalId(); - foreach ($payload['reduce'] ?? [] as $document) { - if (empty($document)) { - continue; - } - - $this->reduce( - project: $project, - document: new Document($document), - metrics: $payload['metrics'], - getProjectDB: $getProjectDB - ); - } - - $this->stats[$projectId]['project'] = $project; - $this->stats[$projectId]['receivedAt'] = DateTime::now(); - foreach ($payload['metrics'] ?? [] as $metric) { - $this->keys++; - if (!isset($this->stats[$projectId]['keys'][$metric['key']])) { - $this->stats[$projectId]['keys'][$metric['key']] = $metric['value']; - continue; - } - - $this->stats[$projectId]['keys'][$metric['key']] += $metric['value']; - } - - // If keys crossed threshold or X time passed since the last send and there are some keys in the array ($this->stats) - if ( - $this->keys >= self::KEYS_THRESHOLD || - (time() - $this->lastTriggeredTime > $aggregationInterval && $this->keys > 0) - ) { - Console::warning('[' . DateTime::now() . '] Aggregated ' . $this->keys . ' keys'); - - $queueForUsageDump - ->setStats($this->stats) - ->trigger(); - - $this->stats = []; - $this->keys = 0; - $this->lastTriggeredTime = time(); - } - } - - /** - * On Documents that tied by relations like functions>deployments>build || documents>collection>database || buckets>files. - * When we remove a parent document we need to deduct his children aggregation from the project scope. - * @param Document $project - * @param Document $document - * @param array $metrics - * @param callable $getProjectDB - * @return void - */ - private function reduce(Document $project, Document $document, array &$metrics, callable $getProjectDB): void - { - $dbForProject = $getProjectDB($project); - - try { - switch (true) { - case $document->getCollection() === 'users': // users - $sessions = count($document->getAttribute(METRIC_SESSIONS, 0)); - if (!empty($sessions)) { - $metrics[] = [ - 'key' => METRIC_SESSIONS, - 'value' => ($sessions * -1), - ]; - } - break; - case $document->getCollection() === 'databases': // databases - $collections = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{databaseInternalId}', $document->getInternalId(), METRIC_DATABASE_ID_COLLECTIONS))); - $documents = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{databaseInternalId}', $document->getInternalId(), METRIC_DATABASE_ID_DOCUMENTS))); - if (!empty($collections['value'])) { - $metrics[] = [ - 'key' => METRIC_COLLECTIONS, - 'value' => ($collections['value'] * -1), - ]; - } - - if (!empty($documents['value'])) { - $metrics[] = [ - 'key' => METRIC_DOCUMENTS, - 'value' => ($documents['value'] * -1), - ]; - } - break; - case str_starts_with($document->getCollection(), 'database_') && !str_contains($document->getCollection(), 'collection'): //collections - $parts = explode('_', $document->getCollection()); - $databaseInternalId = $parts[1] ?? 0; - $documents = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{databaseInternalId}', '{collectionInternalId}'], [$databaseInternalId, $document->getInternalId()], METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS))); - - if (!empty($documents['value'])) { - $metrics[] = [ - 'key' => METRIC_DOCUMENTS, - 'value' => ($documents['value'] * -1), - ]; - $metrics[] = [ - 'key' => str_replace('{databaseInternalId}', $databaseInternalId, METRIC_DATABASE_ID_DOCUMENTS), - 'value' => ($documents['value'] * -1), - ]; - } - break; - - case $document->getCollection() === 'buckets': - $files = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{bucketInternalId}', $document->getInternalId(), METRIC_BUCKET_ID_FILES))); - $storage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{bucketInternalId}', $document->getInternalId(), METRIC_BUCKET_ID_FILES_STORAGE))); - - if (!empty($files['value'])) { - $metrics[] = [ - 'key' => METRIC_FILES, - 'value' => ($files['value'] * -1), - ]; - } - - if (!empty($storage['value'])) { - $metrics[] = [ - 'key' => METRIC_FILES_STORAGE, - 'value' => ($storage['value'] * -1), - ]; - } - break; - - case $document->getCollection() === 'functions': - $deployments = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], ['functions', $document->getInternalId()], METRIC_FUNCTION_ID_DEPLOYMENTS))); - $deploymentsStorage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], ['functions', $document->getInternalId()], METRIC_FUNCTION_ID_DEPLOYMENTS_STORAGE))); - $builds = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS))); - $buildsSuccess = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_SUCCESS))); - $buildsFailed = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_FAILED))); - $buildsStorage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_STORAGE))); - $buildsCompute = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE))); - $buildsComputeSuccess = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_SUCCESS))); - $buildsComputeFailed = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_FAILED))); - $executions = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS))); - $executionsCompute = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE))); - - if (!empty($deployments['value'])) { - $metrics[] = [ - 'key' => METRIC_DEPLOYMENTS, - 'value' => ($deployments['value'] * -1), - ]; - } - - if (!empty($deploymentsStorage['value'])) { - $metrics[] = [ - 'key' => METRIC_DEPLOYMENTS_STORAGE, - 'value' => ($deploymentsStorage['value'] * -1), - ]; - } - - if (!empty($builds['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS, - 'value' => ($builds['value'] * -1), - ]; - } - - if (!empty($buildsSuccess['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_SUCCESS, - 'value' => ($buildsSuccess['value'] * -1), - ]; - } - - if (!empty($buildsFailed['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_FAILED, - 'value' => ($buildsFailed['value'] * -1), - ]; - } - - if (!empty($buildsStorage['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_STORAGE, - 'value' => ($buildsStorage['value'] * -1), - ]; - } - - if (!empty($buildsCompute['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_COMPUTE, - 'value' => ($buildsCompute['value'] * -1), - ]; - } - - if (!empty($buildsComputeSuccess['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_COMPUTE_SUCCESS, - 'value' => ($buildsComputeSuccess['value'] * -1), - ]; - } - - if (!empty($buildsComputeFailed['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_COMPUTE_FAILED, - 'value' => ($buildsComputeFailed['value'] * -1), - ]; - } - - if (!empty($executions['value'])) { - $metrics[] = [ - 'key' => METRIC_EXECUTIONS, - 'value' => ($executions['value'] * -1), - ]; - } - - if (!empty($executionsCompute['value'])) { - $metrics[] = [ - 'key' => METRIC_EXECUTIONS_COMPUTE, - 'value' => ($executionsCompute['value'] * -1), - ]; - } - break; - default: - break; - } - } catch (\Throwable $e) { - console::error("[reducer] " . " {DateTime::now()} " . " {$project->getInternalId()} " . " {$e->getMessage()}"); - } - } -} diff --git a/src/Appwrite/Platform/Workers/UsageDump.php b/src/Appwrite/Platform/Workers/UsageDump.php deleted file mode 100644 index b7097dbb048..00000000000 --- a/src/Appwrite/Platform/Workers/UsageDump.php +++ /dev/null @@ -1,110 +0,0 @@ -<?php - -namespace Appwrite\Platform\Workers; - -use Appwrite\Extend\Exception; -use Utopia\CLI\Console; -use Utopia\Database\DateTime; -use Utopia\Database\Document; -use Utopia\Database\Exception\Duplicate; -use Utopia\Platform\Action; -use Utopia\Queue\Message; -use Utopia\System\System; - -class UsageDump extends Action -{ - protected array $stats = []; - protected array $periods = [ - '1h' => 'Y-m-d H:00', - '1d' => 'Y-m-d 00:00', - 'inf' => '0000-00-00 00:00' - ]; - - public static function getName(): string - { - return 'usage-dump'; - } - - /** - * @throws \Exception - */ - public function __construct() - { - $this - ->inject('message') - ->inject('getProjectDB') - ->callback(function (Message $message, callable $getProjectDB) { - $this->action($message, $getProjectDB); - }); - } - - /** - * @param Message $message - * @param callable $getProjectDB - * @return void - * @throws Exception - * @throws \Utopia\Database\Exception - */ - public function action(Message $message, callable $getProjectDB): void - { - $payload = $message->getPayload() ?? []; - if (empty($payload)) { - throw new Exception('Missing payload'); - } - - // TODO: rename both usage workers @shimonewman - foreach ($payload['stats'] ?? [] as $stats) { - $project = new Document($stats['project'] ?? []); - $numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0; - $receivedAt = $stats['receivedAt'] ?? 'NONE'; - if ($numberOfKeys === 0) { - continue; - } - - console::log('[' . DateTime::now() . '] ProjectId [' . $project->getInternalId() . '] ReceivedAt [' . $receivedAt . '] ' . $numberOfKeys . ' keys'); - - try { - $dbForProject = $getProjectDB($project); - foreach ($stats['keys'] ?? [] as $key => $value) { - if ($value == 0) { - continue; - } - - foreach ($this->periods as $period => $format) { - $time = 'inf' === $period ? null : date($format, time()); - $id = \md5("{$time}_{$period}_{$key}"); - - try { - $dbForProject->createDocument('stats', new Document([ - '$id' => $id, - 'period' => $period, - 'time' => $time, - 'metric' => $key, - 'value' => $value, - 'region' => System::getEnv('_APP_REGION', 'default'), - ])); - } catch (Duplicate $th) { - if ($value < 0) { - $dbForProject->decreaseDocumentAttribute( - 'stats', - $id, - 'value', - abs($value) - ); - } else { - $dbForProject->increaseDocumentAttribute( - 'stats', - $id, - 'value', - $value - ); - } - } - } - } - } catch (\Exception $e) { - console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); - } - } - } -} diff --git a/src/Appwrite/Platform/Workers/Webhooks.php b/src/Appwrite/Platform/Workers/Webhooks.php index 88ca7871f29..ada4d6faaa8 100644 --- a/src/Appwrite/Platform/Workers/Webhooks.php +++ b/src/Appwrite/Platform/Workers/Webhooks.php @@ -3,6 +3,7 @@ namespace Appwrite\Platform\Workers; use Appwrite\Event\Mail; +use Appwrite\Event\StatsUsage; use Appwrite\Template\Template; use Exception; use Utopia\Database\Database; @@ -31,39 +32,46 @@ public function __construct() $this ->desc('Webhooks worker') ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('queueForMails') + ->inject('queueForStatsUsage') ->inject('log') - ->callback(fn (Message $message, Database $dbForConsole, Mail $queueForMails, Log $log) => $this->action($message, $dbForConsole, $queueForMails, $log)); + ->inject('plan') + ->callback([$this, 'action']); } /** * @param Message $message - * @param Database $dbForConsole + * @param Document $project + * @param Database $dbForPlatform * @param Mail $queueForMails + * @param StatsUsage $queueForStatsUsage * @param Log $log + * @param array $plan * @return void * @throws Exception */ - public function action(Message $message, Database $dbForConsole, Mail $queueForMails, Log $log): void + public function action(Message $message, Document $project, Database $dbForPlatform, Mail $queueForMails, StatsUsage $queueForStatsUsage, Log $log, array $plan): void { $this->errors = []; $payload = $message->getPayload() ?? []; + + if (empty($payload)) { throw new Exception('Missing payload'); } $events = $payload['events']; $webhookPayload = json_encode($payload['payload']); - $project = new Document($payload['project']); $user = new Document($payload['user'] ?? []); $log->addTag('projectId', $project->getId()); foreach ($project->getAttribute('webhooks', []) as $webhook) { if (array_intersect($webhook->getAttribute('events', []), $events)) { - $this->execute($events, $webhookPayload, $webhook, $user, $project, $dbForConsole, $queueForMails); + $this->execute($events, $webhookPayload, $webhook, $user, $project, $dbForPlatform, $queueForMails, $queueForStatsUsage, $plan); } } @@ -78,11 +86,12 @@ public function action(Message $message, Database $dbForConsole, Mail $queueForM * @param Document $webhook * @param Document $user * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails + * @param array $plan * @return void */ - private function execute(array $events, string $payload, Document $webhook, Document $user, Document $project, Database $dbForConsole, Mail $queueForMails): void + private function execute(array $events, string $payload, Document $webhook, Document $user, Document $project, Database $dbForPlatform, Mail $queueForMails, StatsUsage $queueForStatsUsage, array $plan): void { if ($webhook->getAttribute('enabled') !== true) { return; @@ -138,8 +147,8 @@ private function execute(array $events, string $payload, Document $webhook, Docu \curl_close($ch); if (!empty($curlError) || $statusCode >= 400) { - $dbForConsole->increaseDocumentAttribute('webhooks', $webhook->getId(), 'attempts', 1); - $webhook = $dbForConsole->getDocument('webhooks', $webhook->getId()); + $dbForPlatform->increaseDocumentAttribute('webhooks', $webhook->getId(), 'attempts', 1); + $webhook = $dbForPlatform->getDocument('webhooks', $webhook->getId()); $attempts = $webhook->getAttribute('attempts'); $logs = ''; @@ -158,18 +167,32 @@ private function execute(array $events, string $payload, Document $webhook, Docu if ($attempts >= \intval(System::getEnv('_APP_WEBHOOK_MAX_FAILED_ATTEMPTS', '10'))) { $webhook->setAttribute('enabled', false); - $this->sendEmailAlert($attempts, $statusCode, $webhook, $project, $dbForConsole, $queueForMails); + $this->sendEmailAlert($attempts, $statusCode, $webhook, $project, $dbForPlatform, $queueForMails, $plan); } - $dbForConsole->updateDocument('webhooks', $webhook->getId(), $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->updateDocument('webhooks', $webhook->getId(), $webhook); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $this->errors[] = $logs; + $queueForStatsUsage + ->addMetric(METRIC_WEBHOOKS_FAILED, 1) + ->addMetric(str_replace('{webhookInternalId}', $webhook->getInternalId(), METRIC_WEBHOOK_ID_FAILED), 1) + ; + + } else { $webhook->setAttribute('attempts', 0); // Reset attempts on success - $dbForConsole->updateDocument('webhooks', $webhook->getId(), $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->updateDocument('webhooks', $webhook->getId(), $webhook); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); + $queueForStatsUsage + ->addMetric(METRIC_WEBHOOKS_SENT, 1) + ->addMetric(str_replace('{webhookInternalId}', $webhook->getInternalId(), METRIC_WEBHOOK_ID_SENT), 1) + ; } + + $queueForStatsUsage + ->setProject($project) + ->trigger(); } /** @@ -177,20 +200,21 @@ private function execute(array $events, string $payload, Document $webhook, Docu * @param mixed $statusCode * @param Document $webhook * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails + * @param array $plan * @return void */ - public function sendEmailAlert(int $attempts, mixed $statusCode, Document $webhook, Document $project, Database $dbForConsole, Mail $queueForMails): void + public function sendEmailAlert(int $attempts, mixed $statusCode, Document $webhook, Document $project, Database $dbForPlatform, Mail $queueForMails, array $plan): void { - $memberships = $dbForConsole->find('memberships', [ + $memberships = $dbForPlatform->find('memberships', [ Query::equal('teamInternalId', [$project->getAttribute('teamInternalId')]), Query::limit(APP_LIMIT_SUBQUERY) ]); $userIds = array_column(\array_map(fn ($membership) => $membership->getArrayCopy(), $memberships), 'userId'); - $users = $dbForConsole->find('users', [ + $users = $dbForPlatform->find('users', [ Query::equal('$id', $userIds), ]); @@ -206,6 +230,14 @@ public function sendEmailAlert(int $attempts, mixed $statusCode, Document $webho $template->setParam('{{path}}', "/console/project-$projectId/settings/webhooks/$webhookId"); $template->setParam('{{attempts}}', $attempts); + $template->setParam('{{logoUrl}}', $plan['logoUrl'] ?? APP_EMAIL_LOGO_URL); + $template->setParam('{{accentColor}}', $plan['accentColor'] ?? APP_EMAIL_ACCENT_COLOR); + $template->setParam('{{twitterUrl}}', $plan['twitterUrl'] ?? APP_SOCIAL_TWITTER); + $template->setParam('{{discordUrl}}', $plan['discordUrl'] ?? APP_SOCIAL_DISCORD); + $template->setParam('{{githubUrl}}', $plan['githubUrl'] ?? APP_SOCIAL_GITHUB_APPWRITE); + $template->setParam('{{termsUrl}}', $plan['termsUrl'] ?? APP_EMAIL_TERMS_URL); + $template->setParam('{{privacyUrl}}', $plan['privacyUrl'] ?? APP_EMAIL_PRIVACY_URL); + // TODO: Use setbodyTemplate once #7307 is merged $subject = 'Webhook deliveries have been paused'; $body = Template::fromFile(__DIR__ . '/../../../../app/config/locale/templates/email-base-styled.tpl'); diff --git a/src/Appwrite/PubSub/Adapter.php b/src/Appwrite/PubSub/Adapter.php new file mode 100644 index 00000000000..e5ddbe5e62e --- /dev/null +++ b/src/Appwrite/PubSub/Adapter.php @@ -0,0 +1,13 @@ +<?php + +namespace Appwrite\PubSub; + +interface Adapter +{ + public function ping($message = null): bool; + + public function subscribe($channels, $callback); + + public function publish($channel, $message); + +} diff --git a/src/Appwrite/PubSub/Adapter/Redis.php b/src/Appwrite/PubSub/Adapter/Redis.php new file mode 100644 index 00000000000..187eb9cd950 --- /dev/null +++ b/src/Appwrite/PubSub/Adapter/Redis.php @@ -0,0 +1,31 @@ +<?php + +namespace Appwrite\PubSub\Adapter; + +use Appwrite\PubSub\Adapter; + +class Redis implements Adapter +{ + private \Redis $client; + + public function __construct(\Redis $client) + { + $this->client = $client; + + } + + public function ping($message = null): bool + { + return $this->client->ping($message); + } + + public function subscribe($channels, $callback) + { + return $this->client->subscribe($channels, $callback); + } + + public function publish($channel, $message) + { + return $this->client->publish($channel, $message); + } +} diff --git a/src/Appwrite/SDK/AuthType.php b/src/Appwrite/SDK/AuthType.php new file mode 100644 index 00000000000..307b3cf35e2 --- /dev/null +++ b/src/Appwrite/SDK/AuthType.php @@ -0,0 +1,11 @@ +<?php + +namespace Appwrite\SDK; + +enum AuthType: string +{ + case JWT = APP_AUTH_TYPE_JWT; + case KEY = APP_AUTH_TYPE_KEY; + case SESSION = APP_AUTH_TYPE_SESSION; + case ADMIN = APP_AUTH_TYPE_ADMIN; +} diff --git a/src/Appwrite/SDK/ContentType.php b/src/Appwrite/SDK/ContentType.php new file mode 100644 index 00000000000..174c889815b --- /dev/null +++ b/src/Appwrite/SDK/ContentType.php @@ -0,0 +1,15 @@ +<?php + +namespace Appwrite\SDK; + +enum ContentType: string +{ + case NONE = ''; + case JSON = 'application/json'; + case IMAGE = 'image/*'; + case IMAGE_PNG = 'image/png'; + case MULTIPART = 'multipart/form-data'; + case HTML = 'text/html'; + case TEXT = 'text/plain'; + case ANY = '*/*'; +} diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php new file mode 100644 index 00000000000..d0b08f154e3 --- /dev/null +++ b/src/Appwrite/SDK/Method.php @@ -0,0 +1,295 @@ +<?php + +namespace Appwrite\SDK; + +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Swoole\Http\Response as HttpResponse; + +class Method +{ + public static array $processed = []; + + public static array $errors = []; + + /** + * Initialise a new SDK method + * + * @param string $namespace + * @param ?string $group + * @param string $name + * @param string $description + * @param array<AuthType> $auth + * @param array<SDKResponse> $responses + * @param ContentType $contentType + * @param MethodType|null $type + * @param bool $deprecated + * @param array|bool $hide + * @param bool $packaging + * @param ContentType $requestType + * @param array<Parameter> $parameters + * @param array $additionalParameters + */ + public function __construct( + protected string $namespace, + protected ?string $group, + protected string $name, + protected string $description, + protected array $auth, + protected array $responses, + protected ContentType $contentType = ContentType::JSON, + protected ?MethodType $type = null, + protected bool $deprecated = false, + protected array|bool $hide = false, + protected bool $packaging = false, + protected ContentType $requestType = ContentType::JSON, + protected array $parameters = [], + protected array $additionalParameters = [] + ) { + $this->validateMethod($name, $namespace); + $this->validateAuthTypes($auth); + $this->validateDesc($description); + + foreach ($responses as $response) { + $this->validateResponseModel($response->getModel()); + $this->validateNoContent($response); + } + } + + protected function getRouteName(): string + { + return $this->namespace . '.' . $this->name; + } + + protected function validateMethod(string $name, string $namespace): void + { + if (\in_array($this->getRouteName(), self::$processed)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Method already exists in namespace {$namespace}"; + } + + self::$processed[] = $this->getRouteName(); + } + + protected function validateAuthTypes(array $authTypes): void + { + foreach ($authTypes as $authType) { + if (!($authType instanceof AuthType)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Invalid auth type"; + } + } + } + + protected function validateDesc(string $desc): void + { + if (empty($desc)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Description label is empty"; + return; + } + + if (\str_ends_with($desc, '.md')) { + $descPath = $this->getDescriptionFilePath() ?: $this->getDescription(); + + if (empty($descPath)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Description file not found at {$desc}"; + return; + } + } + } + + protected function validateResponseModel(string|array $responseModel): void + { + $response = new Response(new HttpResponse()); + + if (!\is_array($responseModel)) { + $responseModel = [$responseModel]; + } + + foreach ($responseModel as $model) { + try { + $response->getModel($model); + } catch (\Exception $e) { + self::$errors[] = "Error with {$this->getRouteName()} method: Invalid response model, make sure the model has been defined in Response.php"; + } + } + } + + protected function validateNoContent(SDKResponse $response): void + { + if ($response->getCode() === 204) { + if ($response->getModel() !== Response::MODEL_NONE) { + self::$errors[] = "Error with {$this->getRouteName()} method: Response code 204 must have response model 'none'"; + } + } + } + + public function getNamespace(): string + { + return $this->namespace; + } + + public function getGroup(): ?string + { + return $this->group; + } + + public function getMethodName(): string + { + return $this->name; + } + + public function getDescription(): string + { + return $this->description; + } + + /** + * This method returns the absolute path to the description file returning null if the file does not exist. + * + * @return string|null + */ + public function getDescriptionFilePath(): ?string + { + return \realpath(__DIR__ . '/../../../' . $this->getDescription()) ?: null; + } + + public function getAuth(): array + { + return $this->auth; + } + + /** + * @return array<SDKResponse> + */ + public function getResponses(): array + { + return $this->responses; + } + + public function getContentType(): ContentType + { + return $this->contentType; + } + + public function getType(): ?MethodType + { + return $this->type; + } + + public function isDeprecated(): bool + { + return $this->deprecated; + } + + public function isHidden(): bool|array + { + return $this->hide ?? false; + } + + public function isPackaging(): bool + { + return $this->packaging; + } + + public function getRequestType(): ContentType + { + return $this->requestType; + } + + /** + * @return array<Parameter> + */ + public function getParameters(): array + { + return $this->parameters; + } + + public function getAdditionalParameters(): array + { + return $this->additionalParameters; + } + + public function setNamespace(string $namespace): self + { + $this->namespace = $namespace; + return $this; + } + + public function setMethodName(string $name): self + { + $this->name = $name; + return $this; + } + + public function setDescription(string $description): self + { + $this->description = $description; + return $this; + } + + public function setAuth(array $auth): self + { + $this->validateAuthTypes($auth); + $this->auth = $auth; + return $this; + } + + /** + * @param array<SDKResponse> $responses + */ + public function setResponses(array $responses): self + { + foreach ($responses as $response) { + $this->validateResponseModel($response->getModel()); + $this->validateNoContent($response); + } + $this->responses = $responses; + return $this; + } + + public function setContentType(ContentType $contentType): self + { + $this->contentType = $contentType; + return $this; + } + + public function setType(?MethodType $type): self + { + $this->type = $type; + return $this; + } + + public function setDeprecated(bool $deprecated): self + { + $this->deprecated = $deprecated; + return $this; + } + + public function setHide(bool|array $hide): self + { + $this->hide = $hide; + return $this; + } + + public function setPackaging(bool $packaging): self + { + $this->packaging = $packaging; + return $this; + } + + public function setRequestType(ContentType $requestType): self + { + $this->requestType = $requestType; + return $this; + } + + public function setParameters(array $parameters): self + { + $this->parameters = $parameters; + return $this; + } + + public static function getErrors(): array + { + return self::$errors; + } +} diff --git a/src/Appwrite/SDK/MethodType.php b/src/Appwrite/SDK/MethodType.php new file mode 100644 index 00000000000..2b1f7867798 --- /dev/null +++ b/src/Appwrite/SDK/MethodType.php @@ -0,0 +1,11 @@ +<?php + +namespace Appwrite\SDK; + +enum MethodType: string +{ + case WEBAUTH = 'webAuth'; + case LOCATION = 'location'; + case GRAPHQL = 'graphql'; + case UPLOAD = 'upload'; +} diff --git a/src/Appwrite/SDK/Parameter.php b/src/Appwrite/SDK/Parameter.php new file mode 100644 index 00000000000..ca675825895 --- /dev/null +++ b/src/Appwrite/SDK/Parameter.php @@ -0,0 +1,79 @@ +<?php + +namespace Appwrite\SDK; + +use Utopia\Validator; + +class Parameter +{ + /** + * @param string $name + * @param string $description + * @param mixed|null $default + * @param Validator|callable|null $validator + * @param bool $optional + */ + public function __construct( + protected string $name, + protected string $description = '', + protected mixed $default = null, + protected mixed $validator = null, + protected bool $optional = false, + ) { + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): static + { + $this->description = $description; + return $this; + } + + public function getDefault(): mixed + { + return $this->default; + } + + public function setDefault(mixed $default): static + { + $this->default = $default; + return $this; + } + + public function getValidator(): mixed + { + return $this->validator; + } + + public function setValidator(mixed $validator): static + { + $this->validator = $validator; + return $this; + } + + public function getOptional(): bool + { + return $this->optional; + } + + public function setOptional(bool $optional): static + { + $this->optional = $optional; + return $this; + } +} diff --git a/src/Appwrite/SDK/Response.php b/src/Appwrite/SDK/Response.php new file mode 100644 index 00000000000..e87813024b0 --- /dev/null +++ b/src/Appwrite/SDK/Response.php @@ -0,0 +1,27 @@ +<?php + +namespace Appwrite\SDK; + +class Response +{ + /** + * @param int $code + * @param string|array $model + * @param string $description + */ + public function __construct( + private int $code, + private string|array $model + ) { + } + + public function getCode(): int + { + return $this->code; + } + + public function getModel(): string|array + { + return $this->model; + } +} diff --git a/src/Appwrite/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php similarity index 78% rename from src/Appwrite/Specification/Format.php rename to src/Appwrite/SDK/Specification/Format.php index 30ce6470e10..8dbccf5cbbb 100644 --- a/src/Appwrite/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -1,6 +1,6 @@ <?php -namespace Appwrite\Specification; +namespace Appwrite\SDK\Specification; use Appwrite\Utopia\Response\Model; use Utopia\App; @@ -12,12 +12,12 @@ abstract class Format protected App $app; /** - * @var Route[] + * @var array<Route> */ protected array $routes; /** - * @var Model[] + * @var array<Model> */ protected array $models; @@ -113,6 +113,18 @@ public function getParam(string $key, string $default = ''): string protected function getEnumName(string $service, string $method, string $param): ?string { switch ($service) { + case 'console': + switch ($method) { + case 'getResource': + switch ($param) { + case 'type': + return 'ConsoleResourceType'; + case 'value': + return 'ConsoleResourceValue'; + } + break; + } + break; case 'account': switch ($method) { case 'createOAuth2Session': @@ -184,7 +196,7 @@ protected function getEnumName(string $service, string $method, string $param): case 'functions': switch ($method) { case 'getUsage': - case 'getFunctionUsage': + case 'listUsage': switch ($param) { case 'range': return 'FunctionUsageRange'; @@ -196,6 +208,52 @@ protected function getEnumName(string $service, string $method, string $param): return 'ExecutionMethod'; } break; + case 'getDeploymentDownload': + switch ($param) { + case 'type': + return 'DeploymentDownloadType'; + } + break; + case 'createVcsDeployment': + switch ($param) { + case 'type': + return 'VCSDeploymentType'; + } + break; + } + break; + case 'sites': + switch ($method) { + case 'getDeploymentDownload': + switch ($param) { + case 'type': + return 'DeploymentDownloadType'; + } + break; + case 'getUsage': + case 'listUsage': + switch ($param) { + case 'range': + return 'SiteUsageRange'; + } + break; + case 'createVcsDeployment': + switch ($param) { + case 'type': + return 'VCSDeploymentType'; + } + break; + } + break; + case 'vcs': + switch ($method) { + case 'createRepositoryDetection': + case 'listRepositories': + switch ($param) { + case 'type': + return 'VCSDetectionType'; + } + break; } break; case 'messaging': @@ -215,6 +273,8 @@ protected function getEnumName(string $service, string $method, string $param): switch ($param) { case 'status': return 'MessageStatus'; + case 'priority': + return 'MessagePriority'; } break; case 'createSmtpProvider': @@ -378,10 +438,24 @@ public function getEnumKeys(string $service, string $method, string $param): arr return ['Twenty Four Hours', 'Thirty Days', 'Ninety Days']; } break; + case 'proxy': + switch ($method) { + case 'createRedirectRule': + return ['Moved Permanently 301', 'Found 302', 'Temporary Redirect 307', 'Permanent Redirect 308']; + } + break; case 'functions': switch ($method) { case 'getUsage': - case 'getFunctionUsage': + case 'listUsage': + // Range Enum Keys + return ['Twenty Four Hours', 'Thirty Days', 'Ninety Days']; + } + break; + case 'sites': + switch ($method) { + case 'getUsage': + case 'listUsage': // Range Enum Keys return ['Twenty Four Hours', 'Thirty Days', 'Ninety Days']; } @@ -413,4 +487,24 @@ public function getEnumKeys(string $service, string $method, string $param): arr } return $values; } + + protected function getNestedModels(Model $model, array &$usedModels): void + { + foreach ($model->getRules() as $rule) { + if (!in_array($model->getType(), $usedModels)) { + continue; + } + $types = (array)$rule['type']; + foreach ($types as $ruleType) { + if (!in_array($ruleType, ['string', 'integer', 'boolean', 'json', 'float'])) { + $usedModels[] = $ruleType; + foreach ($this->models as $m) { + if ($m->getType() === $ruleType) { + $this->getNestedModels($m, $usedModels); + } + } + } + } + } + } } diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php similarity index 76% rename from src/Appwrite/Specification/Format/OpenAPI3.php rename to src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 3074d59b7cf..f486a61ce5b 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -1,8 +1,12 @@ <?php -namespace Appwrite\Specification\Format; +namespace Appwrite\SDK\Specification\Format; -use Appwrite\Specification\Format; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response; +use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; use Utopia\Database\Helpers\Permission; @@ -20,41 +24,6 @@ public function getName(): string return 'Open API 3'; } - protected function getNestedModels(Model $model, array &$usedModels): void - { - foreach ($model->getRules() as $rule) { - if (!in_array($model->getType(), $usedModels)) { - continue; - } - - if (\is_array($rule['type'])) { - foreach ($rule['type'] as $ruleType) { - if (!in_array($ruleType, ['string', 'integer', 'boolean', 'json', 'float', 'double'])) { - $usedModels[] = $ruleType; - - foreach ($this->models as $m) { - if ($m->getType() === $ruleType) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } else { - if (!in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float', 'double'])) { - $usedModels[] = $rule['type']; - - foreach ($this->models as $m) { - if ($m->getType() === $rule['type']) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } - } - public function parse(): array { /** @@ -82,6 +51,9 @@ public function parse(): array [ 'url' => $this->getParam('endpoint', ''), ], + [ + 'url' => $this->getParam('endpoint.docs', ''), + ], ], 'paths' => [], 'tags' => $this->services, @@ -120,28 +92,45 @@ public function parse(): array foreach ($this->routes as $route) { $url = \str_replace('/v1', '', $route->getPath()); $scope = $route->getLabel('scope', ''); - $consumes = [$route->getLabel('sdk.request.type', 'application/json')]; + $sdk = $route->getLabel('sdk', false); + + if (empty($sdk)) { + continue; + } + + $additionalMethods = null; + if (\is_array($sdk)) { + $additionalMethods = $sdk; + $sdk = $sdk[0]; + } + + /** + * @var Method $sdk + */ + $consumes = [$sdk->getRequestType()->value]; - $method = $route->getLabel('sdk.method', \uniqid()); - $desc = (!empty($route->getLabel('sdk.description', ''))) ? \realpath(__DIR__ . '/../../../../' . $route->getLabel('sdk.description', '')) : null; - $produces = $route->getLabel('sdk.response.type', null); - $model = $route->getLabel('sdk.response.model', 'none'); - $routeSecurity = $route->getLabel('sdk.auth', []); + $method = $sdk->getMethodName() ?? \uniqid(); + + if (!empty($method) && \is_array($method)) { + $method = \array_keys($method)[0]; + } + + $desc = $sdk->getDescriptionFilePath() ?: $sdk->getDescription(); + $produces = ($sdk->getContentType())->value; + $routeSecurity = $sdk->getAuth() ?? []; $sdkPlatforms = []; foreach ($routeSecurity as $value) { switch ($value) { - case APP_AUTH_TYPE_SESSION: + case AuthType::SESSION: $sdkPlatforms[] = APP_PLATFORM_CLIENT; break; - case APP_AUTH_TYPE_KEY: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_JWT: + case AuthType::JWT: + case AuthType::KEY: $sdkPlatforms[] = APP_PLATFORM_SERVER; break; - case APP_AUTH_TYPE_ADMIN: + case AuthType::ADMIN: $sdkPlatforms[] = APP_PLATFORM_CONSOLE; break; } @@ -152,102 +141,153 @@ public function parse(): array $sdkPlatforms[] = APP_PLATFORM_CLIENT; } + $namespace = $sdk->getNamespace() ?? 'default'; + + $desc ??= ''; + $descContents = \str_ends_with($desc, '.md') ? \file_get_contents($desc) : $desc; + $temp = [ 'summary' => $route->getDesc(), - 'operationId' => $route->getLabel('sdk.namespace', 'default') . ucfirst($method), - 'tags' => [$route->getLabel('sdk.namespace', 'default')], - 'description' => ($desc) ? \file_get_contents($desc) : '', + 'operationId' => $namespace . ucfirst($method), + 'tags' => [$namespace], + 'description' => $descContents, 'responses' => [], 'x-appwrite' => [ // Appwrite related metadata 'method' => $method, + 'group' => $sdk->getGroup(), 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), - 'type' => $route->getLabel('sdk.methodType', ''), - 'deprecated' => $route->getLabel('sdk.deprecated', false), - 'demo' => Template::fromCamelCaseToDash($route->getLabel('sdk.namespace', 'default')) . '/' . Template::fromCamelCaseToDash($method) . '.md', - 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $route->getLabel('sdk.description', ''), + 'type' => $sdk->getType()->value ?? '', + 'deprecated' => $sdk->isDeprecated(), + 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', + 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), 'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'), 'scope' => $route->getLabel('scope', ''), 'platforms' => $sdkPlatforms, - 'packaging' => $route->getLabel('sdk.packaging', false), - 'offline-model' => $route->getLabel('sdk.offline.model', ''), - 'offline-key' => $route->getLabel('sdk.offline.key', ''), - 'offline-response-key' => $route->getLabel('sdk.offline.response.key', '$id'), + 'packaging' => $sdk->isPackaging() ], ]; - foreach ($this->models as $value) { - if (\is_array($model)) { - $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); - } else { - if ($value->getType() === $model) { - $model = $value; - break; + + if (!empty($additionalMethods)) { + $temp['x-appwrite']['methods'] = []; + foreach ($additionalMethods as $method) { + /** @var Method $method */ + $desc = $method->getDescriptionFilePath(); + $additionalMethod = [ + 'name' => $method->getMethodName(), + 'auth' => \array_merge(...\array_map(fn ($auth) => [$auth->value => []], $method->getAuth())), + 'parameters' => [], + 'required' => [], + 'responses' => [], + 'description' => ($desc) ? \file_get_contents($desc) : '', + ]; + + foreach ($method->getParameters() as $parameter) { + $additionalMethod['parameters'][] = $parameter->getName(); + + if (!$parameter->getOptional()) { + $additionalMethod['required'][] = $parameter->getName(); + } + } + + foreach ($method->getResponses() as $response) { + if (\is_array($response->getModel())) { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => \array_map(fn ($m) => '#/components/schemas/' . $m, $response->getModel()) + ]; + } else { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => '#/components/schemas/' . $response->getModel() + ]; + } } + + $temp['x-appwrite']['methods'][] = $additionalMethod; } } - if (!(\is_array($model)) && $model->isNone()) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => in_array($produces, [ - 'image/*', - 'image/jpeg', - 'image/gif', - 'image/png', - 'image/webp', - 'image/svg-x', - 'image/x-icon', - 'image/bmp', - ]) ? 'Image' : 'File', - ]; - } else { - if (\is_array($model)) { - $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); - - // model has multiple possible responses, we will use oneOf - foreach ($model as $m) { - $usedModels[] = $m->getType(); + // Handle response models + foreach ($sdk->getResponses() as $response) { + /** @var Response $response */ + $model = $response->getModel(); + + foreach ($this->models as $value) { + if (\is_array($model)) { + $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); + } else { + if ($value->getType() === $model) { + $model = $value; + break; + } } + } - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $modelDescription, - 'content' => [ - $produces => [ - 'schema' => [ - 'oneOf' => \array_map(fn ($m) => ['$ref' => '#/components/schemas/' . $m->getType()], $model) - ], - ], - ], + if (!(\is_array($model)) && $model->isNone()) { + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => in_array($produces, [ + 'image/*', + 'image/jpeg', + 'image/gif', + 'image/png', + 'image/webp', + 'image/svg-x', + 'image/x-icon', + 'image/bmp', + ]) ? 'Image' : 'File', ]; } else { - // Response definition using one type - $usedModels[] = $model->getType(); - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $model->getName(), - 'content' => [ - $produces => [ - 'schema' => [ - '$ref' => '#/components/schemas/' . $model->getType(), + if (\is_array($model)) { + $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); + + // model has multiple possible responses, we will use oneOf + foreach ($model as $m) { + $usedModels[] = $m->getType(); + } + + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $modelDescription, + 'content' => [ + $produces => [ + 'schema' => [ + 'oneOf' => \array_map(fn ($m) => ['$ref' => '#/components/schemas/' . $m->getType()], $model) + ], ], ], - ], - ]; + ]; + } else { + // Response definition using one type + $usedModels[] = $model->getType(); + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $model->getName(), + 'content' => [ + $produces => [ + 'schema' => [ + '$ref' => '#/components/schemas/' . $model->getType(), + ], + ], + ], + ]; + } } - } - if ($route->getLabel('sdk.response.code', 500) === 204) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['description'] = 'No content'; - unset($temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['schema']); + if (($response->getCode() ?? 500) === 204) { + $temp['responses'][(string)$response->getCode() ?? '500']['description'] = 'No content'; + unset($temp['responses'][(string)$response->getCode() ?? '500']['schema']); + } } - if ((!empty($scope))) { // && 'public' != $scope + if ((!empty($scope))) { $securities = ['Project' => []]; - foreach ($route->getLabel('sdk.auth', []) as $security) { - if (array_key_exists($security, $this->keys)) { - $securities[$security] = []; + foreach ($sdk->getAuth() as $security) { + /** @var AuthType $security */ + if (array_key_exists($security->value, $this->keys)) { + $securities[$security->value] = []; } } @@ -298,7 +338,7 @@ public function parse(): array $node['schema']['x-example'] = false; break; case 'Appwrite\Utopia\Database\Validator\CustomId': - if ($route->getLabel('sdk.methodType', '') === 'upload') { + if ($sdk->getType() === MethodType::UPLOAD) { $node['schema']['x-upload-id'] = true; } $node['schema']['type'] = $validator->getType(); @@ -422,7 +462,7 @@ public function parse(): array $allowed = true; foreach ($this->enumBlacklist as $blacklist) { if ( - $blacklist['namespace'] == $route->getLabel('sdk.namespace', '') + $blacklist['namespace'] == $sdk->getNamespace() && $blacklist['method'] == $method && $blacklist['parameter'] == $name ) { @@ -433,8 +473,8 @@ public function parse(): array if ($allowed) { $node['schema']['enum'] = $validator->getList(); - $node['schema']['x-enum-name'] = $this->getEnumName($route->getLabel('sdk.namespace', ''), $method, $name); - $node['schema']['x-enum-keys'] = $this->getEnumKeys($route->getLabel('sdk.namespace', ''), $method, $name); + $node['schema']['x-enum-name'] = $this->getEnumName($sdk->getNamespace() ?? '', $method, $name); + $node['schema']['x-enum-keys'] = $this->getEnumKeys($sdk->getNamespace() ?? '', $method, $name); } if ($validator->getType() === 'integer') { $node['format'] = 'int32'; @@ -549,6 +589,7 @@ public function parse(): array switch ($rule['type']) { case 'string': case 'datetime': + case 'payload': $type = 'string'; break; diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php new file mode 100644 index 00000000000..948798ef0be --- /dev/null +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -0,0 +1,699 @@ +<?php + +namespace Appwrite\SDK\Specification\Format; + +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response; +use Appwrite\SDK\Specification\Format; +use Appwrite\Template\Template; +use Appwrite\Utopia\Response\Model; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Route; +use Utopia\Validator; +use Utopia\Validator\ArrayList; +use Utopia\Validator\Nullable; +use Utopia\Validator\Range; +use Utopia\Validator\WhiteList; + +class Swagger2 extends Format +{ + public function getName(): string + { + return 'Swagger 2'; + } + + public function parse(): array + { + /* + * Specifications (v2.0): + * https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md + */ + $output = [ + 'swagger' => '2.0', + 'info' => [ + 'version' => $this->getParam('version'), + 'title' => $this->getParam('name'), + 'description' => $this->getParam('description'), + 'termsOfService' => $this->getParam('terms'), + 'contact' => [ + 'name' => $this->getParam('contact.name'), + 'url' => $this->getParam('contact.url'), + 'email' => $this->getParam('contact.email'), + ], + 'license' => [ + 'name' => 'BSD-3-Clause', + 'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE', + ], + ], + 'host' => \parse_url($this->getParam('endpoint', ''), PHP_URL_HOST), + 'x-host-docs' => \parse_url($this->getParam('endpoint.docs', ''), PHP_URL_HOST), + 'basePath' => \parse_url($this->getParam('endpoint', ''), PHP_URL_PATH), + 'schemes' => [\parse_url($this->getParam('endpoint', ''), PHP_URL_SCHEME)], + 'consumes' => ['application/json', 'multipart/form-data'], + 'produces' => ['application/json'], + 'securityDefinitions' => $this->keys, + 'paths' => [], + 'tags' => $this->services, + 'definitions' => [], + 'externalDocs' => [ + 'description' => $this->getParam('docs.description'), + 'url' => $this->getParam('docs.url'), + ], + ]; + + if (isset($output['securityDefinitions']['Project'])) { + $output['securityDefinitions']['Project']['x-appwrite'] = ['demo' => '<YOUR_PROJECT_ID>']; + } + + if (isset($output['securityDefinitions']['Key'])) { + $output['securityDefinitions']['Key']['x-appwrite'] = ['demo' => '<YOUR_API_KEY>']; + } + + if (isset($output['securityDefinitions']['JWT'])) { + $output['securityDefinitions']['JWT']['x-appwrite'] = ['demo' => '<YOUR_JWT>']; + } + + if (isset($output['securityDefinitions']['Locale'])) { + $output['securityDefinitions']['Locale']['x-appwrite'] = ['demo' => 'en']; + } + + if (isset($output['securityDefinitions']['Mode'])) { + $output['securityDefinitions']['Mode']['x-appwrite'] = ['demo' => '']; + } + + $usedModels = []; + + foreach ($this->routes as $route) { + /** @var Route $route */ + $url = \str_replace('/v1', '', $route->getPath()); + + $scope = $route->getLabel('scope', ''); + + /** @var Method $sdk */ + $sdk = $route->getLabel('sdk', false); + + if (empty($sdk)) { + continue; + } + + $additionalMethods = null; + if (\is_array($sdk)) { + $additionalMethods = $sdk; + $sdk = $sdk[0]; + } + + $consumes = []; + if (strtoupper($route->getMethod()) !== 'GET' && strtoupper($route->getMethod()) !== 'HEAD') { + $consumes = [$sdk->getRequestType()->value]; + } + + $method = $sdk->getMethodName() ?? \uniqid(); + + if (!empty($method) && is_array($method)) { + $method = array_keys($method)[0]; + } + + $desc = $sdk->getDescriptionFilePath() ?: $sdk->getDescription(); + $produces = ($sdk->getContentType())->value; + $routeSecurity = $sdk->getAuth() ?? []; + $sdkPlatforms = []; + + foreach ($routeSecurity as $value) { + switch ($value) { + case AuthType::SESSION: + $sdkPlatforms[] = APP_PLATFORM_CLIENT; + break; + case AuthType::JWT: + case AuthType::KEY: + $sdkPlatforms[] = APP_PLATFORM_SERVER; + break; + case AuthType::ADMIN: + $sdkPlatforms[] = APP_PLATFORM_CONSOLE; + break; + } + } + + if (empty($routeSecurity)) { + $sdkPlatforms[] = APP_PLATFORM_SERVER; + $sdkPlatforms[] = APP_PLATFORM_CLIENT; + } + + $namespace = $sdk->getNamespace() ?? 'default'; + + $desc ??= ''; + $descContents = \str_ends_with($desc, '.md') ? \file_get_contents($desc) : $desc; + + $temp = [ + 'summary' => $route->getDesc(), + 'operationId' => $namespace . ucfirst($method), + 'consumes' => [], + 'produces' => [], + 'tags' => [$namespace], + 'description' => $descContents, + 'responses' => [], + 'x-appwrite' => [ // Appwrite related metadata + 'method' => $method, + 'group' => $sdk->getGroup(), + 'weight' => $route->getOrder(), + 'cookies' => $route->getLabel('sdk.cookies', false), + 'type' => $sdk->getType()->value ?? '', + 'deprecated' => $sdk->isDeprecated(), + 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', + 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', + 'rate-limit' => $route->getLabel('abuse-limit', 0), + 'rate-time' => $route->getLabel('abuse-time', 3600), + 'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'), + 'scope' => $route->getLabel('scope', ''), + 'platforms' => $sdkPlatforms, + 'packaging' => $sdk->isPackaging() + ], + ]; + + if ($produces) { + $temp['produces'][] = $produces; + } + + if (!empty($additionalMethods)) { + $temp['x-appwrite']['methods'] = []; + foreach ($additionalMethods as $method) { + /** @var Method $method */ + $desc = $method->getDescriptionFilePath(); + + $additionalMethod = [ + 'name' => $method->getMethodName(), + 'auth' => \array_merge(...\array_map(fn ($auth) => [$auth->value => []], $method->getAuth())), + 'parameters' => [], + 'required' => [], + 'responses' => [], + 'description' => ($desc) ? \file_get_contents($desc) : '', + ]; + + foreach ($method->getParameters() as $parameter) { + $additionalMethod['parameters'][] = $parameter->getName(); + + if (!$parameter->getOptional()) { + $additionalMethod['required'][] = $parameter->getName(); + } + } + + foreach ($method->getResponses() as $response) { + /** @var Response $response */ + if (\is_array($response->getModel())) { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => \array_map(fn ($m) => '#/definitions/' . $m, $response->getModel()) + ]; + } else { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => '#/definitions/' . $response->getModel() + ]; + } + } + + $temp['x-appwrite']['methods'][] = $additionalMethod; + } + } + + // Handle Responses + foreach ($sdk->getResponses() as $response) { + /** @var Response $response */ + $model = $response->getModel(); + + foreach ($this->models as $value) { + if (\is_array($model)) { + $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); + } else { + if ($value->getType() === $model) { + $model = $value; + break; + } + } + } + + if (!(\is_array($model)) && $model->isNone()) { + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => in_array($produces, [ + 'image/*', + 'image/jpeg', + 'image/gif', + 'image/png', + 'image/webp', + 'image/svg-x', + 'image/x-icon', + 'image/bmp', + ]) ? 'Image' : 'File', + 'schema' => [ + 'type' => 'file' + ], + ]; + } else { + if (\is_array($model)) { + $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); + // model has multiple possible responses, we will use oneOf + foreach ($model as $m) { + $usedModels[] = $m->getType(); + } + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $modelDescription, + 'schema' => [ + 'x-oneOf' => \array_map(function ($m) { + return ['$ref' => '#/definitions/' . $m->getType()]; + }, $model) + ], + ]; + } else { + // Response definition using one type + $usedModels[] = $model->getType(); + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $model->getName(), + 'schema' => [ + '$ref' => '#/definitions/' . $model->getType(), + ], + ]; + } + } + + if (in_array($response->getCode() ?? 500, [204, 301, 302, 308], true)) { + $temp['responses'][(string)$response->getCode() ?? '500']['description'] = 'No content'; + unset($temp['responses'][(string)$response->getCode() ?? '500']['schema']); + } + } + + if ((!empty($scope))) { // && 'public' != $scope + $securities = ['Project' => []]; + + foreach ($sdk->getAuth() as $security) { + /** @var AuthType $security */ + if (\array_key_exists($security->value, $this->keys)) { + $securities[$security->value] = []; + } + } + + $temp['x-appwrite']['auth'] = \array_slice($securities, 0, $this->authCount); + $temp['security'][] = $securities; + } + + $body = [ + 'name' => 'payload', + 'in' => 'body', + 'schema' => [ + 'type' => 'object', + 'properties' => [], + ], + ]; + + $bodyRequired = []; + + $parameters = \array_merge( + $route->getParams(), + $sdk->getAdditionalParameters() ?? [], + ); + + foreach ($parameters as $name => $param) { // Set params + /** @var Validator $validator */ + $validator = (\is_callable($param['validator'])) + ? ($param['validator'])(...$this->app->getResources($param['injections'])) + : $param['validator']; + + $node = [ + 'name' => $name, + 'description' => $param['description'], + 'required' => !$param['optional'], + ]; + + $isNullable = $validator instanceof Nullable; + + if ($isNullable) { + /** @var Nullable $validator */ + $validator = $validator->getValidator(); + } + + $class = !empty($validator) + ? \get_class($validator) + : ''; + + $base = !empty($class) + ? \get_parent_class($class) + : ''; + + switch ($base) { + case 'Appwrite\Utopia\Database\Validator\Queries\Base': + $class = $base; + break; + } + + if ($class === 'Utopia\Validator\AnyOf') { + $validator = $param['validator']->getValidators()[0]; + $class = \get_class($validator); + } + + switch ($class) { + case 'Utopia\Validator\Text': + case 'Utopia\Database\Validator\UID': + $node['type'] = $validator->getType(); + $node['x-example'] = '<' . \strtoupper(Template::fromCamelCaseToSnake($node['name'])) . '>'; + break; + case 'Utopia\Validator\Boolean': + $node['type'] = $validator->getType(); + $node['x-example'] = false; + break; + case 'Appwrite\Utopia\Database\Validator\CustomId': + if ($sdk->getType() === MethodType::UPLOAD) { + $node['x-upload-id'] = true; + } + $node['type'] = $validator->getType(); + $node['x-example'] = '<' . \strtoupper(Template::fromCamelCaseToSnake($node['name'])) . '>'; + break; + case 'Utopia\Database\Validator\DatetimeValidator': + $node['type'] = $validator->getType(); + $node['format'] = 'datetime'; + $node['x-example'] = Model::TYPE_DATETIME_EXAMPLE; + break; + case 'Appwrite\Network\Validator\Email': + $node['type'] = $validator->getType(); + $node['format'] = 'email'; + $node['x-example'] = 'email@example.com'; + break; + case 'Utopia\Validator\Host': + case 'Utopia\Validator\URL': + $node['type'] = $validator->getType(); + $node['format'] = 'url'; + $node['x-example'] = 'https://example.com'; + break; + case 'Utopia\Validator\ArrayList': + /** @var ArrayList $validator */ + $node['type'] = 'array'; + $node['collectionFormat'] = 'multi'; + $node['items'] = [ + 'type' => $validator->getValidator()->getType(), + ]; + break; + case 'Utopia\Validator\JSON': + case 'Utopia\Validator\Mock': + case 'Utopia\Validator\Assoc': + $node['type'] = 'object'; + $node['default'] = (empty($param['default'])) ? new \stdClass() : $param['default']; + $node['x-example'] = '{}'; + break; + case 'Utopia\Storage\Validator\File': + $consumes = ['multipart/form-data']; + $node['type'] = 'file'; + break; + case 'Appwrite\Functions\Validator\Payload': + $consumes = ['multipart/form-data']; + $node['type'] = 'payload'; + break; + case 'Appwrite\Utopia\Database\Validator\Queries\Base': + case 'Utopia\Database\Validator\Queries': + case 'Utopia\Database\Validator\Queries\Document': + case 'Utopia\Database\Validator\Queries\Documents': + $node['type'] = 'array'; + $node['collectionFormat'] = 'multi'; + $node['items'] = [ + 'type' => 'string', + ]; + break; + case 'Utopia\Database\Validator\Permissions': + $node['type'] = $validator->getType(); + $node['collectionFormat'] = 'multi'; + $node['items'] = [ + 'type' => 'string', + ]; + $node['x-example'] = '["' . Permission::read(Role::any()) . '"]'; + break; + case 'Utopia\Database\Validator\Roles': + $node['type'] = $validator->getType(); + $node['collectionFormat'] = 'multi'; + $node['items'] = [ + 'type' => 'string', + ]; + $node['x-example'] = '["' . Role::any()->toString() . '"]'; + break; + case 'Appwrite\Auth\Validator\Password': + $node['type'] = $validator->getType(); + $node['format'] = 'password'; + $node['x-example'] = 'password'; + break; + case 'Appwrite\Auth\Validator\Phone': + $node['type'] = $validator->getType(); + $node['format'] = 'phone'; + $node['x-example'] = '+12065550100'; + break; + case 'Utopia\Validator\Range': + /** @var Range $validator */ + $node['type'] = $validator->getType() === Validator::TYPE_FLOAT ? 'number' : $validator->getType(); + $node['format'] = $validator->getType() == Validator::TYPE_INTEGER ? 'int32' : 'float'; + $node['x-example'] = $validator->getMin(); + break; + case 'Utopia\Validator\Numeric': + case 'Utopia\Validator\Integer': + $node['type'] = $validator->getType(); + $node['format'] = 'int32'; + break; + case 'Utopia\Validator\FloatValidator': + $node['type'] = 'number'; + $node['format'] = 'float'; + break; + case 'Utopia\Validator\Length': + $node['type'] = $validator->getType(); + break; + case 'Utopia\Validator\WhiteList': + /** @var WhiteList $validator */ + $node['type'] = $validator->getType(); + $node['x-example'] = $validator->getList()[0]; + + //Iterate the blackList. If it matches with the current one, then it is blackListed + $allowed = true; + foreach ($this->enumBlacklist as $blacklist) { + if ($blacklist['namespace'] == $namespace && $blacklist['method'] == $method && $blacklist['parameter'] == $name) { + $allowed = false; + break; + } + } + + if ($allowed && $validator->getType() === 'string') { + $node['enum'] = $validator->getList(); + $node['x-enum-name'] = $this->getEnumName($namespace, $method, $name); + $node['x-enum-keys'] = $this->getEnumKeys($namespace, $method, $name); + } + + if ($validator->getType() === 'integer') { + $node['format'] = 'int32'; + } + break; + case 'Appwrite\Utopia\Database\Validator\CompoundUID': + $node['type'] = $validator->getType(); + $node['x-example'] = '[ID1:ID2]'; + break; + default: + $node['type'] = 'string'; + break; + } + + if ($param['optional'] && !\is_null($param['default'])) { // Param has default value + $node['default'] = $param['default']; + } + + if (\str_contains($url, ':' . $name)) { // Param is in URL path + $node['in'] = 'path'; + $temp['parameters'][] = $node; + } elseif ($route->getMethod() == 'GET') { // Param is in query + $node['in'] = 'query'; + $temp['parameters'][] = $node; + } else { // Param is in payload + if (\in_array('multipart/form-data', $consumes)) { + $node['in'] = 'formData'; + $temp['parameters'][] = $node; + + continue; + } + + if (!$param['optional']) { + $bodyRequired[] = $name; + } + + $body['schema']['properties'][$name] = [ + 'type' => $node['type'], + 'description' => $node['description'], + 'default' => $node['default'] ?? null, + 'x-example' => $node['x-example'] ?? null, + ]; + + if (isset($node['enum'])) { + /// If the enum flag is Set, add the enum values to the body + $body['schema']['properties'][$name]['enum'] = $node['enum']; + $body['schema']['properties'][$name]['x-enum-name'] = $node['x-enum-name'] ?? null; + $body['schema']['properties'][$name]['x-enum-keys'] = $node['x-enum-keys'] ?? null; + } + + if ($node['x-global'] ?? false) { + $body['schema']['properties'][$name]['x-global'] = true; + } + + if ($isNullable) { + $body['schema']['properties'][$name]['x-nullable'] = true; + } + + if (\array_key_exists('items', $node)) { + $body['schema']['properties'][$name]['items'] = $node['items']; + } + } + + $url = \str_replace(':' . $name, '{' . $name . '}', $url); + } + + if (!empty($bodyRequired)) { + $body['schema']['required'] = $bodyRequired; + } + + if (!empty($body['schema']['properties'])) { + $temp['parameters'][] = $body; + } + + $temp['consumes'] = $consumes; + + $output['paths'][$url][\strtolower($route->getMethod())] = $temp; + } + + foreach ($this->models as $model) { + $this->getNestedModels($model, $usedModels); + } + + foreach ($this->models as $model) { + if (!in_array($model->getType(), $usedModels)) { + continue; + } + + $required = $model->getRequired(); + $rules = $model->getRules(); + + $output['definitions'][$model->getType()] = [ + 'description' => $model->getName(), + 'type' => 'object', + ]; + + if (!empty($rules)) { + $output['definitions'][$model->getType()]['properties'] = []; + } + + if ($model->isAny()) { + $output['definitions'][$model->getType()]['additionalProperties'] = true; + } + + if (!empty($required)) { + $output['definitions'][$model->getType()]['required'] = $required; + } + + foreach ($model->getRules() as $name => $rule) { + $type = ''; + $format = null; + $items = null; + + switch ($rule['type']) { + case 'string': + case 'datetime': + $type = 'string'; + break; + + case 'json': + $type = 'object'; + break; + + case 'integer': + $type = 'integer'; + $format = 'int32'; + break; + + case 'float': + $type = 'number'; + $format = 'float'; + break; + + case 'double': + $type = 'number'; + $format = 'double'; + break; + + case 'boolean': + $type = 'boolean'; + break; + + case 'payload': + $type = 'payload'; + break; + + default: + $type = 'object'; + $rule['type'] = ($rule['type']) ?: 'none'; + + if (\is_array($rule['type'])) { + if ($rule['array']) { + $items = [ + 'x-anyOf' => \array_map(fn ($type) => ['$ref' => '#/definitions/' . $type], $rule['type']) + ]; + } else { + $items = [ + 'x-oneOf' => \array_map(fn ($type) => ['$ref' => '#/definitions/' . $type], $rule['type']) + ]; + } + } else { + $items = [ + 'type' => $type, + '$ref' => '#/definitions/' . $rule['type'], + ]; + } + break; + } + + if ($rule['type'] == 'json') { + $output['definitions'][$model->getType()]['properties'][$name] = [ + 'type' => $type, + 'additionalProperties' => true, + 'description' => $rule['description'] ?? '', + 'x-example' => $rule['example'] ?? null, + ]; + continue; + } + + if ($rule['array']) { + $output['definitions'][$model->getType()]['properties'][$name] = [ + 'type' => 'array', + 'description' => $rule['description'] ?? '', + 'items' => [ + 'type' => $type, + ], + 'x-example' => $rule['example'] ?? null, + ]; + + if ($format) { + $output['definitions'][$model->getType()]['properties'][$name]['items']['format'] = $format; + } + } else { + $output['definitions'][$model->getType()]['properties'][$name] = [ + 'type' => $type, + 'description' => $rule['description'] ?? '', + 'x-example' => $rule['example'] ?? null, + ]; + + if ($format) { + $output['definitions'][$model->getType()]['properties'][$name]['format'] = $format; + } + } + if ($items) { + $output['definitions'][$model->getType()]['properties'][$name]['items'] = $items; + } + if (!in_array($name, $required)) { + $output['definitions'][$model->getType()]['properties'][$name]['x-nullable'] = true; + } + } + } + + \ksort($output['paths']); + + return $output; + } +} diff --git a/src/Appwrite/SDK/Specification/Specification.php b/src/Appwrite/SDK/Specification/Specification.php new file mode 100644 index 00000000000..951af08bdf5 --- /dev/null +++ b/src/Appwrite/SDK/Specification/Specification.php @@ -0,0 +1,37 @@ +<?php + +namespace Appwrite\SDK\Specification; + +class Specification +{ + protected Format $format; + + public function __construct(Format $format) + { + $this->format = $format; + } + + /** + * Get Name. + * + * Get format name + * + * @return string + */ + public function getName(): string + { + return $this->format->getName(); + } + + /** + * Parse + * + * Parses Appwrite App to given format + * + * @return array + */ + public function parse(): array + { + return $this->format->parse(); + } +} diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php deleted file mode 100644 index fc9123f7e19..00000000000 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ /dev/null @@ -1,654 +0,0 @@ -<?php - -namespace Appwrite\Specification\Format; - -use Appwrite\Specification\Format; -use Appwrite\Template\Template; -use Appwrite\Utopia\Response\Model; -use Utopia\Database\Helpers\Permission; -use Utopia\Database\Helpers\Role; -use Utopia\Validator; -use Utopia\Validator\ArrayList; -use Utopia\Validator\Nullable; -use Utopia\Validator\Range; - -class Swagger2 extends Format -{ - public function getName(): string - { - return 'Swagger 2'; - } - - protected function getNestedModels(Model $model, array &$usedModels): void - { - foreach ($model->getRules() as $rule) { - if (!in_array($model->getType(), $usedModels)) { - continue; - } - - if (\is_array($rule['type'])) { - foreach ($rule['type'] as $ruleType) { - if (!in_array($ruleType, ['string', 'integer', 'boolean', 'json', 'float'])) { - $usedModels[] = $ruleType; - - foreach ($this->models as $m) { - if ($m->getType() === $ruleType) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } else { - if (!in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float'])) { - $usedModels[] = $rule['type']; - - foreach ($this->models as $m) { - if ($m->getType() === $rule['type']) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } - } - - public function parse(): array - { - /* - * Specifications (v2.0): - * https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md - */ - $output = [ - 'swagger' => '2.0', - 'info' => [ - 'version' => $this->getParam('version'), - 'title' => $this->getParam('name'), - 'description' => $this->getParam('description'), - 'termsOfService' => $this->getParam('terms'), - 'contact' => [ - 'name' => $this->getParam('contact.name'), - 'url' => $this->getParam('contact.url'), - 'email' => $this->getParam('contact.email'), - ], - 'license' => [ - 'name' => 'BSD-3-Clause', - 'url' => 'https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE', - ], - ], - 'host' => \parse_url($this->getParam('endpoint', ''), PHP_URL_HOST), - 'basePath' => \parse_url($this->getParam('endpoint', ''), PHP_URL_PATH), - 'schemes' => [\parse_url($this->getParam('endpoint', ''), PHP_URL_SCHEME)], - 'consumes' => ['application/json', 'multipart/form-data'], - 'produces' => ['application/json'], - 'securityDefinitions' => $this->keys, - 'paths' => [], - 'tags' => $this->services, - 'definitions' => [], - 'externalDocs' => [ - 'description' => $this->getParam('docs.description'), - 'url' => $this->getParam('docs.url'), - ], - ]; - - if (isset($output['securityDefinitions']['Project'])) { - $output['securityDefinitions']['Project']['x-appwrite'] = ['demo' => '<YOUR_PROJECT_ID>']; - } - - if (isset($output['securityDefinitions']['Key'])) { - $output['securityDefinitions']['Key']['x-appwrite'] = ['demo' => '<YOUR_API_KEY>']; - } - - if (isset($output['securityDefinitions']['JWT'])) { - $output['securityDefinitions']['JWT']['x-appwrite'] = ['demo' => '<YOUR_JWT>']; - } - - if (isset($output['securityDefinitions']['Locale'])) { - $output['securityDefinitions']['Locale']['x-appwrite'] = ['demo' => 'en']; - } - - if (isset($output['securityDefinitions']['Mode'])) { - $output['securityDefinitions']['Mode']['x-appwrite'] = ['demo' => '']; - } - - $usedModels = []; - - foreach ($this->routes as $route) { - /** @var \Utopia\Route $route */ - $url = \str_replace('/v1', '', $route->getPath()); - $scope = $route->getLabel('scope', ''); - $consumes = [$route->getLabel('sdk.request.type', 'application/json')]; - - $method = $route->getLabel('sdk.method', \uniqid()); - $desc = (!empty($route->getLabel('sdk.description', ''))) ? \realpath(__DIR__ . '/../../../../' . $route->getLabel('sdk.description', '')) : null; - $produces = $route->getLabel('sdk.response.type', null); - $model = $route->getLabel('sdk.response.model', 'none'); - $routeSecurity = $route->getLabel('sdk.auth', []); - $sdkPlatforms = []; - - foreach ($routeSecurity as $value) { - switch ($value) { - case APP_AUTH_TYPE_SESSION: - $sdkPlatforms[] = APP_PLATFORM_CLIENT; - break; - case APP_AUTH_TYPE_KEY: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_JWT: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_ADMIN: - $sdkPlatforms[] = APP_PLATFORM_CONSOLE; - break; - } - } - - if (empty($routeSecurity)) { - $sdkPlatforms[] = APP_PLATFORM_SERVER; - $sdkPlatforms[] = APP_PLATFORM_CLIENT; - } - - $temp = [ - 'summary' => $route->getDesc(), - 'operationId' => $route->getLabel('sdk.namespace', 'default') . ucfirst($method), - 'consumes' => [], - 'produces' => [], - 'tags' => [$route->getLabel('sdk.namespace', 'default')], - 'description' => ($desc) ? \file_get_contents($desc) : '', - 'responses' => [], - 'x-appwrite' => [ // Appwrite related metadata - 'method' => $method, - 'weight' => $route->getOrder(), - 'cookies' => $route->getLabel('sdk.cookies', false), - 'type' => $route->getLabel('sdk.methodType', ''), - 'deprecated' => $route->getLabel('sdk.deprecated', false), - 'demo' => Template::fromCamelCaseToDash($route->getLabel('sdk.namespace', 'default')) . '/' . Template::fromCamelCaseToDash($method) . '.md', - 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $route->getLabel('sdk.description', ''), - 'rate-limit' => $route->getLabel('abuse-limit', 0), - 'rate-time' => $route->getLabel('abuse-time', 3600), - 'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'), - 'scope' => $route->getLabel('scope', ''), - 'platforms' => $sdkPlatforms, - 'packaging' => $route->getLabel('sdk.packaging', false), - 'offline-model' => $route->getLabel('sdk.offline.model', ''), - 'offline-key' => $route->getLabel('sdk.offline.key', ''), - 'offline-response-key' => $route->getLabel('sdk.offline.response.key', '$id'), - ], - ]; - - if ($produces) { - $temp['produces'][] = $produces; - } - - foreach ($this->models as $value) { - if (\is_array($model)) { - $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); - } else { - if ($value->getType() === $model) { - $model = $value; - break; - } - } - } - - if (!(\is_array($model)) && $model->isNone()) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => in_array($produces, [ - 'image/*', - 'image/jpeg', - 'image/gif', - 'image/png', - 'image/webp', - 'image/svg-x', - 'image/x-icon', - 'image/bmp', - ]) ? 'Image' : 'File', - 'schema' => [ - 'type' => 'file' - ], - ]; - } else { - if (\is_array($model)) { - $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); - // model has multiple possible responses, we will use oneOf - foreach ($model as $m) { - $usedModels[] = $m->getType(); - } - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $modelDescription, - 'schema' => [ - 'x-oneOf' => \array_map(function ($m) { - return ['$ref' => '#/definitions/' . $m->getType()]; - }, $model) - ], - ]; - } else { - // Response definition using one type - $usedModels[] = $model->getType(); - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $model->getName(), - 'schema' => [ - '$ref' => '#/definitions/' . $model->getType(), - ], - ]; - } - } - - if (in_array($route->getLabel('sdk.response.code', 500), [204, 301, 302, 308], true)) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['description'] = 'No content'; - unset($temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['schema']); - } - - if ((!empty($scope))) { // && 'public' != $scope - $securities = ['Project' => []]; - - foreach ($route->getLabel('sdk.auth', []) as $security) { - if (array_key_exists($security, $this->keys)) { - $securities[$security] = []; - } - } - - $temp['x-appwrite']['auth'] = array_slice($securities, 0, $this->authCount); - $temp['security'][] = $securities; - } - - $body = [ - 'name' => 'payload', - 'in' => 'body', - 'schema' => [ - 'type' => 'object', - 'properties' => [], - ], - ]; - - $bodyRequired = []; - - $parameters = \array_merge( - $route->getParams(), - $route->getLabel('sdk.parameters', []), - ); - - foreach ($parameters as $name => $param) { // Set params - /** @var Validator $validator */ - $validator = (\is_callable($param['validator'])) ? call_user_func_array($param['validator'], $this->app->getResources($param['injections'])) : $param['validator']; - - $node = [ - 'name' => $name, - 'description' => $param['description'], - 'required' => !$param['optional'], - ]; - - $isNullable = $validator instanceof Nullable; - - if ($isNullable) { - /** @var Nullable $validator */ - $validator = $validator->getValidator(); - } - - $validatorClass = (!empty($validator)) ? \get_class($validator) : ''; - if($validatorClass === 'Utopia\Validator\AnyOf') { - $validator = $param['validator']->getValidators()[0]; - $validatorClass = \get_class($validator); - } - - switch ($validatorClass) { - case 'Utopia\Validator\Text': - case 'Utopia\Database\Validator\UID': - $node['type'] = $validator->getType(); - $node['x-example'] = '<' . \strtoupper(Template::fromCamelCaseToSnake($node['name'])) . '>'; - break; - case 'Utopia\Validator\Boolean': - $node['type'] = $validator->getType(); - $node['x-example'] = false; - break; - case 'Appwrite\Utopia\Database\Validator\CustomId': - if ($route->getLabel('sdk.methodType', '') === 'upload') { - $node['x-upload-id'] = true; - } - $node['type'] = $validator->getType(); - $node['x-example'] = '<' . \strtoupper(Template::fromCamelCaseToSnake($node['name'])) . '>'; - break; - case 'Utopia\Database\Validator\DatetimeValidator': - $node['type'] = $validator->getType(); - $node['format'] = 'datetime'; - $node['x-example'] = Model::TYPE_DATETIME_EXAMPLE; - break; - case 'Appwrite\Network\Validator\Email': - $node['type'] = $validator->getType(); - $node['format'] = 'email'; - $node['x-example'] = 'email@example.com'; - break; - case 'Utopia\Validator\Host': - case 'Utopia\Validator\URL': - $node['type'] = $validator->getType(); - $node['format'] = 'url'; - $node['x-example'] = 'https://example.com'; - break; - case 'Utopia\Validator\ArrayList': - /** @var ArrayList $validator */ - $node['type'] = 'array'; - $node['collectionFormat'] = 'multi'; - $node['items'] = [ - 'type' => $validator->getValidator()->getType(), - ]; - break; - case 'Utopia\Validator\JSON': - case 'Utopia\Validator\Mock': - case 'Utopia\Validator\Assoc': - $node['type'] = 'object'; - $node['default'] = (empty($param['default'])) ? new \stdClass() : $param['default']; - $node['x-example'] = '{}'; - break; - case 'Utopia\Storage\Validator\File': - $consumes = ['multipart/form-data']; - $node['type'] = 'file'; - break; - case 'Appwrite\Utopia\Database\Validator\Queries\Attributes': - case 'Appwrite\Utopia\Database\Validator\Queries\Buckets': - case 'Appwrite\Utopia\Database\Validator\Queries\Collections': - case 'Appwrite\Utopia\Database\Validator\Queries\Databases': - case 'Appwrite\Utopia\Database\Validator\Queries\Deployments': - case 'Appwrite\Utopia\Database\Validator\Queries\Executions': - case 'Appwrite\Utopia\Database\Validator\Queries\Files': - case 'Appwrite\Utopia\Database\Validator\Queries\Functions': - case 'Appwrite\Utopia\Database\Validator\Queries\Identities': - case 'Appwrite\Utopia\Database\Validator\Queries\Indexes': - case 'Appwrite\Utopia\Database\Validator\Queries\Installations': - case 'Appwrite\Utopia\Database\Validator\Queries\Memberships': - case 'Appwrite\Utopia\Database\Validator\Queries\Messages': - case 'Appwrite\Utopia\Database\Validator\Queries\Migrations': - case 'Appwrite\Utopia\Database\Validator\Queries\Projects': - case 'Appwrite\Utopia\Database\Validator\Queries\Providers': - case 'Appwrite\Utopia\Database\Validator\Queries\Rules': - case 'Appwrite\Utopia\Database\Validator\Queries\Subscribers': - case 'Appwrite\Utopia\Database\Validator\Queries\Targets': - case 'Appwrite\Utopia\Database\Validator\Queries\Teams': - case 'Appwrite\Utopia\Database\Validator\Queries\Topics': - case 'Appwrite\Utopia\Database\Validator\Queries\Users': - case 'Appwrite\Utopia\Database\Validator\Queries\Variables': - case 'Utopia\Database\Validator\Queries': - case 'Utopia\Database\Validator\Queries\Document': - case 'Utopia\Database\Validator\Queries\Documents': - $node['type'] = 'array'; - $node['collectionFormat'] = 'multi'; - $node['items'] = [ - 'type' => 'string', - ]; - break; - case 'Utopia\Database\Validator\Permissions': - $node['type'] = $validator->getType(); - $node['collectionFormat'] = 'multi'; - $node['items'] = [ - 'type' => 'string', - ]; - $node['x-example'] = '["' . Permission::read(Role::any()) . '"]'; - break; - case 'Utopia\Database\Validator\Roles': - $node['type'] = $validator->getType(); - $node['collectionFormat'] = 'multi'; - $node['items'] = [ - 'type' => 'string', - ]; - $node['x-example'] = '["' . Role::any()->toString() . '"]'; - break; - case 'Appwrite\Auth\Validator\Password': - $node['type'] = $validator->getType(); - $node['format'] = 'password'; - $node['x-example'] = 'password'; - break; - case 'Appwrite\Auth\Validator\Phone': - $node['type'] = $validator->getType(); - $node['format'] = 'phone'; - $node['x-example'] = '+12065550100'; - break; - case 'Utopia\Validator\Range': - /** @var Range $validator */ - $node['type'] = $validator->getType() === Validator::TYPE_FLOAT ? 'number' : $validator->getType(); - $node['format'] = $validator->getType() == Validator::TYPE_INTEGER ? 'int32' : 'float'; - $node['x-example'] = $validator->getMin(); - break; - case 'Utopia\Validator\Numeric': - case 'Utopia\Validator\Integer': - $node['type'] = $validator->getType(); - $node['format'] = 'int32'; - break; - case 'Utopia\Validator\FloatValidator': - $node['type'] = 'number'; - $node['format'] = 'float'; - break; - case 'Utopia\Validator\Length': - $node['type'] = $validator->getType(); - break; - case 'Utopia\Validator\WhiteList': - /** @var \Utopia\Validator\WhiteList $validator */ - $node['type'] = $validator->getType(); - $node['x-example'] = $validator->getList()[0]; - - //Iterate the blackList. If it matches with the current one, then it is blackListed - $allowed = true; - foreach ($this->enumBlacklist as $blacklist) { - if ($blacklist['namespace'] == $route->getLabel('sdk.namespace', '') && $blacklist['method'] == $method && $blacklist['parameter'] == $name) { - $allowed = false; - break; - } - } - - if ($allowed && $validator->getType() === 'string') { - $node['enum'] = $validator->getList(); - $node['x-enum-name'] = $this->getEnumName($route->getLabel('sdk.namespace', ''), $method, $name); - $node['x-enum-keys'] = $this->getEnumKeys($route->getLabel('sdk.namespace', ''), $method, $name); - } - - if ($validator->getType() === 'integer') { - $node['format'] = 'int32'; - } - break; - case 'Appwrite\Utopia\Database\Validator\CompoundUID': - $node['type'] = $validator->getType(); - $node['x-example'] = '[ID1:ID2]'; - break; - default: - $node['type'] = 'string'; - break; - } - - if ($param['optional'] && !\is_null($param['default'])) { // Param has default value - $node['default'] = $param['default']; - } - - if (\str_contains($url, ':' . $name)) { // Param is in URL path - $node['in'] = 'path'; - $temp['parameters'][] = $node; - } elseif ($route->getMethod() == 'GET') { // Param is in query - $node['in'] = 'query'; - $temp['parameters'][] = $node; - } else { // Param is in payload - if (\in_array('multipart/form-data', $consumes)) { - $node['in'] = 'formData'; - $temp['parameters'][] = $node; - - continue; - } - - if (!$param['optional']) { - $bodyRequired[] = $name; - } - - $body['schema']['properties'][$name] = [ - 'type' => $node['type'], - 'description' => $node['description'], - 'default' => $node['default'] ?? null, - 'x-example' => $node['x-example'] ?? null, - ]; - - if (isset($node['enum'])) { - /// If the enum flag is Set, add the enum values to the body - $body['schema']['properties'][$name]['enum'] = $node['enum']; - $body['schema']['properties'][$name]['x-enum-name'] = $node['x-enum-name'] ?? null; - $body['schema']['properties'][$name]['x-enum-keys'] = $node['x-enum-keys'] ?? null; - } - - if ($node['x-global'] ?? false) { - $body['schema']['properties'][$name]['x-global'] = true; - } - - if ($isNullable) { - $body['schema']['properties'][$name]['x-nullable'] = true; - } - - if (\array_key_exists('items', $node)) { - $body['schema']['properties'][$name]['items'] = $node['items']; - } - } - - $url = \str_replace(':' . $name, '{' . $name . '}', $url); - } - - if (!empty($bodyRequired)) { - $body['schema']['required'] = $bodyRequired; - } - - if (!empty($body['schema']['properties'])) { - $temp['parameters'][] = $body; - } - - $temp['consumes'] = $consumes; - - $output['paths'][$url][\strtolower($route->getMethod())] = $temp; - } - - foreach ($this->models as $model) { - $this->getNestedModels($model, $usedModels); - } - - foreach ($this->models as $model) { - if (!in_array($model->getType(), $usedModels)) { - continue; - } - - $required = $model->getRequired(); - $rules = $model->getRules(); - - $output['definitions'][$model->getType()] = [ - 'description' => $model->getName(), - 'type' => 'object', - ]; - - if (!empty($rules)) { - $output['definitions'][$model->getType()]['properties'] = []; - } - - if ($model->isAny()) { - $output['definitions'][$model->getType()]['additionalProperties'] = true; - } - - if (!empty($required)) { - $output['definitions'][$model->getType()]['required'] = $required; - } - - foreach ($model->getRules() as $name => $rule) { - $type = ''; - $format = null; - $items = null; - - switch ($rule['type']) { - case 'string': - case 'datetime': - $type = 'string'; - break; - - case 'json': - $type = 'object'; - break; - - case 'integer': - $type = 'integer'; - $format = 'int32'; - break; - - case 'float': - $type = 'number'; - $format = 'float'; - break; - - case 'double': - $type = 'number'; - $format = 'double'; - break; - - case 'boolean': - $type = 'boolean'; - break; - - default: - $type = 'object'; - $rule['type'] = ($rule['type']) ?: 'none'; - - if (\is_array($rule['type'])) { - if ($rule['array']) { - $items = [ - 'x-anyOf' => \array_map(fn ($type) => ['$ref' => '#/definitions/' . $type], $rule['type']) - ]; - } else { - $items = [ - 'x-oneOf' => \array_map(fn ($type) => ['$ref' => '#/definitions/' . $type], $rule['type']) - ]; - } - } else { - $items = [ - 'type' => $type, - '$ref' => '#/definitions/' . $rule['type'], - ]; - } - break; - } - - if ($rule['type'] == 'json') { - $output['definitions'][$model->getType()]['properties'][$name] = [ - 'type' => $type, - 'additionalProperties' => true, - 'description' => $rule['description'] ?? '', - 'x-example' => $rule['example'] ?? null, - ]; - continue; - } - - if ($rule['array']) { - $output['definitions'][$model->getType()]['properties'][$name] = [ - 'type' => 'array', - 'description' => $rule['description'] ?? '', - 'items' => [ - 'type' => $type, - ], - 'x-example' => $rule['example'] ?? null, - ]; - - if ($format) { - $output['definitions'][$model->getType()]['properties'][$name]['items']['format'] = $format; - } - } else { - $output['definitions'][$model->getType()]['properties'][$name] = [ - 'type' => $type, - 'description' => $rule['description'] ?? '', - 'x-example' => $rule['example'] ?? null, - ]; - - if ($format) { - $output['definitions'][$model->getType()]['properties'][$name]['format'] = $format; - } - } - if ($items) { - $output['definitions'][$model->getType()]['properties'][$name]['items'] = $items; - } - if (!in_array($name, $required)) { - $output['definitions'][$model->getType()]['properties'][$name]['x-nullable'] = true; - } - } - } - - \ksort($output['paths']); - - return $output; - } -} diff --git a/src/Appwrite/Specification/Specification.php b/src/Appwrite/Specification/Specification.php deleted file mode 100644 index 73ef34a8b88..00000000000 --- a/src/Appwrite/Specification/Specification.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -namespace Appwrite\Specification; - -class Specification -{ - protected Format $format; - - public function __construct(Format $format) - { - $this->format = $format; - } - - /** - * Get Name. - * - * Get format name - * - * @return string - */ - public function getName(): string - { - return $this->format->getName(); - } - - /** - * Parse - * - * Parses Appwrite App to given format - * - * @return array - */ - public function parse(): array - { - return $this->format->parse(); - } -} diff --git a/src/Appwrite/Transformation/Adapter.php b/src/Appwrite/Transformation/Adapter.php new file mode 100644 index 00000000000..b4b5dce8a87 --- /dev/null +++ b/src/Appwrite/Transformation/Adapter.php @@ -0,0 +1,32 @@ +<?php + +namespace Appwrite\Transformation; + +abstract class Adapter +{ + protected mixed $input; + protected mixed $output; + + public function __construct() + { + + } + + public function setInput(mixed $input): self + { + $this->input = $input; + return $this; + } + + public function getOutput(): mixed + { + return $this->output; + } + + /** + * @param array<mixed> $traits + */ + abstract public function isValid(array $traits): bool; + + abstract public function transform(): void; +} diff --git a/src/Appwrite/Transformation/Adapter/Mock.php b/src/Appwrite/Transformation/Adapter/Mock.php new file mode 100644 index 00000000000..13ec1cc88b0 --- /dev/null +++ b/src/Appwrite/Transformation/Adapter/Mock.php @@ -0,0 +1,26 @@ +<?php + +namespace Appwrite\Transformation\Adapter; + +use Appwrite\Transformation\Adapter; + +class Mock extends Adapter +{ + /** + * @param array<mixed> $traits Mock traits + */ + public function isValid(array $traits): bool + { + if ($traits['mock'] === true) { + return true; + } + + return false; + } + + public function transform(): void + { + $this->output = $this->input; + $this->output = "Mock: " . $this->output; + } +} diff --git a/src/Appwrite/Transformation/Adapter/Preview.php b/src/Appwrite/Transformation/Adapter/Preview.php new file mode 100644 index 00000000000..70af19a188f --- /dev/null +++ b/src/Appwrite/Transformation/Adapter/Preview.php @@ -0,0 +1,209 @@ +<?php + +namespace Appwrite\Transformation\Adapter; + +use Appwrite\Transformation\Adapter; + +class Preview extends Adapter +{ + /** + * @param array<mixed> $traits Proxied response headers + */ + public function isValid(array $traits): bool + { + $contentType = ''; + + foreach ($traits as $key => $value) { + if (\strtolower($key) === 'content-type') { + $contentType = $value; + break; + } + } + + if (\str_contains($contentType, 'text/html')) { + return true; + } + + return false; + } + + public function transform(): void + { + $this->output = $this->input; + + $banner = <<<EOT + <style> + @import url(https://fonts.bunny.net/css?family=fira-code:400|inter:400); + + #appwrite-preview { + min-width: auto; + min-height: auto; + max-width: none; + max-height: none; + width: auto; + height: auto; + padding: 0; + margin: 0; + position: fixed; + right: 16px; + bottom: 16px; + z-index: 1; + border-radius: var(--border-radius-S, 8px); + border: var(--border-width-S, 1px) solid var(--color-border-neutral, #EDEDF0); + background: var(--color-bgColor-neutral-primary, #FFF); + box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.03), 0px 4px 4px 0px rgba(0, 0, 0, 0.04); + padding: var(--space-3, 6px) var(--space-4, 8px); + display: flex; + justify-content: center; + align-items: center; + gap: var(--gap-XXS, 4px); + cursor: pointer; + transition: opacity 0.3s; + } + + #appwrite-preview-close { + position: absolute; + right: 0px; + bottom: 0px; + border-radius: var(--border-radius-S, 8px); + background: linear-gradient(270deg, #FFF 69.64%, rgba(255, 255, 255, 0.00) 114.29%); + height: 100%; + aspect-ratio: 1 / 1; + display: flex; + justify-content: center; + align-items: center; + opacity: 0; + transition: opacity 0.3s; + } + + #appwrite-preview-logo-dark { + display: none; + } + + #appwrite-preview:hover #appwrite-preview-close { + opacity: 1; + } + + #appwrite-preview-text { + padding: 0; + margin: 0; + color: var(--color-fgColor-neutral-secondary, #56565C); + font-family: var(--font-family-sansSerif, Inter), sans-serif; + font-size: var(--font-size-XS, 12px); + font-style: normal; + font-weight: 500; + line-height: 130%; + letter-spacing: -0.12px; + } + + #appwrite-preview-close-text { + opacity: 0; + transition: opacity 0.3s; + position: absolute; + bottom: calc(15px + 4px); + display: flex; + padding: var(--space-1, 2px) var(--space-2, 4px); + color: var(--color-fgColor-neutral-secondary, #56565C); + text-align: center; + font-family: var(--font-family-sansSerif, Inter), sans-serif; + font-size: var(--font-size-XS, 12px); + font-style: normal; + font-weight: 400; + line-height: 130%; + letter-spacing: -0.12px; + border-radius: var(--border-radius-XS, 6px); + background: #EDEDF0; + } + + #appwrite-preview-close:hover #appwrite-preview-close-text { + opacity: 1; + } + + @media (prefers-color-scheme: dark) { + #appwrite-preview { + border: var(--border-width-S, 1px) solid var(--color-border-neutral, #2D2D31); + background: var(--color-bgColor-neutral-primary, #1D1D21); + box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.03), 0px 4px 4px 0px rgba(0, 0, 0, 0.04); + } + + #appwrite-preview-text { + color: var(--color-fgColor-neutral-secondary, #C3C3C6); + font-family: var(--font-family-sansSerif, Inter), sans-serif; + font-size: var(--font-size-XS, 12px); + } + + #appwrite-preview-logo-dark { + display: block; + } + + #appwrite-preview-logo-light { + display: none; + } + + #appwrite-preview-close { + background: linear-gradient(270deg, #1D1D21 69.64%, rgba(29, 29, 33, 0.00) 114.29%); + } + + #appwrite-preview-close-text { + background: #2D2D31; + color: var(--color-fgColor-neutral-secondary, #C3C3C6); + } + } + </style> + + <button id="appwrite-preview"> + <p id="appwrite-preview-text">Preview by</p> + + <div id="appwrite-preview-close"> + <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> + <path fill-rule="evenodd" clip-rule="evenodd" d="M3.43451 3.43439C3.74693 3.12197 4.25346 3.12197 4.56588 3.43439L8.0002 6.8687L11.4345 3.43439C11.7469 3.12197 12.2535 3.12197 12.5659 3.43439C12.8783 3.74681 12.8783 4.25334 12.5659 4.56576L9.13157 8.00007L12.5659 11.4344C12.8783 11.7468 12.8783 12.2533 12.5659 12.5658C12.2535 12.8782 11.7469 12.8782 11.4345 12.5658L8.0002 9.13144L4.56588 12.5658C4.25346 12.8782 3.74693 12.8782 3.43451 12.5658C3.12209 12.2533 3.12209 11.7468 3.43451 11.4344L6.86882 8.00007L3.43451 4.56576C3.12209 4.25334 3.12209 3.74681 3.43451 3.43439Z" fill="#97979B"/> + </svg> + + <p id="appwrite-preview-close-text">Hide</p> + </div> + + <svg id="appwrite-preview-logo-light" width="65" height="12" viewBox="0 0 65 12" fill="none" xmlns="http://www.w3.org/2000/svg"> + <path d="M18.9862 9.74762C20.0493 9.74762 20.5867 9.191 20.8204 8.81202H20.9255C20.9722 9.21468 21.2526 9.59366 21.8017 9.59366H22.8414V8.40936H22.5727C22.3858 8.40936 22.2924 8.30277 22.2924 8.13697V3.38795H20.9138V4.1459H20.8087C20.54 3.76692 19.9792 3.23399 18.9511 3.23399C17.3156 3.23399 16.1006 4.60777 16.1006 6.4908C16.1006 8.37383 17.3389 9.74762 18.9862 9.74762ZM19.2315 8.39752C18.2619 8.39752 17.5025 7.6751 17.5025 6.50265C17.5025 5.35388 18.2385 4.57224 19.2198 4.57224C20.1544 4.57224 20.9372 5.27098 20.9372 6.50265C20.9372 7.55667 20.2713 8.39752 19.2315 8.39752Z" fill="#2D2D31"/> + <path d="M23.6553 12H25.0339V8.81202H25.139C25.396 9.191 25.9451 9.74762 27.0316 9.74762C28.6672 9.74762 29.8588 8.35015 29.8588 6.4908C29.8588 4.61962 28.5854 3.23399 26.9381 3.23399C25.8867 3.23399 25.3727 3.81429 25.1273 4.13405H25.0222V3.38795H23.6553V12ZM26.7395 8.43305C25.7933 8.43305 25.0105 7.72247 25.0105 6.4908C25.0105 5.43678 25.6764 4.54856 26.7162 4.54856C27.6858 4.54856 28.4452 5.31835 28.4452 6.4908C28.4452 7.63957 27.7092 8.43305 26.7395 8.43305Z" fill="#2D2D31"/> + <path d="M30.5701 12H31.9487V8.81202H32.0538C32.3108 9.191 32.8599 9.74762 33.9464 9.74762C35.582 9.74762 36.66 8.35015 36.66 6.4908C36.66 4.61962 35.5002 3.23399 33.8529 3.23399C32.8015 3.23399 32.2875 3.81429 32.0421 4.13405H31.937V3.38795H30.5701V12ZM33.6543 8.43305C32.708 8.43305 31.9253 7.72247 31.9253 6.4908C31.9253 5.43678 32.5912 4.54856 33.631 4.54856C34.6006 4.54856 35.36 5.31835 35.36 6.4908C35.36 7.63957 34.624 8.43305 33.6543 8.43305Z" fill="#2D2D31"/> + <path d="M38.4823 9.73776H40.4333L41.5431 4.87031H41.6132L42.7231 9.73776H44.6624L46.2153 3.53205H44.8259L43.7161 8.41135H43.6109L42.5011 3.53205H40.6669L39.5454 8.41135H39.4403L38.3421 3.53205H36.8701L38.4823 9.73776Z" fill="#2D2D31"/> + <path d="M46.9137 9.73776H48.2923V6.67044C48.2923 5.49798 48.8297 4.77556 49.8344 4.77556H50.4418V3.37809H49.9862C49.2035 3.37809 48.6077 3.92287 48.374 4.44396H48.2806V3.53205H46.9137V9.73776Z" fill="#2D2D31"/> + <path d="M57.2829 9.73776H58.3577V8.49425H57.2946C56.874 8.49425 56.6988 8.30476 56.6988 7.86657V4.76372H58.4278V3.53205H56.6988V1.79114H55.3903V3.53205H54.2454V4.76372H55.3085V7.87842C55.3085 9.19299 56.0913 9.73776 57.2829 9.73776Z" fill="#2D2D31"/> + <path d="M62.0561 9.74762C63.3295 9.74762 64.451 9.1081 64.8482 7.81721L63.5865 7.5093C63.3645 8.19619 62.722 8.55148 62.0444 8.55148C61.0397 8.55148 60.3738 7.88827 60.3621 6.84609H65.0001V6.45527C65.0001 4.60777 63.8669 3.23399 61.9977 3.23399C60.3504 3.23399 58.9368 4.54856 58.9368 6.50265C58.9368 8.39752 60.1869 9.74762 62.0561 9.74762ZM60.3738 5.8276C60.4556 5.08149 61.1215 4.45381 61.9977 4.45381C62.8388 4.45381 63.5281 4.98675 63.5982 5.8276H60.3738Z" fill="#2D2D31"/> + <path fill-rule="evenodd" clip-rule="evenodd" d="M53.6325 9.73776H52.2539V4.76372H51.1791V3.53205H53.6325V9.73776Z" fill="#2D2D31"/> + <path d="M52.841 2.67085C53.3434 2.67085 53.7172 2.29187 53.7172 1.79447C53.7172 1.30891 53.3434 0.929932 52.841 0.929932C52.3387 0.929932 51.9648 1.30891 51.9648 1.79447C51.9648 2.29187 52.3387 2.67085 52.841 2.67085Z" fill="#2D2D31"/> + <path d="M12.0363 8.21609V10.9548H5.29451C3.33035 10.9548 1.61537 9.85334 0.697814 8.21609C0.564426 7.97807 0.447681 7.72836 0.349751 7.46917C0.157509 6.96127 0.0366636 6.41627 0 5.84762V5.10717C0.00795985 4.98044 0.0205026 4.85471 0.0369048 4.73048C0.0704326 4.47553 0.121086 4.22606 0.18766 3.98356C0.817453 1.68455 2.86531 0 5.29451 0C7.72371 0 9.77132 1.68455 10.4011 3.98356H7.51844C7.04519 3.23415 6.22605 2.7387 5.29451 2.7387C4.36296 2.7387 3.54382 3.23415 3.07057 3.98356C2.92633 4.21137 2.81441 4.46258 2.74108 4.73048C2.67596 4.968 2.64122 5.21846 2.64122 5.47739C2.64122 6.2624 2.96106 6.96999 3.47387 7.46917C3.94905 7.93251 4.5897 8.21609 5.29451 8.21609H12.0363Z" fill="#FD366E"/> + <path d="M12.0364 4.73047V7.46917H7.11523C7.62804 6.96998 7.94788 6.2624 7.94788 5.47739C7.94788 5.21846 7.91315 4.96799 7.84802 4.73047H12.0364Z" fill="#FD366E"/> + </svg> + + <svg id="appwrite-preview-logo-dark" width="65" height="12" viewBox="0 0 65 12" fill="none" xmlns="http://www.w3.org/2000/svg"> + <path d="M18.9862 9.74762C20.0493 9.74762 20.5867 9.191 20.8204 8.81202H20.9255C20.9722 9.21468 21.2526 9.59366 21.8017 9.59366H22.8414V8.40936H22.5727C22.3858 8.40936 22.2924 8.30277 22.2924 8.13697V3.38795H20.9138V4.1459H20.8087C20.54 3.76692 19.9792 3.23399 18.9511 3.23399C17.3156 3.23399 16.1006 4.60777 16.1006 6.4908C16.1006 8.37383 17.3389 9.74762 18.9862 9.74762ZM19.2315 8.39752C18.2619 8.39752 17.5025 7.6751 17.5025 6.50265C17.5025 5.35388 18.2385 4.57224 19.2198 4.57224C20.1544 4.57224 20.9372 5.27098 20.9372 6.50265C20.9372 7.55667 20.2713 8.39752 19.2315 8.39752Z" fill="#EDEDF0"/> + <path d="M23.6553 12H25.0339V8.81202H25.139C25.396 9.191 25.9451 9.74762 27.0316 9.74762C28.6672 9.74762 29.8588 8.35015 29.8588 6.4908C29.8588 4.61962 28.5854 3.23399 26.9381 3.23399C25.8867 3.23399 25.3727 3.81429 25.1273 4.13405H25.0222V3.38795H23.6553V12ZM26.7395 8.43305C25.7933 8.43305 25.0105 7.72247 25.0105 6.4908C25.0105 5.43678 25.6764 4.54856 26.7162 4.54856C27.6858 4.54856 28.4452 5.31835 28.4452 6.4908C28.4452 7.63957 27.7092 8.43305 26.7395 8.43305Z" fill="#EDEDF0"/> + <path d="M30.5701 12H31.9487V8.81202H32.0538C32.3108 9.191 32.8599 9.74762 33.9464 9.74762C35.582 9.74762 36.66 8.35015 36.66 6.4908C36.66 4.61962 35.5002 3.23399 33.8529 3.23399C32.8015 3.23399 32.2875 3.81429 32.0421 4.13405H31.937V3.38795H30.5701V12ZM33.6543 8.43305C32.708 8.43305 31.9253 7.72247 31.9253 6.4908C31.9253 5.43678 32.5912 4.54856 33.631 4.54856C34.6006 4.54856 35.36 5.31835 35.36 6.4908C35.36 7.63957 34.624 8.43305 33.6543 8.43305Z" fill="#EDEDF0"/> + <path d="M38.4823 9.73776H40.4333L41.5431 4.87031H41.6132L42.7231 9.73776H44.6624L46.2153 3.53205H44.8259L43.7161 8.41135H43.6109L42.5011 3.53205H40.6669L39.5454 8.41135H39.4403L38.3421 3.53205H36.8701L38.4823 9.73776Z" fill="#EDEDF0"/> + <path d="M46.9137 9.73776H48.2923V6.67044C48.2923 5.49798 48.8297 4.77556 49.8344 4.77556H50.4418V3.37809H49.9862C49.2035 3.37809 48.6077 3.92287 48.374 4.44396H48.2806V3.53205H46.9137V9.73776Z" fill="#EDEDF0"/> + <path d="M57.2829 9.73776H58.3577V8.49425H57.2946C56.874 8.49425 56.6988 8.30476 56.6988 7.86657V4.76372H58.4278V3.53205H56.6988V1.79114H55.3903V3.53205H54.2454V4.76372H55.3085V7.87842C55.3085 9.19299 56.0913 9.73776 57.2829 9.73776Z" fill="#EDEDF0"/> + <path d="M62.0561 9.74762C63.3295 9.74762 64.451 9.1081 64.8482 7.81721L63.5865 7.5093C63.3645 8.19619 62.722 8.55148 62.0444 8.55148C61.0397 8.55148 60.3738 7.88827 60.3621 6.84609H65.0001V6.45527C65.0001 4.60777 63.8669 3.23399 61.9977 3.23399C60.3504 3.23399 58.9368 4.54856 58.9368 6.50265C58.9368 8.39752 60.1869 9.74762 62.0561 9.74762ZM60.3738 5.8276C60.4556 5.08149 61.1215 4.45381 61.9977 4.45381C62.8388 4.45381 63.5281 4.98675 63.5982 5.8276H60.3738Z" fill="#EDEDF0"/> + <path fill-rule="evenodd" clip-rule="evenodd" d="M53.6325 9.73776H52.2539V4.76372H51.1791V3.53205H53.6325V9.73776Z" fill="#EDEDF0"/> + <path d="M52.841 2.67085C53.3434 2.67085 53.7172 2.29187 53.7172 1.79447C53.7172 1.30891 53.3434 0.929932 52.841 0.929932C52.3387 0.929932 51.9648 1.30891 51.9648 1.79447C51.9648 2.29187 52.3387 2.67085 52.841 2.67085Z" fill="#EDEDF0"/> + <path d="M12.0363 8.21609V10.9548H5.29451C3.33035 10.9548 1.61537 9.85334 0.697814 8.21609C0.564426 7.97807 0.447681 7.72836 0.349751 7.46917C0.157509 6.96127 0.0366636 6.41627 0 5.84762V5.10717C0.00795985 4.98044 0.0205026 4.85471 0.0369048 4.73048C0.0704326 4.47553 0.121086 4.22606 0.18766 3.98356C0.817453 1.68455 2.86531 0 5.29451 0C7.72371 0 9.77132 1.68455 10.4011 3.98356H7.51844C7.04519 3.23415 6.22605 2.7387 5.29451 2.7387C4.36296 2.7387 3.54382 3.23415 3.07057 3.98356C2.92633 4.21137 2.81441 4.46258 2.74108 4.73048C2.67596 4.968 2.64122 5.21846 2.64122 5.47739C2.64122 6.2624 2.96106 6.96999 3.47387 7.46917C3.94905 7.93251 4.5897 8.21609 5.29451 8.21609H12.0363Z" fill="#FD366E"/> + <path d="M12.0364 4.73047V7.46917H7.11523C7.62804 6.96998 7.94788 6.2624 7.94788 5.47739C7.94788 5.21846 7.91315 4.96799 7.84802 4.73047H12.0364Z" fill="#FD366E"/> + </svg> + </button> + + <script> + (function() { + var banner = document.getElementById("appwrite-preview"); + banner.addEventListener("click", function() { + banner.style.opacity = 0; + setTimeout(() => { + banner.style.display = 'none'; + }, 350); + }); + })(); + </script> + EOT; + + $this->output .= $banner; + } +} diff --git a/src/Appwrite/Transformation/Transformation.php b/src/Appwrite/Transformation/Transformation.php new file mode 100644 index 00000000000..d01ee08179b --- /dev/null +++ b/src/Appwrite/Transformation/Transformation.php @@ -0,0 +1,74 @@ +<?php + +namespace Appwrite\Transformation; + +class Transformation +{ + /** + * @var array<Adapter> $adapters + */ + protected array $adapters; + + /** + * @var array<mixed> $traits + */ + protected array $traits; + + protected mixed $input; + protected mixed $output; + + /** + * @param array<Adapter> $adapters + */ + public function __construct(array $adapters = []) + { + $this->adapters = $adapters; + } + + /** + * @param array<mixed> $traits + */ + public function setTraits(array $traits): self + { + $this->traits = $traits; + return $this; + } + + public function setInput(mixed $input): self + { + $this->input = $input; + return $this; + } + + public function addAdapter(Adapter $adapter): self + { + $this->adapters[] = $adapter; + return $this; + } + + public function transform(): bool + { + foreach ($this->adapters as $adapter) { + if (!$adapter->isValid($this->traits)) { + return false; + } + } + + $output = $this->input; + + foreach ($this->adapters as $adapter) { + $adapter->setInput($output); + $adapter->transform(); + $output = $adapter->getOutput(); + } + + $this->output = $output; + + return true; + } + + public function getOutput(): mixed + { + return $this->output; + } +} diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Base.php b/src/Appwrite/Utopia/Database/Validator/Queries/Base.php index a3555c08ddb..e8eafba5a04 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Base.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Base.php @@ -24,7 +24,15 @@ class Base extends Queries public function __construct(string $collection, array $allowedAttributes) { $config = Config::getParam('collections', []); - $collections = array_merge($config['projects'], $config['buckets'], $config['databases'], $config['console']); + + $collections = array_merge( + $config['projects'], + $config['buckets'], + $config['databases'], + $config['console'], + $config['logs'] + ); + $collection = $collections[$collection]; // array for constant lookup time $allowedAttributesLookup = []; @@ -35,6 +43,7 @@ public function __construct(string $collection, array $allowedAttributes) $attributes = []; foreach ($collection['attributes'] as $attribute) { $key = $attribute['$id']; + if (!isset($allowedAttributesLookup[$key])) { continue; } @@ -62,12 +71,18 @@ public function __construct(string $collection, array $allowedAttributes) 'array' => false, ]); + $internalId = new Document([ + 'key' => '$internalId', + 'type' => Database::VAR_STRING, + 'array' => false, + ]); + $validators = [ new Limit(), new Offset(), new Cursor(), - new Filter($attributes), - new Order($attributes), + new Filter($attributes, APP_DATABASE_QUERY_MAX_VALUES), + new Order([...$attributes, $internalId]), ]; parent::__construct($validators); diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php index 42aed88ef61..73631ecfb8c 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php @@ -5,13 +5,13 @@ class Deployments extends Base { public const ALLOWED_ATTRIBUTES = [ - 'size', - 'buildId', + 'buildSize', + 'sourceSize', + 'totalSize', + 'buildDuration', + 'status', 'activate', - 'entrypoint', - 'commands', 'type', - 'size' ]; /** diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/DevKeys.php b/src/Appwrite/Utopia/Database/Validator/Queries/DevKeys.php new file mode 100644 index 00000000000..d9dbbeadc45 --- /dev/null +++ b/src/Appwrite/Utopia/Database/Validator/Queries/DevKeys.php @@ -0,0 +1,20 @@ +<?php + +namespace Appwrite\Utopia\Database\Validator\Queries; + +class DevKeys extends Base +{ + public const ALLOWED_ATTRIBUTES = [ + 'accessedAt', + 'expire', + ]; + + /** + * Expression constructor + * + */ + public function __construct() + { + parent::__construct('devKeys', self::ALLOWED_ATTRIBUTES); + } +} diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/FileTokens.php b/src/Appwrite/Utopia/Database/Validator/Queries/FileTokens.php new file mode 100644 index 00000000000..c712ab32613 --- /dev/null +++ b/src/Appwrite/Utopia/Database/Validator/Queries/FileTokens.php @@ -0,0 +1,19 @@ +<?php + +namespace Appwrite\Utopia\Database\Validator\Queries; + +class FileTokens extends Base +{ + public const ALLOWED_ATTRIBUTES = [ + 'expire', + ]; + + /** + * Expression constructor + * + */ + public function __construct() + { + parent::__construct('files', self::ALLOWED_ATTRIBUTES); + } +} diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php b/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php index 89f5d52c81e..894ee26e3f1 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php @@ -8,7 +8,7 @@ class Functions extends Base 'name', 'enabled', 'runtime', - 'deployment', + 'deploymentId', 'schedule', 'scheduleNext', 'schedulePrevious', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Logs.php b/src/Appwrite/Utopia/Database/Validator/Queries/Logs.php new file mode 100644 index 00000000000..d07d3dd3d21 --- /dev/null +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Logs.php @@ -0,0 +1,24 @@ +<?php + +namespace Appwrite\Utopia\Database\Validator\Queries; + +class Logs extends Base +{ + public const ALLOWED_ATTRIBUTES = [ + 'status', + 'responseStatusCode', + 'duration', + 'requestMethod', + 'requestPath', + 'deploymentId' + ]; + + /** + * Expression constructor + * + */ + public function __construct() + { + parent::__construct('executions', self::ALLOWED_ATTRIBUTES); //TODO: Update this later + } +} diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Memberships.php b/src/Appwrite/Utopia/Database/Validator/Queries/Memberships.php index 5ff00986628..cef562ba2c1 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Memberships.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Memberships.php @@ -9,12 +9,12 @@ class Memberships extends Base 'teamId', 'invited', 'joined', - 'confirm' + 'confirm', + 'roles', ]; /** * Expression constructor - * */ public function __construct() { diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php b/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php index 6b9e9e6d321..436a95534ba 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php @@ -8,6 +8,7 @@ class Migrations extends Base 'status', 'stage', 'source', + 'destination', 'resources', 'statusCounters', 'resourceData', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Rules.php b/src/Appwrite/Utopia/Database/Validator/Queries/Rules.php index 24cb4475f2e..c8057162a89 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Rules.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Rules.php @@ -6,9 +6,12 @@ class Rules extends Base { public const ALLOWED_ATTRIBUTES = [ 'domain', - 'resourceType', - 'resourceId', - 'url' + 'type', + 'trigger', + 'deploymentResourceType', + 'deploymentResourceId', + 'deploymentId', + 'deploymentVcsProviderBranch' ]; /** diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Sites.php b/src/Appwrite/Utopia/Database/Validator/Queries/Sites.php new file mode 100644 index 00000000000..35d4bdb5efa --- /dev/null +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Sites.php @@ -0,0 +1,26 @@ +<?php + +namespace Appwrite\Utopia\Database\Validator\Queries; + +class Sites extends Base +{ + public const ALLOWED_ATTRIBUTES = [ + 'name', + 'enabled', + 'framework', + 'deploymentId', + 'buildCommand', + 'installCommand', + 'outputDirectory', + 'installationId' + ]; + + /** + * Expression constructor + * + */ + public function __construct() + { + parent::__construct('sites', self::ALLOWED_ATTRIBUTES); + } +} diff --git a/src/Appwrite/Utopia/Request.php b/src/Appwrite/Utopia/Request.php index 3f0a196d5e6..558f0cdf097 100644 --- a/src/Appwrite/Utopia/Request.php +++ b/src/Appwrite/Utopia/Request.php @@ -2,8 +2,11 @@ namespace Appwrite\Utopia; +use Appwrite\Auth\Auth; +use Appwrite\SDK\Method; use Appwrite\Utopia\Request\Filter; use Swoole\Http\Request as SwooleRequest; +use Utopia\Database\Validator\Authorization; use Utopia\Route; use Utopia\Swoole\Request as UtopiaRequest; @@ -27,13 +30,49 @@ public function getParams(): array { $parameters = parent::getParams(); - if ($this->hasFilters() && self::hasRoute()) { - $method = self::getRoute()->getLabel('sdk.method', 'unknown'); - $endpointIdentifier = self::getRoute()->getLabel('sdk.namespace', 'unknown') . '.' . $method; + if (!$this->hasFilters() || !self::hasRoute()) { + return $parameters; + } + + $methods = self::getRoute()->getLabel('sdk', null); + + if (empty($methods)) { + return $parameters; + } + if (!\is_array($methods)) { + $id = $methods->getNamespace() . '.' . $methods->getMethodName(); foreach ($this->getFilters() as $filter) { - $parameters = $filter->parse($parameters, $endpointIdentifier); + $parameters = $filter->parse($parameters, $id); } + return $parameters; + } + + $matched = null; + foreach ($methods as $method) { + /** @var Method|null $method */ + if ($method === null) { + continue; + } + + // Find the method that matches the parameters passed + $methodParamNames = \array_map(fn ($param) => $param->getName(), $method->getParameters()); + $invalidParams = \array_diff(\array_keys($parameters), $methodParamNames); + + // No params defined, or all params are valid + if (empty($methodParamNames) || empty($invalidParams)) { + $matched = $method; + break; + } + } + + $id = $matched !== null + ? $matched->getNamespace() . '.' . $matched->getMethodName() + : 'unknown.unknown'; + + // Apply filters + foreach ($this->getFilters() as $filter) { + $parameters = $filter->parse($parameters, $id); } return $parameters; @@ -122,7 +161,11 @@ public static function hasRoute(): bool */ public function getHeaders(): array { - $headers = $this->generateHeaders(); + try { + $headers = $this->generateHeaders(); + } catch (\Throwable) { + $headers = []; + } if (empty($this->swoole->cookie)) { return $headers; @@ -154,4 +197,40 @@ public function getHeader(string $key, string $default = ''): string $headers = $this->getHeaders(); return $headers[$key] ?? $default; } + + /** + * Get User Agent + * + * Method for getting User Agent. Preferring forwarded agent for privileged users; otherwise returns default. + * + * @param string $default + * @return string + */ + public function getUserAgent(string $default = ''): string + { + $forwardedUserAgent = $this->getHeader('x-forwarded-user-agent'); + if (!empty($forwardedUserAgent)) { + $roles = Authorization::getRoles(); + $isAppUser = Auth::isAppUser($roles); + + if ($isAppUser) { + return $forwardedUserAgent; + } + } + + return UtopiaRequest::getUserAgent($default); + } + + /** + * Creates a unique stable cache identifier for this GET request. + * Stable-sorts query params, use `serialize` to ensure key&value are part of cache keys. + * + * @return string + */ + public function cacheIdentifier(): string + { + $params = $this->getParams(); + ksort($params); + return md5($this->getURI() . '*' . serialize($params) . '*' . APP_CACHE_BUSTER); + } } diff --git a/src/Appwrite/Utopia/Request/Filters/V19.php b/src/Appwrite/Utopia/Request/Filters/V19.php new file mode 100644 index 00000000000..31296b2eb21 --- /dev/null +++ b/src/Appwrite/Utopia/Request/Filters/V19.php @@ -0,0 +1,25 @@ +<?php + +namespace Appwrite\Utopia\Request\Filters; + +use Appwrite\Utopia\Request\Filter; + +class V19 extends Filter +{ + // Convert 1.6 params to 1.7 + public function parse(array $content, string $model): array + { + switch ($model) { + case 'functions.create': + unset($content['templateRepository']); + unset($content['templateOwner']); + unset($content['templateRootDirectory']); + unset($content['templateVersion']); + break; + case 'functions.listExecutions': + unset($content['search']); + break; + } + return $content; + } +} diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index a2c07d34b09..3d69ac1291c 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -2,6 +2,7 @@ namespace Appwrite\Utopia; +use Appwrite\Auth\Auth; use Appwrite\Utopia\Fetch\BodyMultipart; use Appwrite\Utopia\Response\Filter; use Appwrite\Utopia\Response\Model; @@ -30,7 +31,6 @@ use Appwrite\Utopia\Response\Model\BaseList; use Appwrite\Utopia\Response\Model\Branch; use Appwrite\Utopia\Response\Model\Bucket; -use Appwrite\Utopia\Response\Model\Build; use Appwrite\Utopia\Response\Model\Collection; use Appwrite\Utopia\Response\Model\ConsoleVariables; use Appwrite\Utopia\Response\Model\Continent; @@ -38,12 +38,16 @@ use Appwrite\Utopia\Response\Model\Currency; use Appwrite\Utopia\Response\Model\Database; use Appwrite\Utopia\Response\Model\Deployment; -use Appwrite\Utopia\Response\Model\Detection; +use Appwrite\Utopia\Response\Model\DetectionFramework; +use Appwrite\Utopia\Response\Model\DetectionRuntime; +use Appwrite\Utopia\Response\Model\DevKey; use Appwrite\Utopia\Response\Model\Document as ModelDocument; use Appwrite\Utopia\Response\Model\Error; use Appwrite\Utopia\Response\Model\ErrorDev; use Appwrite\Utopia\Response\Model\Execution; use Appwrite\Utopia\Response\Model\File; +use Appwrite\Utopia\Response\Model\Framework; +use Appwrite\Utopia\Response\Model\FrameworkAdapter; use Appwrite\Utopia\Response\Model\Func; use Appwrite\Utopia\Response\Model\Headers; use Appwrite\Utopia\Response\Model\HealthAntivirus; @@ -81,16 +85,22 @@ use Appwrite\Utopia\Response\Model\Project; use Appwrite\Utopia\Response\Model\Provider; use Appwrite\Utopia\Response\Model\ProviderRepository; +use Appwrite\Utopia\Response\Model\ProviderRepositoryFramework; +use Appwrite\Utopia\Response\Model\ProviderRepositoryRuntime; +use Appwrite\Utopia\Response\Model\ResourceToken; use Appwrite\Utopia\Response\Model\Rule; use Appwrite\Utopia\Response\Model\Runtime; use Appwrite\Utopia\Response\Model\Session; +use Appwrite\Utopia\Response\Model\Site; use Appwrite\Utopia\Response\Model\Specification; use Appwrite\Utopia\Response\Model\Subscriber; use Appwrite\Utopia\Response\Model\Target; use Appwrite\Utopia\Response\Model\Team; use Appwrite\Utopia\Response\Model\TemplateEmail; +use Appwrite\Utopia\Response\Model\TemplateFramework; use Appwrite\Utopia\Response\Model\TemplateFunction; use Appwrite\Utopia\Response\Model\TemplateRuntime; +use Appwrite\Utopia\Response\Model\TemplateSite; use Appwrite\Utopia\Response\Model\TemplateSMS; use Appwrite\Utopia\Response\Model\TemplateVariable; use Appwrite\Utopia\Response\Model\Token; @@ -102,6 +112,8 @@ use Appwrite\Utopia\Response\Model\UsageFunction; use Appwrite\Utopia\Response\Model\UsageFunctions; use Appwrite\Utopia\Response\Model\UsageProject; +use Appwrite\Utopia\Response\Model\UsageSite; +use Appwrite\Utopia\Response\Model\UsageSites; use Appwrite\Utopia\Response\Model\UsageStorage; use Appwrite\Utopia\Response\Model\UsageUsers; use Appwrite\Utopia\Response\Model\User; @@ -113,6 +125,7 @@ use Swoole\Http\Response as SwooleHTTPResponse; // Keep last use Utopia\Database\Document; +use Utopia\Database\Validator\Authorization; use Utopia\Swoole\Response as SwooleResponse; /** @@ -140,6 +153,8 @@ class Response extends SwooleResponse public const MODEL_USAGE_STORAGE = 'usageStorage'; public const MODEL_USAGE_FUNCTIONS = 'usageFunctions'; public const MODEL_USAGE_FUNCTION = 'usageFunction'; + public const MODEL_USAGE_SITES = 'usageSites'; + public const MODEL_USAGE_SITE = 'usageSite'; public const MODEL_USAGE_PROJECT = 'usageProject'; // Database @@ -199,6 +214,8 @@ class Response extends SwooleResponse public const MODEL_FILE_LIST = 'fileList'; public const MODEL_BUCKET = 'bucket'; public const MODEL_BUCKET_LIST = 'bucketList'; + public const MODEL_RESOURCE_TOKEN = 'resourceToken'; + public const MODEL_RESOURCE_TOKEN_LIST = 'resourceTokenList'; // Locale public const MODEL_LOCALE = 'locale'; @@ -238,12 +255,27 @@ class Response extends SwooleResponse public const MODEL_INSTALLATION_LIST = 'installationList'; public const MODEL_PROVIDER_REPOSITORY = 'providerRepository'; public const MODEL_PROVIDER_REPOSITORY_LIST = 'providerRepositoryList'; + public const MODEL_PROVIDER_REPOSITORY_FRAMEWORK = 'providerRepositoryFramework'; + public const MODEL_PROVIDER_REPOSITORY_FRAMEWORK_LIST = 'providerRepositoryFrameworkList'; + public const MODEL_PROVIDER_REPOSITORY_RUNTIME = 'providerRepositoryRuntime'; + public const MODEL_PROVIDER_REPOSITORY_RUNTIME_LIST = 'providerRepositoryRuntimeList'; public const MODEL_BRANCH = 'branch'; public const MODEL_BRANCH_LIST = 'branchList'; - public const MODEL_DETECTION = 'detection'; + public const MODEL_DETECTION_FRAMEWORK = 'detectionFramework'; + public const MODEL_DETECTION_RUNTIME = 'detectionRuntime'; public const MODEL_VCS_CONTENT = 'vcsContent'; public const MODEL_VCS_CONTENT_LIST = 'vcsContentList'; + // Sites + public const MODEL_SITE = 'site'; + public const MODEL_SITE_LIST = 'siteList'; + public const MODEL_FRAMEWORK = 'framework'; + public const MODEL_FRAMEWORK_LIST = 'frameworkList'; + public const MODEL_FRAMEWORK_ADAPTER = 'frameworkAdapter'; + public const MODEL_TEMPLATE_SITE = 'templateSite'; + public const MODEL_TEMPLATE_SITE_LIST = 'templateSiteList'; + public const MODEL_TEMPLATE_FRAMEWORK = 'templateFramework'; + // Functions public const MODEL_FUNCTION = 'function'; public const MODEL_FUNCTION_LIST = 'functionList'; @@ -253,8 +285,6 @@ class Response extends SwooleResponse public const MODEL_DEPLOYMENT_LIST = 'deploymentList'; public const MODEL_EXECUTION = 'execution'; public const MODEL_EXECUTION_LIST = 'executionList'; - public const MODEL_BUILD = 'build'; - public const MODEL_BUILD_LIST = 'buildList'; // Not used anywhere yet public const MODEL_FUNC_PERMISSIONS = 'funcPermissions'; public const MODEL_HEADERS = 'headers'; public const MODEL_SPECIFICATION = 'specification'; @@ -282,6 +312,8 @@ class Response extends SwooleResponse public const MODEL_WEBHOOK_LIST = 'webhookList'; public const MODEL_KEY = 'key'; public const MODEL_KEY_LIST = 'keyList'; + public const MODEL_DEV_KEY = 'devKey'; + public const MODEL_DEV_KEY_LIST = 'devKeyList'; public const MODEL_MOCK_NUMBER = 'mockNumber'; public const MODEL_AUTH_PROVIDER = 'authProvider'; public const MODEL_AUTH_PROVIDER_LIST = 'authProviderList'; @@ -325,6 +357,11 @@ class Response extends SwooleResponse */ protected array $payload = []; + /** + * @var bool + */ + protected static bool $showSensitive = false; + /** * Response constructor. * @@ -349,20 +386,25 @@ public function __construct(SwooleHTTPResponse $response) ->setModel(new BaseList('Logs List', self::MODEL_LOG_LIST, 'logs', self::MODEL_LOG)) ->setModel(new BaseList('Files List', self::MODEL_FILE_LIST, 'files', self::MODEL_FILE)) ->setModel(new BaseList('Buckets List', self::MODEL_BUCKET_LIST, 'buckets', self::MODEL_BUCKET)) + ->setModel(new BaseList('Resource Tokens List', self::MODEL_RESOURCE_TOKEN_LIST, 'tokens', self::MODEL_RESOURCE_TOKEN)) ->setModel(new BaseList('Teams List', self::MODEL_TEAM_LIST, 'teams', self::MODEL_TEAM)) ->setModel(new BaseList('Memberships List', self::MODEL_MEMBERSHIP_LIST, 'memberships', self::MODEL_MEMBERSHIP)) + ->setModel(new BaseList('Sites List', self::MODEL_SITE_LIST, 'sites', self::MODEL_SITE)) + ->setModel(new BaseList('Site Templates List', self::MODEL_TEMPLATE_SITE_LIST, 'templates', self::MODEL_TEMPLATE_SITE)) ->setModel(new BaseList('Functions List', self::MODEL_FUNCTION_LIST, 'functions', self::MODEL_FUNCTION)) ->setModel(new BaseList('Function Templates List', self::MODEL_TEMPLATE_FUNCTION_LIST, 'templates', self::MODEL_TEMPLATE_FUNCTION)) ->setModel(new BaseList('Installations List', self::MODEL_INSTALLATION_LIST, 'installations', self::MODEL_INSTALLATION)) - ->setModel(new BaseList('Provider Repositories List', self::MODEL_PROVIDER_REPOSITORY_LIST, 'providerRepositories', self::MODEL_PROVIDER_REPOSITORY)) + ->setModel(new BaseList('Framework Provider Repositories List', self::MODEL_PROVIDER_REPOSITORY_FRAMEWORK_LIST, 'frameworkProviderRepositories', self::MODEL_PROVIDER_REPOSITORY_FRAMEWORK)) + ->setModel(new BaseList('Runtime Provider Repositories List', self::MODEL_PROVIDER_REPOSITORY_RUNTIME_LIST, 'runtimeProviderRepositories', self::MODEL_PROVIDER_REPOSITORY_RUNTIME)) ->setModel(new BaseList('Branches List', self::MODEL_BRANCH_LIST, 'branches', self::MODEL_BRANCH)) + ->setModel(new BaseList('Frameworks List', self::MODEL_FRAMEWORK_LIST, 'frameworks', self::MODEL_FRAMEWORK)) ->setModel(new BaseList('Runtimes List', self::MODEL_RUNTIME_LIST, 'runtimes', self::MODEL_RUNTIME)) ->setModel(new BaseList('Deployments List', self::MODEL_DEPLOYMENT_LIST, 'deployments', self::MODEL_DEPLOYMENT)) ->setModel(new BaseList('Executions List', self::MODEL_EXECUTION_LIST, 'executions', self::MODEL_EXECUTION)) - ->setModel(new BaseList('Builds List', self::MODEL_BUILD_LIST, 'builds', self::MODEL_BUILD)) // Not used anywhere yet ->setModel(new BaseList('Projects List', self::MODEL_PROJECT_LIST, 'projects', self::MODEL_PROJECT, true, false)) ->setModel(new BaseList('Webhooks List', self::MODEL_WEBHOOK_LIST, 'webhooks', self::MODEL_WEBHOOK, true, false)) ->setModel(new BaseList('API Keys List', self::MODEL_KEY_LIST, 'keys', self::MODEL_KEY, true, false)) + ->setModel(new BaseList('Dev Keys List', self::MODEL_DEV_KEY_LIST, 'devKeys', self::MODEL_DEV_KEY, true, false)) ->setModel(new BaseList('Auth Providers List', self::MODEL_AUTH_PROVIDER_LIST, 'platforms', self::MODEL_AUTH_PROVIDER, true, false)) ->setModel(new BaseList('Platforms List', self::MODEL_PLATFORM_LIST, 'platforms', self::MODEL_PLATFORM, true, false)) ->setModel(new BaseList('Countries List', self::MODEL_COUNTRY_LIST, 'countries', self::MODEL_COUNTRY)) @@ -420,24 +462,33 @@ public function __construct(SwooleHTTPResponse $response) ->setModel(new LocaleCode()) ->setModel(new File()) ->setModel(new Bucket()) + ->setModel(new ResourceToken()) ->setModel(new Team()) ->setModel(new Membership()) + ->setModel(new Site()) + ->setModel(new TemplateSite()) + ->setModel(new TemplateFramework()) ->setModel(new Func()) ->setModel(new TemplateFunction()) ->setModel(new TemplateRuntime()) ->setModel(new TemplateVariable()) ->setModel(new Installation()) ->setModel(new ProviderRepository()) - ->setModel(new Detection()) + ->setModel(new ProviderRepositoryFramework()) + ->setModel(new ProviderRepositoryRuntime()) + ->setModel(new DetectionFramework()) + ->setModel(new DetectionRuntime()) ->setModel(new VcsContent()) ->setModel(new Branch()) ->setModel(new Runtime()) + ->setModel(new Framework()) + ->setModel(new FrameworkAdapter()) ->setModel(new Deployment()) ->setModel(new Execution()) - ->setModel(new Build()) ->setModel(new Project()) ->setModel(new Webhook()) ->setModel(new Key()) + ->setModel(new DevKey()) ->setModel(new MockNumber()) ->setModel(new AuthProvider()) ->setModel(new Platform()) @@ -463,6 +514,8 @@ public function __construct(SwooleHTTPResponse $response) ->setModel(new UsageBuckets()) ->setModel(new UsageFunctions()) ->setModel(new UsageFunction()) + ->setModel(new UsageSites()) + ->setModel(new UsageSite()) ->setModel(new UsageProject()) ->setModel(new Headers()) ->setModel(new Specification()) @@ -625,6 +678,11 @@ public function output(Document $document, string $model): array } } + if (!$data->isSet($key) && !$rule['required']) { // set output key null if data key is not set and required is false + $output[$key] = null; + continue; + } + if ($rule['array']) { if (!is_array($data[$key])) { throw new Exception($key . ' must be an array of type ' . $rule['type']); @@ -663,6 +721,16 @@ public function output(Document $document, string $model): array } } + if ($rule['sensitive']) { + $roles = Authorization::getRoles(); + $isPrivilegedUser = Auth::isPrivilegedUser($roles); + $isAppUser = Auth::isAppUser($roles); + + if ((!$isPrivilegedUser && !$isAppUser) && !self::$showSensitive) { + $data->setAttribute($key, ''); + } + } + $output[$key] = $data[$key]; } @@ -818,4 +886,20 @@ public function setHeader(string $key, string $value): void { $this->sendHeader($key, $value); } + + /** + * Static wrapper to show sensitive data in response + * + * @param callable The callback to show sensitive information for + * @return array + */ + public static function showSensitive(callable $callback): array + { + try { + self::$showSensitive = true; + return $callback(); + } finally { + self::$showSensitive = false; + } + } } diff --git a/src/Appwrite/Utopia/Response/Filters/V16.php b/src/Appwrite/Utopia/Response/Filters/V16.php index 2a27715d5e0..7eb3ec6eb37 100644 --- a/src/Appwrite/Utopia/Response/Filters/V16.php +++ b/src/Appwrite/Utopia/Response/Filters/V16.php @@ -33,13 +33,13 @@ public function parse(array $content, string $model): array protected function parseDeployment(array $content) { - if(isset($content['buildLogs'])) { + if (isset($content['buildLogs'])) { $content['buildStderr'] = ''; $content['buildStdout'] = $content['buildLogs']; unset($content['buildLogs']); } - if(isset($content['buildSize'])) { + if (isset($content['buildSize'])) { $content['size'] += + $content['buildSize'] ?? 0; unset($content['buildSize']); } diff --git a/src/Appwrite/Utopia/Response/Filters/V18.php b/src/Appwrite/Utopia/Response/Filters/V18.php index 0a74a2afeda..fc1624a2897 100644 --- a/src/Appwrite/Utopia/Response/Filters/V18.php +++ b/src/Appwrite/Utopia/Response/Filters/V18.php @@ -25,8 +25,8 @@ public function parse(array $content, string $model): array protected function parseExecution(array $content) { - if(!empty($content['status']) && !empty($content['statusCode'])) { - if($content['status'] === 'completed' && $content['statusCode'] >= 400 && $content['statusCode'] < 500) { + if (!empty($content['status']) && !empty($content['statusCode'])) { + if ($content['status'] === 'completed' && $content['statusCode'] >= 400 && $content['statusCode'] < 500) { $content['status'] = 'failed'; } } diff --git a/src/Appwrite/Utopia/Response/Filters/V19.php b/src/Appwrite/Utopia/Response/Filters/V19.php new file mode 100644 index 00000000000..8ab430e5694 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Filters/V19.php @@ -0,0 +1,119 @@ +<?php + +namespace Appwrite\Utopia\Response\Filters; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Filter; + +class V19 extends Filter +{ + // Convert 1.7 Data format to 1.6 format + public function parse(array $content, string $model): array + { + $parsedResponse = $content; + + $parsedResponse = match($model) { + Response::MODEL_FUNCTION => $this->parseFunction($content), + Response::MODEL_FUNCTION_LIST => $this->handleList($content, 'functions', fn ($item) => $this->parseFunction($item)), + Response::MODEL_DEPLOYMENT => $this->parseDeployment($content), + Response::MODEL_PROXY_RULE => $this->parseProxyRule($content), + Response::MODEL_MIGRATION => $this->parseMigration($content), + Response::MODEL_PROJECT => $this->parseProject($content), + Response::MODEL_PROVIDER_REPOSITORY => $this->parseProviderRepository($content), + Response::MODEL_TEMPLATE_VARIABLE => $this->parseTemplateVariable($content), + Response::MODEL_USAGE_FUNCTION => $this->parseUsageFunction($content), + Response::MODEL_USAGE_FUNCTIONS => $this->parseUsageFunctions($content), + Response::MODEL_VARIABLE => $this->parseVariable($content), + default => $parsedResponse, + }; + + return $parsedResponse; + } + + protected function parseFunction(array $content) + { + $content['deployment'] = $content['deploymentId'] ?? ''; + unset($content['deploymentId']); + unset($content['deploymentCreatedAt']); + unset($content['latestDeploymentId']); + unset($content['latestDeploymentCreatedAt']); + unset($content['latestDeploymentStatus']); + return $content; + } + + protected function parseDeployment(array $content) + { + $content['size'] = $content['sourceSize'] ?? ''; + $content['buildTime'] = $content['buildDuration'] ?? ''; + unset($content['sourceSize']); + unset($content['buildDuration']); + unset($content['totalSize']); + unset($content['screenshotLight']); + unset($content['screenshotDark']); + return $content; + } + + protected function parseProxyRule(array $content) + { + $content['resourceType'] = $content['deploymentResourceType'] ?? ''; + $content['resourceId'] = $content['deploymentResourceId'] ?? ''; + unset($content['deploymentResourceType']); + unset($content['deploymentResourceId']); + unset($content['type']); + unset($content['trigger']); + unset($content['triggerData']); + unset($content['redirectStatusCode']); + unset($content['deploymentId']); + unset($content['deploymentVcsProviderBranch']); + return $content; + } + + protected function parseMigration(array $content) + { + unset($content['resourceId']); + return $content; + } + + protected function parseProject(array $content) + { + unset($content['devKeys']); + return $content; + } + + protected function parseProviderRepository(array $content) + { + unset($content['runtime']); + return $content; + } + + protected function parseTemplateVariable(array $content) + { + unset($content['secret']); + return $content; + } + + protected function parseUsageFunction(array $content) + { + unset($content['buildsSuccessTotal']); + unset($content['buildsFailedTotal']); + unset($content['buildsTimeAverage']); + unset($content['buildsSuccess']); + unset($content['buildsFailed']); + return $content; + } + + protected function parseUsageFunctions(array $content) + { + unset($content['buildsSuccessTotal']); + unset($content['buildsFailedTotal']); + unset($content['buildsSuccess']); + unset($content['buildsFailed']); + return $content; + } + + protected function parseVariable(array $content) + { + unset($content['secret']); + return $content; + } +} diff --git a/src/Appwrite/Utopia/Response/Model.php b/src/Appwrite/Utopia/Response/Model.php index 8a0bb78cba7..32de9fa0356 100644 --- a/src/Appwrite/Utopia/Response/Model.php +++ b/src/Appwrite/Utopia/Response/Model.php @@ -14,6 +14,7 @@ abstract class Model public const TYPE_DATETIME = 'datetime'; public const TYPE_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00'; public const TYPE_RELATIONSHIP = 'relationship'; + public const TYPE_PAYLOAD = 'payload'; /** * @var bool @@ -89,7 +90,8 @@ protected function addRule(string $key, array $options): self 'required' => true, 'array' => false, 'description' => '', - 'example' => '' + 'example' => '', + 'sensitive' => false ], $options); return $this; diff --git a/src/Appwrite/Utopia/Response/Model/Attribute.php b/src/Appwrite/Utopia/Response/Model/Attribute.php index 9f9ceca3176..8c43f8d21c6 100644 --- a/src/Appwrite/Utopia/Response/Model/Attribute.php +++ b/src/Appwrite/Utopia/Response/Model/Attribute.php @@ -47,7 +47,18 @@ public function __construct() 'required' => false, 'example' => false, ]) - ; + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Attribute creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('$updatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Attribute update date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]); } public array $conditions = []; diff --git a/src/Appwrite/Utopia/Response/Model/Build.php b/src/Appwrite/Utopia/Response/Model/Build.php deleted file mode 100644 index d80c17645aa..00000000000 --- a/src/Appwrite/Utopia/Response/Model/Build.php +++ /dev/null @@ -1,94 +0,0 @@ -<?php - -namespace Appwrite\Utopia\Response\Model; - -use Appwrite\Utopia\Response; -use Appwrite\Utopia\Response\Model; - -class Build extends Model -{ - public function __construct() - { - $this - ->addRule('$id', [ - 'type' => self::TYPE_STRING, - 'description' => 'Build ID.', - 'default' => '', - 'example' => '5e5ea5c16897e', - ]) - ->addRule('deploymentId', [ - 'type' => self::TYPE_STRING, - 'description' => 'The deployment that created this build.', - 'default' => '', - 'example' => '5e5ea5c16897e', - ]) - // Build Status - // Failed - The deployment build has failed. More details can usually be found in buildStderr - // Ready - The deployment build was successful and the deployment is ready to be deployed - // Processing - The deployment is currently waiting to have a build triggered - // Building - The deployment is currently being built - ->addRule('status', [ - 'type' => self::TYPE_STRING, - 'description' => 'The build status. There are a few different types and each one means something different. \nFailed - The deployment build has failed. More details can usually be found in buildStderr\nReady - The deployment build was successful and the deployment is ready to be deployed\nProcessing - The deployment is currently waiting to have a build triggered\nBuilding - The deployment is currently being built', - 'default' => '', - 'example' => 'ready', - ]) - ->addRule('stdout', [ - 'type' => self::TYPE_STRING, - 'description' => 'The stdout of the build.', - 'default' => '', - 'example' => '', - ]) - ->addRule('stderr', [ - 'type' => self::TYPE_STRING, - 'description' => 'The stderr of the build.', - 'default' => '', - 'example' => '', - ]) - ->addRule('startTime', [ - 'type' => self::TYPE_DATETIME, - 'description' => 'The deployment creation date in ISO 8601 format.', - 'default' => '', - 'example' => self::TYPE_DATETIME_EXAMPLE, - ]) - ->addRule('endTime', [ - 'type' => self::TYPE_DATETIME, - 'description' => 'The time the build was finished in ISO 8601 format.', - 'default' => '', - 'example' => self::TYPE_DATETIME_EXAMPLE, - ]) - ->addRule('duration', [ - 'type' => self::TYPE_INTEGER, - 'description' => 'The build duration in seconds.', - 'default' => 0, - 'example' => 0, - ]) - ->addRule('size', [ - 'type' => self::TYPE_INTEGER, - 'description' => 'The code size in bytes.', - 'default' => 0, - 'example' => 128, - ]) - ; - } - - /** - * Get Name - * - * @return string - */ - public function getName(): string - { - return 'Build'; - } - - /** - * Get Type - * - * @return string - */ - public function getType(): string - { - return Response::MODEL_BUILD; - } -} diff --git a/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php b/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php index a82b8008cc6..97dae2efcdb 100644 --- a/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php +++ b/src/Appwrite/Utopia/Response/Model/ConsoleVariables.php @@ -10,19 +10,31 @@ class ConsoleVariables extends Model public function __construct() { $this - ->addRule('_APP_DOMAIN_TARGET', [ - 'type' => self::TYPE_STRING, - 'description' => 'CNAME target for your Appwrite custom domains.', - 'default' => '', - 'example' => 'appwrite.io', - ]) + ->addRule('_APP_DOMAIN_TARGET_CNAME', [ + 'type' => self::TYPE_STRING, + 'description' => 'CNAME target for your Appwrite custom domains.', + 'default' => '', + 'example' => 'appwrite.io', + ]) + ->addRule('_APP_DOMAIN_TARGET_A', [ + 'type' => self::TYPE_STRING, + 'description' => 'A target for your Appwrite custom domains.', + 'default' => '', + 'example' => '127.0.0.1', + ]) + ->addRule('_APP_DOMAIN_TARGET_AAAA', [ + 'type' => self::TYPE_STRING, + 'description' => 'AAAA target for your Appwrite custom domains.', + 'default' => '', + 'example' => '::1', + ]) ->addRule('_APP_STORAGE_LIMIT', [ 'type' => self::TYPE_INTEGER, 'description' => 'Maximum file size allowed for file upload in bytes.', 'default' => '', 'example' => '30000000', ]) - ->addRule('_APP_FUNCTIONS_SIZE_LIMIT', [ + ->addRule('_APP_COMPUTE_SIZE_LIMIT', [ 'type' => self::TYPE_INTEGER, 'description' => 'Maximum file size allowed for deployment in bytes.', 'default' => '', @@ -51,7 +63,37 @@ public function __construct() 'description' => 'Defines if AI assistant is enabled.', 'default' => false, 'example' => true, - ]); + ]) + ->addRule('_APP_DOMAIN_SITES', [ + 'type' => self::TYPE_STRING, + 'description' => 'A domain to use for site URLs.', + 'default' => '', + 'example' => 'sites.localhost', + ]) + ->addRule('_APP_DOMAIN_FUNCTIONS', [ + 'type' => self::TYPE_STRING, + 'description' => 'A domain to use for function URLs.', + 'default' => '', + 'example' => 'functions.localhost', + ]) + ->addRule( + '_APP_OPTIONS_FORCE_HTTPS', + [ + 'type' => self::TYPE_STRING, + 'description' => 'Defines if HTTPS is enforced for all requests.', + 'default' => '', + 'example' => 'enabled', + ] + ) + ->addRule( + '_APP_DOMAINS_NAMESERVERS', + [ + 'type' => self::TYPE_STRING, + 'description' => 'Comma-separated list of nameservers.', + 'default' => '', + 'example' => 'ns1.example.com,ns2.example.com', + ] + ); } /** diff --git a/src/Appwrite/Utopia/Response/Model/Deployment.php b/src/Appwrite/Utopia/Response/Model/Deployment.php index 91a9f409565..55c1589af01 100644 --- a/src/Appwrite/Utopia/Response/Model/Deployment.php +++ b/src/Appwrite/Utopia/Response/Model/Deployment.php @@ -52,7 +52,7 @@ public function __construct() 'default' => '', 'example' => 'index.js', ]) - ->addRule('size', [ + ->addRule('sourceSize', [ 'type' => self::TYPE_INTEGER, 'description' => 'The code size in bytes.', 'default' => 0, @@ -64,6 +64,12 @@ public function __construct() 'default' => 0, 'example' => 128, ]) + ->addRule('totalSize', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'The total size in bytes (source and build output).', + 'default' => 0, + 'example' => 128, + ]) ->addRule('buildId', [ 'type' => self::TYPE_STRING, 'description' => 'The current build ID.', @@ -76,9 +82,21 @@ public function __construct() 'default' => false, 'example' => true, ]) + ->addRule('screenshotLight', [ + 'type' => self::TYPE_STRING, + 'description' => 'Screenshot with light theme preference file ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('screenshotDark', [ + 'type' => self::TYPE_STRING, + 'description' => 'Screenshot with dark theme preference file ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) ->addRule('status', [ 'type' => self::TYPE_STRING, - 'description' => 'The deployment status. Possible values are "processing", "building", "waiting", "ready", and "failed".', + 'description' => 'The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".', 'default' => '', 'example' => 'ready', ]) @@ -88,7 +106,7 @@ public function __construct() 'default' => '', 'example' => 'Compiling source files...', ]) - ->addRule('buildTime', [ + ->addRule('buildDuration', [ 'type' => self::TYPE_INTEGER, 'description' => 'The current build time in seconds.', 'default' => 0, diff --git a/src/Appwrite/Utopia/Response/Model/Detection.php b/src/Appwrite/Utopia/Response/Model/Detection.php deleted file mode 100644 index c71baa0b0cb..00000000000 --- a/src/Appwrite/Utopia/Response/Model/Detection.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - -namespace Appwrite\Utopia\Response\Model; - -use Appwrite\Utopia\Response; -use Appwrite\Utopia\Response\Model; - -class Detection extends Model -{ - public function __construct() - { - $this - ->addRule('runtime', [ - 'type' => self::TYPE_STRING, - 'description' => 'Runtime', - 'default' => '', - 'example' => 'node', - ]); - } - - /** - * Get Name - * - * @return string - */ - public function getName(): string - { - return 'Detection'; - } - - /** - * Get Type - * - * @return string - */ - public function getType(): string - { - return Response::MODEL_DETECTION; - } -} diff --git a/src/Appwrite/Utopia/Response/Model/DetectionFramework.php b/src/Appwrite/Utopia/Response/Model/DetectionFramework.php new file mode 100644 index 00000000000..9aeb885f763 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/DetectionFramework.php @@ -0,0 +1,58 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class DetectionFramework extends Model +{ + public function __construct() + { + $this + ->addRule('framework', [ + 'type' => self::TYPE_STRING, + 'description' => 'Framework', + 'default' => '', + 'example' => 'nuxt', + ]) + ->addRule('installCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site Install Command', + 'default' => '', + 'example' => 'npm install', + ]) + ->addRule('buildCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site Build Command', + 'default' => '', + 'example' => 'npm run build', + ]) + ->addRule('outputDirectory', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site Output Directory', + 'default' => '', + 'example' => 'dist', + ]); + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'DetectionFramework'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_DETECTION_FRAMEWORK; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/DetectionRuntime.php b/src/Appwrite/Utopia/Response/Model/DetectionRuntime.php new file mode 100644 index 00000000000..1c7c0be16b5 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/DetectionRuntime.php @@ -0,0 +1,52 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class DetectionRuntime extends Model +{ + public function __construct() + { + $this + ->addRule('runtime', [ + 'type' => self::TYPE_STRING, + 'description' => 'Runtime', + 'default' => '', + 'example' => 'node', + ]) + ->addRule('entrypoint', [ + 'type' => self::TYPE_STRING, + 'description' => 'Function Entrypoint', + 'default' => '', + 'example' => 'index.js', + ]) + ->addRule('commands', [ + 'type' => self::TYPE_STRING, + 'description' => 'Function install and build commands', + 'default' => '', + 'example' => 'npm install && npm run build', + ]); + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'DetectionRuntime'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_DETECTION_RUNTIME; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/DevKey.php b/src/Appwrite/Utopia/Response/Model/DevKey.php new file mode 100644 index 00000000000..b8da6c0cfc3 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/DevKey.php @@ -0,0 +1,89 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class DevKey extends Model +{ + /** + * @var bool + */ + protected bool $public = false; + + public function __construct() + { + $this + ->addRule('$id', [ + 'type' => self::TYPE_STRING, + 'description' => 'Key ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Key creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('$updatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Key update date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('name', [ + 'type' => self::TYPE_STRING, + 'description' => 'Key name.', + 'default' => '', + 'example' => 'Dev API Key', + ]) + ->addRule('expire', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Key expiration date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('secret', [ + 'type' => self::TYPE_STRING, + 'description' => 'Secret key.', + 'default' => '', + 'example' => '919c2d18fb5d4...a2ae413da83346ad2', + ]) + ->addRule('accessedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Most recent access date in ISO 8601 format. This attribute is only updated again after ' . APP_KEY_ACCESS / 60 / 60 . ' hours.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE + ]) + ->addRule('sdks', [ + 'type' => self::TYPE_STRING, + 'description' => 'List of SDK user agents that used this key.', + 'default' => null, + 'example' => 'appwrite:flutter', + 'array' => true + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'DevKey'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_DEV_KEY; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Document.php b/src/Appwrite/Utopia/Response/Model/Document.php index 242af6926f3..41a10cee890 100644 --- a/src/Appwrite/Utopia/Response/Model/Document.php +++ b/src/Appwrite/Utopia/Response/Model/Document.php @@ -72,7 +72,8 @@ public function __construct() public function filter(DatabaseDocument $document): DatabaseDocument { $document->removeAttribute('$internalId'); - $document->removeAttribute('$collection'); // $collection is the internal collection ID + $document->removeAttribute('$collection'); + $document->removeAttribute('$tenant'); foreach ($document->getAttributes() as $attribute) { if (\is_array($attribute)) { diff --git a/src/Appwrite/Utopia/Response/Model/Execution.php b/src/Appwrite/Utopia/Response/Model/Execution.php index 90fbdc9689c..d7d30fe549e 100644 --- a/src/Appwrite/Utopia/Response/Model/Execution.php +++ b/src/Appwrite/Utopia/Response/Model/Execution.php @@ -5,6 +5,7 @@ use Appwrite\Utopia\Response; use Appwrite\Utopia\Response\Model; use Utopia\Database\DateTime; +use Utopia\Database\Document; use Utopia\Database\Helpers\Role; class Execution extends Model @@ -84,7 +85,6 @@ public function __construct() 'type' => self::TYPE_STRING, 'description' => 'HTTP response body. This will return empty unless execution is created as synchronous.', 'default' => '', - 'example' => 'Developers are awesome.', ]) ->addRule('responseHeaders', [ 'type' => Response::MODEL_HEADERS, @@ -98,16 +98,18 @@ public function __construct() 'description' => 'Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.', 'default' => '', 'example' => '', + 'sensitive' => true, ]) ->addRule('errors', [ 'type' => self::TYPE_STRING, 'description' => 'Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.', 'default' => '', 'example' => '', + 'sensitive' => true, ]) ->addRule('duration', [ 'type' => self::TYPE_FLOAT, - 'description' => 'Function execution duration in seconds.', + 'description' => 'Resource(function/site) execution duration in seconds.', 'default' => 0, 'example' => 0.400, ]) @@ -140,4 +142,18 @@ public function getType(): string { return Response::MODEL_EXECUTION; } + + + /** + * Convert DB structure to response model + * + * @return Document + */ + public function filter(Document $document): Document + { + $document->removeAttribute('resourceType'); + $document->setAttribute('functionId', $document->getAttribute('resourceId', '')); + $document->removeAttribute('resourceId'); + return $document; + } } diff --git a/src/Appwrite/Utopia/Response/Model/Framework.php b/src/Appwrite/Utopia/Response/Model/Framework.php new file mode 100644 index 00000000000..14d40521330 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/Framework.php @@ -0,0 +1,67 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class Framework extends Model +{ + public function __construct() + { + $this + ->addRule('key', [ + 'type' => self::TYPE_STRING, + 'description' => 'Framework key.', + 'default' => '', + 'example' => 'sveltekit', + ]) + ->addRule('name', [ + 'type' => self::TYPE_STRING, + 'description' => 'Framework Name.', + 'default' => '', + 'example' => 'SvelteKit' + ]) + ->addRule('buildRuntime', [ + 'type' => self::TYPE_STRING, + 'description' => 'Default runtime version.', + 'default' => '', + 'example' => 'node-22', + ]) + ->addRule('runtimes', [ + 'type' => self::TYPE_STRING, + 'description' => 'List of supported runtime versions.', + 'default' => '', + 'example' => ['static-1', 'node-22'], + 'array' => true, + ]) + ->addRule('adapters', [ + 'type' => Response::MODEL_FRAMEWORK_ADAPTER, + 'description' => 'List of supported adapters.', + 'default' => '', + 'example' => [[ 'key' => 'static', 'buildRuntime' => 'node-22', 'buildCommand' => 'npm run build', 'installCommand' => 'npm install', 'outputDirectory' => './dist' ]], + 'array' => true, + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'Framework'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_FRAMEWORK; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/FrameworkAdapter.php b/src/Appwrite/Utopia/Response/Model/FrameworkAdapter.php new file mode 100644 index 00000000000..afbd78eda4e --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/FrameworkAdapter.php @@ -0,0 +1,65 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class FrameworkAdapter extends Model +{ + public function __construct() + { + $this + ->addRule('key', [ + 'type' => self::TYPE_STRING, + 'description' => 'Adapter key.', + 'default' => '', + 'example' => 'static', + ]) + ->addRule('installCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'Default command to download dependencies.', + 'default' => '', + 'example' => 'npm install', + ]) + ->addRule('buildCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'Default command to build site into output directory.', + 'default' => '', + 'example' => 'npm run build', + ]) + ->addRule('outputDirectory', [ + 'type' => self::TYPE_STRING, + 'description' => 'Default output directory of build.', + 'default' => '', + 'example' => './dist', + ]) + ->addRule('fallbackFile', [ + 'type' => self::TYPE_STRING, + 'description' => 'Name of fallback file to use instead of 404 page. If null, Appwrite 404 page will be displayed.', + 'default' => null, + 'example' => 'index.html', + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'Framework Adapter'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_FRAMEWORK_ADAPTER; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index f4ff214d0bd..e33d7663fdf 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -55,22 +55,46 @@ public function __construct() ]) ->addRule('logging', [ 'type' => self::TYPE_BOOLEAN, - 'description' => 'Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.', + 'description' => 'When disabled, executions will exclude logs and errors, and will be slightly faster.', 'default' => true, 'example' => false, ]) ->addRule('runtime', [ 'type' => self::TYPE_STRING, - 'description' => 'Function execution runtime.', + 'description' => 'Function execution and build runtime.', 'default' => '', 'example' => 'python-3.8', ]) - ->addRule('deployment', [ + ->addRule('deploymentId', [ 'type' => self::TYPE_STRING, 'description' => 'Function\'s active deployment ID.', 'default' => '', 'example' => '5e5ea5c16897e', ]) + ->addRule('deploymentCreatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Active deployment creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('latestDeploymentId', [ + 'type' => self::TYPE_STRING, + 'description' => 'Function\'s latest deployment ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('latestDeploymentCreatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Latest deployment creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('latestDeploymentStatus', [ + 'type' => self::TYPE_STRING, + 'description' => 'Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".', + 'default' => '', + 'example' => 'ready', + ]) ->addRule('scopes', [ 'type' => self::TYPE_STRING, 'description' => 'Allowed permission scopes.', @@ -94,7 +118,7 @@ public function __construct() ]) ->addRule('schedule', [ 'type' => self::TYPE_STRING, - 'description' => 'Function execution schedult in CRON format.', + 'description' => 'Function execution schedule in CRON format.', 'default' => '', 'example' => '5 4 * * *', ]) @@ -119,7 +143,7 @@ public function __construct() ->addRule('version', [ 'type' => self::TYPE_STRING, 'description' => 'Version of Open Runtimes used for the function.', - 'default' => 'v4', + 'default' => 'v5', 'example' => 'v2', ]) ->addRule('installationId', [ @@ -155,8 +179,8 @@ public function __construct() ->addRule('specification', [ 'type' => self::TYPE_STRING, 'description' => 'Machine specification for builds and executions.', - 'default' => APP_FUNCTION_SPECIFICATION_DEFAULT, - 'example' => APP_FUNCTION_SPECIFICATION_DEFAULT, + 'default' => APP_COMPUTE_SPECIFICATION_DEFAULT, + 'example' => APP_COMPUTE_SPECIFICATION_DEFAULT, ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/Index.php b/src/Appwrite/Utopia/Response/Model/Index.php index 3d3d1a3b526..fcd978b5bed 100644 --- a/src/Appwrite/Utopia/Response/Model/Index.php +++ b/src/Appwrite/Utopia/Response/Model/Index.php @@ -41,6 +41,13 @@ public function __construct() 'example' => [], 'array' => true, ]) + ->addRule('lengths', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Index attributes length.', + 'default' => [], + 'example' => [], + 'array' => true, + ]) ->addRule('orders', [ 'type' => self::TYPE_STRING, 'description' => 'Index orders.', @@ -49,13 +56,22 @@ public function __construct() 'array' => true, 'required' => false, ]) - ; + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Index creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('$updatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Index update date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]); } /** * Get Name - * - * @return string */ public function getName(): string { @@ -64,8 +80,6 @@ public function getName(): string /** * Get Collection - * - * @return string */ public function getType(): string { diff --git a/src/Appwrite/Utopia/Response/Model/Membership.php b/src/Appwrite/Utopia/Response/Model/Membership.php index 64283bd4a88..46153842bc5 100644 --- a/src/Appwrite/Utopia/Response/Model/Membership.php +++ b/src/Appwrite/Utopia/Response/Model/Membership.php @@ -36,13 +36,13 @@ public function __construct() ]) ->addRule('userName', [ 'type' => self::TYPE_STRING, - 'description' => 'User name.', + 'description' => 'User name. Hide this attribute by toggling membership privacy in the Console.', 'default' => '', 'example' => 'John Doe', ]) ->addRule('userEmail', [ 'type' => self::TYPE_STRING, - 'description' => 'User email address.', + 'description' => 'User email address. Hide this attribute by toggling membership privacy in the Console.', 'default' => '', 'example' => 'john@appwrite.io', ]) @@ -78,7 +78,7 @@ public function __construct() ]) ->addRule('mfa', [ 'type' => self::TYPE_BOOLEAN, - 'description' => 'Multi factor authentication status, true if the user has MFA enabled or false otherwise.', + 'description' => 'Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.', 'default' => false, 'example' => false, ]) diff --git a/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php b/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php index 29d56215322..ba46afcb77a 100644 --- a/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php +++ b/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php @@ -15,6 +15,7 @@ public function __construct() 'description' => 'Resource ID.', 'default' => '', 'example' => '5e5ea5c16897e', + 'required' => false, ]) ->addRule('name', [ 'type' => self::TYPE_STRING, @@ -27,6 +28,13 @@ public function __construct() 'description' => 'The value of this metric at the timestamp.', 'default' => 0, 'example' => 1, + ]) + ->addRule('estimate', [ + 'type' => self::TYPE_FLOAT, + 'description' => 'The estimated value of this metric at the end of the period.', + 'default' => 0, + 'example' => 1, + 'required' => false, ]); } diff --git a/src/Appwrite/Utopia/Response/Model/Migration.php b/src/Appwrite/Utopia/Response/Model/Migration.php index 5a54eef3ad5..3be1d519a64 100644 --- a/src/Appwrite/Utopia/Response/Model/Migration.php +++ b/src/Appwrite/Utopia/Response/Model/Migration.php @@ -18,7 +18,7 @@ public function __construct() ]) ->addRule('$createdAt', [ 'type' => self::TYPE_DATETIME, - 'description' => 'Variable creation date in ISO 8601 format.', + 'description' => 'Migration creation date in ISO 8601 format.', 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ]) @@ -46,13 +46,26 @@ public function __construct() 'default' => '', 'example' => 'Appwrite', ]) + ->addRule('destination', [ + 'type' => self::TYPE_STRING, + 'description' => 'A string containing the type of destination of the migration.', + 'default' => 'Appwrite', + 'example' => 'Appwrite', + ]) ->addRule('resources', [ 'type' => self::TYPE_STRING, - 'description' => 'Resources to migration.', + 'description' => 'Resources to migrate.', 'default' => [], 'example' => ['user'], 'array' => true ]) + ->addRule('resourceId', [ + 'type' => self::TYPE_STRING, + 'description' => 'Id of the resource to migrate.', + 'default' => '', + 'example' => 'databaseId:collectionId', + 'array' => false + ]) ->addRule('statusCounters', [ 'type' => self::TYPE_JSON, 'description' => 'A group of counters that represent the total progress of the migration.', diff --git a/src/Appwrite/Utopia/Response/Model/Project.php b/src/Appwrite/Utopia/Response/Model/Project.php index 80214aaa73a..efd002654e7 100644 --- a/src/Appwrite/Utopia/Response/Model/Project.php +++ b/src/Appwrite/Utopia/Response/Model/Project.php @@ -151,6 +151,24 @@ public function __construct() 'default' => false, 'example' => true, ]) + ->addRule('authMembershipsUserName', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether or not to show user names in the teams membership response.', + 'default' => false, + 'example' => true, + ]) + ->addRule('authMembershipsUserEmail', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether or not to show user emails in the teams membership response.', + 'default' => false, + 'example' => true, + ]) + ->addRule('authMembershipsMfa', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether or not to show user MFA status in the teams membership response.', + 'default' => false, + 'example' => true, + ]) ->addRule('oAuthProviders', [ 'type' => Response::MODEL_AUTH_PROVIDER, 'description' => 'List of Auth Providers.', @@ -179,6 +197,13 @@ public function __construct() 'example' => new \stdClass(), 'array' => true, ]) + ->addRule('devKeys', [ + 'type' => Response::MODEL_DEV_KEY, + 'description' => 'List of dev keys.', + 'default' => [], + 'example' => new \stdClass(), + 'array' => true, + ]) ->addRule('smtpEnabled', [ 'type' => self::TYPE_BOOLEAN, 'description' => 'Status for custom SMTP', @@ -234,6 +259,18 @@ public function __construct() 'default' => '', 'example' => 'tls', ]) + ->addRule('pingCount', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Number of times the ping was received for this project.', + 'default' => 0, + 'example' => 1, + ]) + ->addRule('pingedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Last ping datetime in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) ; $services = Config::getParam('services', []); @@ -293,9 +330,9 @@ public function getType(): string } /** - * Get Collection + * Filter document structure * - * @return string + * @return Document */ public function filter(Document $document): Document { @@ -336,6 +373,9 @@ public function filter(Document $document): Document $document->setAttribute('authPersonalDataCheck', $authValues['personalDataCheck'] ?? false); $document->setAttribute('authMockNumbers', $authValues['mockNumbers'] ?? []); $document->setAttribute('authSessionAlerts', $authValues['sessionAlerts'] ?? false); + $document->setAttribute('authMembershipsUserName', $authValues['membershipsUserName'] ?? true); + $document->setAttribute('authMembershipsUserEmail', $authValues['membershipsUserEmail'] ?? true); + $document->setAttribute('authMembershipsMfa', $authValues['membershipsMfa'] ?? true); foreach ($auth as $index => $method) { $key = $method['key']; diff --git a/src/Appwrite/Utopia/Response/Model/ProviderRepository.php b/src/Appwrite/Utopia/Response/Model/ProviderRepository.php index c133ae31646..518b5de9eee 100644 --- a/src/Appwrite/Utopia/Response/Model/ProviderRepository.php +++ b/src/Appwrite/Utopia/Response/Model/ProviderRepository.php @@ -41,12 +41,6 @@ public function __construct() 'default' => false, 'example' => true, ]) - ->addRule('runtime', [ - 'type' => self::TYPE_STRING, - 'description' => 'Auto-detected runtime suggestion. Empty if getting response of getRuntime().', - 'default' => '', - 'example' => 'node', - ]) ->addRule('pushedAt', [ 'type' => self::TYPE_DATETIME, 'description' => 'Last commit date in ISO 8601 format.', diff --git a/src/Appwrite/Utopia/Response/Model/ProviderRepositoryFramework.php b/src/Appwrite/Utopia/Response/Model/ProviderRepositoryFramework.php new file mode 100644 index 00000000000..24556f4453d --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/ProviderRepositoryFramework.php @@ -0,0 +1,40 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; + +class ProviderRepositoryFramework extends ProviderRepository +{ + public function __construct() + { + parent::__construct(); + + $this->addRule('framework', [ + 'type' => self::TYPE_STRING, + 'description' => 'Auto-detected framework. Empty if type is not "framework".', + 'default' => '', + 'example' => 'nextjs', + ]); + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'ProviderRepositoryFramework'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_PROVIDER_REPOSITORY_FRAMEWORK; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/ProviderRepositoryRuntime.php b/src/Appwrite/Utopia/Response/Model/ProviderRepositoryRuntime.php new file mode 100644 index 00000000000..ea20eeea47c --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/ProviderRepositoryRuntime.php @@ -0,0 +1,40 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; + +class ProviderRepositoryRuntime extends ProviderRepository +{ + public function __construct() + { + parent::__construct(); + + $this->addRule('runtime', [ + 'type' => self::TYPE_STRING, + 'description' => 'Auto-detected runtime. Empty if type is not "runtime".', + 'default' => '', + 'example' => 'node-22', + ]); + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'ProviderRepositoryRuntime'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_PROVIDER_REPOSITORY_RUNTIME; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/ResourceToken.php b/src/Appwrite/Utopia/Response/Model/ResourceToken.php new file mode 100644 index 00000000000..ef186c3d0b2 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/ResourceToken.php @@ -0,0 +1,107 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Ahc\Jwt\JWT; +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; +use Utopia\Database\Document; +use Utopia\System\System; + +class ResourceToken extends Model +{ + public function __construct() + { + $this + ->addRule('$id', [ + 'type' => self::TYPE_STRING, + 'description' => 'Token ID.', + 'default' => '', + 'example' => 'bb8ea5c16897e', + ]) + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Token creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('resourceId', [ + 'type' => self::TYPE_STRING, + 'description' => 'Resource ID.', + 'default' => '', + 'example' => '5e5ea5c168bb8:5e5ea5c168bb8', + ]) + ->addRule('resourceType', [ + 'type' => self::TYPE_STRING, + 'description' => 'Resource type.', + 'default' => '', + 'example' => TOKENS_RESOURCE_TYPE_FILES, + ]) + ->addRule('expire', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Token expiration date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('secret', [ + 'type' => self::TYPE_STRING, + 'description' => 'JWT encoded string.', + 'default' => '', + // this is a secret but is converted to a JWT token when sent back to the client after filter. + 'example' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c', + ]) + ->addRule('accessedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Most recent access date in ISO 8601 format. This attribute is only updated again after ' . APP_RESOURCE_TOKEN_ACCESS / 60 / 60 . ' hours.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE + ]) + ; + } + + public function filter(Document $document): Document + { + $maxAge = PHP_INT_MAX; + $expire = $document->getAttribute('expire'); + + if ($expire !== null) { + $now = new \DateTime(); + $expiryDate = new \DateTime($expire); + + // set 1 min if expired, we check for expiry later on route hooks for validation! + $maxAge = min(60, $expiryDate->getTimestamp() - $now->getTimestamp()); + } + + $jwt = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $maxAge, 10); + $secret = $jwt->encode([ + 'tokenId' => $document->getId(), + 'resourceId' => $document->getAttribute('resourceId'), + 'resourceType' => $document->getAttribute('resourceType'), + 'resourceInternalId' => $document->getAttribute('resourceInternalId'), + ]); + + $document->setAttribute('secret', $secret); + + return $document; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'ResourceToken'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_RESOURCE_TOKEN; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Rule.php b/src/Appwrite/Utopia/Response/Model/Rule.php index 932591b90fb..12903b270ed 100644 --- a/src/Appwrite/Utopia/Response/Model/Rule.php +++ b/src/Appwrite/Utopia/Response/Model/Rule.php @@ -34,17 +34,53 @@ public function __construct() 'default' => '', 'example' => 'appwrite.company.com', ]) - ->addRule('resourceType', [ + ->addRule('type', [ 'type' => self::TYPE_STRING, - 'description' => 'Action definition for the rule. Possible values are "api", "function", or "redirect"', + 'description' => 'Action definition for the rule. Possible values are "api", "deployment", or "redirect"', + 'default' => '', + 'example' => 'deployment', + ]) + ->addRule('trigger', [ + 'type' => self::TYPE_STRING, + 'description' => 'Defines how the rule was created. Possible values are "manual" or "deployment"', + 'default' => '', + 'example' => 'manual', + ]) + ->addRule('redirectUrl', [ + 'type' => self::TYPE_STRING, + 'description' => 'URL to redirect to. Used if type is "redirect"', + 'default' => '', + 'example' => 'https://appwrite.io/docs', + ]) + ->addRule('redirectStatusCode', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Status code to apply during redirect. Used if type is "redirect"', + 'default' => '', + 'example' => 301, + ]) + ->addRule('deploymentId', [ + 'type' => self::TYPE_STRING, + 'description' => 'ID of deployment. Used if type is "deployment"', + 'default' => '', + 'example' => 'n3u9feiwmf', + ]) + ->addRule('deploymentResourceType', [ + 'type' => self::TYPE_STRING, + 'description' => 'Type of deployment. Possible values are "function", "site". Used if rule\'s type is "deployment".', 'default' => '', 'example' => 'function', ]) - ->addRule('resourceId', [ + ->addRule('deploymentResourceId', [ 'type' => self::TYPE_STRING, - 'description' => 'ID of resource for the action type. If resourceType is "api" or "url", it is empty. If resourceType is "function", it is ID of the function.', + 'description' => 'ID deployment\'s resource. Used if type is "deployment"', 'default' => '', - 'example' => 'myAwesomeFunction', + 'example' => 'n3u9feiwmf', + ]) + ->addRule('deploymentVcsProviderBranch', [ + 'type' => self::TYPE_STRING, + 'description' => 'Name of Git branch that updates rule. Used if type is "deployment"', + 'default' => '', + 'example' => 'function', ]) ->addRule('status', [ 'type' => self::TYPE_STRING, diff --git a/src/Appwrite/Utopia/Response/Model/Session.php b/src/Appwrite/Utopia/Response/Model/Session.php index 43331d754f3..7173919a65a 100644 --- a/src/Appwrite/Utopia/Response/Model/Session.php +++ b/src/Appwrite/Utopia/Response/Model/Session.php @@ -178,6 +178,7 @@ public function __construct() 'description' => 'Secret used to authenticate the user. Only included if the request was made with an API key', 'default' => '', 'example' => '5e5bb8c16897e', + 'sensitive' => true, ]) ->addRule('mfaUpdatedAt', [ 'type' => self::TYPE_DATETIME, diff --git a/src/Appwrite/Utopia/Response/Model/Site.php b/src/Appwrite/Utopia/Response/Model/Site.php new file mode 100644 index 00000000000..e6e205909bf --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/Site.php @@ -0,0 +1,210 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class Site extends Model +{ + public function __construct() + { + $this + ->addRule('$id', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Site creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('$updatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Site update date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('name', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site name.', + 'default' => '', + 'example' => 'My Site', + ]) + ->addRule('enabled', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Site enabled.', + 'default' => true, + 'example' => false, + ]) + ->addRule('live', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Is the site deployed with the latest configuration? This is set to false if you\'ve changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the site to update it with the latest configuration.', + 'default' => true, + 'example' => false, + ]) + ->addRule('logging', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.', + 'default' => true, + 'example' => false, + ]) + ->addRule('framework', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site framework.', + 'default' => '', + 'example' => 'react', + ]) + ->addRule('deploymentId', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site\'s active deployment ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('deploymentCreatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Active deployment creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('deploymentScreenshotLight', [ + 'type' => self::TYPE_STRING, + 'description' => 'Screenshot of active deployment with light theme preference file ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('deploymentScreenshotDark', [ + 'type' => self::TYPE_STRING, + 'description' => 'Screenshot of active deployment with dark theme preference file ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('latestDeploymentId', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site\'s latest deployment ID.', + 'default' => '', + 'example' => '5e5ea5c16897e', + ]) + ->addRule('latestDeploymentCreatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Latest deployment creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('latestDeploymentStatus', [ + 'type' => self::TYPE_STRING, + 'description' => 'Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".', + 'default' => '', + 'example' => 'ready', + ]) + ->addRule('vars', [ + 'type' => Response::MODEL_VARIABLE, + 'description' => 'Site variables.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('timeout', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Site request timeout in seconds.', + 'default' => 15, + 'example' => 300, + ]) + ->addRule('installCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'The install command used to install the site dependencies.', + 'default' => '', + 'example' => 'npm install', + ]) + ->addRule('buildCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'The build command used to build the site.', + 'default' => '', + 'example' => 'npm run build', + ]) + ->addRule('outputDirectory', [ + 'type' => self::TYPE_STRING, + 'description' => 'The directory where the site build output is located.', + 'default' => '', + 'example' => 'build', + ]) + ->addRule('installationId', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site VCS (Version Control System) installation id.', + 'default' => '', + 'example' => '6m40at4ejk5h2u9s1hboo', + ]) + ->addRule('providerRepositoryId', [ + 'type' => self::TYPE_STRING, + 'description' => 'VCS (Version Control System) Repository ID', + 'default' => '', + 'example' => 'appwrite', + ]) + ->addRule('providerBranch', [ + 'type' => self::TYPE_STRING, + 'description' => 'VCS (Version Control System) branch name', + 'default' => '', + 'example' => 'main', + ]) + ->addRule('providerRootDirectory', [ + 'type' => self::TYPE_STRING, + 'description' => 'Path to site in VCS (Version Control System) repository', + 'default' => '', + 'example' => 'sites/helloWorld', + ]) + ->addRule('providerSilentMode', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Is VCS (Version Control System) connection is in silent mode? When in silence mode, no comments will be posted on the repository pull or merge requests', + 'default' => false, + 'example' => false, + ]) + ->addRule('specification', [ + 'type' => self::TYPE_STRING, + 'description' => 'Machine specification for builds and executions.', + 'default' => APP_COMPUTE_SPECIFICATION_DEFAULT, + 'example' => APP_COMPUTE_SPECIFICATION_DEFAULT, + ]) + ->addRule('buildRuntime', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site build runtime.', + 'default' => '', + 'example' => 'node-22', + ]) + ->addRule('adapter', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site framework adapter.', + 'default' => null, + 'example' => 'static', + ]) + ->addRule('fallbackFile', [ + 'type' => self::TYPE_STRING, + 'description' => 'Name of fallback file to use instead of 404 page. If null, Appwrite 404 page will be displayed.', + 'default' => null, + 'example' => 'index.html', + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'Site'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_SITE; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Specification.php b/src/Appwrite/Utopia/Response/Model/Specification.php index a7c7d7389e0..4fa7fb9bc75 100644 --- a/src/Appwrite/Utopia/Response/Model/Specification.php +++ b/src/Appwrite/Utopia/Response/Model/Specification.php @@ -32,7 +32,7 @@ public function __construct() 'type' => self::TYPE_STRING, 'description' => 'Size slug.', 'default' => '', - 'example' => APP_FUNCTION_SPECIFICATION_DEFAULT + 'example' => APP_COMPUTE_SPECIFICATION_DEFAULT ]); } diff --git a/src/Appwrite/Utopia/Response/Model/Target.php b/src/Appwrite/Utopia/Response/Model/Target.php index d180b6c4c41..530749e006c 100644 --- a/src/Appwrite/Utopia/Response/Model/Target.php +++ b/src/Appwrite/Utopia/Response/Model/Target.php @@ -32,7 +32,7 @@ public function __construct() 'type' => self::TYPE_STRING, 'description' => 'Target Name.', 'default' => '', - 'example' => 'Aegon apple token', + 'example' => 'Apple iPhone 12', ]) ->addRule('userId', [ 'type' => self::TYPE_STRING, @@ -58,6 +58,12 @@ public function __construct() 'description' => 'The target identifier.', 'default' => '', 'example' => 'token', + ]) + ->addRule('expired', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Is the target expired.', + 'default' => false, + 'example' => false, ]); } diff --git a/src/Appwrite/Utopia/Response/Model/TemplateFramework.php b/src/Appwrite/Utopia/Response/Model/TemplateFramework.php new file mode 100644 index 00000000000..ae94ca44253 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/TemplateFramework.php @@ -0,0 +1,89 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class TemplateFramework extends Model +{ + public function __construct() + { + $this + ->addRule('key', [ + 'type' => self::TYPE_STRING, + 'description' => 'Parent framework key.', + 'default' => '', + 'example' => 'sveltekit', + ]) + ->addRule('name', [ + 'type' => self::TYPE_STRING, + 'description' => 'Framework Name.', + 'default' => '', + 'example' => 'SvelteKit' + ]) + ->addRule('installCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'The install command used to install the dependencies.', + 'default' => '', + 'example' => 'npm install', + ]) + ->addRule('buildCommand', [ + 'type' => self::TYPE_STRING, + 'description' => 'The build command used to build the deployment.', + 'default' => '', + 'example' => 'npm run build', + ]) + ->addRule('outputDirectory', [ + 'type' => self::TYPE_STRING, + 'description' => 'The output directory to store the build output.', + 'default' => '', + 'example' => './build', + ]) + ->addRule('providerRootDirectory', [ + 'type' => self::TYPE_STRING, + 'description' => 'Path to site in VCS (Version Control System) repository', + 'default' => '', + 'example' => './svelte-kit/starter', + ]) + ->addRule('buildRuntime', [ + 'type' => self::TYPE_STRING, + 'description' => 'Runtime used during build step of template.', + 'default' => '', + 'example' => 'node-22', + ]) + ->addRule('adapter', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site framework runtime', + 'default' => '', + 'example' => 'ssr', + ]) + ->addRule('fallbackFile', [ + 'type' => self::TYPE_STRING, + 'description' => 'Fallback file for SPA. Only relevant for static serve runtime.', + 'default' => null, + 'example' => 'index.html', + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'Template Framework'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_TEMPLATE_FRAMEWORK; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/TemplateSite.php b/src/Appwrite/Utopia/Response/Model/TemplateSite.php new file mode 100644 index 00000000000..053742dfdb7 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/TemplateSite.php @@ -0,0 +1,116 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; +use Appwrite\Utopia\Response\Model; + +class TemplateSite extends Model +{ + public function __construct() + { + $this + ->addRule('key', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site Template ID.', + 'default' => '', + 'example' => 'starter', + ]) + ->addRule('name', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site Template Name.', + 'default' => '', + 'example' => 'Starter site', + ]) + ->addRule('tagline', [ + 'type' => self::TYPE_STRING, + 'description' => 'Short description of template', + 'default' => '', + 'example' => 'Minimal web app integrating with Appwrite.', + ]) + ->addRule('demoUrl', [ + 'type' => self::TYPE_STRING, + 'description' => 'URL hosting a template demo.', + 'default' => '', + 'example' => 'https://nextjs-starter.appwrite.network/', + ]) + ->addRule('screenshotDark', [ + 'type' => self::TYPE_STRING, + 'description' => 'File URL with preview screenshot in dark theme preference.', + 'default' => '', + 'example' => 'https://cloud.appwrite.io/images/sites/templates/template-for-blog-dark.png', + ]) + ->addRule('screenshotLight', [ + 'type' => self::TYPE_STRING, + 'description' => 'File URL with preview screenshot in light theme preference.', + 'default' => '', + 'example' => 'https://cloud.appwrite.io/images/sites/templates/template-for-blog-light.png', + ]) + ->addRule('useCases', [ + 'type' => self::TYPE_STRING, + 'description' => 'Site use cases.', + 'default' => [], + 'example' => 'Starter', + 'array' => true, + ]) + ->addRule('frameworks', [ + 'type' => Response::MODEL_TEMPLATE_FRAMEWORK, + 'description' => 'List of frameworks that can be used with this template.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('vcsProvider', [ + 'type' => self::TYPE_STRING, + 'description' => 'VCS (Version Control System) Provider.', + 'default' => '', + 'example' => 'github', + ]) + ->addRule('providerRepositoryId', [ + 'type' => self::TYPE_STRING, + 'description' => 'VCS (Version Control System) Repository ID', + 'default' => '', + 'example' => 'templates', + ]) + ->addRule('providerOwner', [ + 'type' => self::TYPE_STRING, + 'description' => 'VCS (Version Control System) Owner.', + 'default' => '', + 'example' => 'appwrite', + ]) + ->addRule('providerVersion', [ + 'type' => self::TYPE_STRING, + 'description' => 'VCS (Version Control System) branch version (tag).', + 'default' => '', + 'example' => 'main', + ]) + ->addRule('variables', [ + 'type' => Response::MODEL_TEMPLATE_VARIABLE, + 'description' => 'Site variables.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'Template Site'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_TEMPLATE_SITE; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/TemplateVariable.php b/src/Appwrite/Utopia/Response/Model/TemplateVariable.php index c992083a871..e196b290326 100644 --- a/src/Appwrite/Utopia/Response/Model/TemplateVariable.php +++ b/src/Appwrite/Utopia/Response/Model/TemplateVariable.php @@ -28,6 +28,12 @@ public function __construct() 'default' => '', 'example' => '512', ]) + ->addRule('secret', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Variable secret flag. Secret variables can only be updated or deleted, but never read.', + 'default' => false, + 'example' => false, + ]) ->addRule('placeholder', [ 'type' => self::TYPE_STRING, 'description' => 'Variable Placeholder.', diff --git a/src/Appwrite/Utopia/Response/Model/Token.php b/src/Appwrite/Utopia/Response/Model/Token.php index fa041fabed1..8313cc41a4d 100644 --- a/src/Appwrite/Utopia/Response/Model/Token.php +++ b/src/Appwrite/Utopia/Response/Model/Token.php @@ -33,6 +33,7 @@ public function __construct() 'description' => 'Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.', 'default' => '', 'example' => '', + 'sensitive' => true, ]) ->addRule('expire', [ 'type' => self::TYPE_DATETIME, diff --git a/src/Appwrite/Utopia/Response/Model/UsageBuckets.php b/src/Appwrite/Utopia/Response/Model/UsageBuckets.php index 2f528ac9d14..ee624a29ad8 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageBuckets.php +++ b/src/Appwrite/Utopia/Response/Model/UsageBuckets.php @@ -42,6 +42,19 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('imageTransformations', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of files transformations per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('imageTransformationsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of files transformations.', + 'default' => 0, + 'example' => 0, + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageDatabase.php b/src/Appwrite/Utopia/Response/Model/UsageDatabase.php index d4733f2568a..a0fe421f5f0 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageDatabase.php +++ b/src/Appwrite/Utopia/Response/Model/UsageDatabase.php @@ -28,6 +28,24 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('storageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of total storage used in bytes.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databaseReadsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases reads.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databaseWritesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases writes.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('collections', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of collections per period.', @@ -42,6 +60,27 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('storage', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated storage used in bytes per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databaseReads', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database reads.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databaseWrites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database writes.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageDatabases.php b/src/Appwrite/Utopia/Response/Model/UsageDatabases.php index f775f9489d8..4e053e5223a 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageDatabases.php +++ b/src/Appwrite/Utopia/Response/Model/UsageDatabases.php @@ -34,6 +34,24 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('storageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of total databases storage in bytes.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databasesReadsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases reads.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databasesWritesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases writes.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('databases', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of databases per period.', @@ -55,6 +73,27 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('storage', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of the aggregated number of databases storage in bytes per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesReads', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database reads.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesWrites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database writes.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageFunction.php b/src/Appwrite/Utopia/Response/Model/UsageFunction.php index ac21c5ae0da..32a23250d4b 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageFunction.php +++ b/src/Appwrite/Utopia/Response/Model/UsageFunction.php @@ -34,6 +34,18 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('buildsSuccessTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of successful function builds.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('buildsFailedTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of failed function builds.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('buildsStorageTotal', [ 'type' => self::TYPE_INTEGER, 'description' => 'total aggregated sum of function builds storage.', @@ -46,6 +58,12 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('buildsTimeAverage', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Average builds compute time.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('buildsMbSecondsTotal', [ 'type' => self::TYPE_INTEGER, 'description' => 'Total aggregated sum of function builds mbSeconds.', @@ -133,6 +151,20 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('buildsSuccess', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of successful builds per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('buildsFailed', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of failed builds per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageFunctions.php b/src/Appwrite/Utopia/Response/Model/UsageFunctions.php index 90327a7e8af..6dc03c62935 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageFunctions.php +++ b/src/Appwrite/Utopia/Response/Model/UsageFunctions.php @@ -97,6 +97,18 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('buildsSuccessTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of successful function builds.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('buildsFailedTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of failed function builds.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('builds', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of functions build per period.', @@ -146,6 +158,20 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('buildsSuccess', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of successful function builds per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('buildsFailed', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of failed function builds per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageProject.php b/src/Appwrite/Utopia/Response/Model/UsageProject.php index c8636add4a8..395b19b7cdb 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageProject.php +++ b/src/Appwrite/Utopia/Response/Model/UsageProject.php @@ -28,6 +28,12 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('databasesStorageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated sum of databases storage size (in bytes).', + 'default' => 0, + 'example' => 0, + ]) ->addRule('usersTotal', [ 'type' => self::TYPE_INTEGER, 'description' => 'Total aggregated number of users.', @@ -40,6 +46,18 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('functionsStorageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated sum of functions storage size (in bytes).', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('buildsStorageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated sum of builds storage size (in bytes).', + 'default' => 0, + 'example' => 0, + ]) ->addRule('deploymentsStorageTotal', [ 'type' => self::TYPE_INTEGER, 'description' => 'Total aggregated sum of deployments storage size (in bytes).', @@ -64,6 +82,18 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('databasesReadsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases reads.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databasesWritesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases writes.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('requests', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of requests per period.', @@ -106,6 +136,13 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('databasesStorageBreakdown', [ + 'type' => Response::MODEL_METRIC_BREAKDOWN, + 'description' => 'An array of the aggregated breakdown of storage usage by databases.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ->addRule('executionsMbSecondsBreakdown', [ 'type' => Response::MODEL_METRIC_BREAKDOWN, 'description' => 'Aggregated breakdown in totals of execution mbSeconds by functions.', @@ -120,13 +157,59 @@ public function __construct() 'example' => [], 'array' => true ]) - ->addRule('deploymentsStorageBreakdown', [ + ->addRule('functionsStorageBreakdown', [ + 'type' => Response::MODEL_METRIC_BREAKDOWN, + 'description' => 'Aggregated breakdown in totals of functions storage size (in bytes).', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('authPhoneTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of phone auth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('authPhoneEstimate', [ + 'type' => self::TYPE_FLOAT, + 'description' => 'Estimated total aggregated cost of phone auth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('authPhoneCountryBreakdown', [ 'type' => Response::MODEL_METRIC_BREAKDOWN, - 'description' => 'Aggregated breakdown in totals of deployments storage size (in bytes).', + 'description' => 'Aggregated breakdown in totals of phone auth by country.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesReads', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database reads.', 'default' => [], 'example' => [], 'array' => true ]) + ->addRule('databasesWrites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database writes.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('imageTransformations', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of image transformations.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('imageTransformationsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of image transformations.', + 'default' => 0, + 'example' => 0, + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageSite.php b/src/Appwrite/Utopia/Response/Model/UsageSite.php new file mode 100644 index 00000000000..c45dc831cdc --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/UsageSite.php @@ -0,0 +1,74 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; + +class UsageSite extends UsageFunction +{ + public function __construct() + { + parent::__construct(); + $this + ->addRule('requestsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of requests.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('requests', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of requests per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('inboundTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated inbound bandwidth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('inbound', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of inbound bandwidth per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('outboundTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated outbound bandwidth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('outbound', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of outbound bandwidth per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'UsageSite'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_USAGE_SITE; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/UsageSites.php b/src/Appwrite/Utopia/Response/Model/UsageSites.php new file mode 100644 index 00000000000..74435b332cc --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/UsageSites.php @@ -0,0 +1,89 @@ +<?php + +namespace Appwrite\Utopia\Response\Model; + +use Appwrite\Utopia\Response; + +class UsageSites extends UsageFunctions +{ + public function __construct() + { + parent::__construct(); + $this + ->removeRule('functionsTotal') + ->removeRule('functions') + ->addRule('sitesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of sites.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('sites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of sites per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('requestsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of requests.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('requests', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of requests per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('inboundTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated inbound bandwidth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('inbound', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of inbound bandwidth per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('outboundTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated outbound bandwidth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('outbound', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of outbound bandwidth per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ; + } + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'UsageSites'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_USAGE_SITES; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Variable.php b/src/Appwrite/Utopia/Response/Model/Variable.php index 88fcd14ca13..22f76e44d41 100644 --- a/src/Appwrite/Utopia/Response/Model/Variable.php +++ b/src/Appwrite/Utopia/Response/Model/Variable.php @@ -4,6 +4,7 @@ use Appwrite\Utopia\Response; use Appwrite\Utopia\Response\Model; +use Utopia\Database\Document; class Variable extends Model { @@ -41,6 +42,12 @@ public function __construct() 'default' => '', 'example' => 'myPa$$word1', ]) + ->addRule('secret', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Variable secret flag. Secret variables can only be updated or deleted, but never read.', + 'default' => false, + 'example' => false, + ]) ->addRule('resourceType', [ 'type' => self::TYPE_STRING, 'description' => 'Service to which the variable belongs. Possible values are "project", "function"', @@ -56,6 +63,21 @@ public function __construct() ; } + /** + * Filter + * + * @param Document $document + * @return Document + */ + public function filter(Document $document): Document + { + $secret = $document->getAttribute('secret'); + if ($secret === true) { + $document->setAttribute('value', null); + } + return $document; + } + /** * Get Name * diff --git a/src/Appwrite/Vcs/Comment.php b/src/Appwrite/Vcs/Comment.php index 18379f10995..62f6ef61d00 100644 --- a/src/Appwrite/Vcs/Comment.php +++ b/src/Appwrite/Vcs/Comment.php @@ -9,10 +9,11 @@ class Comment { + // TODO: Add more tips protected array $tips = [ - 'Appwrite has a Discord community with over 16 000 members. [Come join us!](https://appwrite.io/discord)', - 'You can use [Avatars API](https://appwrite.io/docs/client/avatars?sdk=web-default#avatarsGetQR) to generate QR code for any text or URLs', - '[Cursor pagination](https://appwrite.io/docs/pagination#cursor-pagination) performs better than offset pagination when loading further pages', + 'Appwrite has a Discord community with over 16 000 members.', + 'You can use Avatars API to generate QR code for any text or URLs.', + 'Cursor pagination performs better than offset pagination when loading further pages.', ]; protected string $statePrefix = '[appwrite]: #'; @@ -27,19 +28,21 @@ public function isEmpty(): bool return \count($this->builds) === 0; } - public function addBuild(Document $project, Document $function, string $buildStatus, string $deploymentId, array $action): void + public function addBuild(Document $project, Document $resource, string $resourceType, string $buildStatus, string $deploymentId, array $action, string $previewUrl): void { // Unique index - $id = $project->getId() . '_' . $function->getId(); + $id = $project->getId() . '_' . $resource->getId(); $this->builds[$id] = [ 'projectName' => $project->getAttribute('name'), 'projectId' => $project->getId(), - 'functionName' => $function->getAttribute('name'), - 'functionId' => $function->getId(), + 'resourceName' => $resource->getAttribute('name'), + 'resourceId' => $resource->getId(), + 'resourceType' => $resourceType, 'buildStatus' => $buildStatus, 'deploymentId' => $deploymentId, 'action' => $action, + 'previewUrl' => $previewUrl, ]; } @@ -55,75 +58,152 @@ public function generateComment(): string if (!\array_key_exists($build['projectId'], $projects)) { $projects[$build['projectId']] = [ 'name' => $build['projectName'], - 'functions' => [] + 'function' => [], + 'site' => [] ]; } - $projects[$build['projectId']]['functions'][$build['functionId']] = [ - 'name' => $build['functionName'], - 'status' => $build['buildStatus'], - 'deploymentId' => $build['deploymentId'], - 'action' => $build['action'], - ]; + if ($build['resourceType'] === 'site') { + $projects[$build['projectId']]['site'][$build['resourceId']] = [ + 'name' => $build['resourceName'], + 'status' => $build['buildStatus'], + 'deploymentId' => $build['deploymentId'], + 'action' => $build['action'], + 'previewUrl' => $build['previewUrl'], + ]; + } elseif ($build['resourceType'] === 'function') { + $projects[$build['projectId']]['function'][$build['resourceId']] = [ + 'name' => $build['resourceName'], + 'status' => $build['buildStatus'], + 'deploymentId' => $build['deploymentId'], + 'action' => $build['action'], + ]; + } } + $i = 0; foreach ($projects as $projectId => $project) { - $text .= "**{$project['name']}** `{$projectId}`\n\n"; - $text .= "| Function | ID | Status | Action |\n"; - $text .= "| :- | :- | :- | :- |\n"; - $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; $hostname = System::getEnv('_APP_DOMAIN'); - foreach ($project['functions'] as $functionId => $function) { - if ($function['status'] === 'waiting' || $function['status'] === 'processing' || $function['status'] === 'building') { - $text .= "**Your function deployment is in progress. Please check back in a few minutes for the updated status.**\n\n"; - } elseif ($function['status'] === 'ready') { - $text .= "**Your function has been successfully deployed.**\n\n"; - } else { - $text .= "**Your function deployment has failed. Please check the logs for more details and retry.**\n\n"; + $text .= "## {$project['name']}\n\n"; + $text .= "Project ID: `{$projectId}`\n\n"; + + $isOpen = $i === 0; + + if (\count($project['site']) > 0) { + $text .= "<details" . ($isOpen ? ' open' : '') . ">\n"; + $text .= "<summary>Sites (" . \count($project['site']) . ")</summary>\n\n"; + $text .= "<br>\n\n"; + + $text .= "| Site | Status | Logs | Preview | QR\n"; + $text .= "| :- | :- | :- | :- | :- |\n"; + + foreach ($project['site'] as $siteId => $site) { + $extension = $site['status'] === 'building' ? 'gif' : 'png'; + + $pathLight = '/images/vcs/status-' . $site['status'] . '-light.' . $extension; + $pathDark = '/images/vcs/status-' . $site['status'] . '-dark.' . $extension; + + $status = match ($site['status']) { + 'waiting' => $this->generatImage($pathLight, $pathDark, 'Queued', 85) . ' _Queued_', + 'processing' => $this->generatImage($pathLight, $pathDark, 'Processing', 85) . ' _Processing_', + 'building' => $this->generatImage($pathLight, $pathDark, 'Building', 85) . ' _Building_', + 'ready' => $this->generatImage($pathLight, $pathDark, 'Ready', 85) . ' _Ready_', + 'failed' => $this->generatImage($pathLight, $pathDark, 'Failed', 85) . ' _Failed_', + }; + + if ($site['action']['type'] === 'logs') { + $action = '[View Logs](' . $protocol . '://' . $hostname . '/console/project-' . $projectId . '/sites/site-' . $siteId . '/deployments/deployment-' . $site['deploymentId'] . ')'; + } else { + $action = '[Authorize](' . $site['action']['url'] . ')'; + } + + $qrImagePathLight = '/images/vcs/qr-light.svg'; + $qrImagePathDark = '/images/vcs/qr-dark.svg'; + + $consoleUrl = $protocol . '://' . $hostname . '/v1/avatars/qr?text=' . \urlencode($site['previewUrl']); + $qr = '[' . $this->generatImage($qrImagePathLight, $qrImagePathDark, 'QR Code', 28) . '](' . $consoleUrl . ')'; + + $preview = '[Preview URL](' . $site['previewUrl'] . ')'; + + $text .= "|  **{$site['name']}**<br>`$siteId`"; + $text .= "| {$status}"; + $text .= "| {$action}"; + $text .= "| {$preview}"; + $text .= "| {$qr}"; + $text .= "|\n"; } - $text .= "Project name: **{$project['name']}** \nProject ID: `{$projectId}`\n\n"; - $text .= "| Function | ID | Status | Action |\n"; + $text .= "\n</details>\n\n"; + } + + if (\count($project['function']) > 0) { + $text .= "<details" . ($isOpen ? ' open' : '') . ">\n"; + $text .= "<summary>Functions (" . \count($project['function']) . ")</summary>\n\n"; + $text .= "<br>\n\n"; + $text .= "| Function | ID | Status | Logs |\n"; $text .= "| :- | :- | :- | :- |\n"; - $generateImage = function (string $status) use ($protocol, $hostname) { - $extention = $status === 'building' ? 'gif' : 'png'; - $imagesUrl = $protocol . '://' . $hostname . '/images/vcs/'; - $imageUrl = '<picture><source media="(prefers-color-scheme: dark)" srcset="' . $imagesUrl . 'status-' . $status . '-dark.' . $extention . '"><img alt="' . $status . '" height="25" align="center" src="' . $imagesUrl . 'status-' . $status . '-light.' . $extention . '"></picture>'; - - return $imageUrl; - }; - - $status = match ($function['status']) { - 'waiting' => $generateImage('waiting') . ' Waiting to build', - 'processing' => $generateImage('processing') . ' Processing', - 'building' => $generateImage('building') . ' Building', - 'ready' => $generateImage('ready') . ' Ready', - 'failed' => $generateImage('failed') . ' Failed', - }; - - if ($function['action']['type'] === 'logs') { - $action = '[View Logs](' . $protocol . '://' . $hostname . '/console/project-' . $projectId . '/functions/function-' . $functionId . '/deployment-' . $function['deploymentId'] . ')'; - } else { - $action = '[Authorize](' . $function['action']['url'] . ')'; + foreach ($project['function'] as $functionId => $function) { + $extension = $site['status'] === 'building' ? 'gif' : 'png'; + + $pathLight = '/images/vcs/status-' . $site['status'] . '-light.' . $extension; + $pathDark = '/images/vcs/status-' . $site['status'] . '-dark.' . $extension; + + $status = match ($site['status']) { + 'waiting' => $this->generatImage($pathLight, $pathDark, 'Queued', 85) . ' _Queued_', + 'processing' => $this->generatImage($pathLight, $pathDark, 'Processing', 85) . ' _Processing_', + 'building' => $this->generatImage($pathLight, $pathDark, 'Building', 85) . ' _Building_', + 'ready' => $this->generatImage($pathLight, $pathDark, 'Ready', 85) . ' _Ready_', + 'failed' => $this->generatImage($pathLight, $pathDark, 'Failed', 85) . ' _Failed_', + }; + + if ($function['action']['type'] === 'logs') { + $action = '[View Logs](' . $protocol . '://' . $hostname . '/console/project-' . $projectId . '/functions/function-' . $functionId . '/deployment-' . $function['deploymentId'] . ')'; + } else { + $action = '[Authorize](' . $function['action']['url'] . ')'; + } + + $text .= "|  **{$function['name']}**<br>`$functionId`"; + $text .= "| {$status}"; + $text .= "| {$action}"; + $text .= "|\n"; } - $text .= "| {$function['name']} | `{$functionId}` | {$status} | {$action} |\n"; + $text .= "</details>\n\n"; + } + + $text .= "</details>\n\n"; + + $isLast = $i === \count($projects) - 1; + + if (\count($projects) > 1 && $isLast) { + $text .= "---\n\n"; } - $text .= "\n\n"; + $i++; } - $functionUrl = $protocol . '://' . $hostname . '/console/project-' . $projectId . '/functions/function-' . $functionId; - $text .= "Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to [your deployments]($functionUrl). Learn more about Appwrite [Function deployments](https://appwrite.io/docs/functions).\n\n"; $tip = $this->tips[array_rand($this->tips)]; - $text .= "> **💡 Did you know?** \n " . $tip . "\n\n"; + $text .= "\n<br>\n\n> [!NOTE]\n> $tip\n\n"; return $text; } + public function generatImage(string $pathLight, string $pathDark, string $alt, int $width): string + { + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; + $hostname = System::getEnv('_APP_DOMAIN'); + + $imageLight = $protocol . '://' . $hostname . $pathLight; + $imageDark = $protocol . '://' . $hostname . $pathDark; + + $imageUrl = '<picture><source media="(prefers-color-scheme: dark)" srcset="' . $imageDark . '"><img alt="' . $alt . '" width="' . $width . '" align="center" src="' . $imageLight . '"></picture>'; + + return $imageUrl; + } + public function parseComment(string $comment): self { $state = \explode("\n", $comment)[0] ?? ''; diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 7cd239623c4..c381ceeae36 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -21,17 +21,19 @@ class Executor private bool $selfSigned = false; - private string $endpoint; + /** + * @var callable(string, string): string $endpoint + */ + private $endpointSelector; protected array $headers; - public function __construct(string $endpoint) + /** + * @param callable(string, string): string $endpointSelector + */ + public function __construct(callable $endpointSelector) { - if (!filter_var($endpoint, FILTER_VALIDATE_URL)) { - throw new Exception('Unsupported endpoint'); - } - - $this->endpoint = $endpoint; + $this->endpointSelector = $endpointSelector; $this->headers = [ 'content-type' => 'application/json', 'authorization' => 'Bearer ' . System::getEnv('_APP_EXECUTOR_SECRET', ''), @@ -62,19 +64,20 @@ public function createRuntime( string $version, float $cpus, int $memory, + int $timeout, bool $remove = false, string $entrypoint = '', string $destination = '', array $variables = [], string $command = null, + string $outputDirectory = '' ) { $runtimeId = "$projectId-$deploymentId-build"; $route = "/runtimes"; - $timeout = (int) System::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900); // Remove after migration - if ($version == 'v3') { - $version = 'v4'; + if ($version === 'v3' || $version === 'v4') { + $version = 'v5'; } $params = [ @@ -90,9 +93,11 @@ public function createRuntime( 'memory' => $memory, 'version' => $version, 'timeout' => $timeout, + 'outputDirectory' => $outputDirectory ]; - $response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout); + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout); $status = $response['headers']['status-code']; if ($status >= 400) { @@ -113,17 +118,17 @@ public function createRuntime( public function getLogs( string $deploymentId, string $projectId, + string $timeout, callable $callback ) { - $timeout = (int) System::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900); - $runtimeId = "$projectId-$deploymentId-build"; $route = "/runtimes/{$runtimeId}/logs"; $params = [ 'timeout' => $timeout ]; - $this->call(self::METHOD_GET, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout, $callback); + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $this->call($endpoint, self::METHOD_GET, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout, $callback); } /** @@ -134,15 +139,21 @@ public function getLogs( * @param string $projectId * @param string $deploymentId */ - public function deleteRuntime(string $projectId, string $deploymentId) + public function deleteRuntime(string $projectId, string $deploymentId, string $suffix = '') { - $runtimeId = "$projectId-$deploymentId"; + $runtimeId = "$projectId-$deploymentId" . $suffix; $route = "/runtimes/$runtimeId"; - $response = $this->call(self::METHOD_DELETE, $route, [ + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_DELETE, $route, [ 'x-opr-addressing-method' => 'broadcast' ], [], true, 30); + // Temporary fix for race condition + if ($response['headers']['status-code'] === 500 && \str_contains($response['body']['message'], 'already in progress')) { + return true; // OK, removal already in progress + } + $status = $response['headers']['status-code']; if ($status >= 400) { $message = \is_string($response['body']) ? $response['body'] : $response['body']['message']; @@ -195,8 +206,8 @@ public function createExecution( $route = '/runtimes/' . $runtimeId . '/executions'; // Remove after migration - if ($version == 'v3') { - $version = 'v4'; + if ($version === 'v3' || $version === 'v4') { + $version = 'v5'; } $params = [ @@ -217,7 +228,7 @@ public function createExecution( 'restartPolicy' => 'always' // Once utopia/orchestration has it, use DockerAPI::ALWAYS (0.13+) ]; - if(!empty($body)) { + if (!empty($body)) { $params['body'] = $body; } @@ -227,7 +238,8 @@ public function createExecution( $requestTimeout = $timeout + 15; } - $response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId, 'content-type' => 'multipart/form-data', 'accept' => 'multipart/form-data' ], $params, true, $requestTimeout); + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId, 'content-type' => 'multipart/form-data', 'accept' => 'multipart/form-data' ], $params, true, $requestTimeout); $status = $response['headers']['status-code']; if ($status >= 400) { @@ -235,7 +247,11 @@ public function createExecution( throw new \Exception($message, $status); } - $response['body']['headers'] = \json_decode($response['body']['headers'] ?? '{}', true); + $headers = $response['body']['headers'] ?? []; + if (is_string($headers)) { + $headers = \json_decode($headers, true); + } + $response['body']['headers'] = $headers; $response['body']['statusCode'] = \intval($response['body']['statusCode'] ?? 500); $response['body']['duration'] = \floatval($response['body']['duration'] ?? 0); $response['body']['startTime'] = \floatval($response['body']['startTime'] ?? \microtime(true)); @@ -243,6 +259,32 @@ public function createExecution( return $response['body']; } + public function createCommand( + string $deploymentId, + string $projectId, + string $command, + int $timeout + ) { + $runtimeId = "$projectId-$deploymentId-build"; + $route = "/runtimes/$runtimeId/commands"; + + $params = [ + 'command' => $command, + 'timeout' => $timeout + ]; + + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout); + + $status = $response['headers']['status-code']; + if ($status >= 400) { + $message = \is_string($response['body']) ? $response['body'] : $response['body']['message']; + throw new \Exception($message, $status); + } + + return $response['body']; + } + /** * Call * @@ -256,10 +298,10 @@ public function createExecution( * @return array|string * @throws Exception */ - public function call(string $method, string $path = '', array $headers = [], array $params = [], bool $decode = true, int $timeout = 15, callable $callback = null) + private function call(string $endpoint, string $method, string $path = '', array $headers = [], array $params = [], bool $decode = true, int $timeout = 15, callable $callback = null) { $headers = array_merge($this->headers, $headers); - $ch = curl_init($this->endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : '')); + $ch = curl_init($endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : '')); $responseHeaders = []; $responseStatus = -1; $responseType = ''; @@ -422,4 +464,9 @@ protected function flatten(array $data, string $prefix = ''): array return $output; } + + private function selectEndpoint(string $projectId, string $deploymentId): string + { + return call_user_func($this->endpointSelector, $projectId, $deploymentId); + } } diff --git a/tests/benchmarks/bulk-operations/LargeDocumentCreation.js b/tests/benchmarks/bulk-operations/LargeDocumentCreation.js new file mode 100644 index 00000000000..c903ed2dba0 --- /dev/null +++ b/tests/benchmarks/bulk-operations/LargeDocumentCreation.js @@ -0,0 +1,127 @@ +import { check, sleep } from "k6"; +import http from "k6/http"; +import { provisionProject, provisionDatabase, cleanup, unique } from "./utils.js"; + +const millionRecords = 1_000_000; +const batchSize = 10_000; +const numBatches = millionRecords / batchSize; + +export function setup() { + const resources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'test@test.com', + password: 'password123', + name: 'Test User', + projectName: 'Large Document Creation Test' + }); + + const { databaseId, collectionId } = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: resources.apiHeaders + }); + + // Wait to ensure that provisioning is complete + sleep(5); + + // Create an index for the collection + const index = { + key: "name", + type: "fulltext", + orders: ["ASC"], + attributes: ["name", "email"] + }; + + const indexRes = http.post(`http://localhost/v1/databases/${databaseId}/collections/${collectionId}/indexes`, + JSON.stringify(index), { + headers: resources.apiHeaders + }); + + console.log(indexRes.status); + + check(indexRes, { + "status is 202": (r) => r.status === 202, + }); + + console.log(`----- Inserting ${millionRecords} documents in ${numBatches} batches of ${batchSize} -----`); + + const timeStart = new Date(); + + const requests = []; + for (let i = 0; i < numBatches; i++) { + const docs = Array.from({ length: batchSize }, () => ({ + $id: unique(), + name: "bulk_document", + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100 + })); + requests.push({ + method: "POST", + url: `http://localhost/v1/databases/${databaseId}/collections/${collectionId}/documents`, + body: JSON.stringify({ documents: docs }), + params: { + headers: resources.apiHeaders, + timeout: '300s' + } + }); + } + + const responses = http.batch(requests); + responses.forEach((res, index) => { + if (res.status !== 201) { + throw new Error(`Batch ${index + 1} failed with status ${res.status}`); + } + }); + + const timeEnd = new Date(); + const timeTaken = timeEnd - timeStart; + console.log(`Created 1 million documents in ${timeTaken} milliseconds`); + + return { + databaseId, + collectionId, + apiHeaders: resources.apiHeaders, + resources + }; +} + +export default function (data) { + const docs = Array.from({ length: 10000 }, () => ({ + $id: unique(), + name: "performance_document", + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100 + })); + + const payload = JSON.stringify({ documents: docs }); + const res = http.post( + `http://localhost/v1/databases/${data.databaseId}/collections/${data.collectionId}/documents`, + payload, + { + headers: data.apiHeaders, + timeout: '300s' + } + ); + + check(res, { + "status is 201": (r) => r.status === 201 + }); + + sleep(1); +} + +export function teardown(data) { + cleanup(data.resources); +} + +export const options = { + scenarios: { + large_document_creation: { + executor: 'per-vu-iterations', + vus: 1, + iterations: 20, + exec: 'default' + } + } +}; \ No newline at end of file diff --git a/tests/benchmarks/bulk-operations/documentCreation.js b/tests/benchmarks/bulk-operations/documentCreation.js new file mode 100644 index 00000000000..730b6bb5413 --- /dev/null +++ b/tests/benchmarks/bulk-operations/documentCreation.js @@ -0,0 +1,82 @@ +import { check, sleep } from "k6"; +import http from "k6/http"; +import { provisionProject, provisionDatabase, cleanup, unique } from "./utils.js"; + +const amount = 10_000; + +export function setup() { + const resources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'test@test.com', + password: 'password123', + name: 'Test User', + projectName: 'Bulk Operations Test' + }); + + const { databaseId, collectionId } = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: resources.apiHeaders + }); + + sleep(3); // Await Attributes to be provisioned + + console.log(`----- Amount of documents: ${amount} -----`); + + return { + databaseId, + collectionId, + apiHeaders: resources.apiHeaders, + resources + }; +} + +export function teardown(data) { + cleanup(data.resources); +} + +let documents = Array(amount).fill({ + $id: "unique()", + name: "asd", +}); + +documents = documents.map((document) => { + return { + ...document, + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100, + }; +}); + +export default function (data) { + const payload = JSON.stringify({ + documents, + }); + + const res = http.post( + `http://localhost/v1/databases/${data.databaseId}/collections/${data.collectionId}/documents`, + payload, + { + headers: data.apiHeaders + } + ); + + check(res, { + "status is 201": (r) => r.status === 201, + }); + + return { + resources: data.resources + }; +} + +export const options = { + scenarios: { + bulk_create: { + executor: 'per-vu-iterations', + vus: 1, + iterations: 20, + exec: 'default' + } + } +}; diff --git a/tests/benchmarks/bulk-operations/noisyNeighbor.js b/tests/benchmarks/bulk-operations/noisyNeighbor.js new file mode 100644 index 00000000000..4bfec4e564b --- /dev/null +++ b/tests/benchmarks/bulk-operations/noisyNeighbor.js @@ -0,0 +1,144 @@ +import { check, sleep } from "k6"; +import http from "k6/http"; +import { Trend } from "k6/metrics"; +import { provisionProject, provisionDatabase, cleanup, unique } from "./utils.js"; + +// Custom Trend metric for light response time tracking +export const lightResponseTime = new Trend("light_response_time", true); + +const BULK_AMOUNT = 100_000; // Heavy operation amount +const LIGHT_AMOUNT = 10; // Light operation amount + +export function setup() { + // Set up two separate projects - one for bulk operations (noisy neighbor) and one for light operations + const heavyResources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'heavy@test.com', + password: 'password123', + name: 'Heavy User', + projectName: 'Noisy Neighbor - Heavy' + }); + + const lightResources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'light@test.com', + password: 'password123', + name: 'Light User', + projectName: 'Noisy Neighbor - Light' + }); + + // Set up databases for both projects + const heavy = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: heavyResources.apiHeaders + }); + + const light = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: lightResources.apiHeaders + }); + + sleep(3); // Await Attributes to be provisioned + + console.log(`----- Heavy operations: ${BULK_AMOUNT} documents | Light operations: ${LIGHT_AMOUNT} document -----`); + + return { + heavy: { + databaseId: heavy.databaseId, + collectionId: heavy.collectionId, + apiHeaders: heavyResources.apiHeaders, + resources: heavyResources + }, + light: { + databaseId: light.databaseId, + collectionId: light.collectionId, + apiHeaders: lightResources.apiHeaders, + resources: lightResources + } + }; +} + +export function teardown(data) { + cleanup(data.heavy.resources); + cleanup(data.light.resources); +} + +// Create document payloads +function createDocuments(amount) { + let documents = Array(amount).fill({ + $id: "unique()", + name: "test", + }); + + return documents.map((document) => ({ + ...document, + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100, + })); +} + +// Heavy operation function +export function heavy(data) { + const documents = createDocuments(BULK_AMOUNT); + const payload = JSON.stringify({ documents }); + + const res = http.post( + `http://localhost/v1/databases/${data.heavy.databaseId}/collections/${data.heavy.collectionId}/documents`, + payload, + { + headers: data.heavy.apiHeaders + } + ); + + check(res, { + "heavy operation status is 201": (r) => r.status === 201, + }); +} + +// Light operation function +export function light(data) { + const documents = createDocuments(LIGHT_AMOUNT); + const payload = JSON.stringify({ documents }); + + const startTime = new Date(); + const res = http.post( + `http://localhost/v1/databases/${data.light.databaseId}/collections/${data.light.collectionId}/documents`, + payload, + { + headers: data.light.apiHeaders + } + ); + const duration = new Date() - startTime; + + // Record the light operation response time using the custom Trend metric + lightResponseTime.add(duration); + + check(res, { + "light operation status is 201": (r) => r.status === 201, + }); +} + +export const options = { + scenarios: { + // Heavy bulk operations running continuously + heavy_load: { + executor: 'constant-vus', + vus: 5, + duration: '30s', + exec: 'heavy' + }, + // Light operations to measure impact + light_operations: { + executor: 'constant-arrival-rate', + rate: 5, + timeUnit: '1s', + duration: '30s', + preAllocatedVUs: 10, + exec: 'light' + } + }, + thresholds: { + http_req_duration: ['p(95)<2000'], // 95% of requests should complete within 2s + } +}; \ No newline at end of file diff --git a/tests/benchmarks/bulk-operations/utils.js b/tests/benchmarks/bulk-operations/utils.js new file mode 100644 index 00000000000..dc8dcac5698 --- /dev/null +++ b/tests/benchmarks/bulk-operations/utils.js @@ -0,0 +1,336 @@ +import http from 'k6/http'; +import { check } from 'k6'; + +/** + * @typedef {Object} AuthHeaders + * @property {string} 'Content-Type' - Content type header + * @property {string} 'Cookie' - Session cookie + * @property {string} 'X-Appwrite-Project' - Project ID header + */ + +/** + * @typedef {Object} ApiHeaders + * @property {string} 'Content-Type' - Content type header + * @property {string} 'X-Appwrite-Project' - Project ID header + * @property {string} 'X-Appwrite-Key' - API key header + */ + +/** + * @typedef {Object} ProvisionedResources + * @property {string} userId - The ID of the created user + * @property {string} teamId - The ID of the created team + * @property {string} projectId - The ID of the created project + * @property {string} cookies - Session cookies for authentication + * @property {AuthHeaders} headers - Headers for cookie-based authentication + * @property {string} apiKey - The API key secret + * @property {ApiHeaders} apiHeaders - Headers for API key authentication + */ + +function assert(response, checkName, condition) { + const result = check(response, { + [checkName]: condition + }); + if (!result) { + console.error(`Assertion failed: ${checkName}`); + console.error(`Response status: ${response.status}`); + console.error(`Response body: ${response.body}`); + throw new Error(`Assertion failed: ${checkName}`); + } +} + +/** + * Provisions an Appwrite project setup including: + * - Account creation + * - Session creation + * - Team creation + * - Project creation + * - API Key creation + * + * @param {Object} config Configuration object + * @param {string} config.endpoint Base endpoint URL (e.g., 'http://localhost:80/v1') + * @param {string} config.email Email for account creation + * @param {string} config.password Password for account creation + * @param {string} config.name Name for account creation + * @param {string} config.projectName Name for the project + * @returns {ProvisionedResources} Object containing all created resource IDs and session information + */ +export function provisionProject(config) { + const { + endpoint, + email, + password, + name, + projectName, + } = config; + + // Step 1: Create Account + const accountResponse = http.post(`${endpoint}/account`, JSON.stringify({ + userId: 'unique()', + email, + password, + name + }), { + headers: { + 'Content-Type': 'application/json', + } + }); + + assert(accountResponse, 'account created successfully', (r) => r.status === 201 || r.status === 409); + + const userId = accountResponse.json('$id'); + + // Step 2: Create Session + const sessionResponse = http.post(`${endpoint}/account/sessions/email`, JSON.stringify({ + email, + password + }), { + headers: { + 'Content-Type': 'application/json', + } + }); + + assert(sessionResponse, 'session created successfully', (r) => r.status === 201); + + // Keep manual control of the cookies to allow for simultaneous requests + const jar = http.cookieJar(); + jar.clear(`${endpoint}`); + + // Extract cookies for subsequent requests + const cookies = sessionResponse.headers['Set-Cookie']; + + // Common headers for authenticated requests + const authHeaders = { + 'Content-Type': 'application/json', + 'Cookie': cookies + }; + + // Step 3: Create Team + const teamResponse = http.post(`${endpoint}/teams`, JSON.stringify({ + teamId: 'unique()', + name: `${projectName} Team` + }), { + headers: authHeaders + }); + + assert(teamResponse, 'team created successfully', (r) => r.status === 201); + + const teamId = teamResponse.json('$id'); + + // Step 4: Create Project + const projectResponse = http.post(`${endpoint}/projects`, JSON.stringify({ + projectId: 'unique()', + name: projectName, + teamId: teamId + }), { + headers: authHeaders + }); + + assert(projectResponse, 'project created successfully', (r) => r.status === 201); + + const projectId = projectResponse.json('$id'); + + // Step 5: Create API Key + const apiKeyResponse = http.post(`${endpoint}/projects/${projectId}/keys`, JSON.stringify({ + name: 'Test API Key', + scopes: SCOPES, // All permissions + }), { + headers: authHeaders + }); + + assert(apiKeyResponse, 'api key created successfully', (r) => r.status === 201); + + const apiKey = apiKeyResponse.json('secret'); + + // Create a new headers object for API key authentication + const apiHeaders = { + 'Content-Type': 'application/json', + 'X-Appwrite-Project': projectId, + 'X-Appwrite-Key': apiKey + }; + + // Return all created resources and session info + return { + endpoint, + userId, + teamId, + projectId, + cookies, + headers: authHeaders, + apiKey, + apiHeaders + }; +} + +/** + * Example usage: + * + * const config = { + * endpoint: 'http://localhost:80/v1', + * email: 'test@example.com', + * password: 'complex-password', + * name: 'Test User', + * projectName: 'Test Project' + * }; + * + * const resources = provisionProject(config); + */ + +const SCOPES = [ + "sessions.write", + "users.read", + "users.write", + "teams.read", + "teams.write", + "databases.read", + "databases.write", + "collections.read", + "collections.write", + "attributes.read", + "attributes.write", + "indexes.read", + "indexes.write", + "documents.read", + "documents.write", + "files.read", + "files.write", + "buckets.read", + "buckets.write", + "functions.read", + "functions.write", + "execution.read", + "execution.write", + "targets.read", + "targets.write", + "providers.read", + "providers.write", + "messages.read", + "messages.write", + "topics.read", + "topics.write", + "subscribers.read", + "subscribers.write", + "locale.read", + "avatars.read", + "health.read", + "migrations.read", + "migrations.write" +] + +export function provisionDatabase(config) { + const { + endpoint, + apiHeaders + } = config; + + // Create database + const databaseResponse = http.post( + `${endpoint}/databases`, + JSON.stringify({ + databaseId: 'unique()', + name: 'Bulk Test DB' + }), + { headers: apiHeaders } + ); + + assert(databaseResponse, 'database created successfully', (r) => r.status === 201); + + const databaseId = databaseResponse.json('$id'); + + // Create collection + const collectionResponse = http.post( + `${endpoint}/databases/${databaseId}/collections`, + JSON.stringify({ + collectionId: 'unique()', + name: 'Bulk Test Collection', + permissions: ['read("any")', 'write("any")'], + documentSecurity: false + }), + { headers: apiHeaders } + ); + + assert(collectionResponse, 'collection created successfully', (r) => r.status === 201); + + const collectionId = collectionResponse.json('$id'); + + // Create name attribute + const nameAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/string`, + JSON.stringify({ + key: 'name', + size: 100, + required: false, + default: null, + array: false, + encrypt: false + }), + { headers: apiHeaders } + ); + + assert(nameAttributeResponse, 'name attribute created successfully', (r) => r.status === 202); + + // Create age attribute + const ageAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/integer`, + JSON.stringify({ + key: 'age', + required: false, + }), + { headers: apiHeaders } + ); + + assert(ageAttributeResponse, 'age attribute created successfully', (r) => r.status === 202); + + // Create email attribute + const emailAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/email`, + JSON.stringify({ + key: 'email', + required: false, + }), + { headers: apiHeaders } + ); + + assert(emailAttributeResponse, 'email attribute created successfully', (r) => r.status === 202); + + // Create height attribute + const heightAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/float`, + JSON.stringify({ + key: 'height', + required: false, + }), + { headers: apiHeaders } + ); + + assert(heightAttributeResponse, 'height attribute created successfully', (r) => r.status === 202); + + return { + databaseId, + collectionId + }; +} + +export function cleanup(config) { + const { + endpoint, + teamId, + headers + } = config; + + // Delete Organization + const organizationResponse = http.del( + `${endpoint}/teams/${teamId}`, + null, + { + headers + } + ); + + assert(organizationResponse, 'organization deleted successfully', (r) => r.status === 204); +} + +export function unique() { + const timestamp = Date.now().toString(36); + const randomPart = Math.random().toString(36).substring(2, 15); + return `${timestamp}-${randomPart}`; +} \ No newline at end of file diff --git a/tests/e2e/Client.php b/tests/e2e/Client.php index 0774f1c6fde..278d1cd0d54 100644 --- a/tests/e2e/Client.php +++ b/tests/e2e/Client.php @@ -164,7 +164,7 @@ public function addHeader(string $key, string $value): self * @return array * @throws Exception */ - public function call(string $method, string $path = '', array $headers = [], mixed $params = [], bool $decode = true): array + public function call(string $method, string $path = '', array $headers = [], mixed $params = [], bool $decode = true, bool $followRedirects = true): array { $headers = array_merge($this->headers, $headers); $ch = curl_init($this->endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : '')); @@ -179,17 +179,22 @@ public function call(string $method, string $path = '', array $headers = [], mix default => http_build_query($params), }; - foreach ($headers as $i => $header) { - $headers[] = $i . ':' . $header; - unset($headers[$i]); + $formattedHeaders = []; + foreach ($headers as $key => $value) { + if (strtolower($key) === 'accept-encoding') { + curl_setopt($ch, CURLOPT_ENCODING, $value); + continue; + } else { + $formattedHeaders[] = $key . ': ' . $value; + } } curl_setopt($ch, CURLOPT_PATH_AS_IS, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $followRedirects); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'); - curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); + curl_setopt($ch, CURLOPT_HTTPHEADER, $formattedHeaders); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use (&$responseHeaders, &$cookies) { @@ -220,7 +225,6 @@ public function call(string $method, string $path = '', array $headers = [], mix curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } - $responseBody = curl_exec($ch); $responseType = $responseHeaders['content-type'] ?? ''; $responseStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE); diff --git a/tests/e2e/General/CompressionTest.php b/tests/e2e/General/CompressionTest.php new file mode 100644 index 00000000000..9affacfe0a3 --- /dev/null +++ b/tests/e2e/General/CompressionTest.php @@ -0,0 +1,137 @@ +<?php + +namespace Tests\E2E\General; + +use Appwrite\ID; +use Appwrite\Permission; +use Appwrite\Role; +use CURLFile; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; + +class CompressionTest extends Scope +{ + use ProjectCustom; + use SideServer; + + public function testSmallResponse() + { + // with header + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'accept-encoding' => 'gzip', + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + $this->assertLessThan(1024, strlen($response['body'])); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + + // without header + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + $this->assertLessThan(1024, strlen($response['body'])); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + } + + public function testLargeResponse() + { + // create an anonymous user + $response = $this->client->call(Client::METHOD_POST, '/users', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'userId' => ID::unique(), + 'email' => 'test@localhost.test', + 'password' => 'password', + 'name' => 'User Name', + ]); + $this->assertEquals(201, $response['headers']['status-code']); + $userId = $response['body']['$id']; + + // set prefs with 2000 bytes of data + $prefs = ["longValue" => str_repeat('a', 2000)]; + + $response = $this->client->call(Client::METHOD_PATCH, '/users/' . $userId . '/prefs', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'prefs' => $prefs, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + // get prefs with compression + $response = $this->client->call(Client::METHOD_GET, '/users/' . $userId . '/prefs', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'accept-encoding' => 'gzip', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayHasKey('content-encoding', $response['headers'], 'Content encoding should be gzip, headers received: ' . json_encode($response['headers'], JSON_PRETTY_PRINT)); + $this->assertLessThan(2000, intval($response['headers']['content-length'])); + + // get prefs without compression + $response = $this->client->call(Client::METHOD_GET, '/users/' . $userId . '/prefs', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertGreaterThanOrEqual(2000, intval($response['headers']['content-length'])); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + } + + public function testImageResponse() + { + // create bucket + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'fileSecurity' => true, + ]); + $bucketId = $bucket['body']['$id']; + $this->assertEquals(201, $bucket['headers']['status-code']); + + // upload image + $file = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../resources/logo.png'), 'image/png', 'logo.png'), + 'permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $fileId = $file['body']['$id']; + + // get image with header + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $fileId, array_merge([ + 'content-type' => 'application/json', + 'accept-encoding' => 'gzip', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + // get image without + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $fileId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + } +} diff --git a/tests/e2e/General/HTTPTest.php b/tests/e2e/General/HTTPTest.php index b6dd3543c6e..fe600cd0f8d 100644 --- a/tests/e2e/General/HTTPTest.php +++ b/tests/e2e/General/HTTPTest.php @@ -133,7 +133,7 @@ public function testSpecs() $this->assertEquals(200, $response['headers']['status-code']); // looks like recent change in the validator - $this->assertTrue(empty($response['body']['schemaValidationMessages'])); + $this->assertEmpty($response['body']['schemaValidationMessages'], 'Schema validation failed for ' . $file . ': ' . json_encode($response['body']['schemaValidationMessages'], JSON_PRETTY_PRINT)); } } @@ -216,4 +216,17 @@ public function testCors() $this->assertEquals('http://localhost', $response['headers']['access-control-allow-origin']); } + + public function testConsoleRedirect() + { + /** + * Test for SUCCESS + */ + + $endpoint = '/invite?membershipId=123&userId=asdf'; + + $response = $this->client->call(Client::METHOD_GET, $endpoint); + + $this->assertEquals('/console' . $endpoint, $response['headers']['location']); + } } diff --git a/tests/e2e/General/PingTest.php b/tests/e2e/General/PingTest.php new file mode 100644 index 00000000000..e41bac67369 --- /dev/null +++ b/tests/e2e/General/PingTest.php @@ -0,0 +1,55 @@ +<?php + +namespace Tests\E2E\General; + +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideClient; + +class PingTest extends Scope +{ + use ProjectCustom; + use SideClient; + + public function testPing() + { + /** + * Test for SUCCESS + */ + // Without user session + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + + // With user session + $response = $this->client->call(Client::METHOD_GET, '/ping', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + + // With API key + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + + /** + * Test for FAILURE + */ + // Fake project ID + $response = $this->client->call(Client::METHOD_GET, '/ping', \array_merge([ + 'x-appwrite-project' => 'fake-project-id', + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertNotContains('Pong!', $response['body']); + } +} diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index f4e45c293ac..5549ef800d9 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -2,7 +2,7 @@ namespace Tests\E2E\General; -use Appwrite\Functions\Specification; +use Appwrite\Platform\Modules\Compute\Specification; use Appwrite\Tests\Retry; use CURLFile; use DateTime; @@ -11,17 +11,71 @@ use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; use Tests\E2E\Services\Functions\FunctionsBase; +use Tests\E2E\Services\Sites\SitesBase; +use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\System\System; class UsageTest extends Scope { use ProjectCustom; use SideServer; use FunctionsBase; + use SitesBase { + FunctionsBase::createDeployment insteadof SitesBase; + FunctionsBase::setupDeployment insteadof SitesBase; + FunctionsBase::createVariable insteadof SitesBase; + FunctionsBase::getVariable insteadof SitesBase; + FunctionsBase::listVariables insteadof SitesBase; + FunctionsBase::updateVariable insteadof SitesBase; + FunctionsBase::deleteVariable insteadof SitesBase; + FunctionsBase::getDeployment insteadof SitesBase; + FunctionsBase::listDeployments insteadof SitesBase; + FunctionsBase::deleteDeployment insteadof SitesBase; + FunctionsBase::setupDuplicateDeployment insteadof SitesBase; + FunctionsBase::createDuplicateDeployment insteadof SitesBase; + FunctionsBase::createTemplateDeployment insteadof SitesBase; + FunctionsBase::getUsage insteadof SitesBase; + FunctionsBase::getTemplate insteadof SitesBase; + FunctionsBase::getDeploymentDownload insteadof SitesBase; + FunctionsBase::cancelDeployment insteadof SitesBase; + FunctionsBase::listSpecifications insteadof SitesBase; + SitesBase::createDeployment as createDeploymentSite; + SitesBase::setupDeployment as setupDeploymentSite; + SitesBase::createVariable as createVariableSite; + SitesBase::getVariable as getVariableSite; + SitesBase::listVariables as listVariablesSite; + SitesBase::listVariables as listVariablesSite; + SitesBase::updateVariable as updateVariableSite; + SitesBase::updateVariable as updateVariableSite; + SitesBase::deleteVariable as deleteVariableSite; + SitesBase::deleteVariable as deleteVariableSite; + SitesBase::getDeployment as getDeploymentSite; + SitesBase::getDeployment as getDeploymentSite; + SitesBase::listDeployments as listDeploymentsSite; + SitesBase::listDeployments as listDeploymentsSite; + SitesBase::deleteDeployment as deleteDeploymentSite; + SitesBase::deleteDeployment as deleteDeploymentSite; + SitesBase::setupDuplicateDeployment as setupDuplicateDeploymentSite; + SitesBase::setupDuplicateDeployment as setupDuplicateDeploymentSite; + SitesBase::createDuplicateDeployment as createDuplicateDeploymentSite; + SitesBase::createDuplicateDeployment as createDuplicateDeploymentSite; + SitesBase::createTemplateDeployment as createTemplateDeploymentSite; + SitesBase::createTemplateDeployment as createTemplateDeploymentSite; + SitesBase::getUsage as getUsageSite; + SitesBase::getUsage as getUsageSite; + SitesBase::getTemplate as getTemplateSite; + SitesBase::getTemplate as getTemplateSite; + SitesBase::getDeploymentDownload as getDeploymentDownloadSite; + SitesBase::getDeploymentDownload as getDeploymentDownloadSite; + SitesBase::cancelDeployment as cancelDeploymentSite; + SitesBase::cancelDeployment as cancelDeploymentSite; + SitesBase::listSpecifications as listSpecificationsSite; + } - private const WAIT = 35; + private const WAIT = 5; private const CREATE = 20; protected string $projectId; @@ -50,6 +104,13 @@ protected function validateDates(array $metrics): void } } + public static function getYesterday(): string + { + $date = new DateTime(); + $date->modify('-1 day'); + return $date->format(self::$formatTz); + } + public static function getToday(): string { $date = new DateTime(); @@ -125,8 +186,6 @@ public function testPrepareUsersStats(): array #[Retry(count: 1)] public function testUsersStats(array $data): array { - sleep(self::WAIT); - $requestsTotal = $data['requestsTotal']; $response = $this->client->call( @@ -141,7 +200,7 @@ public function testUsersStats(array $data): array ); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(18, count($response['body'])); + $this->assertGreaterThanOrEqual(31, count($response['body'])); $this->validateDates($response['body']['network']); $this->validateDates($response['body']['requests']); $this->validateDates($response['body']['users']); @@ -300,7 +359,7 @@ public function testPrepareStorageStats(array $data): array /** * @depends testPrepareStorageStats */ - #[Retry(count: 1)] + #[Retry(count: 10)] public function testStorageStats(array $data): array { $bucketId = $data['bucketId']; @@ -309,8 +368,6 @@ public function testStorageStats(array $data): array $storageTotal = $data['storageTotal']; $filesTotal = $data['filesTotal']; - sleep(self::WAIT); - $response = $this->client->call( Client::METHOD_GET, '/project/usage', @@ -322,7 +379,7 @@ public function testStorageStats(array $data): array ] ); - $this->assertEquals(18, count($response['body'])); + $this->assertGreaterThanOrEqual(31, count($response['body'])); $this->assertEquals(1, count($response['body']['requests'])); $this->assertEquals($requestsTotal, $response['body']['requests'][array_key_last($response['body']['requests'])]['value']); $this->validateDates($response['body']['requests']); @@ -465,10 +522,10 @@ public function testPrepareDatabaseStats(array $data): array $this->assertEquals('name', $response['body']['key']); - $requestsTotal += 1; - sleep(self::WAIT); + $requestsTotal += 1; + for ($i = 0; $i < self::CREATE; $i++) { $name = uniqid() . ' collection'; @@ -543,7 +600,7 @@ public function testDatabaseStats(array $data): array ] ); - $this->assertEquals(18, count($response['body'])); + $this->assertGreaterThanOrEqual(31, count($response['body'])); $this->assertEquals(1, count($response['body']['requests'])); $this->assertEquals(1, count($response['body']['network'])); $this->assertEquals($requestsTotal, $response['body']['requests'][array_key_last($response['body']['requests'])]['value']); @@ -588,7 +645,6 @@ public function testDatabaseStats(array $data): array return $data; } - /** @depends testDatabaseStats */ public function testPrepareFunctionsStats(array $data): array { @@ -627,40 +683,23 @@ public function testPrepareFunctionsStats(array $data): array $this->assertEquals(201, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $code = realpath(__DIR__ . '/../../resources/functions') . "/php/code.tar.gz"; - $this->packageCode('php'); - - $response = $this->client->call( - Client::METHOD_POST, - '/functions/' . $functionId . '/deployments', - array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), - [ - 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), - 'activate' => true - ] - ); - - $deploymentId = $response['body']['$id'] ?? ''; - - $this->assertEquals(202, $response['headers']['status-code']); - $this->assertNotEmpty($response['body']['$id']); - $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['$createdAt'])); - $this->assertEquals('index.php', $response['body']['entrypoint']); - - // Wait for deployment to build. - sleep(self::WAIT + 20); + $deploymentId = $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true, + ]); + $this->assertNotEmpty($deploymentId); $response = $this->client->call( Client::METHOD_PATCH, - '/functions/' . $functionId . '/deployments/' . $deploymentId, + '/functions/' . $functionId . '/deployment', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), + [ + 'deploymentId' => $deploymentId, + ], ); $this->assertEquals(200, $response['headers']['status-code']); @@ -668,7 +707,7 @@ public function testPrepareFunctionsStats(array $data): array $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['$createdAt'])); $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['$updatedAt'])); - $this->assertEquals($deploymentId, $response['body']['deployment']); + $this->assertEquals($deploymentId, $response['body']['deploymentId']); $response = $this->client->call( Client::METHOD_POST, @@ -678,7 +717,7 @@ public function testPrepareFunctionsStats(array $data): array 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ - 'async' => false, + 'async' => 'false', ] ); @@ -702,7 +741,7 @@ public function testPrepareFunctionsStats(array $data): array 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ - 'async' => false, + 'async' => 'false', ] ); @@ -761,14 +800,12 @@ public function testPrepareFunctionsStats(array $data): array /** @depends testPrepareFunctionsStats */ #[Retry(count: 1)] - public function testFunctionsStats(array $data): void + public function testFunctionsStats(array $data): array { $functionId = $data['functionId']; $executionTime = $data['executionTime']; $executions = $data['executions']; - sleep(self::WAIT); - $response = $this->client->call( Client::METHOD_GET, '/functions/' . $functionId . '/usage?range=30d', @@ -776,7 +813,7 @@ public function testFunctionsStats(array $data): void ); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(19, count($response['body'])); + $this->assertEquals(24, count($response['body'])); $this->assertEquals('30d', $response['body']['range']); $this->assertIsArray($response['body']['deployments']); $this->assertIsArray($response['body']['deploymentsStorage']); @@ -801,7 +838,7 @@ public function testFunctionsStats(array $data): void ); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(21, count($response['body'])); + $this->assertEquals(25, count($response['body'])); $this->assertEquals($response['body']['range'], '30d'); $this->assertIsArray($response['body']['functions']); $this->assertIsArray($response['body']['deployments']); @@ -818,6 +855,255 @@ public function testFunctionsStats(array $data): void $this->validateDates($response['body']['executionsTime']); $this->assertGreaterThan(0, $response['body']['buildsTime'][array_key_last($response['body']['buildsTime'])]['value']); $this->validateDates($response['body']['buildsTime']); + + return $data; + } + + + public function testPrepareSitesStats(): array + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeploymentSite($siteId, [ + 'siteId' => $siteId, + 'code' => $this->packageSite('static'), + 'activate' => true, + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + $this->assertEquals('waiting', $deployment['body']['status']); + $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); + + $deploymentIdActive = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentIdActive) { + $deployment = $this->getDeploymentSite($siteId, $deploymentIdActive); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $deployment = $this->createDeploymentSite($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + + $deploymentIdInactive = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentIdInactive) { + $deployment = $this->getDeploymentSite($siteId, $deploymentIdInactive); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $site = $this->getSite($siteId); + + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentIdActive, $site['body']['deploymentId']); + $this->assertNotEquals($deploymentIdInactive, $site['body']['deploymentId']); + + $data = [ + 'siteId' => $siteId, + 'deployments' => 2, + 'deploymentsSuccess' => 2, + 'deploymentsFailed' => 0 + ]; + + return $data; + } + + /** @depends testPrepareSitesStats */ + #[Retry(count: 1)] + public function testSitesStats(array $data) + { + $siteId = $data['siteId']; + $executionTime = $data['executionTime'] ?? 0; + $executions = $data['executions'] ?? 0; + $deploymentsSuccess = $data['deploymentsSuccess']; + $deploymentsFailed = $data['deploymentsFailed']; + $response = $this->client->call( + Client::METHOD_GET, + '/sites/' . $siteId . '/usage?range=30d', + $this->getConsoleHeaders() + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(30, count($response['body'])); + $this->assertEquals('30d', $response['body']['range']); + $this->assertIsArray($response['body']['deployments']); + $this->assertEquals($deploymentsSuccess, $response['body']['buildsSuccessTotal']); + $this->assertEquals($deploymentsFailed, $response['body']['buildsFailedTotal']); + $this->assertIsArray($response['body']['deploymentsStorage']); + $this->assertIsNumeric($response['body']['deploymentsStorageTotal']); + $this->assertIsNumeric($response['body']['buildsMbSecondsTotal']); + $this->assertIsNumeric($response['body']['executionsMbSecondsTotal']); + $this->assertIsArray($response['body']['builds']); + $this->assertIsArray($response['body']['buildsTime']); + $this->assertIsArray($response['body']['buildsMbSeconds']); + $this->assertIsArray($response['body']['executions']); + $this->assertIsArray($response['body']['executionsTime']); + $this->assertIsArray($response['body']['executionsMbSeconds']); + $this->assertIsArray($response['body']['buildsSuccess']); + $this->assertIsArray($response['body']['buildsFailed']); + $this->assertIsArray($response['body']['requests']); + $this->assertIsArray($response['body']['inbound']); + $this->assertIsArray($response['body']['outbound']); + $this->assertEquals($executions, $response['body']['executions'][array_key_last($response['body']['executions'])]['value']); + $this->validateDates($response['body']['executions']); + $this->assertEquals($executionTime, $response['body']['executionsTime'][array_key_last($response['body']['executionsTime'])]['value']); + $this->validateDates($response['body']['executionsTime']); + + $response = $this->client->call( + Client::METHOD_GET, + '/sites/usage?range=30d', + $this->getConsoleHeaders() + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(31, count($response['body'])); + $this->assertEquals($response['body']['range'], '30d'); + $this->assertIsArray($response['body']['sites']); + $this->assertIsArray($response['body']['deployments']); + $this->assertIsArray($response['body']['deploymentsStorage']); + $this->assertIsArray($response['body']['builds']); + $this->assertIsArray($response['body']['buildsTime']); + $this->assertIsArray($response['body']['buildsMbSeconds']); + $this->assertIsArray($response['body']['executions']); + $this->assertIsArray($response['body']['executionsTime']); + $this->assertIsArray($response['body']['executionsMbSeconds']); + $this->assertIsArray($response['body']['buildsSuccess']); + $this->assertIsArray($response['body']['buildsFailed']); + $this->assertIsArray($response['body']['requests']); + $this->assertIsArray($response['body']['inbound']); + $this->assertIsArray($response['body']['outbound']); + $this->assertEquals($executions, $response['body']['executions'][array_key_last($response['body']['executions'])]['value']); + $this->validateDates($response['body']['executions']); + $this->assertEquals($executionTime, $response['body']['executionsTime'][array_key_last($response['body']['executionsTime'])]['value']); + $this->validateDates($response['body']['executionsTime']); + $this->assertGreaterThan(0, $response['body']['buildsTime'][array_key_last($response['body']['buildsTime'])]['value']); + $this->validateDates($response['body']['buildsTime']); + } + + /** @depends testFunctionsStats */ + public function testCustomDomainsFunctionStats(array $data): void + { + $functionId = $data['functionId']; + + $response = $this->client->call(Client::METHOD_PUT, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'name' => 'Test', + 'execute' => ['any'] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + $rule = $this->client->call( + Client::METHOD_POST, + '/proxy/rules/function', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), + [ + 'domain' => 'test-' . ID::unique() . System::getEnv('_APP_DOMAIN_FUNCTIONS'), + 'functionId' => $functionId, + ], + ); + + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertNotEmpty($rule['body']['$id']); + $this->assertNotEmpty($rule['body']['domain']); + + $domain = $rule['body']['domain']; + + $response = $this->client->call( + Client::METHOD_GET, + '/functions/' . $functionId . '/usage?range=30d', + $this->getConsoleHeaders() + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(24, count($response['body'])); + $this->assertEquals('30d', $response['body']['range']); + + $functionsMetrics = $response['body']; + + $response = $this->client->call( + Client::METHOD_GET, + '/project/usage', + $this->getConsoleHeaders(), + [ + 'period' => '1h', + 'startDate' => self::getToday(), + 'endDate' => self::getTomorrow(), + ] + ); + + $this->assertEquals(200, $response['headers']['status-code']); + + $projectMetrics = $response['body']; + + // Create custom domain execution + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + + $tries = 0; + + $this->assertEventually(function () use ($functionId, $functionsMetrics, $projectMetrics) { + // Compare new values with old values + $response = $this->client->call( + Client::METHOD_GET, + '/functions/' . $functionId . '/usage?range=30d', + $this->getConsoleHeaders() + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(24, count($response['body'])); + $this->assertEquals('30d', $response['body']['range']); + + // Check if the new values are greater than the old values + $this->assertEquals($functionsMetrics['executionsTotal'] + 1, $response['body']['executionsTotal']); + $this->assertGreaterThan($functionsMetrics['executionsTimeTotal'], $response['body']['executionsTimeTotal']); + $this->assertGreaterThan($functionsMetrics['executionsMbSecondsTotal'], $response['body']['executionsMbSecondsTotal']); + + $response = $this->client->call( + Client::METHOD_GET, + '/project/usage', + $this->getConsoleHeaders(), + [ + 'period' => '1h', + 'startDate' => self::getToday(), + 'endDate' => self::getTomorrow(), + ] + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals($projectMetrics['executionsTotal'] + 1, $response['body']['executionsTotal']); + $this->assertGreaterThan($projectMetrics['executionsMbSecondsTotal'], $response['body']['executionsMbSecondsTotal']); + }); } public function tearDown(): void diff --git a/tests/e2e/Scopes/ProjectCustom.php b/tests/e2e/Scopes/ProjectCustom.php index ad2c93790cc..a354696f53c 100644 --- a/tests/e2e/Scopes/ProjectCustom.php +++ b/tests/e2e/Scopes/ProjectCustom.php @@ -3,7 +3,9 @@ namespace Tests\E2E\Scopes; use Tests\E2E\Client; +use Utopia\Database\DateTime; use Utopia\Database\Helpers\ID; +use Utopia\System\System; trait ProjectCustom { @@ -42,7 +44,7 @@ public function getProject(bool $fresh = false): array 'x-appwrite-project' => 'console', ], [ 'projectId' => ID::unique(), - 'region' => 'default', + 'region' => System::getEnv('_APP_REGION', 'default'), 'name' => 'Demo Project', 'teamId' => $team['body']['$id'], 'description' => 'Demo Project Description', @@ -74,10 +76,16 @@ public function getProject(bool $fresh = false): array 'files.write', 'buckets.read', 'buckets.write', + 'sites.read', + 'sites.write', 'functions.read', 'functions.write', + 'sites.read', + 'sites.write', 'execution.read', 'execution.write', + 'log.read', + 'log.write', 'locale.read', 'avatars.read', 'health.read', @@ -94,6 +102,10 @@ public function getProject(bool $fresh = false): array 'topics.read', 'subscribers.write', 'subscribers.read', + 'migrations.write', + 'migrations.read', + 'tokens.read', + 'tokens.write', ], ]); @@ -101,6 +113,19 @@ public function getProject(bool $fresh = false): array $this->assertNotEmpty($key['body']); $this->assertNotEmpty($key['body']['secret']); + $devKey = $this->client->call(Client::METHOD_POST, '/projects/' . $project['body']['$id'] . '/dev-keys', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + 'x-appwrite-project' => 'console', + ], [ + 'name' => 'Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 3600), + ]); + $this->assertEquals(201, $devKey['headers']['status-code']); + $this->assertNotEmpty($devKey['body']); + $this->assertNotEmpty($devKey['body']['secret']); + $webhook = $this->client->call(Client::METHOD_POST, '/projects/' . $project['body']['$id'] . '/webhooks', [ 'origin' => 'http://localhost', 'content-type' => 'application/json', @@ -141,9 +166,11 @@ public function getProject(bool $fresh = false): array '$id' => $project['body']['$id'], 'name' => $project['body']['name'], 'apiKey' => $key['body']['secret'], + 'devKey' => $devKey['body']['secret'], 'webhookId' => $webhook['body']['$id'], 'signatureKey' => $webhook['body']['signatureKey'], ]; + if ($fresh) { return $project; } diff --git a/tests/e2e/Scopes/Scope.php b/tests/e2e/Scopes/Scope.php index 3213ff4c5d0..6deaa62c05c 100644 --- a/tests/e2e/Scopes/Scope.php +++ b/tests/e2e/Scopes/Scope.php @@ -56,7 +56,7 @@ protected function getLastRequest(): array /** * @return array */ - abstract public function getHeaders(): array; + abstract public function getHeaders(bool $devKey = true): array; /** * @return array diff --git a/tests/e2e/Scopes/SideClient.php b/tests/e2e/Scopes/SideClient.php index 54f77a97479..17ee7a30022 100644 --- a/tests/e2e/Scopes/SideClient.php +++ b/tests/e2e/Scopes/SideClient.php @@ -4,12 +4,17 @@ trait SideClient { - public function getHeaders(): array + public function getHeaders(bool $devKey = true): array { - return [ + $headers = [ 'origin' => 'http://localhost', 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $this->getUser()['session'], + ]; + if ($devKey && isset($this->getProject()['devKey'])) { + $headers['x-appwrite-dev-key'] = $this->getProject()['devKey']; + } + return $headers; } /** diff --git a/tests/e2e/Scopes/SideConsole.php b/tests/e2e/Scopes/SideConsole.php index 74a0dd0c60d..9ad3e93d6ac 100644 --- a/tests/e2e/Scopes/SideConsole.php +++ b/tests/e2e/Scopes/SideConsole.php @@ -4,7 +4,7 @@ trait SideConsole { - public function getHeaders(): array + public function getHeaders(bool $devKey = true): array { return [ 'origin' => 'http://localhost', diff --git a/tests/e2e/Scopes/SideNone.php b/tests/e2e/Scopes/SideNone.php index 79c52afe005..1660beb7776 100644 --- a/tests/e2e/Scopes/SideNone.php +++ b/tests/e2e/Scopes/SideNone.php @@ -4,7 +4,7 @@ trait SideNone { - public function getHeaders(): array + public function getHeaders(bool $devKey = true): array { return []; } diff --git a/tests/e2e/Scopes/SideServer.php b/tests/e2e/Scopes/SideServer.php index b5e15150e9e..d27b2092b0a 100644 --- a/tests/e2e/Scopes/SideServer.php +++ b/tests/e2e/Scopes/SideServer.php @@ -9,7 +9,7 @@ trait SideServer */ protected $key = []; - public function getHeaders(): array + public function getHeaders(bool $devKey = false): array { return [ 'x-appwrite-key' => $this->getProject()['apiKey'] diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index 2d726251213..1a77cccb187 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -99,6 +99,7 @@ public function testCreateAccount(): array 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '', ]), [ 'userId' => ID::unique(), 'email' => '', @@ -112,13 +113,14 @@ public function testCreateAccount(): array 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '' ]), [ 'userId' => ID::unique(), 'email' => 'shortpass@appwrite.io', 'password' => $shortPassword ]); - $this->assertEquals($response['headers']['status-code'], 400); + $this->assertEquals(400, $response['headers']['status-code']); $longPassword = ''; for ($i = 0; $i < 257; $i++) { // 256 is the limit @@ -129,13 +131,14 @@ public function testCreateAccount(): array 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '' ]), [ 'userId' => ID::unique(), 'email' => 'longpass@appwrite.io', 'password' => $longPassword, ]); - $this->assertEquals($response['headers']['status-code'], 400); + $this->assertEquals(400, $response['headers']['status-code']); return [ 'id' => $id, @@ -156,7 +159,7 @@ public function testEmailOTPSession(): void 'email' => 'otpuser@appwrite.io' ]); - $this->assertEquals($response['headers']['status-code'], 201); + $this->assertEquals(201, $response['headers']['status-code'], ); $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['$createdAt']); $this->assertNotEmpty($response['body']['userId']); @@ -286,6 +289,7 @@ public function testDeleteAccount(): void 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '' ]), [ 'userId' => ID::unique(), 'email' => $email, diff --git a/tests/e2e/Services/Account/AccountCustomClientTest.php b/tests/e2e/Services/Account/AccountCustomClientTest.php index 244f84b1618..452b725c112 100644 --- a/tests/e2e/Services/Account/AccountCustomClientTest.php +++ b/tests/e2e/Services/Account/AccountCustomClientTest.php @@ -277,6 +277,7 @@ public function testGetAccountLogs($data): array { sleep(5); $session = $data['session'] ?? ''; + /** * Test for SUCCESS */ @@ -618,6 +619,7 @@ public function testUpdateAccountEmail($data): array 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '' ]), [ 'userId' => ID::unique(), 'email' => $data['email'], @@ -1216,6 +1218,7 @@ public function testSessionAlert($data): void 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '' ]), [ 'userId' => ID::unique(), 'email' => $email, @@ -2307,6 +2310,60 @@ public function testCreateSession(array $data): array $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['expire']); $this->assertEmpty($response['body']['secret']); + $this->assertEquals('browser', $response['body']['clientType']); + $this->assertEquals('CH', $response['body']['clientCode']); + $this->assertEquals('Chrome', $response['body']['clientName']); + + // Forwarded User Agent with API Key + $response = $this->client->call(Client::METHOD_POST, '/users/' . $data['id'] . '/tokens', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'expire' => 60 + ]); + + $userId = $response['body']['userId']; + $secret = $response['body']['secret']; + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + 'x-forwarded-user-agent' => 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36' + ], [ + 'userId' => $userId, + 'secret' => $secret + ]); + + $this->assertEquals('browser', $response['body']['clientType']); + $this->assertEquals('CM', actual: $response['body']['clientCode']); + $this->assertEquals('Chrome Mobile', $response['body']['clientName']); + + // Forwarded User Agent without API Key + $response = $this->client->call(Client::METHOD_POST, '/users/' . $data['id'] . '/tokens', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'expire' => 60 + ]); + + $userId = $response['body']['userId']; + $secret = $response['body']['secret']; + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-forwarded-user-agent' => 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36' + ], [ + 'userId' => $userId, + 'secret' => $secret + ]); + + $this->assertEquals('browser', $response['body']['clientType']); + $this->assertEquals('CH', $response['body']['clientCode']); + $this->assertEquals('Chrome', $response['body']['clientName']); /** * Test for FAILURE @@ -2364,6 +2421,33 @@ public function testPhoneVerification(array $data): array $message = $smsRequest['data']['message']; $token = substr($message, 0, 6); + /** + * Test for FAILURE + */ + + // disable phone sessions + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/phone', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'status' => false, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(false, $response['body']['authPhone']); + + $response = $this->client->call(Client::METHOD_POST, '/account/verification/phone', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session, + ])); + + $this->assertEquals(501, $response['headers']['status-code']); + $this->assertEquals("Phone authentication is disabled for this project", $response['body']['message']); + return \array_merge($data, [ 'token' => \substr($smsRequest['data']['message'], 0, 6) ]); @@ -2695,4 +2779,45 @@ public function testUpdateAccountPasswordWithMagicUrl($data): array return $data; } + + public function testCreatePushTarget(): void + { + $response = $this->client->call(Client::METHOD_POST, '/account/targets/push', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'targetId' => ID::unique(), + 'identifier' => 'test-identifier', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('test-identifier', $response['body']['identifier']); + } + + public function testUpdatePushTarget(): void + { + $response = $this->client->call(Client::METHOD_POST, '/account/targets/push', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'targetId' => ID::unique(), + 'identifier' => 'test-identifier-2', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('test-identifier-2', $response['body']['identifier']); + + $response = $this->client->call(Client::METHOD_PUT, '/account/targets/'. $response['body']['$id'] .'/push', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'identifier' => 'test-identifier-updated', + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('test-identifier-updated', $response['body']['identifier']); + $this->assertEquals(false, $response['body']['expired']); + } } diff --git a/tests/e2e/Services/Console/ConsoleConsoleClientTest.php b/tests/e2e/Services/Console/ConsoleConsoleClientTest.php index ca9287cdcae..6059cb2000c 100644 --- a/tests/e2e/Services/Console/ConsoleConsoleClientTest.php +++ b/tests/e2e/Services/Console/ConsoleConsoleClientTest.php @@ -24,13 +24,19 @@ public function testGetVariables(): void ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(7, $response['body']); - $this->assertIsString($response['body']['_APP_DOMAIN_TARGET']); + $this->assertCount(13, $response['body']); + $this->assertIsString($response['body']['_APP_DOMAIN_TARGET_CNAME']); + $this->assertIsString($response['body']['_APP_DOMAIN_TARGET_A']); + $this->assertIsString($response['body']['_APP_DOMAIN_TARGET_AAAA']); $this->assertIsInt($response['body']['_APP_STORAGE_LIMIT']); - $this->assertIsInt($response['body']['_APP_FUNCTIONS_SIZE_LIMIT']); - $this->assertIsString($response['body']['_APP_DOMAIN_TARGET']); + $this->assertIsInt($response['body']['_APP_COMPUTE_SIZE_LIMIT']); $this->assertIsBool($response['body']['_APP_DOMAIN_ENABLED']); $this->assertIsBool($response['body']['_APP_VCS_ENABLED']); $this->assertIsBool($response['body']['_APP_ASSISTANT_ENABLED']); + $this->assertIsString($response['body']['_APP_DOMAIN_SITES']); + $this->assertIsString($response['body']['_APP_DOMAIN_FUNCTIONS']); + $this->assertIsString($response['body']['_APP_OPTIONS_FORCE_HTTPS']); + $this->assertIsString($response['body']['_APP_DOMAINS_NAMESERVERS']); + // When adding new keys, dont forget to update count a few lines above } } diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 6ebd95aa5de..2b60dee856b 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -90,6 +90,12 @@ public function testCreateCollection(array $data): array */ public function testConsoleProject(array $data) { + if ($this->getSide() === 'server') { + // Server side can't get past the invalid key check anyway + $this->expectNotToPerformAssertions(); + return; + } + $response = $this->client->call( Client::METHOD_GET, '/databases/console/collections/' . $data['moviesId'] . '/documents', @@ -399,6 +405,73 @@ public function testListAttributes(array $data): void $this->assertEquals(400, $response['headers']['status-code']); } + /** + * @depends testCreateDatabase + */ + public function testPatchAttribute(array $data): void + { + $databaseId = $data['databaseId']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'patch', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + $this->assertEquals($collection['body']['name'], 'patch'); + + $attribute = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'title', + 'required' => true, + 'size' => 100, + ]); + $this->assertEquals(202, $attribute['headers']['status-code']); + $this->assertEquals($attribute['body']['size'], 100); + + sleep(1); + + $index = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/indexes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'titleIndex', + 'type' => 'key', + 'attributes' => ['title'], + ]); + $this->assertEquals(202, $index['headers']['status-code']); + + sleep(1); + + /** + * Update attribute size to exceed Index maximum length + */ + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/attributes/string/'.$attribute['body']['key'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), [ + 'size' => 1000, + 'required' => true, + 'default' => null, + ]); + + $this->assertEquals(400, $attribute['headers']['status-code']); + $this->assertStringContainsString('Index length is longer than the maximum: 76', $attribute['body']['message']); + } + public function testUpdateAttributeEnum(): void { $database = $this->client->call(Client::METHOD_POST, '/databases', [ @@ -1300,7 +1373,7 @@ public function testCreateIndexes(array $data): array ]); $this->assertEquals(400, $unknown['headers']['status-code']); - $this->assertEquals('Unknown attribute: Unknown', $unknown['body']['message']); + $this->assertEquals('Unknown attribute: Unknown. Verify the attribute name or create the attribute.', $unknown['body']['message']); $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', @@ -1349,9 +1422,102 @@ public function testCreateIndexes(array $data): array return $data; } + /** - * @depends testCreateIndexes - */ + * @depends testCreateAttributes + */ + public function testGetIndexByKeyWithLengths(array $data): void + { + $databaseId = $data['databaseId']; + $collectionId = $data['moviesId']; + + // Test case for valid lengths + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthTestIndex', + 'type' => 'key', + 'attributes' => ['title','description'], + 'lengths' => [128,200] + ]); + $this->assertEquals(202, $create['headers']['status-code']); + + // Fetch index and check correct lengths + $index = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$collectionId}/indexes/lengthTestIndex", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + $this->assertEquals(200, $index['headers']['status-code']); + $this->assertEquals('lengthTestIndex', $index['body']['key']); + $this->assertEquals([128, 200], $index['body']['lengths']); + + // Test case for lengths array overriding + // set a length for an array attribute, it should get overriden with Database::ARRAY_INDEX_LENGTH + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthOverrideTestIndex', + 'type' => 'key', + 'attributes' => ['actors'], + 'lengths' => [120] + ]); + $this->assertEquals(202, $create['headers']['status-code']); + + $index = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$collectionId}/indexes/lengthOverrideTestIndex", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + $this->assertEquals([Database::ARRAY_INDEX_LENGTH], $index['body']['lengths']); + + // Test case for count of lengths greater than attributes (should throw 400) + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthCountExceededIndex', + 'type' => 'key', + 'attributes' => ['title'], + 'lengths' => [128, 128] + ]); + $this->assertEquals(400, $create['headers']['status-code']); + + // Test case for lengths exceeding total of 768 + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthTooLargeIndex', + 'type' => 'key', + 'attributes' => ['title','description','tagline','actors'], + 'lengths' => [256,256,256,20] + ]); + + $this->assertEquals(400, $create['headers']['status-code']); + + // Test case for negative length values + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'negativeLengthIndex', + 'type' => 'key', + 'attributes' => ['title'], + 'lengths' => [-1] + ]); + $this->assertEquals(400, $create['headers']['status-code']); + } + /** + * @depends testCreateIndexes + */ public function testListIndexes(array $data): void { $databaseId = $data['databaseId']; @@ -1514,12 +1680,6 @@ public function testCreateDocument(array $data): array $this->assertEquals(400, $document4['headers']['status-code']); - // Delete document 4 with incomplete path - $this->assertEquals(404, $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()))['headers']['status-code']); - return $data; } @@ -1568,9 +1728,54 @@ public function testListDocuments(array $data): array $this->assertEquals(2019, $documents['body']['documents'][0]['releaseYear']); $this->assertCount(3, $documents['body']['documents']); + // changing description attribute to be null by default instead of empty string + $patchNull = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/attributes/string/description', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'default' => null, + 'required' => false, + ]); + // creating a dummy doc with null description + $document1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'title' => 'Dummy', + 'releaseYear' => 1944, + 'birthDay' => '1975-06-12 14:12:55+02:00', + 'actors' => [ + 'Dummy', + ], + ] + ]); + + $this->assertEquals(201, $document1['headers']['status-code']); + // fetching docs with cursor after the dummy doc with order attr description which is null + $documentsPaginated = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::orderAsc('dummy')->toString(), + Query::cursorAfter(new Document(['$id' => $document1['body']['$id']]))->toString() + ], + ]); + // should throw 400 as the order attr description of the selected doc is null + $this->assertEquals(400, $documentsPaginated['headers']['status-code']); + + // deleting the dummy doc created + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $document1['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); return ['documents' => $documents['body']['documents'], 'databaseId' => $databaseId]; } + /** * @depends testListDocuments */ @@ -1593,6 +1798,7 @@ public function testGetDocument(array $data): void $this->assertEquals($response['body']['$permissions'], $document['$permissions']); $this->assertEquals($response['body']['birthDay'], $document['birthDay']); $this->assertFalse(array_key_exists('$internalId', $response['body'])); + $this->assertFalse(array_key_exists('$tenant', $response['body'])); } } @@ -1743,6 +1949,21 @@ public function testListDocumentsAfterPagination(array $data): array $this->assertEquals(400, $documents['headers']['status-code']); + /** + * Test null value for cursor + */ + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + '{"method":"cursorAfter","values":[null]}', + ], + ]); + + $this->assertEquals(400, $documents['headers']['status-code']); + return []; } @@ -2095,7 +2316,7 @@ public function testDocumentsListQueries(array $data): array */ $conditions = []; - for ($i = 0; $i < 101; $i++) { + for ($i = 0; $i < APP_DATABASE_QUERY_MAX_VALUES + 1; $i++) { $conditions[] = $i; } @@ -2108,7 +2329,7 @@ public function testDocumentsListQueries(array $data): array ], ]); $this->assertEquals(400, $documents['headers']['status-code']); - $this->assertEquals('Invalid query: Query on attribute has greater than 100 values: releaseYear', $documents['body']['message']); + $this->assertEquals('Invalid query: Query on attribute has greater than '.APP_DATABASE_QUERY_MAX_VALUES.' values: releaseYear', $documents['body']['message']); $value = ''; @@ -2234,38 +2455,6 @@ public function testUpdateDocument(array $data): array $this->assertEquals(200, $response['headers']['status-code']); - /** - * Test for failure - */ - - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $id, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-timestamp' => 'invalid', - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Thor: Ragnarok', - ], - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - $this->assertEquals('Invalid X-Appwrite-Timestamp header value', $response['body']['message']); - $this->assertEquals(Exception::GENERAL_ARGUMENT_INVALID, $response['body']['type']); - - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $id, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-timestamp' => DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -1000)), - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Thor: Ragnarok', - ], - ]); - - $this->assertEquals(409, $response['headers']['status-code']); - $this->assertEquals('Remote document is newer than local.', $response['body']['message']); - $this->assertEquals(Exception::DOCUMENT_UPDATE_CONFLICT, $response['body']['type']); - return []; } @@ -4782,5 +4971,11 @@ public function testTimeout(array $data): void ]); $this->assertEquals(408, $response['headers']['status-code']); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); } } diff --git a/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php b/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php index ca77cf2581a..2266c91afe0 100644 --- a/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php +++ b/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php @@ -224,7 +224,7 @@ public function testGetDatabaseUsage(array $data) ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(5, count($response['body'])); + $this->assertEquals(11, count($response['body'])); $this->assertEquals('24h', $response['body']['range']); $this->assertIsNumeric($response['body']['documentsTotal']); $this->assertIsNumeric($response['body']['collectionsTotal']); diff --git a/tests/e2e/Services/Databases/DatabasesCustomClientTest.php b/tests/e2e/Services/Databases/DatabasesCustomClientTest.php index 84849960585..320508a1141 100644 --- a/tests/e2e/Services/Databases/DatabasesCustomClientTest.php +++ b/tests/e2e/Services/Databases/DatabasesCustomClientTest.php @@ -871,7 +871,6 @@ public function testUpdateWithoutRelationPermission(): void $this->assertEquals(200, $response['headers']['status-code']); - // We should be allowed to link and create a new document from collection 3 to collection 2. $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collection1['body']['$id'] . '/documents/' . $collection1['body']['$id'], array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Databases/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/DatabasesCustomServerTest.php index 085d3ca01b2..829960b54f6 100644 --- a/tests/e2e/Services/Databases/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/DatabasesCustomServerTest.php @@ -640,7 +640,7 @@ public function testUpdateCollection(array $data) } /** - * @depends testListCollections + * @depends testListCollections */ public function testCreateEncryptedAttribute(array $data): void { @@ -866,7 +866,7 @@ public function testDeleteAttribute(): array $this->assertEquals($collection['body']['indexes'][0]['key'], $index['body']['key']); // Delete attribute - $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $actors ['body']['$id'] . '/attributes/' . $unneededId, array_merge([ + $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $actors['body']['$id'] . '/attributes/' . $unneededId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] @@ -1362,7 +1362,7 @@ public function testAttributeRowWidthLimit() ]); $this->assertEquals(400, $tooWide['headers']['status-code']); - $this->assertEquals('Attribute limit exceeded', $tooWide['body']['message']); + $this->assertEquals('attribute_limit_exceeded', $tooWide['body']['type']); } public function testIndexLimitException() @@ -1646,7 +1646,6 @@ public function testAttributeUpdate(): array ]; } - /** * @depends testAttributeUpdate */ @@ -2310,22 +2309,17 @@ public function testAttributeUpdateInteger(array $data) $this->assertEquals(100, $new['body']['min']); $this->assertEquals(2000, $new['body']['max']); - /** - * Test against failure - */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => 'no boolean', - 'default' => 123, + 'required' => false, + 'default' => 100, 'min' => 0, - 'max' => 500 ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer/' . $key, array_merge([ 'content-type' => 'application/json', @@ -2333,22 +2327,23 @@ public function testAttributeUpdateInteger(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 'i am no integer', - 'min' => 0, - 'max' => 500 + 'default' => 10, + 'max' => 100, ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); + /** + * Test against failure + */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => false, - 'default' => 100, - 'min' => 'i am no integer', + 'required' => 'no boolean', + 'default' => 123, + 'min' => 0, 'max' => 500 ]); @@ -2361,9 +2356,9 @@ public function testAttributeUpdateInteger(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 100, + 'default' => 'i am no integer', 'min' => 0, - 'max' => 'i am no integer' + 'max' => 500 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2376,7 +2371,8 @@ public function testAttributeUpdateInteger(array $data) ]), [ 'required' => false, 'default' => 100, - 'min' => 0, + 'min' => 'i am no integer', + 'max' => 500 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2389,7 +2385,8 @@ public function testAttributeUpdateInteger(array $data) ]), [ 'required' => false, 'default' => 100, - 'max' => 0, + 'min' => 0, + 'max' => 'i am no integer' ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2573,22 +2570,17 @@ public function testAttributeUpdateFloat(array $data) $this->assertEquals(123.456, $new['body']['min']); $this->assertEquals(2000, $new['body']['max']); - /** - * Test against failure - */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => 'no boolean', + 'required' => false, 'default' => 123.456, 'min' => 0.0, - 'max' => 1000.0 ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/float/' . $key, array_merge([ 'content-type' => 'application/json', @@ -2596,23 +2588,24 @@ public function testAttributeUpdateFloat(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 'i am no integer', - 'min' => 0.0, - 'max' => 500.0 + 'default' => 23.456, + 'max' => 100.0, ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); + /** + * Test against failure + */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => false, + 'required' => 'no boolean', 'default' => 123.456, - 'min' => 'i am no integer', - 'max' => 500.0 + 'min' => 0.0, + 'max' => 1000.0 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2624,9 +2617,9 @@ public function testAttributeUpdateFloat(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 123.456, + 'default' => 'i am no integer', 'min' => 0.0, - 'max' => 'i am no integer' + 'max' => 500.0 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2639,7 +2632,8 @@ public function testAttributeUpdateFloat(array $data) ]), [ 'required' => false, 'default' => 123.456, - 'min' => 0.0, + 'min' => 'i am no integer', + 'max' => 500.0 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2652,7 +2646,8 @@ public function testAttributeUpdateFloat(array $data) ]), [ 'required' => false, 'default' => 123.456, - 'max' => 0.0, + 'min' => 0.0, + 'max' => 'i am no integer' ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -3242,6 +3237,189 @@ public function testAttributeUpdateEnum(array $data) $this->assertEquals(AppwriteException::ATTRIBUTE_DEFAULT_UNSUPPORTED, $update['body']['type']); } + /** + * @depends testAttributeUpdate + */ + public function testAttributeUpdateStringResize(array $data) + { + $key = 'string'; + $databaseId = $data['databaseId']; + $collectionId = $data['collectionId']; + + $document = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'string' => 'string' + ], + "permissions" => ["read(\"any\")"] + ] + ); + + // Test Resize Up + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string/' . $key, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'size' => 2048, + 'default' => '', + 'required' => false + ]); + + $this->assertEquals(200, $attribute['headers']['status-code']); + $this->assertEquals(2048, $attribute['body']['size']); + + // Test create new document with new size + $newDoc = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'string' => str_repeat('a', 2048) + ], + "permissions" => ["read(\"any\")"] + ] + ); + + $this->assertEquals(201, $newDoc['headers']['status-code']); + $this->assertEquals(2048, strlen($newDoc['body']['string'])); + + // Test update document with new size + $document = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $document['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'data' => [ + 'string' => str_repeat('a', 2048) + ] + ]); + + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertEquals(2048, strlen($document['body']['string'])); + + // Test Exception on resize down with data that is too large + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string/' . $key, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'size' => 10, + 'default' => '', + 'required' => false + ]); + + $this->assertEquals(400, $attribute['headers']['status-code']); + $this->assertEquals(AppwriteException::ATTRIBUTE_INVALID_RESIZE, $attribute['body']['type']); + + // original documents to original size, remove new document + $document = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $document['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'data' => [ + 'string' => 'string' + ] + ]); + + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertEquals('string', $document['body']['string']); + + $deleteDoc = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $newDoc['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertEquals(204, $deleteDoc['headers']['status-code']); + + + // Test Resize Down + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string/' . $key, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'size' => 10, + 'default' => '', + 'required' => false + ]); + + $this->assertEquals(200, $attribute['headers']['status-code']); + $this->assertEquals(10, $attribute['body']['size']); + + // Test create new document with new size + $newDoc = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'string' => str_repeat('a', 10) + ], + "permissions" => ["read(\"any\")"] + ] + ); + + $this->assertEquals(201, $newDoc['headers']['status-code']); + $this->assertEquals(10, strlen($newDoc['body']['string'])); + + // Test update document with new size + $document = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $document['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'data' => [ + 'string' => str_repeat('a', 10) + ] + ]); + + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertEquals(10, strlen($document['body']['string'])); + + // Try create document with string that is too large + $newDoc = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'string' => str_repeat('a', 11) + ], + "permissions" => ["read(\"any\")"] + ] + ); + + $this->assertEquals(400, $newDoc['headers']['status-code']); + $this->assertEquals(AppwriteException::DOCUMENT_INVALID_STRUCTURE, $newDoc['body']['type']); + } + /** * @depends testAttributeUpdate */ @@ -3328,4 +3506,1647 @@ public function testAttributeUpdateNotFound(array $data) $this->assertEquals(AppwriteException::ATTRIBUTE_NOT_FOUND, $update['body']['type']); } } + + /** + * @depends testAttributeUpdate + */ + public function testAttributeRename(array $data) + { + $key = 'string'; + $databaseId = $data['databaseId']; + $collectionId = $data['collectionId']; + + // Create document to test against + $document = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'string' => 'string' + ], + "permissions" => ["read(\"any\")"] + ] + ); + + $this->assertEquals(201, $document['headers']['status-code']); + + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string/' . $key, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'required' => false, + 'default' => 'lorum', + 'newKey' => 'new_string', + ]); + + $this->assertEquals(200, $update['headers']['status-code']); + + $key = 'new_string'; + + $new = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/' . $key, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertEquals('new_string', $new['body']['key']); + + $doc1 = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $document['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('new_string', $doc1['body']); + $this->assertEquals('string', $doc1['body']['new_string']); + $this->assertArrayNotHasKey('string', $doc1['body']); + + // Try and create a new document with the new attribute + $doc2 = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'new_string' => 'string' + ], + "permissions" => ["read(\"any\")"] + ] + ); + + $this->assertEquals(201, $doc2['headers']['status-code']); + $this->assertArrayHasKey('new_string', $doc2['body']); + $this->assertEquals('string', $doc2['body']['new_string']); + + // Expect fail, try and create a new document with the old attribute + $doc3 = $this->client->call( + Client::METHOD_POST, + '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), + [ + 'documentId' => 'unique()', + 'data' => [ + 'string' => 'string' + ], + "permissions" => ["read(\"any\")"] + ] + ); + + $this->assertEquals(400, $doc3['headers']['status-code']); + } + + public function createRelationshipCollections() + { + // Prepare the database with collections and relationships + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => 'database1', + 'name' => 'Test Database' + ]); + + $databaseId = $database['body']['$id']; + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => 'collection1', + 'name' => 'level1', + 'documentSecurity' => false, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ] + ]); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => 'collection2', + 'name' => 'level2', + 'documentSecurity' => false, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ] + ]); + + \sleep(2); + } + + public function cleanupRelationshipCollection() + { + $this->client->call(Client::METHOD_DELETE, '/databases/database1', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + \sleep(2); + } + + public function testAttributeRenameRelationshipOneToMany() + { + $databaseId = 'database1'; + $collection1Id = 'collection1'; + $collection2Id = 'collection2'; + + $this->createRelationshipCollections(); + + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $collection2Id, + 'type' => 'oneToMany', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + \sleep(3); + + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $collection1RelationAttribute = $collection1Attributes['body']['attributes'][0]; + + $this->assertEquals($relation['body']['side'], $collection1RelationAttribute['side']); + $this->assertEquals($relation['body']['twoWayKey'], $collection1RelationAttribute['twoWayKey']); + $this->assertEquals($relation['body']['relatedCollection'], $collection1RelationAttribute['relatedCollection']); + + // Create a document for checking later + $originalDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'documentId' => 'unique()', + 'data' => [ + 'level2' => [[ + '$id' => 'unique()', + '$permissions' => ["read(\"any\")"] + ]], + ], + "permissions" => ["read(\"any\")"] + ]); + + $this->assertEquals(201, $originalDocument['headers']['status-code']); + + // Rename the attribute + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/level2' . '/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'newKey' => 'new_level_2' + ]); + + $this->assertEquals(200, $update['headers']['status-code']); + + // Check the document's key has been renamed + $newDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents/' . $originalDocument['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('new_level_2', $newDocument['body']); + $this->assertEquals(1, count($newDocument['body']['new_level_2'])); + $this->assertArrayNotHasKey('level2', $newDocument['body']); + + // Check level2 document has been renamed + $level2Document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id . '/documents/' . $newDocument['body']['new_level_2'][0]['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('level1', $level2Document['body']); + $this->assertNotEmpty($level2Document['body']['level1']); + + // Check if attribute was renamed on the parent's side + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection1Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection1Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection1Attributes['body']['attributes'][0]['key']); + + // Check if attribute was renamed on the child's side + $collection2Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection2Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection2Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection2Attributes['body']['attributes'][0]['twoWayKey']); + + $this->cleanupRelationshipCollection(); + } + + public function testAttributeRenameRelationshipOneToOne() + { + $databaseId = 'database1'; + $collection1Id = 'collection1'; + $collection2Id = 'collection2'; + + $this->createRelationshipCollections(); + + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $collection2Id, + 'type' => 'oneToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + \sleep(3); + + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $collection1RelationAttribute = $collection1Attributes['body']['attributes'][0]; + + $this->assertEquals($relation['body']['side'], $collection1RelationAttribute['side']); + $this->assertEquals($relation['body']['twoWayKey'], $collection1RelationAttribute['twoWayKey']); + $this->assertEquals($relation['body']['relatedCollection'], $collection1RelationAttribute['relatedCollection']); + + // Create a document for checking later + $originalDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'documentId' => 'unique()', + 'data' => [ + 'level2' => [ + '$id' => 'unique()', + '$permissions' => ["read(\"any\")"] + ], + ], + "permissions" => ["read(\"any\")"] + ]); + + $this->assertEquals(201, $originalDocument['headers']['status-code']); + + // Rename the attribute + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/level2' . '/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'newKey' => 'new_level_2' + ]); + + $this->assertEquals(200, $update['headers']['status-code']); + + // Check the document's key has been renamed + $newDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents/' . $originalDocument['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('new_level_2', $newDocument['body']); + $this->assertNotEmpty($newDocument['body']['new_level_2']); + $this->assertArrayNotHasKey('level2', $newDocument['body']); + + // Check level2 document has been renamed + $level2Document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id . '/documents/' . $newDocument['body']['new_level_2']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('level1', $level2Document['body']); + $this->assertNotEmpty($level2Document['body']['level1']); + + // Check if attribute was renamed on the parent's side + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection1Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection1Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection1Attributes['body']['attributes'][0]['key']); + + // Check if attribute was renamed on the child's side + $collection2Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection2Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection2Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection2Attributes['body']['attributes'][0]['twoWayKey']); + + $this->cleanupRelationshipCollection(); + } + + public function testAttributeRenameRelationshipManyToOne() + { + $databaseId = 'database1'; + $collection1Id = 'collection1'; + $collection2Id = 'collection2'; + + $this->createRelationshipCollections(); + + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $collection2Id, + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + \sleep(3); + + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $collection1RelationAttribute = $collection1Attributes['body']['attributes'][0]; + + $this->assertEquals($relation['body']['side'], $collection1RelationAttribute['side']); + $this->assertEquals($relation['body']['twoWayKey'], $collection1RelationAttribute['twoWayKey']); + $this->assertEquals($relation['body']['relatedCollection'], $collection1RelationAttribute['relatedCollection']); + + // Create a document for checking later + $originalDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'documentId' => 'unique()', + 'data' => [ + 'level2' => [ + '$id' => 'unique()', + '$permissions' => ["read(\"any\")"] + ], + ], + "permissions" => ["read(\"any\")"] + ]); + + $this->assertEquals(201, $originalDocument['headers']['status-code']); + + // Rename the attribute + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/level2' . '/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'newKey' => 'new_level_2' + ]); + + $this->assertEquals(200, $update['headers']['status-code']); + + // Check the document's key has been renamed + $newDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents/' . $originalDocument['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('new_level_2', $newDocument['body']); + $this->assertNotEmpty($newDocument['body']['new_level_2']); + $this->assertArrayNotHasKey('level2', $newDocument['body']); + + // Check level2 document has been renamed + $level2Document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id . '/documents/' . $newDocument['body']['new_level_2']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('level1', $level2Document['body']); + $this->assertNotEmpty($level2Document['body']['level1']); + + // Check if attribute was renamed on the parent's side + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection1Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection1Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection1Attributes['body']['attributes'][0]['key']); + + // Check if attribute was renamed on the child's side + $collection2Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection2Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection2Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection2Attributes['body']['attributes'][0]['twoWayKey']); + + $this->cleanupRelationshipCollection(); + } + + public function testAttributeRenameRelationshipManyToMany() + { + $databaseId = 'database1'; + $collection1Id = 'collection1'; + $collection2Id = 'collection2'; + + $this->createRelationshipCollections(); + + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $collection2Id, + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + \sleep(3); + + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $collection1RelationAttribute = $collection1Attributes['body']['attributes'][0]; + + $this->assertEquals($relation['body']['side'], $collection1RelationAttribute['side']); + $this->assertEquals($relation['body']['twoWayKey'], $collection1RelationAttribute['twoWayKey']); + $this->assertEquals($relation['body']['relatedCollection'], $collection1RelationAttribute['relatedCollection']); + + // Create a document for checking later + $originalDocument = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'documentId' => 'unique()', + 'data' => [ + 'level2' => [ + '$id' => 'unique()', + '$permissions' => ["read(\"any\")"] + ], + ], + "permissions" => ["read(\"any\")"] + ]); + + $this->assertEquals(201, $originalDocument['headers']['status-code']); + + // Rename the attribute + $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/attributes/level2' . '/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'newKey' => 'new_level_2' + ]); + + $this->assertEquals(200, $update['headers']['status-code']); + + // Check the document's key has been renamed + $newDocument = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id . '/documents/' . $originalDocument['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('new_level_2', $newDocument['body']); + $this->assertNotEmpty($newDocument['body']['new_level_2']); + $this->assertArrayNotHasKey('level2', $newDocument['body']); + + // Check level2 document has been renamed + $level2Document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id . '/documents/' . $newDocument['body']['new_level_2']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->assertArrayHasKey('level1', $level2Document['body']); + $this->assertNotEmpty($level2Document['body']['level1']); + + // Check if attribute was renamed on the parent's side + $collection1Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection1Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection1Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection1Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection1Attributes['body']['attributes'][0]['key']); + + // Check if attribute was renamed on the child's side + $collection2Attributes = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collection2Id, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + + $this->assertEquals(200, $collection2Attributes['headers']['status-code']); + $this->assertEquals(1, count($collection2Attributes['body']['attributes'])); + $this->assertEquals('new_level_2', $collection2Attributes['body']['attributes'][0]['twoWayKey']); + + $this->cleanupRelationshipCollection(); + } + + public function testBulkCreate(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Create Perms', + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Create Perms', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ], + [ + '$id' => ID::unique(), + 'number' => 2, + ], + [ + '$id' => ID::unique(), + 'number' => 3, + ], + ], + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + $response = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(1, $response['body']['documents'][0]['number']); + $this->assertEquals(2, $response['body']['documents'][1]['number']); + $this->assertEquals(3, $response['body']['documents'][2]['number']); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + // TEST SUCCESS - $id is auto-assigned if not included in bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + // TEST FAIL - Can't use data and document together + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 5 + ], + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't use $documentId and create bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't include invalid ID in bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => '$invalid', + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't miss number in bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ], + [ + '$id' => ID::unique(), + ], + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't push more than APP_LIMIT_DATABASE_BATCH documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => array_fill(0, APP_LIMIT_DATABASE_BATCH + 1, [ + '$id' => ID::unique(), + 'number' => 1, + ]), + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't include invalid permissions in nested documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + '$permissions' => ['invalid'], + 'number' => 1, + ], + ], + ]); + + // TEST FAIL - Can't bulk create in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + ['$id' => ID::unique(), 'number' => 1,], + ['$id' => ID::unique(), 'number' => 2,], + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } + + public function testBulkUpdate(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Updates' + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Updates', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + // Wait for database worker to create attributes + sleep(2); + + // Create documents + $createBulkDocuments = function ($amount = 10) use ($data) { + $documents = []; + + for ($x = 1; $x <= $amount; $x++) { + $documents[] = [ + '$id' => ID::unique(), + 'number' => $x, + ]; + } + + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + $this->assertEquals(201, $doc['headers']['status-code']); + }; + + $createBulkDocuments(); + + // TEST: Update all documents + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 100, + '$permissions' => [ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ] + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(10, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + Query::equal('number', [100])->toString(), + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + $returnedDocuments = $response['body']['documents']; + $refetchedDocuments = $documents['body']['documents']; + + $this->assertEquals($returnedDocuments, $refetchedDocuments); + + foreach ($documents['body']['documents'] as $document) { + $this->assertEquals([ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], $document['$permissions']); + $this->assertEquals($collection['body']['$id'], $document['$collectionId']); + $this->assertEquals($data['databaseId'], $document['$databaseId']); + $this->assertEquals($document['number'], 100); + } + + // TEST: Check permissions persist + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 200 + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(10, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + Query::equal('number', [200])->toString(), + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + foreach ($documents['body']['documents'] as $document) { + $this->assertEquals([ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], $document['$permissions']); + } + + // TEST: Update documents with limit + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 300 + ], + 'queries' => [ + Query::limit(5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('number', [200])->toString()] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(5, $documents['body']['total']); + + // TEST: Update documents with offset + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 300 + ], + 'queries' => [ + Query::offset(5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('number', [300])->toString()] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + // TEST: Update documents with equals filter + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 400 + ], + 'queries' => [ + Query::equal('number', [300])->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(10, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('number', [400])->toString()] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + // TEST: Fail - Can't bulk update in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 500 + ], + 'queries' => [ + Query::equal('number', [300])->toString(), + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } + + public function testBulkUpsert(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Upserts' + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Upserts', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + // Wait for database worker to create attributes + sleep(2); + + // Create documents + $createBulkDocuments = function ($amount = 10) use ($data) { + $documents = []; + + for ($x = 1; $x <= $amount; $x++) { + $documents[] = [ + '$id' => "$x", + 'number' => $x, + ]; + } + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + return $documents; + }; + + $documents = $createBulkDocuments(); + + // Update 1 document + $documents[\array_key_last($documents)]['number'] = 1000; + + // Add 1 document + $documents[] = ['number' => 11]; + + // TEST: Upsert all documents + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + // Unchanged docs are skipped. 2 documents should be returned, 1 updated and 1 inserted. + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['documents']); + $this->assertEquals(1000, $response['body']['documents'][0]['number']); + $this->assertEquals(11, $response['body']['documents'][1]['number']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + foreach ($documents['body']['documents'] as $index => $document) { + $this->assertEquals($collection['body']['$id'], $document['$collectionId']); + $this->assertEquals($data['databaseId'], $document['$databaseId']); + switch ($index) { + case 9: + $this->assertEquals(1000, $document['number']); + break; + default: + $this->assertEquals($index + 1, $document['number']); + } + } + + // TEST: Upsert permissions + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => '1', + 'number' => 1000, + ], + [ + '$id' => '10', + '$permissions' => [ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + 'number' => 10, + ], + ], + ]); + + $this->assertEquals(1000, $response['body']['documents'][0]['number']); + $this->assertEquals([], $response['body']['documents'][0]['$permissions']); + $this->assertEquals([ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], $response['body']['documents'][1]['$permissions']); + + // TEST: Fail - Can't bulk upsert in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => '1', + 'number' => 1000, + ], + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } + + public function testBulkDelete(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Deletes' + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Deletes', + 'documentSecurity' => false, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + // wait for database worker to create attributes + sleep(2); + + // Create documents + $createBulkDocuments = function ($amount = 11) use ($data) { + $documents = []; + + for ($x = 0; $x < $amount; $x++) { + $documents[] = [ + '$id' => ID::unique(), + 'number' => $x, + ]; + } + + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + $this->assertEquals(201, $doc['headers']['status-code']); + }; + + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + // TEST: Delete all documents + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(11, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(0, $documents['body']['total']); + + // TEST: Delete documents with query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::lessThan('number', 5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(5, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(6, $documents['body']['total']); + + foreach ($documents['body']['documents'] as $document) { + $this->assertGreaterThanOrEqual(5, $document['number']); + } + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(6, $response['body']['total']); + + // SUCCESS: Delete documents with query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::lessThan('number', 5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(5, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(6, $documents['body']['total']); + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(6, $response['body']['total']); + + // SUCCESS: Delete Documents with limit query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::limit(2)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(2, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(9, $documents['body']['total']); + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(9, $response['body']['total']); + + // SUCCESS: Delete Documents with offset query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::offset(5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(6, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(5, $documents['body']['total']); + + $lastDoc = end($documents['body']['documents']); + + $this->assertNotEmpty($lastDoc); + $this->assertEquals(4, $lastDoc['number']); + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(5, $response['body']['total']); + + // SUCCESS: Delete 100 documents + $createBulkDocuments(100); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(100, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(100, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(0, $documents['body']['total']); + + // TEST: Fail - Can't bulk delete in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(400, $response['headers']['status-code']); + } } diff --git a/tests/e2e/Services/Databases/DatabasesPermissionsScope.php b/tests/e2e/Services/Databases/DatabasesPermissionsScope.php index 336e47db08d..0042d253ac4 100644 --- a/tests/e2e/Services/Databases/DatabasesPermissionsScope.php +++ b/tests/e2e/Services/Databases/DatabasesPermissionsScope.php @@ -15,6 +15,7 @@ public function createUser(string $id, string $email, string $password = 'test12 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-dev-key' => $this->getProject()['devKey'] ?? '', ], [ 'userId' => $id, 'email' => $email, diff --git a/tests/e2e/Services/Functions/FunctionsBase.php b/tests/e2e/Services/Functions/FunctionsBase.php index abefb5c9a30..475eb9b9b42 100644 --- a/tests/e2e/Services/Functions/FunctionsBase.php +++ b/tests/e2e/Services/Functions/FunctionsBase.php @@ -2,234 +2,411 @@ namespace Tests\E2E\Services\Functions; +use Appwrite\Tests\Async; +use CURLFile; use Tests\E2E\Client; use Utopia\CLI\Console; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Query; +use Utopia\System\System; trait FunctionsBase { + use Async; + protected string $stdout = ''; protected string $stderr = ''; - protected function packageCode($folder) + protected function setupFunction(mixed $params): string { - Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/$folder && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), $params); + + $this->assertEquals($function['headers']['status-code'], 201, 'Setup function failed with status code: ' . $function['headers']['status-code'] . ' and response: ' . json_encode($function['body'], JSON_PRETTY_PRINT)); + + $functionId = $function['body']['$id']; + + return $functionId; } - protected function awaitDeploymentIsBuilt($functionId, $deploymentId, $checkForSuccess = true): void + protected function setupDeployment(string $functionId, mixed $params): string { - while (true) { - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), $params); + $this->assertEquals($deployment['headers']['status-code'], 202, 'Setup deployment failed with status code: ' . $deployment['headers']['status-code'] . ' and response: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); + ])); + $this->assertEquals('ready', $deployment['body']['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 50000, 500); + + // Not === so multipart/form-data works fine too + if (($params['activate'] ?? false) == true) { + $this->assertEventually(function () use ($functionId, $deploymentId) { + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + $this->assertEquals($deploymentId, $function['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($function['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + } - if ( - $deployment['headers']['status-code'] >= 400 - || \in_array($deployment['body']['status'], ['ready', 'failed']) - ) { - break; - } + return $deploymentId; + } - \sleep(1); - } + protected function cleanupFunction(string $functionId): void + { + $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + + $this->assertEquals($function['headers']['status-code'], 204); + } + + protected function createFunction(mixed $params): mixed + { + $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $function; + } + + protected function updateFunction(string $functionId, mixed $params): mixed + { + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $function; + } + + protected function createVariable(string $functionId, mixed $params): mixed + { + $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variable; + } + + protected function getVariable(string $functionId, string $variableId): mixed + { + $variable = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/variables/' . $variableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $variable; + } + + protected function updateVariable(string $functionId, string $variableId, mixed $params): mixed + { + $variable = $this->client->call(Client::METHOD_PUT, '/functions/' . $functionId . '/variables/' . $variableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variable; + } + + protected function listVariables(string $functionId, mixed $params = []): mixed + { + $variables = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variables; + } + + protected function deleteVariable(string $functionId, string $variableId): mixed + { + $variable = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId . '/variables/' . $variableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $variable; + } + + protected function getFunction(string $functionId): mixed + { + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $function; + } + + protected function getDeployment(string $functionId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $deployment; + } + + protected function getExecution(string $functionId, $executionId): mixed + { + $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $executionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $execution; + } + + protected function listFunctions(mixed $params = []): mixed + { + $functions = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $functions; + } + + protected function listDeployments(string $functionId, $params = []): mixed + { + $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployments; + } + + protected function listExecutions(string $functionId, mixed $params = []): mixed + { + $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $executions; + } - if($checkForSuccess) { - $this->assertEquals(200, $deployment['headers']['status-code']); - $this->assertEquals('ready', $deployment['body']['status'], \json_encode($deployment['body'])); + protected function packageFunction(string $function): CURLFile + { + $folderPath = realpath(__DIR__ . '/../../../resources/functions') . "/$function"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); + } + + protected function createDeployment(string $functionId, mixed $params = []): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployment; + } + + protected function deleteDeployment(string $functionId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + return $deployment; + } + + protected function createTemplateDeployment(string $functionId, mixed $params = []): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments/template', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployment; } - // /** - // * @depends testCreateTeam - // */ - // public function testGetTeam($data):array - // { - // $id = $data['teamUid'] ?? ''; - - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_GET, '/teams/'.$id, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Arsenal', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // /** - // * Test for FAILURE - // */ - - // return []; - // } - - // /** - // * @depends testCreateTeam - // */ - // public function testListTeams($data):array - // { - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(3, $response['body']['teams']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'limit' => 2, - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(2, $response['body']['teams']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'offset' => 1, - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(2, $response['body']['teams']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'search' => 'Manchester', - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(1, $response['body']['teams']); - // $this->assertEquals('Manchester United', $response['body']['teams'][0]['name']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'search' => 'United', - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(1, $response['body']['teams']); - // $this->assertEquals('Manchester United', $response['body']['teams'][0]['name']); - - // /** - // * Test for FAILURE - // */ - - // return []; - // } - - // public function testUpdateTeam():array - // { - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'name' => 'Demo' - // ]); - - // $this->assertEquals(201, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Demo', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // $response = $this->client->call(Client::METHOD_PUT, '/teams/'.$response['body']['$id'], array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'name' => 'Demo New' - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Demo New', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // /** - // * Test for FAILURE - // */ - // $response = $this->client->call(Client::METHOD_PUT, '/teams/'.$response['body']['$id'], array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // ]); - - // $this->assertEquals(400, $response['headers']['status-code']); - - // return []; - // } - - // public function testDeleteTeam():array - // { - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'name' => 'Demo' - // ]); - - // $teamUid = $response['body']['$id']; - - // $this->assertEquals(201, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Demo', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // $response = $this->client->call(Client::METHOD_DELETE, '/teams/'.$teamUid, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(204, $response['headers']['status-code']); - // $this->assertEmpty($response['body']); - - // /** - // * Test for FAILURE - // */ - // $response = $this->client->call(Client::METHOD_GET, '/teams/'.$teamUid, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(404, $response['headers']['status-code']); - - // return []; - // } + protected function getUsage(string $functionId, mixed $params): mixed + { + $usage = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/usage', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $usage; + } + + protected function getTemplate(string $templateId) + { + $template = $this->client->call(Client::METHOD_GET, '/functions/templates/' . $templateId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + return $template; + } + + protected function createExecution(string $functionId, mixed $params = []): mixed + { + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $execution; + } + + protected function deleteFunction(string $functionId): mixed + { + $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $function; + } + + protected function setupFunctionDomain(string $functionId, string $subdomain = ''): string + { + $subdomain = $subdomain ? $subdomain : ID::unique(); + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/function', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_FUNCTIONS', ''), + 'functionId' => $functionId, + ]); + + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertNotEmpty($rule['body']['$id']); + $this->assertNotEmpty($rule['body']['domain']); + + $domain = $rule['body']['domain']; + + return $domain; + } + + protected function getFunctionDomain(string $functionId): string + { + $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::equal('deploymentResourceId', [$functionId])->toString(), + Query::equal('trigger', ['manual'])->toString(), + Query::equal('type', ['deployment'])->toString(), + ], + ]); + + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertGreaterThanOrEqual(1, $rules['body']['total']); + $this->assertGreaterThanOrEqual(1, \count($rules['body']['rules'])); + $this->assertNotEmpty($rules['body']['rules'][0]['domain']); + + $domain = $rules['body']['rules'][0]['domain']; + + return $domain; + } + + protected function getDeploymentDownload(string $functionId, string $deploymentId, string $type): mixed + { + $response = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId . '/download', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'type' => $type + ]); + + return $response; + } + + protected function setupDuplicateDeployment(string $functionId, string $deploymentId): string + { + $deployment = $this->createDuplicateDeployment($functionId, $deploymentId); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); + $this->assertEquals('ready', $deployment['body']['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $function = $this->getFunction($functionId); + $this->assertEquals($deploymentId, $function['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($function['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + return $deploymentId; + } + + protected function createDuplicateDeployment(string $functionId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments/duplicate', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'deploymentId' => $deploymentId, + ]); + + return $deployment; + } + + protected function updateFunctionDeployment(string $functionId, string $deploymentId): mixed + { + $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployment', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'deploymentId' => $deploymentId + ]); + + return $function; + } + + protected function cancelDeployment(string $functionId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId . '/status', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $deployment; + } + + protected function listSpecifications(): mixed + { + $specifications = $this->client->call(Client::METHOD_GET, '/functions/specifications', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $specifications; + } } diff --git a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php index 8cb7f6f8693..24215f53520 100644 --- a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php @@ -13,13 +13,11 @@ class FunctionsConsoleClientTest extends Scope { use ProjectCustom; use SideConsole; + use FunctionsBase; public function testCreateFunction(): array { - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::user($this->getUser()['$id'])->toString()], @@ -35,10 +33,9 @@ public function testCreateFunction(): array $this->assertEquals(201, $function['headers']['status-code']); - $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $function['body']['$id']; + + $function2 = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test Failure', 'execute' => ['some-random-string'], @@ -46,73 +43,59 @@ public function testCreateFunction(): array 'entrypoint' => 'index.php', ]); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(400, $function2['headers']['status-code']); return [ - 'functionId' => $function['body']['$id'] + 'functionId' => $functionId, ]; } /** * @depends testCreateFunction */ - public function testGetCollectionUsage(array $data) + public function testFunctionUsage(array $data) { /** - * Test for FAILURE + * Test for SUCCESS */ - - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ - 'range' => '232h' - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - $response = $this->client->call(Client::METHOD_GET, '/functions/randomFunctionId/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ + $usage = $this->getUsage($data['functionId'], [ 'range' => '24h' ]); - - $this->assertEquals(404, $response['headers']['status-code']); + $this->assertEquals(200, $usage['headers']['status-code']); + $this->assertEquals(24, count($usage['body'])); + $this->assertEquals('24h', $usage['body']['range']); + $this->assertIsNumeric($usage['body']['deploymentsTotal']); + $this->assertIsNumeric($usage['body']['deploymentsStorageTotal']); + $this->assertIsNumeric($usage['body']['buildsTotal']); + $this->assertIsNumeric($usage['body']['buildsStorageTotal']); + $this->assertIsNumeric($usage['body']['buildsTimeTotal']); + $this->assertIsNumeric($usage['body']['buildsMbSecondsTotal']); + $this->assertIsNumeric($usage['body']['executionsTotal']); + $this->assertIsNumeric($usage['body']['executionsTimeTotal']); + $this->assertIsNumeric($usage['body']['executionsMbSecondsTotal']); + $this->assertIsArray($usage['body']['deployments']); + $this->assertIsArray($usage['body']['deploymentsStorage']); + $this->assertIsArray($usage['body']['builds']); + $this->assertIsArray($usage['body']['buildsTime']); + $this->assertIsArray($usage['body']['buildsStorage']); + $this->assertIsArray($usage['body']['buildsTime']); + $this->assertIsArray($usage['body']['buildsMbSeconds']); + $this->assertIsArray($usage['body']['executions']); + $this->assertIsArray($usage['body']['executionsTime']); + $this->assertIsArray($usage['body']['executionsMbSeconds']); /** - * Test for SUCCESS + * Test for FAILURE */ + $usage = $this->getUsage($data['functionId'], [ + 'range' => '232h' + ]); + $this->assertEquals(400, $usage['headers']['status-code']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ + $usage = $this->getUsage('randomFunctionId', [ 'range' => '24h' ]); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(19, count($response['body'])); - $this->assertEquals('24h', $response['body']['range']); - $this->assertIsNumeric($response['body']['deploymentsTotal']); - $this->assertIsNumeric($response['body']['deploymentsStorageTotal']); - $this->assertIsNumeric($response['body']['buildsTotal']); - $this->assertIsNumeric($response['body']['buildsStorageTotal']); - $this->assertIsNumeric($response['body']['buildsTimeTotal']); - $this->assertIsNumeric($response['body']['buildsMbSecondsTotal']); - $this->assertIsNumeric($response['body']['executionsTotal']); - $this->assertIsNumeric($response['body']['executionsTimeTotal']); - $this->assertIsNumeric($response['body']['executionsMbSecondsTotal']); - $this->assertIsArray($response['body']['deployments']); - $this->assertIsArray($response['body']['deploymentsStorage']); - $this->assertIsArray($response['body']['builds']); - $this->assertIsArray($response['body']['buildsTime']); - $this->assertIsArray($response['body']['buildsStorage']); - $this->assertIsArray($response['body']['buildsTime']); - $this->assertIsArray($response['body']['buildsMbSeconds']); - $this->assertIsArray($response['body']['executions']); - $this->assertIsArray($response['body']['executionsTime']); - $this->assertIsArray($response['body']['executionsMbSeconds']); + $this->assertEquals(404, $usage['headers']['status-code']); } /** @@ -123,60 +106,80 @@ public function testCreateFunctionVariable(array $data) /** * Test for SUCCESS */ + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'APP_TEST', + 'value' => 'TESTINGVALUE', + 'secret' => false + ] + ); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'APP_TEST', - 'value' => 'TESTINGVALUE' - ]); + $this->assertEquals(201, $variable['headers']['status-code']); + + $variableId = $variable['body']['$id']; + + // test for secret variable + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'APP_TEST_1', + 'value' => 'TESTINGVALUE_1', + 'secret' => true + ] + ); + + $this->assertEquals(201, $variable['headers']['status-code']); + $this->assertEquals('APP_TEST_1', $variable['body']['key']); + $this->assertEmpty($variable['body']['value']); + $this->assertTrue($variable['body']['secret']); - $this->assertEquals(201, $response['headers']['status-code']); - $variableId = $response['body']['$id']; + $secretVariableId = $variable['body']['$id']; /** * Test for FAILURE */ + // Test for duplicate key + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'APP_TEST', + 'value' => 'ANOTHERTESTINGVALUE', + 'secret' => false + ] + ); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'APP_TEST', - 'value' => 'ANOTHER_TESTINGVALUE' - ]); - - $this->assertEquals(409, $response['headers']['status-code']); + $this->assertEquals(409, $variable['headers']['status-code']); - return array_merge( - $data, + // Test for invalid key + $variable = $this->createVariable( + $data['functionId'], [ - 'variableId' => $variableId + 'key' => str_repeat("A", 256), + 'value' => 'TESTINGVALUE' ] ); - $longKey = str_repeat("A", 256); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => $longKey, - 'value' => 'TESTINGVALUE' - ]); + $this->assertEquals(400, $variable['headers']['status-code']); - $this->assertEquals(400, $response['headers']['status-code']); + // Test for invalid value + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'LONGKEY', + 'value' => str_repeat("#", 8193), + ] + ); - $longValue = str_repeat("#", 8193); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'LONGKEY', - 'value' => $longValue - ]); + $this->assertEquals(400, $variable['headers']['status-code']); - $this->assertEquals(400, $response['headers']['status-code']); + return array_merge( + $data, + [ + 'variableId' => $variableId, + 'secretVariableId' => $secretVariableId + ] + ); } /** @@ -194,10 +197,12 @@ public function testListVariables(array $data) ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(1, sizeof($response['body']['variables'])); - $this->assertEquals(1, $response['body']['total']); + $this->assertEquals(2, sizeof($response['body']['variables'])); + $this->assertEquals(2, $response['body']['total']); $this->assertEquals("APP_TEST", $response['body']['variables'][0]['key']); $this->assertEquals("TESTINGVALUE", $response['body']['variables'][0]['value']); + $this->assertEquals("APP_TEST_1", $response['body']['variables'][1]['key']); + $this->assertEmpty($response['body']['variables'][1]['value']); /** * Test for FAILURE @@ -224,6 +229,15 @@ public function testGetVariable(array $data) $this->assertEquals("APP_TEST", $response['body']['key']); $this->assertEquals("TESTINGVALUE", $response['body']['value']); + $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_1", $response['body']['key']); + $this->assertEmpty($response['body']['value']); + /** * Test for FAILURE */ @@ -268,6 +282,27 @@ public function testUpdateVariable(array $data) $this->assertEquals("APP_TEST_UPDATE", $variable['body']['key']); $this->assertEquals("TESTINGVALUEUPDATED", $variable['body']['value']); + $response = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'] . '/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE_1', + 'value' => 'TESTINGVALUEUPDATED_1' + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE_1", $response['body']['key']); + $this->assertEmpty($response['body']['value']); + + $variable = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE_1", $variable['body']['key']); + $this->assertEmpty($variable['body']['value']); + $response = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'] . '/variables/' . $data['variableId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -288,6 +323,41 @@ public function testUpdateVariable(array $data) $this->assertEquals("APP_TEST_UPDATE_2", $variable['body']['key']); $this->assertEquals("TESTINGVALUEUPDATED", $variable['body']['value']); + // convert non-secret variable to secret + $response = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'] . '/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE_2', + 'secret' => true + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE_2", $response['body']['key']); + $this->assertEmpty($response['body']['value']); + $this->assertTrue($response['body']['secret']); + + $variable = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE_2", $variable['body']['key']); + $this->assertEmpty($variable['body']['value']); + $this->assertTrue($variable['body']['secret']); + + // convert secret variable to non-secret + $response = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'] . '/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'secret' => false + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + /** * Test for FAILURE */ @@ -349,6 +419,13 @@ public function testDeleteVariable(array $data) $this->assertEquals(204, $response['headers']['status-code']); + $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $response['headers']['status-code']); + $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/variables', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -371,4 +448,93 @@ public function testDeleteVariable(array $data) return $data; } + + public function testVariableE2E(): void + { + $function = $this->createFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Variable E2E Test', + 'entrypoint' => 'index.js', + 'logging' => false, + 'execute' => ['any'] + ]); + + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertFalse($function['body']['logging']); + $this->assertNotEmpty($function['body']['$id']); + + $functionId = $function['body']['$id'] ?? ''; + + // create variable + $variable = $this->createVariable($functionId, [ + 'key' => 'CUSTOM_VARIABLE', + 'value' => 'a_secret_value', + 'secret' => true, + ]); + + $this->assertEquals(201, $variable['headers']['status-code']); + $this->assertNotEmpty($variable['body']['$id']); + $this->assertEquals('CUSTOM_VARIABLE', $variable['body']['key']); + $this->assertEquals('', $variable['body']['value']); + $this->assertEquals(true, $variable['body']['secret']); + + $deploymentId = $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.js', + 'code' => $this->packageFunction('node'), + 'activate' => true + ]); + + $this->assertNotEmpty($deploymentId); + + $execution = $this->createExecution($functionId); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertEmpty($execution['body']['logs']); + $this->assertEmpty($execution['body']['errors']); + $body = json_decode($execution['body']['responseBody']); + $this->assertEquals('a_secret_value', $body->CUSTOM_VARIABLE); + + $this->cleanupFunction($functionId); + } + + public function testFunctionDownload(): void + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Download Test', + 'entrypoint' => 'index.js', + 'logging' => false, + 'execute' => ['any'] + ]); + + $deploymentId = $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.js', + 'code' => $this->packageFunction('node'), + 'activate' => true + ]); + + $this->assertNotEmpty($deploymentId); + + $response = $this->getDeploymentDownload($functionId, $deploymentId, 'source'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('application/gzip', $response['headers']['content-type']); + $this->assertGreaterThan(0, $response['headers']['content-length']); + $this->assertGreaterThan(0, \strlen($response['body'])); + + $deploymentMd5 = \md5($response['body']); + + $response = $this->getDeploymentDownload($functionId, $deploymentId, 'output'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('application/gzip', $response['headers']['content-type']); + $this->assertGreaterThan(0, $response['headers']['content-length']); + $this->assertGreaterThan(0, \strlen($response['body'])); + + $buildMd5 = \md5($response['body']); + + $this->assertNotEquals($deploymentMd5, $buildMd5); + + $this->cleanupFunction($functionId); + } } diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index 3c0993be85a..a47bc62d47f 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -2,17 +2,13 @@ namespace Tests\E2E\Services\Functions; -use Appwrite\Tests\Retry; -use CURLFile; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; -use Utopia\Config\Config; -use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; -use Utopia\Database\Query; +use Utopia\System\System; class FunctionsCustomClientTest extends Scope { @@ -20,15 +16,12 @@ class FunctionsCustomClientTest extends Scope use ProjectCustom; use SideClient; - public function testCreate(): array + public function testCreateFunction() { /** - * Test for SUCCESS + * Test for FAILURE */ - $response1 = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'events' => [ @@ -38,23 +31,15 @@ public function testCreate(): array 'schedule' => '0 0 1 1 *', 'timeout' => 10, ]); - - $this->assertEquals(401, $response1['headers']['status-code']); - - return []; + $this->assertEquals(401, $function['headers']['status-code']); } - #[Retry(count: 2)] - public function testCreateExecution(): array + public function testCreateExecution() { /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::user($this->getUser()['$id'])->toString()], @@ -64,263 +49,30 @@ public function testCreateExecution(): array 'users.*.create', 'users.*.delete', ], - 'schedule' => '* * * * *', // execute every minute 'timeout' => 10, ]); - - $this->assertEquals(201, $function['headers']['status-code']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $function['body']['$id'] . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(200, $function['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', [ + // Deny create async execution as guest + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ 'async' => true, ]); - $this->assertEquals(401, $execution['headers']['status-code']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - ]); - - $this->assertEquals(202, $execution['headers']['status-code']); - - // Wait for the first scheduled execution to be created - sleep(90); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $function['body']['$id'] . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(2, $executions['body']['executions']); - $this->assertIsArray($executions['body']['executions']); - $this->assertEquals($executions['body']['executions'][1]['trigger'], 'schedule'); - $this->assertEquals($executions['body']['executions'][1]['status'], 'completed'); - $this->assertEquals($executions['body']['executions'][1]['responseStatusCode'], 200); - $this->assertEquals($executions['body']['executions'][1]['responseBody'], ''); - $this->assertEquals($executions['body']['executions'][1]['logs'], ''); - $this->assertGreaterThan(0, $executions['body']['executions'][1]['duration']); - - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $function['body']['$id'], [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - - return []; - } - - public function testCreateScheduledExecution(): void - { - /** - * Test for SUCCESS - */ - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'functionId' => ID::unique(), - 'name' => 'Test', - 'execute' => [Role::user($this->getUser()['$id'])->toString()], - 'runtime' => 'php-8.0', - 'entrypoint' => 'index.php', - 'timeout' => 10, - ]); - - $this->assertEquals(201, $function['headers']['status-code']); - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), - 'activate' => true - ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, true); - - // Schedule execution for the future - \date_default_timezone_set('UTC'); - $futureTime = (new \DateTime())->add(new \DateInterval('PT2M')); - $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Allow create async execution as user + $execution = $this->createExecution($functionId, [ 'async' => true, - 'scheduledAt' => $futureTime->format(\DateTime::ATOM), - 'path' => '/custom', - 'method' => 'GET' ]); - $this->assertEquals(202, $execution['headers']['status-code']); - $this->assertEquals('scheduled', $execution['body']['status']); - - $executionId = $execution['body']['$id']; - - sleep(60 + 60 + 15); // up to 1 minute round up, 1 minute schedule postpone, 15s cold start safety - - $start = \microtime(true); - while (true) { - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $function['body']['$id'] . '/executions/' . $executionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - if ($execution['body']['status'] === 'completed') { - break; - } - - if (\microtime(true) - $start > 10) { - $this->fail('Scheduled execution did not complete with status ' . $execution['body']['status'] . ': ' . \json_encode($execution)); - } - - usleep(500000); // 0.5 seconds - } - - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertEquals('completed', $execution['body']['status']); - $this->assertEquals('/custom', $execution['body']['requestPath']); - $this->assertEquals('GET', $execution['body']['requestMethod']); - $this->assertGreaterThan(0, $execution['body']['duration']); - - /* Test for FAILURE */ - - // Schedule synchronous execution - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, - 'scheduledAt' => $futureTime->format(\DateTime::ATOM), - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Execution with seconds precision - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02"))->format(\DateTime::ATOM) - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Execution with milliseconds precision - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02.255"))->format(\DateTime::ATOM) - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Execution too soon - $futureTime = (new \DateTime())->add(new \DateInterval('PT1M')); - $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => $futureTime->format(\DateTime::ATOM), - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $function['body']['$id'], [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCreateCustomExecution(): array @@ -328,14 +80,7 @@ public function testCreateCustomExecution(): array /** * Test for SUCCESS */ - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], @@ -343,77 +88,16 @@ public function testCreateCustomExecution(): array 'entrypoint' => 'index.php', 'timeout' => 10, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - - $folder = 'php-fn'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('php-fn'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], []); - - $this->assertEquals(200, $function['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - 'async' => false + 'async' => 'false' ]); - $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals(200, $execution['body']['responseStatusCode']); @@ -426,36 +110,25 @@ public function testCreateCustomExecution(): array $this->assertEquals('PHP', $output['APPWRITE_FUNCTION_RUNTIME_NAME']); $this->assertEquals('8.0', $output['APPWRITE_FUNCTION_RUNTIME_VERSION']); $this->assertEquals(APP_VERSION_STABLE, $output['APPWRITE_VERSION']); - $this->assertEquals('default', $output['APPWRITE_REGION']); + $this->assertEquals(System::getEnv('_APP_REGION', 'default'), $output['APPWRITE_REGION']); $this->assertEquals('', $output['APPWRITE_FUNCTION_EVENT']); $this->assertEquals('foobar', $output['APPWRITE_FUNCTION_DATA']); $this->assertEquals($this->getUser()['$id'], $output['APPWRITE_FUNCTION_USER_ID']); $this->assertNotEmpty($output['APPWRITE_FUNCTION_JWT']); - $this->assertEquals($projectId, $output['APPWRITE_FUNCTION_PROJECT_ID']); + $this->assertEquals($this->getProject()['$id'], $output['APPWRITE_FUNCTION_PROJECT_ID']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', 'async' => true ]); - + $executionId = $execution['body']['$id']; $this->assertEquals(202, $execution['headers']['status-code']); - $executionId = $execution['body']['$id'] ?? ''; - - sleep(5); - - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $executionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ]); - - $this->assertEmpty($execution['body']['responseBody']); - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + }, 10000, 500); return [ 'functionId' => $functionId @@ -467,14 +140,7 @@ public function testCreateCustomExecutionGuest() /** * Test for SUCCESS */ - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], @@ -487,56 +153,25 @@ public function testCreateCustomExecutionGuest() ], 'timeout' => 10, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $folder = 'php-fn'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('php-fn'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - // Why do we have to do this? - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], []); - - $this->assertEquals(200, $function['headers']['status-code']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, + 'x-appwrite-project' => $this->getProject()['$id'], ], [ 'data' => 'foobar', 'async' => true, ]); - $this->assertEquals(202, $execution['headers']['status-code']); } - public function testCreateExecutionNoDeployment(): array + public function testCreateExecutionNoDeployment() { - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [], @@ -545,146 +180,18 @@ public function testCreateExecutionNoDeployment(): array 'timeout' => 10, ]); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], [ - 'async' => true, + $execution = $this->createExecution($functionId, [ + 'async' => true ]); - $this->assertEquals(404, $execution['headers']['status-code']); - - return []; } - /** - * @depends testCreateCustomExecution - */ - public function testListExecutions(array $data) - { - $functionId = $data['functionId']; - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ - 'data' => 'foobar' - ]); - - $this->assertEquals(201, $execution['headers']['status-code']); - - $base = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ]); - - $this->assertEquals(200, $base['headers']['status-code']); - $this->assertCount(3, $base['body']['executions']); - $this->assertEquals('completed', $base['body']['executions'][0]['status']); - $this->assertEquals('completed', $base['body']['executions'][1]['status']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::limit(1)->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(1, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::offset(1)->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(2, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::equal('status', ['completed'])->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(3, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::equal('status', ['failed'])->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(0, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::cursorAfter(new Document(['$id' => $base['body']['executions'][0]['$id']]))->toString(), - ], - ]); - - $this->assertCount(2, $executions['body']['executions']); - $this->assertEquals($base['body']['executions'][1]['$id'], $executions['body']['executions'][0]['$id']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::cursorBefore(new Document(['$id' => $base['body']['executions'][1]['$id']]))->toString(), - ], - ]); - - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - } - - public function testSynchronousExecution(): array + public function testSynchronousExecution() { /** * Test for SUCCESS */ - - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], @@ -692,79 +199,16 @@ public function testSynchronousExecution(): array 'entrypoint' => 'index.php', 'timeout' => 10, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - - $folder = 'php-fn'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('php-fn'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ]); - - $this->assertEquals(200, $function['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - // Testing default value, should be 'async' => false + // Testing default value, should be 'async' => 'false' ]); - $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); @@ -776,72 +220,34 @@ public function testSynchronousExecution(): array $this->assertEquals('PHP', $output['APPWRITE_FUNCTION_RUNTIME_NAME']); $this->assertEquals('8.0', $output['APPWRITE_FUNCTION_RUNTIME_VERSION']); $this->assertEquals(APP_VERSION_STABLE, $output['APPWRITE_VERSION']); - $this->assertEquals('default', $output['APPWRITE_REGION']); + $this->assertEquals(System::getEnv('_APP_REGION', 'default'), $output['APPWRITE_REGION']); $this->assertEquals('', $output['APPWRITE_FUNCTION_EVENT']); $this->assertEquals('foobar', $output['APPWRITE_FUNCTION_DATA']); $this->assertEquals($this->getUser()['$id'], $output['APPWRITE_FUNCTION_USER_ID']); $this->assertNotEmpty($output['APPWRITE_FUNCTION_JWT']); - $this->assertEquals($projectId, $output['APPWRITE_FUNCTION_PROJECT_ID']); + $this->assertEquals($this->getProject()['$id'], $output['APPWRITE_FUNCTION_PROJECT_ID']); // Client should never see logs and errors $this->assertEmpty($execution['body']['logs']); $this->assertEmpty($execution['body']['errors']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - - return []; + $this->cleanupFunction($functionId); } - public function testNonOverrideOfHeaders(): array + public function testNonOverrideOfHeaders() { - /** - * Test for SUCCESS - */ - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], 'runtime' => 'node-18.0', 'entrypoint' => 'index.js' ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $folder = 'node'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.js', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('node'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -858,16 +264,8 @@ public function testNonOverrideOfHeaders(): array $this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_TRIGGER']); $this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_USER_ID']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - return []; + $this->cleanupFunction($functionId); } public function testListTemplates() @@ -875,50 +273,47 @@ public function testListTemplates() /** * Test for SUCCESS */ - $expectedTemplates = array_slice(Config::getParam('function-templates', []), 0, 25); + // List all templates $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); $this->assertEquals(200, $templates['headers']['status-code']); $this->assertGreaterThan(0, $templates['body']['total']); $this->assertIsArray($templates['body']['templates']); - $this->assertArrayHasKey('runtimes', $templates['body']['templates'][0]); - $this->assertArrayHasKey('useCases', $templates['body']['templates'][0]); - for ($i = 0; $i < 25; $i++) { - $this->assertEquals($expectedTemplates[$i]['name'], $templates['body']['templates'][$i]['name']); - $this->assertEquals($expectedTemplates[$i]['id'], $templates['body']['templates'][$i]['id']); - $this->assertEquals($expectedTemplates[$i]['icon'], $templates['body']['templates'][$i]['icon']); - $this->assertEquals($expectedTemplates[$i]['tagline'], $templates['body']['templates'][$i]['tagline']); - $this->assertEquals($expectedTemplates[$i]['useCases'], $templates['body']['templates'][$i]['useCases']); - $this->assertEquals($expectedTemplates[$i]['vcsProvider'], $templates['body']['templates'][$i]['vcsProvider']); - $this->assertEquals($expectedTemplates[$i]['runtimes'], $templates['body']['templates'][$i]['runtimes']); - $this->assertEquals($expectedTemplates[$i]['variables'], $templates['body']['templates'][$i]['variables']); - if (array_key_exists('scopes', $expectedTemplates[$i])) { - $this->assertEquals($expectedTemplates[$i]['scopes'], $templates['body']['templates'][$i]['scopes']); - } + foreach ($templates['body']['templates'] as $template) { + $this->assertArrayHasKey('name', $template); + $this->assertArrayHasKey('id', $template); + $this->assertArrayHasKey('icon', $template); + $this->assertArrayHasKey('tagline', $template); + $this->assertArrayHasKey('useCases', $template); + $this->assertArrayHasKey('vcsProvider', $template); + $this->assertArrayHasKey('runtimes', $template); + $this->assertArrayHasKey('variables', $template); } - $templates_offset = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ + // List templates with pagination + $templatesOffset = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'limit' => 1, 'offset' => 2 ]); + $this->assertEquals(200, $templatesOffset['headers']['status-code']); + $this->addToAssertionCount(1, $templatesOffset['body']['templates']); + $this->assertEquals($templates['body']['templates'][2]['id'], $templatesOffset['body']['templates'][0]['id']); - $this->assertEquals(200, $templates_offset['headers']['status-code']); - $this->assertEquals(1, $templates_offset['body']['total']); - // assert that offset works as expected - $this->assertEquals($templates['body']['templates'][2]['id'], $templates_offset['body']['templates'][0]['id']); - + // List templates with filters $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'useCases' => ['starter', 'ai'], 'runtimes' => ['bun-1.0', 'dart-2.16'] ]); - $this->assertEquals(200, $templates['headers']['status-code']); $this->assertGreaterThanOrEqual(3, $templates['body']['total']); $this->assertIsArray($templates['body']['templates']); @@ -926,8 +321,18 @@ public function testListTemplates() $this->assertContains($template['useCases'][0], ['starter', 'ai']); } $this->assertArrayHasKey('runtimes', $templates['body']['templates'][0]); - $this->assertContains('bun-1.0', array_column($templates['body']['templates'][0]['runtimes'], 'name')); + foreach ($templates['body']['templates'] as $template) { + $this->assertThat( + \array_column($template['runtimes'], 'name'), + $this->logicalOr( + $this->containsEqual('bun-1.0'), + $this->containsEqual('dart-2.16'), + ), + ); + } + + // List templates with pagination and filters $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -939,27 +344,30 @@ public function testListTemplates() ]); $this->assertEquals(200, $templates['headers']['status-code']); - $this->assertEquals(5, $templates['body']['total']); + $this->assertCount(5, $templates['body']['templates']); $this->assertIsArray($templates['body']['templates']); $this->assertArrayHasKey('runtimes', $templates['body']['templates'][0]); + foreach ($templates['body']['templates'] as $template) { $this->assertContains($template['useCases'][0], ['databases']); } + $this->assertContains('node-16.0', array_column($templates['body']['templates'][0]['runtimes'], 'name')); /** * Test for FAILURE */ + // List templates with invalid limit $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'limit' => 5001, 'offset' => 10, ]); - $this->assertEquals(400, $templates['headers']['status-code']); - $this->assertEquals('Invalid `limit` param: Value must be a valid range between 1 and 5,000', $templates['body']['message']); + // List templates with invalid offset $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -967,9 +375,7 @@ public function testListTemplates() 'limit' => 5, 'offset' => 5001, ]); - $this->assertEquals(400, $templates['headers']['status-code']); - $this->assertEquals('Invalid `offset` param: Value must be a valid range between 0 and 5,000', $templates['body']['message']); } public function testGetTemplate() @@ -977,10 +383,7 @@ public function testGetTemplate() /** * Test for SUCCESS */ - $template = $this->client->call(Client::METHOD_GET, '/functions/templates/query-neo4j-auradb', array_merge([ - 'content-type' => 'application/json', - ], $this->getHeaders()), []); - + $template = $this->getTemplate('query-neo4j-auradb'); $this->assertEquals(200, $template['headers']['status-code']); $this->assertIsArray($template['body']); $this->assertEquals('query-neo4j-auradb', $template['body']['id']); @@ -989,15 +392,13 @@ public function testGetTemplate() $this->assertEquals('Graph database with focus on relations between data.', $template['body']['tagline']); $this->assertEquals(['databases'], $template['body']['useCases']); $this->assertEquals('github', $template['body']['vcsProvider']); + $this->assertIsArray($template['body']['runtimes']); + $this->assertIsArray($template['body']['scopes']); /** * Test for FAILURE */ - $template = $this->client->call(Client::METHOD_GET, '/functions/templates/invalid-template-id', array_merge([ - 'content-type' => 'application/json', - ], $this->getHeaders()), []); - + $template = $this->getTemplate('invalid-template-id'); $this->assertEquals(404, $template['headers']['status-code']); - $this->assertEquals('Function Template with the requested ID could not be found.', $template['body']['message']); } } diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 576dba3118f..6a8db0a88c2 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -2,14 +2,13 @@ namespace Tests\E2E\Services\Functions; -use Appwrite\Functions\Specification; +use Appwrite\Platform\Modules\Compute\Specification; use Appwrite\Tests\Retry; -use CURLFile; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; -use Utopia\App; +use Utopia\CLI\Console; use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; @@ -22,15 +21,47 @@ class FunctionsCustomServerTest extends Scope use ProjectCustom; use SideServer; - public function testCreate(): array + public function testListSpecs(): void + { + $specifications = $this->listSpecifications(); + $this->assertEquals(200, $specifications['headers']['status-code']); + $this->assertGreaterThan(0, $specifications['body']['total']); + $this->assertArrayHasKey(0, $specifications['body']['specifications']); + $this->assertArrayHasKey('memory', $specifications['body']['specifications'][0]); + $this->assertArrayHasKey('cpus', $specifications['body']['specifications'][0]); + $this->assertArrayHasKey('enabled', $specifications['body']['specifications'][0]); + $this->assertArrayHasKey('slug', $specifications['body']['specifications'][0]); + + $function = $this->createFunction([ + 'functionId' => ID::unique(), + 'name' => 'Specs function', + 'runtime' => 'php-8.0', + 'specification' => $specifications['body']['specifications'][0]['slug'] + ]); + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertEquals($specifications['body']['specifications'][0]['slug'], $function['body']['specification']); + + $function = $this->getFunction($function['body']['$id']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($specifications['body']['specifications'][0]['slug'], $function['body']['specification']); + + $this->cleanupFunction($function['body']['$id']); + + $function = $this->createFunction([ + 'functionId' => ID::unique(), + 'name' => 'Specs function', + 'runtime' => 'php-8.0', + 'specification' => 'cheap-please' + ]); + $this->assertEquals(400, $function['headers']['status-code']); + } + + public function testCreateFunction(): array { /** * Test for SUCCESS */ - $response1 = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'runtime' => 'php-8.0', @@ -39,48 +70,35 @@ public function testCreate(): array 'buckets.*.create', 'buckets.*.delete', ], - 'schedule' => '0 0 1 1 *', 'timeout' => 10, ]); - $functionId = $response1['body']['$id'] ?? ''; + $functionId = $function['body']['$id'] ?? ''; - $this->assertEquals(201, $response1['headers']['status-code']); - $this->assertNotEmpty($response1['body']['$id']); - $this->assertEquals('Test', $response1['body']['name']); - $this->assertEquals('php-8.0', $response1['body']['runtime']); $dateValidator = new DatetimeValidator(); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$createdAt'])); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$updatedAt'])); - $this->assertEquals('', $response1['body']['deployment']); + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals('Test', $function['body']['name']); + $this->assertEquals('php-8.0', $function['body']['runtime']); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$updatedAt'])); + $this->assertEquals('', $function['body']['deploymentId']); $this->assertEquals([ 'buckets.*.create', 'buckets.*.delete', - ], $response1['body']['events']); - $this->assertEquals('0 0 1 1 *', $response1['body']['schedule']); - $this->assertEquals(10, $response1['body']['timeout']); + ], $function['body']['events']); + $this->assertEmpty($function['body']['schedule']); + $this->assertEquals(10, $function['body']['timeout']); - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable = $this->createVariable($functionId, [ 'key' => 'funcKey1', 'value' => 'funcValue1', ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable2 = $this->createVariable($functionId, [ 'key' => 'funcKey2', 'value' => 'funcValue2', ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable3 = $this->createVariable($functionId, [ 'key' => 'funcKey3', 'value' => 'funcValue3', ]); @@ -89,115 +107,90 @@ public function testCreate(): array $this->assertEquals(201, $variable2['headers']['status-code']); $this->assertEquals(201, $variable3['headers']['status-code']); - /** - * Test for FAILURE - */ - return [ 'functionId' => $functionId, ]; } /** - * @depends testCreate + * @depends testCreateFunction */ - public function testList(array $data): array + public function testListFunctions(array $data): array { /** * Test for SUCCESS */ - - /** - * Test search queries - */ - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test search id + $functions = $this->listFunctions([ 'search' => $data['functionId'] ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['name'], 'Test'); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); + $this->assertEquals($functions['body']['functions'][0]['name'], 'Test'); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test pagination limit + $functions = $this->listFunctions([ 'queries' => [ Query::limit(1)->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test pagination offset + $functions = $this->listFunctions([ 'queries' => [ Query::offset(1)->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(0, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(0, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test filter enabled + $functions = $this->listFunctions([ 'queries' => [ Query::equal('enabled', [true])->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test filter disabled + $functions = $this->listFunctions([ 'queries' => [ Query::equal('enabled', [false])->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(0, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(0, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test search name + $functions = $this->listFunctions([ 'search' => 'Test' ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['$id'], $data['functionId']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); + $this->assertEquals($functions['body']['functions'][0]['$id'], $data['functionId']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test search runtime + $functions = $this->listFunctions([ 'search' => 'php-8.0' ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['$id'], $data['functionId']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); + $this->assertEquals($functions['body']['functions'][0]['$id'], $data['functionId']); /** * Test pagination */ - $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test 2', 'runtime' => 'php-8.0', @@ -206,44 +199,10 @@ public function testList(array $data): array 'buckets.*.create', 'buckets.*.delete', ], - 'schedule' => '0 0 1 1 *', 'timeout' => 10, ]); - $this->assertNotEmpty($response['body']['$id']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $response['body']['$id'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $response['body']['$id'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $response['body']['$id'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - $functions = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $functions = $this->listFunctions(); $this->assertEquals($functions['headers']['status-code'], 200); $this->assertEquals($functions['body']['total'], 2); @@ -252,61 +211,48 @@ public function testList(array $data): array $this->assertEquals($functions['body']['functions'][0]['name'], 'Test'); $this->assertEquals($functions['body']['functions'][1]['name'], 'Test 2'); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functions1 = $this->listFunctions([ 'queries' => [ Query::cursorAfter(new Document(['$id' => $functions['body']['functions'][0]['$id']]))->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['name'], 'Test 2'); + $this->assertEquals($functions1['headers']['status-code'], 200); + $this->assertCount(1, $functions1['body']['functions']); + $this->assertEquals($functions1['body']['functions'][0]['name'], 'Test 2'); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functions2 = $this->listFunctions([ 'queries' => [ Query::cursorBefore(new Document(['$id' => $functions['body']['functions'][1]['$id']]))->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['name'], 'Test'); + $this->assertEquals($functions2['headers']['status-code'], 200); + $this->assertCount(1, $functions2['body']['functions']); + $this->assertEquals($functions2['body']['functions'][0]['name'], 'Test'); /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functions = $this->listFunctions([ 'queries' => [ Query::cursorAfter(new Document(['$id' => 'unknown']))->toString(), ], ]); - - $this->assertEquals($response['headers']['status-code'], 400); + $this->assertEquals($functions['headers']['status-code'], 400); return $data; } /** - * @depends testList + * @depends testListFunctions */ - public function testGet(array $data): array + public function testGetFunction(array $data): array { /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getFunction($data['functionId']); $this->assertEquals($function['headers']['status-code'], 200); $this->assertEquals($function['body']['name'], 'Test'); @@ -314,10 +260,7 @@ public function testGet(array $data): array /** * Test for FAILURE */ - $function = $this->client->call(Client::METHOD_GET, '/functions/x', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getFunction('x'); $this->assertEquals($function['headers']['status-code'], 404); @@ -325,14 +268,14 @@ public function testGet(array $data): array } /** - * @depends testGet + * @depends testGetFunction */ - public function testUpdate($data): array + public function testUpdateFunction($data): array { /** * Test for SUCCESS */ - $response1 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -347,51 +290,35 @@ public function testUpdate($data): array 'entrypoint' => 'index.php', ]); - $this->assertEquals(200, $response1['headers']['status-code']); - $this->assertNotEmpty($response1['body']['$id']); - $this->assertEquals('Test1', $response1['body']['name']); $dateValidator = new DatetimeValidator(); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$createdAt'])); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$updatedAt'])); - $this->assertEquals('', $response1['body']['deployment']); + + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals('Test1', $function['body']['name']); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$updatedAt'])); + $this->assertEquals('', $function['body']['deploymentId']); $this->assertEquals([ 'users.*.update.name', 'users.*.update.email', - ], $response1['body']['events']); - $this->assertEquals('0 0 1 1 *', $response1['body']['schedule']); - $this->assertEquals(15, $response1['body']['timeout']); - - /** - * Create global variable to test in execution later - */ - $headers = [ - 'content-type' => 'application/json', - 'origin' => 'http://localhost', - 'cookie' => 'a_session_console=' . $this->getRoot()['session'], - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-mode' => 'admin', - ]; + ], $function['body']['events']); + $this->assertEquals('0 0 1 1 *', $function['body']['schedule']); + $this->assertEquals(15, $function['body']['timeout']); - $variable = $this->client->call(Client::METHOD_POST, '/project/variables', $headers, [ + // Create a variable for later tests + $variable = $this->createVariable($data['functionId'], [ 'key' => 'GLOBAL_VARIABLE', 'value' => 'Global Variable Value', ]); $this->assertEquals(201, $variable['headers']['status-code']); - /** - * Test for FAILURE - */ - return $data; } public function testCreateDeploymentFromCLI() { - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::user($this->getUser()['$id'])->toString()], @@ -401,150 +328,119 @@ public function testCreateDeploymentFromCLI() 'users.*.create', 'users.*.delete', ], - 'schedule' => '0 0 1 1 *', + 'schedule' => '0 0 1 1 *', // Once a year 'timeout' => 10, ]); - $this->assertEquals(201, $function['headers']['status-code']); - - $functionId = $function['body']['$id']; - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/deployments', [ + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ 'content-type' => 'multipart/form-data', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], 'x-sdk-language' => 'cli', ], [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); + $deploymentId = $deployment['body']['$id'] ?? ''; - $functionDetails = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); - $this->assertEquals(200, $functionDetails['headers']['status-code']); - $this->assertEquals('cli', $functionDetails['body']['type']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('ready', $deployment['body']['status']); + $this->assertEquals('cli', $deployment['body']['type']); + }, 500000, 1000); } - public function testCreateDeploymentFromTemplate() + public function testCreateFunctionAndDeploymentFromTemplate() { - $runtimeName = 'php-8.0'; - // Fetch starter template (used to create function later) - $template = $this->client->call(Client::METHOD_GET, '/functions/templates/starter', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $starterTemplate = $this->getTemplate('starter'); + $this->assertEquals(200, $starterTemplate['headers']['status-code']); - $this->assertEquals(200, $template['headers']['status-code']); + $phpRuntime = array_values(array_filter($starterTemplate['body']['runtimes'], function ($runtime) { + return $runtime['name'] === 'php-8.0'; + }))[0]; - $entrypoint = null; - $rootDirectory = null; - $commands = null; - foreach ($template['body']['runtimes'] as $runtime) { - if ($runtime["name"] !== $runtimeName) { - continue; - } + // If this fails, the template has variables, and this test needs to be updated + $this->assertEmpty($starterTemplate['body']['variables']); - $entrypoint = $runtime["entrypoint"]; - $rootDirectory = $runtime["providerRootDirectory"]; - $commands = $runtime["commands"]; - break; - } + $function = $this->createFunction( + [ + 'functionId' => ID::unique(), + 'name' => $starterTemplate['body']['name'], + 'runtime' => 'php-8.0', + 'execute' => $starterTemplate['body']['permissions'], + 'entrypoint' => $phpRuntime['entrypoint'], + 'events' => $starterTemplate['body']['events'], + 'schedule' => $starterTemplate['body']['cron'], + 'timeout' => $starterTemplate['body']['timeout'], + 'commands' => $phpRuntime['commands'], + 'scopes' => $starterTemplate['body']['scopes'], + 'templateRepository' => $starterTemplate['body']['providerRepositoryId'], + 'templateOwner' => $starterTemplate['body']['providerOwner'], + 'templateRootDirectory' => $phpRuntime['providerRootDirectory'], + 'templateVersion' => $starterTemplate['body']['providerVersion'], + ] + ); - $this->assertNotNull($entrypoint); + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); - /** - * If below test ever starts failing, it means temaplate used in - * this test now has some variables. This test currently doesnt test variables. - * Remove bellow assertion and update test to crete variable, - * and ensure variable works as expected in execution. - */ - $this->assertEmpty($template['body']['variables']); + $functionId = $function['body']['$id'] ?? ''; - // Create function using settings from template. - // Deployment is automatically created from template inside endpoint - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], $this->getHeaders()), [ - 'functionId' => ID::unique(), - 'name' => $template['body']['name'], - 'runtime' => $runtimeName, - 'execute' => $template['body']['permissions'], - 'entrypoint' => $entrypoint, - 'events' => $template['body']['events'], - 'schedule' => $template['body']['cron'], - 'timeout' => $template['body']['timeout'], - 'commands' => $commands, - 'scopes' => $template['body']['scopes'], - 'templateRepository' => $template['body']['providerRepositoryId'], - 'templateOwner' => $template['body']['providerOwner'], - 'templateRootDirectory' => $rootDirectory, - 'templateVersion' => $template['body']['providerVersion'], - ]); + $deployment = $this->createTemplateDeployment( + $functionId, + [ + 'resourceId' => ID::unique(), + 'activate' => true, + 'repository' => $starterTemplate['body']['providerRepositoryId'], + 'owner' => $starterTemplate['body']['providerOwner'], + 'rootDirectory' => $phpRuntime['providerRootDirectory'], + 'version' => $starterTemplate['body']['providerVersion'], + ] + ); - $this->assertEquals(201, $function['headers']['status-code']); - $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); - $functionId = $function['body']['$id']; + $deployment = $this->getDeployment($functionId, $deployment['body']['$id']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals(0, $deployment['body']['sourceSize']); + $this->assertEquals(0, $deployment['body']['buildSize']); + $this->assertEquals(0, $deployment['body']['totalSize']); - // List deployments so we can await deployment build - $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $deployments = $this->listDeployments($functionId); $this->assertEquals(200, $deployments['headers']['status-code']); $this->assertEquals(1, $deployments['body']['total']); - $this->assertNotEmpty($deployments['body']['deployments'][0]['$id']); - $this->assertEquals(0, $deployments['body']['deployments'][0]['size']); - $deploymentId = $deployments['body']['deployments'][0]['$id']; + $lastDeployment = $deployments['body']['deployments'][0]; - // Wait for deployment build to finish - // Deployment is automatically activated - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); + $this->assertNotEmpty($lastDeployment['$id']); + $this->assertEquals(0, $lastDeployment['sourceSize']); - $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - $this->assertGreaterThan(0, $deployments['body']['size']); + $deploymentId = $lastDeployment['$id']; - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], $this->getHeaders()), []); + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); + + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 1000); + + $function = $this->getFunction($functionId); $this->assertEquals(200, $function['headers']['status-code']); - $this->assertEquals($deploymentId, $function['body']['deployment']); + $this->assertEquals($deploymentId, $function['body']['deploymentId']); - // Execute function to ensure starter code is used - // Also tests if dynamic keys works as expected - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'path' => '/ping' + // Test starter code is used and that dynamic keys work + $execution = $this->createExecution($functionId, [ + 'path' => '/ping', ]); $this->assertEquals(201, $execution['headers']['status-code']); @@ -553,7 +449,7 @@ public function testCreateDeploymentFromTemplate() $this->assertEquals("Pong", $execution['body']['responseBody']); $this->assertEmpty($execution['body']['errors']); - // Get users to ensure execution logged correct total users + // Test execution logged correct total users $users = $this->client->call(Client::METHOD_GET, '/users', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -563,99 +459,122 @@ public function testCreateDeploymentFromTemplate() $this->assertEquals(200, $users['headers']['status-code']); $this->assertIsInt($users['body']['total']); - $totalusers = $users['body']['total']; + $totalUsers = $users['body']['total']; - $this->assertStringContainsString("Total users: " . $totalusers, $execution['body']['logs']); + $this->assertStringContainsString("Total users: " . $totalUsers, $execution['body']['logs']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + // Execute function again but async + $execution = $this->createExecution($functionId, [ + 'path' => '/ping', + 'async' => true + ]); + + $this->assertEquals(202, $execution['headers']['status-code']); + $this->assertNotEmpty($execution['body']['$id']); + $this->assertEquals('waiting', $execution['body']['status']); + + $executionId = $execution['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($functionId, $executionId, $totalUsers) { + $execution = $this->getExecution($functionId, $executionId); + + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEmpty($execution['body']['responseBody']); + $this->assertEmpty($execution['body']['errors']); + $this->assertStringContainsString("Total users: " . $totalUsers, $execution['body']['logs']); + }, 10000, 500); + + $deployment = $this->getDeployment($functionId, $deployment['body']['$id']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertGreaterThan(0, $deployment['body']['buildSize']); + $totalSize = $deployment['body']['sourceSize'] + $deployment['body']['buildSize']; + $this->assertEquals($totalSize, $deployment['body']['totalSize']); + + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['deploymentId']); + $this->assertNotEmpty($function['body']['deploymentCreatedAt']); + $this->assertEquals($deployment['body']['$id'], $function['body']['deploymentId']); + $this->assertEquals($deployment['body']['$createdAt'], $function['body']['deploymentCreatedAt']); - $this->assertEquals(204, $response['headers']['status-code']); + $function = $this->cleanupFunction($functionId); } /** - * @depends testUpdate + * @depends testUpdateFunction */ public function testCreateDeployment($data): array { /** * Test for SUCCESS */ - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + $functionId = $data['functionId']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + $deployment = $this->createDeployment($functionId, [ + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); $this->assertNotEmpty($deployment['body']['$id']); + $this->assertEquals('waiting', $deployment['body']['status']); $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); $this->assertEquals('index.php', $deployment['body']['entrypoint']); - $this->awaitDeploymentIsBuilt($data['functionId'], $deploymentId); + $deploymentIdActive = $deployment['body']['$id'] ?? ''; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + $this->assertEventually(function () use ($functionId, $deploymentIdActive) { + $deployment = $this->getDeployment($functionId, $deploymentIdActive); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $deployment = $this->createDeployment($functionId, [ + 'code' => $this->packageFunction('php'), 'activate' => 'false' ]); $this->assertEquals(202, $deployment['headers']['status-code']); $this->assertNotEmpty($deployment['body']['$id']); - $deploymentIdInactive = $deployment['body']['$id']; + $deploymentIdInactive = $deployment['body']['$id'] ?? ''; - $this->awaitDeploymentIsBuilt($data['functionId'], $deploymentIdInactive); + $this->assertEventually(function () use ($functionId, $deploymentIdInactive) { + $deployment = $this->getDeployment($functionId, $deploymentIdInactive); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $function = $this->getFunction($functionId); $this->assertEquals(200, $function['headers']['status-code']); - $this->assertEquals($deploymentId, $function['body']['deployment']); - $this->assertNotEquals($deploymentIdInactive, $function['body']['deployment']); + $this->assertEquals($deploymentIdActive, $function['body']['deploymentId']); + $this->assertNotEquals($deploymentIdInactive, $function['body']['deploymentId']); - $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentIdInactive, array_merge([ + $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId . '/deployments/' . $deploymentIdInactive, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); $this->assertEquals(204, $deployment['headers']['status-code']); - return array_merge($data, ['deploymentId' => $deploymentId]); + return array_merge($data, ['deploymentId' => $deploymentIdActive]); } /** - * @depends testUpdate + * @depends testUpdateFunction */ + #[Retry(count: 3)] public function testCancelDeploymentBuild($data): void { - // Create a new deployment to cancel - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + $functionId = $data['functionId']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), - 'activate' => true + $deployment = $this->createDeployment($functionId, [ + 'code' => $this->packageFunction('php'), + 'activate' => 'false' ]); $deploymentId = $deployment['body']['$id'] ?? ''; @@ -665,36 +584,16 @@ public function testCancelDeploymentBuild($data): void $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); $this->assertEquals('index.php', $deployment['body']['entrypoint']); - // Poll until deployment is in progress - while (true) { - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - - if ( - $deployment['headers']['status-code'] >= 400 - || $deployment['body']['status'] === 'building' - ) { - break; - } + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); - \sleep(1); - } + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('building', $deployment['body']['status']); + }, 100000, 250); + $deployment = $this->cancelDeployment($functionId, $deploymentId); $this->assertEquals(200, $deployment['headers']['status-code']); - $this->assertEquals('building', $deployment['body']['status']); - - // Cancel the deployment build - $cancel = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId . '/build', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - - $this->assertEquals(200, $cancel['headers']['status-code']); - $this->assertEquals('canceled', $cancel['body']['status']); + $this->assertEquals('canceled', $deployment['body']['status']); /** * Build worker still runs the build. @@ -702,28 +601,26 @@ public function testCancelDeploymentBuild($data): void * After build finished, it should still be canceled, not ready. */ \sleep(30); - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); + + $deployment = $this->getDeployment($functionId, $deploymentId); $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertEquals('canceled', $deployment['body']['status']); } /** - * @depends testUpdate + * @depends testUpdateFunction */ public function testCreateDeploymentLarge($data): array { /** * Test for Large Code File SUCCESS */ + $functionId = $data['functionId']; $folder = 'php-large'; $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/$folder && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); $chunkSize = 5 * 1024 * 1024; $handle = @fopen($code, "rb"); @@ -741,7 +638,7 @@ public function testCreateDeploymentLarge($data): array if (!empty($id)) { $headers['x-appwrite-id'] = $id; } - $largeTag = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge($headers, $this->getHeaders()), [ + $largeTag = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge($headers, $this->getHeaders()), [ 'entrypoint' => 'index.php', 'code' => $curlFile, 'activate' => true, @@ -756,23 +653,20 @@ public function testCreateDeploymentLarge($data): array $this->assertNotEmpty($largeTag['body']['$id']); $this->assertEquals(true, (new DatetimeValidator())->isValid($largeTag['body']['$createdAt'])); $this->assertEquals('index.php', $largeTag['body']['entrypoint']); - $this->assertGreaterThan(1024 * 1024 * 5, $largeTag['body']['size']); // ~7MB video file - $this->assertLessThan(1024 * 1024 * 10, $largeTag['body']['size']); // ~7MB video file - - $deploymentSize = $largeTag['body']['size']; + $this->assertGreaterThan(1024 * 1024 * 5, $largeTag['body']['sourceSize']); // ~7MB video file + $this->assertLessThan(1024 * 1024 * 10, $largeTag['body']['sourceSize']); // ~7MB video file + $deploymentSize = $largeTag['body']['sourceSize']; $deploymentId = $largeTag['body']['$id']; - $this->awaitDeploymentIsBuilt($data['functionId'], $deploymentId, true); - - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $this->assertEventually(function () use ($functionId, $deploymentId, $deploymentSize) { + $deployment = $this->getDeployment($functionId, $deploymentId); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($deploymentSize, $response['body']['size']); - $this->assertGreaterThan(1024 * 1024 * 10, $response['body']['buildSize']); // ~7MB video file + 10MB sample file + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('ready', $deployment['body']['status']); + $this->assertEquals($deploymentSize, $deployment['body']['sourceSize']); + $this->assertGreaterThan(1024 * 1024 * 10, $deployment['body']['buildSize']); // ~7MB video file + 10MB sample file + }, 500000, 1000); return $data; } @@ -785,6 +679,8 @@ public function testUpdateDeployment($data): array /** * Test for SUCCESS */ + $dateValidator = new DatetimeValidator(); + $response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -792,14 +688,9 @@ public function testUpdateDeployment($data): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $dateValidator = new DatetimeValidator(); $this->assertEquals(true, $dateValidator->isValid($response['body']['$createdAt'])); $this->assertEquals(true, $dateValidator->isValid($response['body']['$updatedAt'])); - $this->assertEquals($data['deploymentId'], $response['body']['deployment']); - - /** - * Test for FAILURE - */ + $this->assertEquals($data['deploymentId'], $response['body']['deploymentId']); return $data; } @@ -812,127 +703,41 @@ public function testListDeployments(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals($function['body']['total'], 3); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertArrayHasKey('size', $function['body']['deployments'][0]); - $this->assertArrayHasKey('buildSize', $function['body']['deployments'][0]); - - /** - * Test search queries - */ - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders(), [ - 'search' => $data['functionId'] - ]) - ); + $functionId = $data['functionId']; + $deployments = $this->listDeployments($functionId); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertEquals($function['body']['deployments'][0]['$id'], $data['deploymentId']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals($deployments['body']['total'], 3); + $this->assertIsArray($deployments['body']['deployments']); + $this->assertCount(3, $deployments['body']['deployments']); + $this->assertArrayHasKey('sourceSize', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('buildSize', $deployments['body']['deployments'][0]); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::limit(1)->toString(), ], ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(1, $function['body']['deployments']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(1, $deployments['body']['deployments']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::offset(1)->toString(), ], ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(2, $function['body']['deployments']); - - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('entrypoint', ['index.php'])->toString(), - ], - ]); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(3, $function['body']['deployments']); - - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('entrypoint', ['index.js'])->toString(), - ], - ]); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(0, $function['body']['deployments']); - - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders(), [ - 'search' => 'Test' - ]) - ); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertEquals($function['body']['deployments'][0]['$id'], $data['deploymentId']); + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertCount(2, $deployments['body']['deployments']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders(), [ - 'search' => 'php-8.0' - ]) - ); + $deployments = $this->listDeployments($functionId); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertEquals($function['body']['deployments'][0]['$id'], $data['deploymentId']); + $this->assertIsArray($deployments['body']['deployments']); + $this->assertEquals(200, $deployments['headers']['status-code']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('type', ['manual'])->toString(), @@ -940,16 +745,11 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('type', ['vcs'])->toString(), @@ -957,16 +757,11 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(0, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('type', ['invalid-string'])->toString(), @@ -974,111 +769,86 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(0, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ - Query::greaterThan('size', 10000)->toString(), + Query::greaterThan('sourceSize', 10000)->toString(), ], ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(1, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(1, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ - Query::greaterThan('size', 0)->toString(), + Query::greaterThan('sourceSize', 0)->toString(), ], ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ - Query::greaterThan('size', -100)->toString(), + Query::greaterThan('sourceSize', -100)->toString(), ], ] ); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); /** * Ensure size output and size filters work exactly. * Prevents buildSize being counted towards deployemtn size */ - $response = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ Query::limit(1)->toString(), ] ); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertGreaterThanOrEqual(1, $response['body']['total']); - $this->assertNotEmpty($response['body']['deployments'][0]['$id']); - $this->assertNotEmpty($response['body']['deployments'][0]['size']); + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertGreaterThanOrEqual(1, $deployments['body']['total']); + $this->assertNotEmpty($deployments['body']['deployments'][0]['$id']); + $this->assertNotEmpty($deployments['body']['deployments'][0]['sourceSize']); - $deploymentId = $function['body']['deployments'][0]['$id']; - $deploymentSize = $function['body']['deployments'][0]['size']; + $deploymentId = $deployments['body']['deployments'][0]['$id']; + $deploymentSize = $deployments['body']['deployments'][0]['sourceSize']; - $response = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ - Query::equal('size', [$deploymentSize])->toString(), + Query::equal('sourceSize', [$deploymentSize])->toString(), ], ] ); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertGreaterThan(0, $response['body']['total']); - - $found = false; - foreach ($response['body']['deployments'] as $deployment) { - if($deployment['$id'] === $deploymentId) { - $found = true; - $this->assertEquals($deploymentSize, $deployment['size']); - break; - } - } + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertGreaterThan(0, $deployments['body']['total']); - $this->assertTrue($found); + $matchingDeployment = array_filter( + $deployments['body']['deployments'], + fn ($deployment) => $deployment['$id'] === $deploymentId + ); + + $this->assertNotEmpty($matchingDeployment, "Deployment with ID {$deploymentId} not found"); + + if (!empty($matchingDeployment)) { + $deployment = reset($matchingDeployment); + $this->assertEquals($deploymentSize, $deployment['sourceSize']); + } return $data; } @@ -1091,27 +861,21 @@ public function testGetDeployment(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $deployment = $this->getDeployment($data['functionId'], $data['deploymentId']); - $this->assertEquals(200, $function['headers']['status-code']); - $this->assertGreaterThan(0, $function['body']['buildTime']); - $this->assertNotEmpty($function['body']['status']); - $this->assertNotEmpty($function['body']['buildLogs']); - $this->assertArrayHasKey('size', $function['body']); - $this->assertArrayHasKey('buildSize', $function['body']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['buildDuration']); + $this->assertNotEmpty($deployment['body']['status']); + $this->assertNotEmpty($deployment['body']['buildLogs']); + $this->assertArrayHasKey('sourceSize', $deployment['body']); + $this->assertArrayHasKey('buildSize', $deployment['body']); /** * Test for FAILURE */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/x', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $deployment = $this->getDeployment($data['functionId'], 'x'); - $this->assertEquals($function['headers']['status-code'], 404); + $this->assertEquals($deployment['headers']['status-code'], 404); return $data; } @@ -1124,15 +888,10 @@ public function testCreateExecution($data): array /** * Test for SUCCESS */ - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, + $execution = $this->createExecution($data['functionId'], [ + 'async' => 'false', ]); - $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(201, $execution['headers']['status-code']); $this->assertNotEmpty($execution['body']['$id']); $this->assertNotEmpty($execution['body']['functionId']); @@ -1148,17 +907,17 @@ public function testCreateExecution($data): array $this->assertStringContainsString('8.0', $execution['body']['responseBody']); $this->assertStringContainsString('Global Variable Value', $execution['body']['responseBody']); // $this->assertStringContainsString('êä', $execution['body']['responseBody']); // tests unknown utf-8 chars - $this->assertEquals('', $execution['body']['errors']); - $this->assertEquals('', $execution['body']['logs']); + $this->assertNotEmpty($execution['body']['errors']); + $this->assertNotEmpty($execution['body']['logs']); $this->assertLessThan(10, $execution['body']['duration']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, + $executionId = $execution['body']['$id'] ?? ''; + + $execution = $this->createExecution($data['functionId'], [ + 'async' => 'false', 'path' => '/?code=400' ]); + $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(400, $execution['body']['responseStatusCode']); @@ -1167,6 +926,7 @@ public function testCreateExecution($data): array 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); + $this->assertEquals(204, $execution['headers']['status-code']); return array_merge($data, ['executionId' => $executionId]); @@ -1180,82 +940,62 @@ public function testListExecutions(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $executions = $this->listExecutions($data['functionId']); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals($function['body']['total'], 1); - $this->assertIsArray($function['body']['executions']); - $this->assertCount(1, $function['body']['executions']); - $this->assertEquals($function['body']['executions'][0]['$id'], $data['executionId']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, $executions['body']['total']); + $this->assertIsArray($executions['body']['executions']); + $this->assertCount(1, $executions['body']['executions']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'queries' => [ Query::limit(1)->toString(), ], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(1, $response['body']['executions']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'queries' => [ - Query::offset(1)->toString(), + Query::offset(0)->toString(), ], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(0, $response['body']['executions']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'queries' => [ Query::equal('trigger', ['http'])->toString(), ], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(1, $response['body']['executions']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); /** * Test search queries */ - - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'search' => $data['executionId'], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(1, $response['body']['total']); - $this->assertIsInt($response['body']['total']); - $this->assertCount(1, $response['body']['executions']); - $this->assertEquals($data['functionId'], $response['body']['executions'][0]['functionId']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, $executions['body']['total']); + $this->assertIsInt($executions['body']['total']); + $this->assertCount(1, $executions['body']['executions']); + $this->assertEquals($data['functionId'], $executions['body']['executions'][0]['functionId']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'search' => $data['functionId'], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(1, $response['body']['total']); - $this->assertIsInt($response['body']['total']); - $this->assertCount(1, $response['body']['executions']); - $this->assertEquals($data['executionId'], $response['body']['executions'][0]['$id']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, $executions['body']['total']); + $this->assertIsInt($executions['body']['total']); + $this->assertCount(1, $executions['body']['executions']); + $this->assertEquals($data['executionId'], $executions['body']['executions'][0]['$id']); return $data; } @@ -1263,17 +1003,13 @@ public function testListExecutions(array $data): array /** * @depends testUpdateDeployment */ - #[Retry(count: 2)] public function testSyncCreateExecution($data): array { /** * Test for SUCCESS */ - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - // Testing default value, should be 'async' => false + $execution = $this->createExecution($data['functionId'], [ + // Testing default value, should be 'async' => 'false' ]); $this->assertEquals(201, $execution['headers']['status-code']); @@ -1297,21 +1033,15 @@ public function testGetExecution(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions/' . $data['executionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $execution = $this->getExecution($data['functionId'], $data['executionId']); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals($function['body']['$id'], $data['executionId']); + $this->assertEquals($execution['headers']['status-code'], 200); + $this->assertEquals($execution['body']['$id'], $data['executionId']); /** * Test for FAILURE */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions/x', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getExecution($data['functionId'], 'x'); $this->assertEquals($function['headers']['status-code'], 404); @@ -1354,6 +1084,7 @@ public function testDeleteExecution($data): array ]); $executionId = $execution['body']['$id'] ?? ''; + $this->assertEquals(202, $execution['headers']['status-code']); $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/executions/' . $executionId, array_merge([ @@ -1368,46 +1099,18 @@ public function testDeleteExecution($data): array return $data; } - /** - * @depends testGetExecution - */ - public function testDeleteScheduledExecution($data): array - { - $futureTime = (new \DateTime())->add(new \DateInterval('PT10H')); - $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => $futureTime->format('Y-m-d H:i:s'), - ]); - - $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(202, $execution['headers']['status-code']); - sleep(5); - $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/executions/' . $executionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals(204, $execution['headers']['status-code']); - $this->assertEmpty($execution['body']); - return $data; - } /** * @depends testGetExecution */ - #[Retry(count: 2)] public function testUpdateSpecs($data): array { /** * Test for SUCCESS */ - $response1 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + // Change the function specs + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1422,22 +1125,20 @@ public function testUpdateSpecs($data): array 'specification' => Specification::S_1VCPU_1GB, ]); - $this->assertEquals(200, $response1['headers']['status-code']); - $this->assertNotEmpty($response1['body']['$id']); - $this->assertEquals(Specification::S_1VCPU_1GB, $response1['body']['specification']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals(Specification::S_1VCPU_1GB, $function['body']['specification']); - // Test Execution - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + // Verify the updated specs + $execution = $this->createExecution($data['functionId']); $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(1, $output['APPWRITE_FUNCTION_CPUS']); $this->assertEquals(1024, $output['APPWRITE_FUNCTION_MEMORY']); - $response2 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + // Change the specs to 1vcpu 512mb + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1452,15 +1153,12 @@ public function testUpdateSpecs($data): array 'specification' => Specification::S_1VCPU_512MB, ]); - $this->assertEquals(200, $response2['headers']['status-code']); - $this->assertNotEmpty($response2['body']['$id']); - $this->assertEquals(Specification::S_1VCPU_512MB, $response2['body']['specification']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals(Specification::S_1VCPU_512MB, $function['body']['specification']); - // Test Execution - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + // Verify the updated specs + $execution = $this->createExecution($data['functionId']); $output = json_decode($execution['body']['responseBody'], true); @@ -1470,7 +1168,7 @@ public function testUpdateSpecs($data): array /** * Test for FAILURE */ - $response3 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1485,8 +1183,8 @@ public function testUpdateSpecs($data): array 'specification' => 's-2vcpu-512mb', // Invalid specification ]); - $this->assertEquals(400, $response3['headers']['status-code']); - $this->assertStringStartsWith('Invalid `specification` param: Specification must be one of:', $response3['body']['message']); + $this->assertEquals(400, $function['headers']['status-code']); + $this->assertStringStartsWith('Invalid `specification` param: Specification must be one of:', $function['body']['message']); return $data; } @@ -1499,24 +1197,17 @@ public function testDeleteDeployment($data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ + $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); - $this->assertEquals(204, $function['headers']['status-code']); - $this->assertEmpty($function['body']); + $this->assertEquals(204, $deployment['headers']['status-code']); + $this->assertEmpty($deployment['body']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $deployment = $this->getDeployment($data['functionId'], $data['deploymentId']); - $this->assertEquals(404, $function['headers']['status-code']); - - /** - * Test for FAILURE - */ + $this->assertEquals(404, $deployment['headers']['status-code']); return $data; } @@ -1524,153 +1215,63 @@ public function testDeleteDeployment($data): array /** * @depends testCreateDeployment */ - public function testDelete($data): array + public function testDeleteFunction($data): array { /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->deleteFunction($data['functionId']); $this->assertEquals(204, $function['headers']['status-code']); $this->assertEmpty($function['body']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getFunction($data['functionId']); $this->assertEquals(404, $function['headers']['status-code']); - /** - * Test for FAILURE - */ - return $data; } - public function testTimeout() + public function testExecutionTimeout() { - $name = 'php-8.0'; - $entrypoint = 'index.php'; - $timeout = 15; - $folder = 'timeout'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), - 'name' => 'Test ' . $name, - 'runtime' => $name, - 'entrypoint' => $entrypoint, + 'name' => 'Test php-8.0', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', 'events' => [], - 'schedule' => '* * * * *', // execute every minute - 'timeout' => $timeout, + 'schedule' => '', + 'timeout' => 5, // Should timeout after 5 seconds ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - $this->assertEquals('* * * * *', $function['body']['schedule']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'entrypoint' => $entrypoint, - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('timeout'), 'activate' => true, ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($functionId, $deploymentId); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, + $execution = $this->createExecution($functionId, [ + 'async' => true ]); - $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(202, $execution['headers']['status-code']); - sleep(20); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('trigger', ['http'])->toString(), - ], - ]); - - $this->assertEquals($executions['headers']['status-code'], 200); - $this->assertEquals($executions['body']['total'], 1); - $this->assertIsArray($executions['body']['executions']); - $this->assertCount(1, $executions['body']['executions']); - $this->assertEquals($executions['body']['executions'][0]['$id'], $executionId); - $this->assertEquals($executions['body']['executions'][0]['trigger'], 'http'); - $this->assertEquals($executions['body']['executions'][0]['status'], 'failed'); - $this->assertEquals($executions['body']['executions'][0]['responseStatusCode'], 500); - $this->assertGreaterThan(2, $executions['body']['executions'][0]['duration']); - $this->assertLessThan(20, $executions['body']['executions'][0]['duration']); - $this->assertEquals($executions['body']['executions'][0]['responseBody'], ''); - $this->assertEquals($executions['body']['executions'][0]['logs'], ''); - $this->assertStringContainsString('timed out', $executions['body']['executions'][0]['errors']); - - $start = \microtime(true); - while (true) { - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('trigger', ['schedule'])->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - - if (\count($executions['body']['executions']) > 0) { - break; - } - - // 0s would mean instant execution - // +60 seconds, maximum possible waiting time before next minute - // +10 seconds, maximum update interval time - // +60 seconds, possible overlap between update and schedule tick - // +10 seconds, maximum execution time including cold-start - // Result: We allow maximum - if (\microtime(true) - $start > 140) { - $this->fail('Execution did not create within 140 seconds of schedule: ' . \json_encode($executions)); - } + $executionId = $execution['body']['$id'] ?? ''; - usleep(1000000); // 1 second - } + \sleep(5); // Wait for the function to timeout - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertGreaterThanOrEqual(1, \count($executions['body']['executions'])); - $this->assertEquals($executions['body']['executions'][0]['trigger'], 'schedule'); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals('failed', $execution['body']['status']); + $this->assertEquals(500, $execution['body']['responseStatusCode']); + $this->assertGreaterThan(2, $execution['body']['duration']); + $this->assertLessThan(20, $execution['body']['duration']); + $this->assertEquals('', $execution['body']['responseBody']); + $this->assertEquals('', $execution['body']['logs']); + $this->assertStringContainsString('timed out', $execution['body']['errors']); + }, 10000, 500); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } /** @@ -1684,7 +1285,7 @@ public function provideCustomExecutions(): array ['folder' => 'node', 'name' => 'node-18.0', 'entrypoint' => 'index.js', 'runtimeName' => 'Node.js', 'runtimeVersion' => '18.0'], ['folder' => 'python', 'name' => 'python-3.9', 'entrypoint' => 'main.py', 'runtimeName' => 'Python', 'runtimeVersion' => '3.9'], ['folder' => 'ruby', 'name' => 'ruby-3.1', 'entrypoint' => 'main.rb', 'runtimeName' => 'Ruby', 'runtimeVersion' => '3.1'], - // Swift and Dart disabled as it's very slow. + // Swift and Dart disabled on purpose, as it's very slow. // [ 'folder' => 'dart', 'name' => 'dart-2.15', 'entrypoint' => 'main.dart', 'runtimeName' => 'Dart', 'runtimeVersion' => '2.15' ], // [ 'folder' => 'swift', 'name' => 'swift-5.5', 'entrypoint' => 'index.swift', 'runtimeName' => 'Swift', 'runtimeVersion' => '5.5' ], ]; @@ -1696,72 +1297,38 @@ public function provideCustomExecutions(): array * @param string $entrypoint * * @dataProvider provideCustomExecutions - * @depends testTimeout + * @depends testExecutionTimeout */ public function testCreateCustomExecution(string $folder, string $name, string $entrypoint, string $runtimeName, string $runtimeVersion) { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test ' . $name, 'runtime' => $name, 'entrypoint' => $entrypoint, 'events' => [], - 'timeout' => $timeout, + 'timeout' => 15, ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable = $this->createVariable($functionId, [ 'key' => 'CUSTOM_VARIABLE', - 'value' => 'variable', + 'value' => 'variable' ]); $this->assertEquals(201, $variable['headers']['status-code']); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => $entrypoint, - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction($folder), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - 'async' => false + 'async' => 'false' ]); - $executionId = $execution['body']['$id'] ?? ''; $output = json_decode($execution['body']['responseBody'], true); - $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(200, $execution['body']['responseStatusCode']); @@ -1780,10 +1347,9 @@ public function testCreateCustomExecution(string $folder, string $name, string $ $this->assertStringContainsString('Amazing Function Log', $execution['body']['logs']); $this->assertEmpty($execution['body']['errors']); - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $executionId = $execution['body']['$id'] ?? ''; + + $executions = $this->listExecutions($functionId); $this->assertEquals($executions['headers']['status-code'], 200); $this->assertEquals($executions['body']['total'], 1); @@ -1793,65 +1359,28 @@ public function testCreateCustomExecution(string $folder, string $name, string $ $this->assertEquals($executions['body']['executions'][0]['trigger'], 'http'); $this->assertStringContainsString('Amazing Function Log', $executions['body']['executions'][0]['logs']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCreateCustomExecutionBinaryResponse() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-response/code.tar.gz"; - $this->packageCode('php-binary-response'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Binary executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-response'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - 'accept' => 'multipart/form-data', + 'accept' => 'multipart/form-data', // Accept binary response ], $this->getHeaders()), [ 'body' => null, ]); @@ -1871,7 +1400,7 @@ public function testCreateCustomExecutionBinaryResponse() */ $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - 'accept' => 'application/json', + 'accept' => 'application/json', // Accept JSON response ], $this->getHeaders()), [ 'body' => null, ]); @@ -1879,66 +1408,29 @@ public function testCreateCustomExecutionBinaryResponse() $this->assertEquals(400, $execution['headers']['status-code']); $this->assertStringContainsString('Failed to parse response', $execution['body']['message']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCreateCustomExecutionBinaryRequest() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-request/code.tar.gz"; - $this->packageCode('php-binary-request'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Binary executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-request'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $bytes = pack('C*', ...[0, 20, 255]); $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'multipart/form-data', + 'content-type' => 'multipart/form-data', // Send binary request 'x-appwrite-project' => $this->getProject()['$id'], 'accept' => 'application/json', ], $this->getHeaders()), [ @@ -1955,7 +1447,7 @@ public function testCreateCustomExecutionBinaryRequest() * Test for FAILURE */ $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', + 'content-type' => 'application/json', // Send JSON headers 'x-appwrite-project' => $this->getProject()['$id'], 'accept' => 'application/json', ], $this->getHeaders()), [ @@ -1963,98 +1455,53 @@ public function testCreateCustomExecutionBinaryRequest() ], false); $executionBody = json_decode($execution['body'], true); - $this->assertNotEquals(\md5($bytes), $executionBody['responseBody']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertNotEquals(\md5($bytes), $executionBody['responseBody']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testv2Function() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-v2/code.tar.gz"; - $this->packageCode('php-v2'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP V2', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', 'events' => [], - 'timeout' => $timeout, + 'timeout' => 15, ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $headers = [ + $variable = $this->client->call(Client::METHOD_PATCH, '/mock/functions-v2', [ 'content-type' => 'application/json', 'origin' => 'http://localhost', 'cookie' => 'a_session_console=' . $this->getRoot()['session'], 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-mode' => 'admin', - ]; - - $variable = $this->client->call(Client::METHOD_PATCH, '/mock/functions-v2', $headers, [ + ], [ 'functionId' => $functionId ]); - $this->assertEquals(204, $variable['headers']['status-code']); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-v2'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - 'async' => false + 'async' => 'false' ]); - $output = json_decode($execution['body']['responseBody'], true); - $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertEquals(true, $output['v2Woks']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $output = json_decode($execution['body']['responseBody'], true); + $this->assertEquals(true, $output['v2Woks']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testGetRuntimes() @@ -2062,7 +1509,7 @@ public function testGetRuntimes() $runtimes = $this->client->call(Client::METHOD_GET, '/functions/runtimes', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + ])); $this->assertEquals(200, $runtimes['headers']['status-code']); $this->assertGreaterThan(0, $runtimes['body']['total']); @@ -2082,14 +1529,7 @@ public function testGetRuntimes() public function testEventTrigger() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-event/code.tar.gz"; - $this->packageCode('php-event'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Event executions', 'runtime' => 'php-8.0', @@ -2097,38 +1537,15 @@ public function testEventTrigger() 'events' => [ 'users.*.create', ], - 'timeout' => $timeout, + 'timeout' => 15, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-event'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - - // Create user to trigger event + // Create user as an event trigger $user = $this->client->call(Client::METHOD_POST, '/users', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2137,108 +1554,59 @@ public function testEventTrigger() 'name' => 'Event User' ]); - $userId = $user['body']['$id']; - $this->assertEquals(201, $user['headers']['status-code']); - // Wait for execution to occur - sleep(15); + $userId = $user['body']['$id'] ?? ''; - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $this->assertEventually(function () use ($functionId, $userId) { + $executions = $this->listExecutions($functionId); - $execution = $executions['body']['executions'][0]; + $lastExecution = $executions['body']['executions'][0]; - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertEquals('completed', $execution['status']); - $this->assertEquals(204, $execution['responseStatusCode']); - $this->assertStringContainsString($userId, $execution['logs']); - $this->assertStringContainsString('Event User', $execution['logs']); + $this->assertEquals('completed', $lastExecution['status']); + $this->assertEquals(204, $lastExecution['responseStatusCode']); + $this->assertStringContainsString($userId, $lastExecution['logs']); + $this->assertStringContainsString('Event User', $lastExecution['logs']); + }, 10000, 500); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->cleanupFunction($functionId); - $this->assertEquals(204, $response['headers']['status-code']); - - // Cleanup : Delete user - $response = $this->client->call(Client::METHOD_DELETE, '/users/' . $userId, [ + // Cleanup user + $user = $this->client->call(Client::METHOD_DELETE, '/users/' . $userId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEquals(204, $user['headers']['status-code']); } public function testScopes() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-scopes/code.tar.gz"; - $this->packageCode('php-scopes'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Scopes executions', - 'commands' => 'composer update --no-interaction --ignore-platform-reqs --optimize-autoloader --prefer-dist --no-dev', + 'commands' => 'bash setup.sh && composer install', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', 'scopes' => ['users.read'], - 'timeout' => $timeout, + 'timeout' => 15, ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'commands' => 'sh setup.sh && composer install', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), - 'activate' => true + 'code' => $this->packageFunction('php-scopes'), + 'activate' => true, ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $deployment = $this->getDeployment($functionId, $deploymentId); $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertStringContainsStringIgnoringCase("200 OK", $deployment['body']['buildLogs']); $this->assertStringContainsStringIgnoringCase('"total":', $deployment['body']['buildLogs']); $this->assertStringContainsStringIgnoringCase('"users":', $deployment['body']['buildLogs']); - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false + $execution = $this->createExecution($functionId, [ + 'async' => 'false', ]); $this->assertEquals(201, $execution['headers']['status-code']); @@ -2248,92 +1616,50 @@ public function testScopes() $this->assertNotEmpty($execution['body']['responseBody']); $this->assertStringContainsString("total", $execution['body']['responseBody']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true + $execution = $this->createExecution($functionId, [ + 'async' => true, ]); $this->assertEquals(202, $execution['headers']['status-code']); $this->assertNotEmpty($execution['body']['$id']); - \sleep(10); - - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $execution['body']['$id'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals('completed', $execution['body']['status']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertGreaterThan(0, $execution['body']['duration']); - $this->assertNotEmpty($execution['body']['logs']); - $this->assertStringContainsString("total", $execution['body']['logs']); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertGreaterThan(0, $execution['body']['duration']); + $this->assertNotEmpty($execution['body']['logs']); + $this->assertStringContainsString("total", $execution['body']['logs']); + }, 10000, 500); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCookieExecution() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-cookie/code.tar.gz"; - $this->packageCode('php-cookie'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Cookie executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, ]); + $this->assertNotEmpty($functionId); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-cookie'), 'activate' => true ]); - - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); + $this->assertNotEmpty($deploymentId); $cookie = 'cookieName=cookieValue; cookie2=value2; cookie3=value=3; cookie4=val:ue4; cookie5=value5'; - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, + $execution = $this->createExecution($functionId, [ + 'async' => 'false', 'headers' => [ 'cookie' => $cookie ] @@ -2345,309 +1671,682 @@ public function testCookieExecution() $this->assertEquals($cookie, $execution['body']['responseBody']); $this->assertGreaterThan(0, $execution['body']['duration']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $deployment = $this->getDeployment($functionId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertGreaterThan(0, $deployment['body']['buildSize']); + $totalSize = $deployment['body']['sourceSize'] + $deployment['body']['buildSize']; + $this->assertEquals($totalSize, $deployment['body']['totalSize']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testFunctionsDomain() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-cookie/code.tar.gz"; - $this->packageCode('php-cookie'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Cookie executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - $functionId = $function['body']['$id'] ?? ''; + $domain = $this->setupFunctionDomain($functionId); - $this->assertEquals(201, $function['headers']['status-code']); + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php-cookie'), + 'activate' => true + ]); - $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + $cookie = 'cookieName=cookieValue; cookie2=value2; cookie3=value=3; cookie4=val:ue4; cookie5=value5'; + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('resourceId', [$functionId])->toString(), - Query::equal('resourceType', ['function'])->toString(), - ], - ]); + 'cookie' => $cookie + ])); - $this->assertEquals(200, $rules['headers']['status-code']); - $this->assertEquals(1, $rules['body']['total']); - $this->assertCount(1, $rules['body']['rules']); - $this->assertNotEmpty($rules['body']['rules'][0]['domain']); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals($cookie, $response['body']); - $domain = $rules['body']['rules'][0]['domain']; + // Async execution document creation + $this->assertEventually(function () use ($functionId) { + $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, count($executions['body']['executions'])); + }); + + $this->assertEventually(function () use ($functionId) { + $response = $this->getUsage($functionId, [ + 'range' => '24h' + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(24, count($response['body'])); + $this->assertEquals('24h', $response['body']['range']); + $this->assertEquals(1, $response['body']['executionsTotal']); + }, 25000, 1000); + + $this->cleanupFunction($functionId); + } + + public function testFunctionsDomainBinaryResponse() + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test PHP Binary executions', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, + 'execute' => ['any'] + ]); + + $domain = $this->setupFunctionDomain($functionId); + + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-response'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); + $response = $proxyClient->call(Client::METHOD_GET, '/', [], [], false); - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $bytes = unpack('C*byte', $response['body']); + $this->assertCount(3, $bytes); + $this->assertEquals(0, $bytes['byte1']); + $this->assertEquals(10, $bytes['byte2']); + $this->assertEquals(255, $bytes['byte3']); - $this->assertEquals(200, $deployment['headers']['status-code']); + $this->cleanupFunction($functionId); + } - // Wait a little for activation to finish - sleep(5); + public function testFunctionsDomainBinaryRequest() + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test PHP Binary executions', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, + 'execute' => ['any'] + ]); - $cookie = 'cookieName=cookieValue; cookie2=value2; cookie3=value=3; cookie4=val:ue4; cookie5=value5'; + $domain = $this->setupFunctionDomain($functionId); + + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php-binary-request'), + 'activate' => true + ]); $proxyClient = new Client(); $proxyClient->setEndpoint('http://' . $domain); - $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'cookie' => $cookie - ])); + $bytes = pack('C*', ...[0, 20, 255]); + + $response = $proxyClient->call(Client::METHOD_POST, '/', ['content-type' => 'text/plain'], $bytes, false); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertEquals(\md5($bytes), $response['body']); - // Await Aggregation - sleep(App::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', 30)); + $this->cleanupFunction($functionId); + } - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/usage', array_merge([ + public function testResponseFilters() + { + // create function with 1.5.0 response format + $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-response-format' => '1.5.0', // add response format header ], $this->getHeaders()), [ - 'range' => '24h' + 'functionId' => ID::unique(), + 'name' => 'Test', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(19, count($response['body'])); - $this->assertEquals('24h', $response['body']['range']); + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertArrayNotHasKey('scopes', $response['body']); + $this->assertArrayNotHasKey('specification', $response['body']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ + // get function with 1.5.0 response format header + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $response['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + 'x-appwrite-response-format' => '1.5.0', // add response format header + ], $this->getHeaders())); - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertArrayNotHasKey('scopes', $function['body']); + $this->assertArrayNotHasKey('specification', $function['body']); + + $function = $this->getFunction($function['body']['$id']); + + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertArrayHasKey('scopes', $function['body']); + $this->assertArrayHasKey('specification', $function['body']); + + $functionId = $function['body']['$id'] ?? ''; + $this->cleanupFunction($functionId); } - public function testFunctionsDomainBinaryResponse() + public function testRequestFilters() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-response/code.tar.gz"; - $this->packageCode('php-binary-response'); + $function1Id = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, + 'execute' => ['any'] + ]); - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function2Id = $this->setupFunction([ 'functionId' => ID::unique(), - 'name' => 'Test PHP Binary executions', + 'name' => 'Test2', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - $functionId = $function['body']['$id'] ?? ''; + // list functions using request filters + $response = $this->client->call( + Client::METHOD_GET, + '/functions', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-response-format' => '1.4.0', // Set response format for 1.4 syntax + ], $this->getHeaders()), + [ + 'queries' => [ 'equal("name", ["Test2"])' ] + ] + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['functions']); + $this->assertEquals('Test2', $response['body']['functions'][0]['name']); + + $this->cleanupFunction($function1Id); + $this->cleanupFunction($function2Id); + } + + public function testFunctionLogging() + { + $function = $this->createFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Logging Test', + 'entrypoint' => 'index.js', + 'logging' => false, + 'execute' => ['any'] + ]); $this->assertEquals(201, $function['headers']['status-code']); + $this->assertFalse($function['body']['logging']); + $this->assertNotEmpty($function['body']['$id']); - $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + $functionId = $function['body']['$id'] ?? ''; + + $domain = $this->setupFunctionDomain($functionId); + + $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('node'), + 'activate' => true + ]); + + // Sync Executions test + $execution = $this->createExecution($functionId); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertEmpty($execution['body']['logs']); + $this->assertEmpty($execution['body']['errors']); + + // Async Executions test + $execution = $this->createExecution($functionId, [ + 'async' => true + ]); + + $this->assertEquals(202, $execution['headers']['status-code']); + $this->assertEmpty($execution['body']['logs']); + $this->assertEmpty($execution['body']['errors']); + $this->assertNotEmpty($execution['body']['$id']); + + $executionId = $execution['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); + + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEmpty($execution['body']['logs']); + $this->assertEmpty($execution['body']['errors']); + }, 10000, 500); + + // Domain Executions test + $domain = $this->getFunctionDomain($functionId); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + + $executions = $this->listExecutions($functionId, [ 'queries' => [ - Query::equal('resourceId', [$functionId])->toString(), - Query::equal('resourceType', ['function'])->toString(), - ], + Query::limit(1)->toString(), + Query::orderDesc('$id')->toString(), + ] ]); - $this->assertEquals(200, $rules['headers']['status-code']); - $this->assertEquals(1, $rules['body']['total']); - $this->assertCount(1, $rules['body']['rules']); - $this->assertNotEmpty($rules['body']['rules'][0]['domain']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); + $this->assertEmpty($executions['body']['executions'][0]['logs']); + $this->assertEmpty($executions['body']['executions'][0]['errors']); - $domain = $rules['body']['rules'][0]['domain']; + // Ensure executions count + $executions = $this->listExecutions($functionId); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(3, $executions['body']['executions']); + + // Double check logs and errors are empty + foreach ($executions['body']['executions'] as $execution) { + $this->assertEmpty($execution['logs']); + $this->assertEmpty($execution['errors']); + } + + $this->cleanupFunction($functionId); + } + + public function testFunctionSpecifications() + { + // Check if the function specifications are correctly set in builds + $function = $this->createFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Specification Test', + 'entrypoint' => 'index.js', + 'logging' => false, + 'execute' => ['any'], + 'specification' => Specification::S_2VCPU_2GB, + 'commands' => 'echo $APPWRITE_FUNCTION_MEMORY:$APPWRITE_FUNCTION_CPUS', + ]); + + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertEquals(Specification::S_2VCPU_2GB, $function['body']['specification']); + $this->assertNotEmpty($function['body']['$id']); + + $functionId = $functionId = $function['body']['$id'] ?? ''; + + $deploymentId = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('node'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); + $this->assertTrue(str_contains($deployment['body']['buildLogs'], '2048:2')); + }, 10000, 500); + + // Check if the function specifications are correctly set in executions + $execution = $this->createExecution($functionId); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertNotEmpty($execution['body']['$id']); + + $executionResponse = json_decode($execution['body']['responseBody'], true); + $this->assertEquals('2048', $executionResponse['APPWRITE_FUNCTION_MEMORY']); + $this->assertEquals('2', $executionResponse['APPWRITE_FUNCTION_CPUS']); + + $this->cleanupFunction($functionId); + } + + public function testDuplicateDeployment(): void + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Duplicate Deployment Test', + 'entrypoint' => 'index.js', + 'commands' => '' + ]); + $this->assertNotEmpty($functionId); + + $deploymentId1 = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('node'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId1); + + $execution = $this->createExecution($functionId); + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertStringContainsString('APPWRITE_FUNCTION_ID', $execution['body']['responseBody']); + + $function = $this->updateFunction($functionId, [ + 'runtime' => 'node-18.0', + 'name' => 'Duplicate Deployment Test', + 'entrypoint' => 'index.js', + 'commands' => 'rm index.js && mv maintenance.js index.js' + ]); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertStringContainsString('maintenance.js', $function['body']['commands']); + + $deployment = $this->createDuplicateDeployment($functionId, $deploymentId1); $this->assertEquals(202, $deployment['headers']['status-code']); - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); + $deploymentId2 = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId2); - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $deployment = $this->getDeployment($functionId, $deploymentId2); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertEquals(0, $deployment['body']['buildSize']); + $this->assertEquals($deployment['body']['sourceSize'], $deployment['body']['totalSize']); + + $this->assertEventually(function () use ($functionId, $deploymentId2) { + $function = $this->getFunction($functionId); + $this->assertEquals($deploymentId2, $function['body']['deploymentId']); + }, 50000, 500); + $execution = $this->createExecution($functionId); + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertStringContainsString('Maintenance', $execution['body']['responseBody']); + + $deployment = $this->getDeployment($functionId, $deploymentId2); $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertGreaterThan(0, $deployment['body']['buildSize']); + $totalSize = $deployment['body']['sourceSize'] + $deployment['body']['buildSize']; + $this->assertEquals($totalSize, $deployment['body']['totalSize']); - // Wait a little for activation to finish - sleep(5); + $this->cleanupFunction($functionId); + } - $proxyClient = new Client(); - $proxyClient->setEndpoint('http://' . $domain); + public function testUpdateDeploymentStatus(): void + { - $response = $proxyClient->call(Client::METHOD_GET, '/', [], [], false); + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'php-8.0', + 'name' => 'Re-activate Test', + 'entrypoint' => 'index.php', + ]); + $this->assertNotEmpty($functionId); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertNotEmpty($response['body']); - $bytes = unpack('C*byte', $response['body']); - $this->assertCount(3, $bytes); - $this->assertEquals(0, $bytes['byte1']); - $this->assertEquals(10, $bytes['byte2']); - $this->assertEquals(255, $bytes['byte3']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertArrayHasKey('latestDeploymentId', $function['body']); + $this->assertArrayHasKey('latestDeploymentCreatedAt', $function['body']); + $this->assertArrayHasKey('latestDeploymentStatus', $function['body']); + $this->assertEmpty($function['body']['latestDeploymentId']); + $this->assertEmpty($function['body']['latestDeploymentCreatedAt']); + $this->assertEmpty($function['body']['latestDeploymentStatus']); + + $deploymentId1 = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('php-cookie'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId1); + + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($deploymentId1, $function['body']['latestDeploymentId']); + $this->assertEquals('ready', $function['body']['latestDeploymentStatus']); + + $execution = $this->createExecution($functionId, [ + 'headers' => [ 'cookie' => 'cookieName=cookieValue' ] + ]); + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertNotEmpty($execution['body']['$id']); + $this->assertStringContainsString('cookieValue', $execution['body']['responseBody']); + + $deploymentId2 = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId2); + + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($deploymentId2, $function['body']['latestDeploymentId']); + $this->assertEquals('ready', $function['body']['latestDeploymentStatus']); - $this->assertEquals(204, $response['headers']['status-code']); + $execution = $this->createExecution($functionId); + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertNotEmpty($execution['body']['$id']); + $this->assertStringContainsString('UNICODE_TEST', $execution['body']['responseBody']); + + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($deploymentId2, $function['body']['deploymentId']); + $this->assertEquals($deploymentId2, $function['body']['latestDeploymentId']); + $this->assertEquals('ready', $function['body']['latestDeploymentStatus']); + + $function = $this->updateFunctionDeployment($functionId, $deploymentId1); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($deploymentId1, $function['body']['deploymentId']); + + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($deploymentId1, $function['body']['deploymentId']); + $this->assertEquals($deploymentId2, $function['body']['latestDeploymentId']); + $this->assertEquals('ready', $function['body']['latestDeploymentStatus']); + + $execution = $this->createExecution($functionId, [ + 'headers' => [ 'cookie' => 'cookieName=cookieValue' ] + ]); + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertNotEmpty($execution['body']['$id']); + $this->assertStringContainsString('cookieValue', $execution['body']['responseBody']); + + $deployment = $this->deleteDeployment($functionId, $deploymentId2); + $this->assertEquals(204, $deployment['headers']['status-code']); + + $function = $this->getFunction($functionId); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertEquals($deploymentId1, $function['body']['latestDeploymentId']); + $this->assertEquals('ready', $function['body']['latestDeploymentStatus']); + + $this->cleanupFunction($functionId); } - public function testFunctionsDomainBinaryRequest() + #[Retry(count: 3)] + public function testErrorPages(): void { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-request/code.tar.gz"; - $this->packageCode('php-binary-request'); + // non-existent domain + $domain = 'non-existent-page.functions.localhost'; - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString('Nothing is here yet', $response['body']); + $this->assertStringContainsString('Start with this domain', $response['body']); + + // failed deployment + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), - 'name' => 'Test PHP Binary executions', + 'name' => 'Test Error Pages', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, + 'commands' => 'cd non-existing-directory', 'execute' => ['any'] ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); + $domain = $this->setupFunctionDomain($functionId); + $proxyClient->setEndpoint('http://' . $domain); - $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('resourceId', [$functionId])->toString(), - Query::equal('resourceType', ['function'])->toString(), - ], + $deployment = $this->createDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true ]); - $this->assertEquals(200, $rules['headers']['status-code']); - $this->assertEquals(1, $rules['body']['total']); - $this->assertCount(1, $rules['body']['rules']); - $this->assertNotEmpty($rules['body']['rules'][0]['domain']); + $this->assertEquals(202, $deployment['headers']['status-code']); - $domain = $rules['body']['rules'][0]['domain']; + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString('No active deployments', $response['body']); + $this->assertStringContainsString('View deployments', $response['body']); + + // canceled deployment + $deployment = $this->createDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); $deploymentId = $deployment['body']['$id'] ?? ''; $this->assertEquals(202, $deployment['headers']['status-code']); - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); + $deployment = $this->cancelDeployment($functionId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('canceled', $deployment['body']['status']); - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + 'x-appwrite-project' => $this->getProject()['$id'] + ])); - $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString('No active deployments', $response['body']); + $this->assertStringContainsString('View deployments', $response['body']); - // Wait a little for activation to finish - sleep(5); + $this->cleanupFunction($functionId); + } + public function testErrorPagesPermissions(): void + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test Error Pages', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, + 'commands' => '', + 'execute' => ['users'] + ]); + + $domain = $this->setupFunctionDomain($functionId); $proxyClient = new Client(); $proxyClient->setEndpoint('http://' . $domain); - $bytes = pack('C*', ...[0, 20, 255]); - - $response = $proxyClient->call(Client::METHOD_POST, '/', ['content-type' => 'text/plain'], $bytes, false); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(\md5($bytes), $response['body']); + $deploymentId = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + 'x-appwrite-project' => $this->getProject()['$id'] + ])); - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); + $this->assertStringContainsString('Execution not permitted', $response['body']); + $this->assertStringContainsString('View settings', $response['body']); + + $this->cleanupFunction($functionId); } - public function testCreateFunctionWithResponseFormatHeader() + public function testErrorPagesEmptyBody(): void { - $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-response-format' => '1.5.0', // add response format header - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), - 'name' => 'Test', + 'name' => 'Test Error Pages', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', 'timeout' => 15, + 'commands' => '', + 'execute' => ['any'] ]); - $this->assertEquals(201, $response['headers']['status-code']); + $domain = $this->setupFunctionDomain($functionId); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $deploymentId = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $response['body']['$id'], [ + $response = $proxyClient->call(Client::METHOD_GET, '/custom-response?code=404', array_merge([ 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString('Error 404', $response['body']); + $this->assertStringContainsString('does not exist', $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/custom-response?code=504', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + $this->assertEquals(504, $response['headers']['status-code']); + $this->assertStringContainsString('Error 504', $response['body']); + $this->assertStringContainsString('respond in time', $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/custom-response?code=400', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertStringContainsString('Error 400', $response['body']); + $this->assertStringContainsString('unexpected client error', $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/custom-response?code=500', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + $this->assertEquals(500, $response['headers']['status-code']); + $this->assertStringContainsString('Error 500', $response['body']); + $this->assertStringContainsString('unexpected server error', $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/custom-response?code=400&body=CustomError400', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertStringContainsString('CustomError400', $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/custom-response?code=500&body=CustomError500', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ])); + $this->assertEquals(500, $response['headers']['status-code']); + $this->assertStringContainsString('CustomError500', $response['body']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } } diff --git a/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php new file mode 100644 index 00000000000..4f4b0c960da --- /dev/null +++ b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php @@ -0,0 +1,215 @@ +<?php + +namespace Tests\E2E\Services\FunctionsSchedule; + +use Appwrite\ID; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; +use Tests\E2E\Services\Functions\FunctionsBase; +use Utopia\Database\Helpers\Role; + +class FunctionsScheduleTest extends Scope +{ + use FunctionsBase; + use ProjectCustom; + use SideServer; + + public function testCreateScheduledExecution() + { + /** + * Test for SUCCESS + */ + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'execute' => [Role::user($this->getUser()['$id'])->toString()], + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'events' => [ + 'users.*.create', + 'users.*.delete', + ], + 'schedule' => '* * * * *', // Execute every 60 seconds + 'timeout' => 10, + ]); + + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + // Wait for scheduled execution + \sleep(60); + + $this->assertEventually(function () use ($functionId) { + $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); + + $asyncExecution = $executions['body']['executions'][0]; + + $this->assertEquals('schedule', $asyncExecution['trigger']); + $this->assertEquals('completed', $asyncExecution['status']); + $this->assertEquals(200, $asyncExecution['responseStatusCode']); + $this->assertEquals('', $asyncExecution['responseBody']); + $this->assertNotEmpty($asyncExecution['logs']); + $this->assertNotEmpty($asyncExecution['errors']); + $this->assertGreaterThan(0, $asyncExecution['duration']); + }, 60000, 500); + + $this->cleanupFunction($functionId); + } + + public function testCreateScheduledAtExecution(): void + { + /** + * Test for SUCCESS + */ + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'execute' => [Role::user($this->getUser()['$id'])->toString()], + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 10, + 'logging' => true, + ]); + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + // Schedule execution for the future + \date_default_timezone_set('UTC'); + $futureTime = (new \DateTime())->add(new \DateInterval('PT2M')); // 2 minute in the future + $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); + + + $execution = $this->client->call( + Client::METHOD_POST, + '/functions/' . $functionId . '/executions', + [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'origin' => 'http://localhost', + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $this->getUser()['session'], + ], + [ + 'async' => true, + 'scheduledAt' => $futureTime->format(\DateTime::ATOM), + 'path' => '/custom-path', + 'method' => 'PATCH', + 'body' => 'custom-body', + 'headers' => [ + 'x-custom-header' => 'custom-value' + ] + ] + ); + $executionId = $execution['body']['$id']; + + $this->assertEquals(202, $execution['headers']['status-code']); + $this->assertEquals('scheduled', $execution['body']['status']); + $this->assertEquals('PATCH', $execution['body']['requestMethod']); + $this->assertEquals('/custom-path', $execution['body']['requestPath']); + $this->assertCount(0, $execution['body']['requestHeaders']); + + \sleep(120); + + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); + + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals('/custom-path', $execution['body']['requestPath']); + $this->assertEquals('PATCH', $execution['body']['requestMethod']); + $this->assertStringContainsString('body-is-custom-body', $execution['body']['logs']); + $this->assertStringContainsString('custom-header-is-custom-value', $execution['body']['logs']); + $this->assertStringContainsString('method-is-patch', $execution['body']['logs']); + $this->assertStringContainsString('path-is-/custom-path', $execution['body']['logs']); + $this->assertStringContainsString('user-is-' . $this->getUser()['$id'], $execution['body']['logs']); + $this->assertStringContainsString('jwt-is-valid', $execution['body']['logs']); + $this->assertGreaterThan(0, $execution['body']['duration']); + }, 10000, 500); + + /* Test for FAILURE */ + // Schedule synchronous execution + $execution = $this->createExecution($functionId, [ + 'async' => 'false', + 'scheduledAt' => $futureTime->format(\DateTime::ATOM), + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + // Execution with seconds precision + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02"))->format(\DateTime::ATOM) + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + // Execution with milliseconds precision + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02.255"))->format(\DateTime::ATOM) + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + // Execution too soon + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => (new \DateTime())->add(new \DateInterval('PT1S'))->format(\DateTime::ATOM) + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + $this->cleanupFunction($functionId, $executionId); + } + + public function testDeleteScheduledExecution() + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'execute' => [Role::user($this->getUser()['$id'])->toString()], + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 10, + 'logging' => true, + ]); + + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + $futureTime = (new \DateTime())->add(new \DateInterval('PT10H')); + $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); + + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => $futureTime->format('Y-m-d H:i:s'), + ]); + + $this->assertEquals(202, $execution['headers']['status-code']); + + $executionId = $execution['body']['$id'] ?? ''; + + $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId . '/executions/' . $executionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $execution['headers']['status-code']); + + $this->cleanupFunction($functionId); + } +} diff --git a/tests/e2e/Services/GraphQL/AbuseTest.php b/tests/e2e/Services/GraphQL/AbuseTest.php index d4e87cf029d..ea97492c2b4 100644 --- a/tests/e2e/Services/GraphQL/AbuseTest.php +++ b/tests/e2e/Services/GraphQL/AbuseTest.php @@ -88,7 +88,7 @@ public function testComplexQueryBlocked() $response = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), $graphQLPayload); + ], $this->getHeaders(false)), $graphQLPayload); $max = System::getEnv('_APP_GRAPHQL_MAX_QUERY_COMPLEXITY', 250); diff --git a/tests/e2e/Services/GraphQL/AvatarsTest.php b/tests/e2e/Services/GraphQL/AvatarsTest.php index 9f3fa7a3bb8..e3aaa2ce803 100644 --- a/tests/e2e/Services/GraphQL/AvatarsTest.php +++ b/tests/e2e/Services/GraphQL/AvatarsTest.php @@ -134,7 +134,7 @@ public function testGetQRCode() 'x-appwrite-project' => $projectId, ], $this->getHeaders()), $graphQLPayload); - $this->assertEquals(29428, \strlen($qrCode['body'])); + $this->assertEquals(9169, \strlen($qrCode['body'])); return $qrCode['body']; } diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index 735e4eced56..121d40156ed 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\GraphQL; +use CURLFile; use Utopia\CLI\Console; trait Base @@ -1567,7 +1568,7 @@ functionsCreateDeployment(functionId: $functionId, code: $code, activate: $activ _id buildId entrypoint - size + buildSize status buildLogs } @@ -1619,7 +1620,7 @@ functionsDeleteExecution(functionId: $functionId, executionId: $executionId) { }'; case self::$RETRY_BUILD: return 'mutation retryBuild($functionId: String!, $deploymentId: String!, $buildId: String!) { - functionsCreateBuild(functionId: $functionId, deploymentId: $deploymentId, buildId: $buildId) { + functionsCreateDuplicateDeployment(functionId: $functionId, deploymentId: $deploymentId, buildId: $buildId) { status } }'; @@ -2496,8 +2497,17 @@ functionsCreateBuild(functionId: $functionId, deploymentId: $deploymentId, build protected string $stdout = ''; protected string $stderr = ''; - protected function packageCode($folder): void + protected function packageFunction(string $function): CURLFile { - Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/$folder && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + $folderPath = realpath(__DIR__ . '/../../../resources/functions') . "/$function"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); + } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); } } diff --git a/tests/e2e/Services/GraphQL/FunctionsClientTest.php b/tests/e2e/Services/GraphQL/FunctionsClientTest.php index 3f0ee1966ad..14b714d5517 100644 --- a/tests/e2e/Services/GraphQL/FunctionsClientTest.php +++ b/tests/e2e/Services/GraphQL/FunctionsClientTest.php @@ -2,7 +2,7 @@ namespace Tests\E2E\Services\GraphQL; -use CURLFile; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -15,6 +15,7 @@ class FunctionsClientTest extends Scope use ProjectCustom; use SideClient; use Base; + use Async; public function testCreateFunction(): array { @@ -83,10 +84,6 @@ public function testCreateDeployment($function): array $projectId = $this->getProject()['$id']; $query = $this->getQuery(self::$CREATE_DEPLOYMENT); - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - $gqlPayload = [ 'operations' => \json_encode([ 'query' => $query, @@ -99,7 +96,7 @@ public function testCreateDeployment($function): array 'map' => \json_encode([ 'code' => ["variables.code"] ]), - 'code' => new CURLFile($code, 'application/gzip', 'code.tar.gz'), + 'code' => $this->packageFunction('php') ]; $deployment = $this->client->call(Client::METHOD_POST, '/graphql', [ @@ -124,7 +121,7 @@ public function testCreateDeployment($function): array ] ]; - while (true) { + $this->assertEventually(function () use ($projectId, $gqlPayload, &$deployment) { $deployment = $this->client->call(Client::METHOD_POST, '/graphql', [ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, @@ -135,18 +132,8 @@ public function testCreateDeployment($function): array $this->assertArrayNotHasKey('errors', $deployment['body']); $deployment = $deployment['body']['data']['functionsGetDeployment']; - - if ( - $deployment['status'] === 'ready' - || $deployment['status'] === 'failed' - ) { - break; - } - - \sleep(1); - } - - $this->assertEquals('ready', $deployment['status']); + $this->assertEquals('ready', $deployment['status']); + }, 60000); return $deployment; } diff --git a/tests/e2e/Services/GraphQL/FunctionsServerTest.php b/tests/e2e/Services/GraphQL/FunctionsServerTest.php index 25a671fa1ca..d211dcceea2 100644 --- a/tests/e2e/Services/GraphQL/FunctionsServerTest.php +++ b/tests/e2e/Services/GraphQL/FunctionsServerTest.php @@ -2,7 +2,7 @@ namespace Tests\E2E\Services\GraphQL; -use CURLFile; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -15,6 +15,7 @@ class FunctionsServerTest extends Scope use ProjectCustom; use SideServer; use Base; + use Async; public function testCreateFunction(): array { @@ -82,10 +83,6 @@ public function testCreateDeployment($function): array $projectId = $this->getProject()['$id']; $query = $this->getQuery(self::$CREATE_DEPLOYMENT); - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - $gqlPayload = [ 'operations' => \json_encode([ 'query' => $query, @@ -98,7 +95,7 @@ public function testCreateDeployment($function): array 'map' => \json_encode([ 'code' => ["variables.code"] ]), - 'code' => new CURLFile($code, 'application/gzip', 'code.tar.gz'), + 'code' => $this->packageFunction('php'), ]; $deployment = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ @@ -122,7 +119,7 @@ public function testCreateDeployment($function): array ] ]; - while (true) { + $this->assertEventually(function () use ($projectId, $gqlPayload, &$deployment) { $deployment = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, @@ -132,19 +129,8 @@ public function testCreateDeployment($function): array $this->assertArrayNotHasKey('errors', $deployment['body']); $deployment = $deployment['body']['data']['functionsGetDeployment']; - - if ( - $deployment['status'] === 'ready' - || $deployment['status'] === 'failed' - ) { - break; - } - - \sleep(1); - } - - $this->assertEquals('ready', $deployment['status']); - + $this->assertEquals('ready', $deployment['status']); + }, 30000); return $deployment; } @@ -200,8 +186,8 @@ public function testCreateRetryBuild($deployment): void 'x-appwrite-project' => $projectId, ], $this->getHeaders()), $gqlPayload); - $this->assertIsNotArray($response['body']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertIsArray($response['body']['data']); + $this->assertEquals(200, $response['headers']['status-code']); } public function testGetFunctions(): array @@ -266,7 +252,7 @@ public function testGetRuntimes(): array $runtimes = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), $gqlPayload); + ]), $gqlPayload); $this->assertIsArray($runtimes['body']['data']); $this->assertArrayNotHasKey('errors', $runtimes['body']); diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 8360af542ea..4b7062dc228 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -67,24 +67,6 @@ public function testCacheSuccess(): array return []; } - public function testQueueSuccess(): array - { - /** - * Test for SUCCESS - */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals('pass', $response['body']['statuses'][0]['status']); - $this->assertIsInt($response['body']['statuses'][0]['ping']); - $this->assertLessThan(100, $response['body']['statuses'][0]['ping']); - - return []; - } - public function testPubSubSuccess(): array { /** @@ -455,7 +437,7 @@ public function testCertificateValidity(): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('/CN=www.google.com', $response['body']['name']); $this->assertEquals('www.google.com', $response['body']['subjectSN']); - $this->assertStringContainsString('Google Trust Services', $response['body']['issuerOrganisation']); + $this->assertContains($response['body']['issuerOrganisation'], ['Let\'s Encrypt', 'Google Trust Services']); $this->assertIsInt($response['body']['validFrom']); $this->assertIsInt($response['body']['validTo']); @@ -467,7 +449,7 @@ public function testCertificateValidity(): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('/CN=appwrite.io', $response['body']['name']); $this->assertEquals('appwrite.io', $response['body']['subjectSN']); - $this->assertEquals("Let's Encrypt", $response['body']['issuerOrganisation']); + $this->assertContains($response['body']['issuerOrganisation'], ['Let\'s Encrypt', 'Google Trust Services']); $this->assertIsInt($response['body']['validFrom']); $this->assertIsInt($response['body']['validTo']); @@ -512,12 +494,12 @@ public function testCertificateValidity(): array return []; } - public function testUsageSuccess() + public function testStatsResources() { /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-resources', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); @@ -529,19 +511,19 @@ public function testUsageSuccess() /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage?threshold=0', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-resources?threshold=0', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); $this->assertEquals(503, $response['headers']['status-code']); } - public function testUsageDumpSuccess() + public function testUsageSuccess() { /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage-dump', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-usage', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); @@ -553,7 +535,7 @@ public function testUsageDumpSuccess() /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage-dump?threshold=0', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-usage?threshold=0', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); diff --git a/tests/e2e/Services/Locale/LocaleBase.php b/tests/e2e/Services/Locale/LocaleBase.php index 0e2928004d8..ee731a99e5e 100644 --- a/tests/e2e/Services/Locale/LocaleBase.php +++ b/tests/e2e/Services/Locale/LocaleBase.php @@ -228,8 +228,8 @@ public function testLanguages(): array * Test for SUCCESS */ $languages = require(__DIR__ . '/../../../../app/config/locale/codes.php'); - $defaultCountries = require(__DIR__ . '/../../../../app/config/locale/countries.php'); - $defaultContinents = require(__DIR__ . '/../../../../app/config/locale/continents.php'); + $defaultCountries = array_keys(require(__DIR__ . '/../../../../app/config/locale/countries.php')); + $defaultContinents = array_keys(require(__DIR__ . '/../../../../app/config/locale/continents.php')); foreach ($languages as $lang) { $response = $this->client->call(Client::METHOD_GET, '/locale/countries', [ diff --git a/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php b/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php index 1b0d840f96a..245eb3e8de7 100644 --- a/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php +++ b/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\Messaging; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -11,6 +12,8 @@ class MessagingConsoleClientTest extends Scope { + use Async; + use MessagingBase; use ProjectCustom; use SideConsole; @@ -54,15 +57,18 @@ public function testGetProviderLogs(array $providers): void $this->assertEquals(200, $response['headers']['status-code']); - $logs = $this->client->call(Client::METHOD_GET, '/messaging/providers/' . $provider['body']['$id'] . '/logs', \array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals($logs['headers']['status-code'], 200); - $this->assertIsArray($logs['body']['logs']); - $this->assertIsNumeric($logs['body']['total']); - $this->assertCount(2, $logs['body']['logs']); + // required for Cloud x Audits + $this->assertEventually(function () use ($provider) { + $logs = $this->client->call(Client::METHOD_GET, '/messaging/providers/' . $provider['body']['$id'] . '/logs', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals($logs['headers']['status-code'], 200); + $this->assertIsArray($logs['body']['logs']); + $this->assertIsNumeric($logs['body']['total']); + $this->assertCount(2, $logs['body']['logs']); + }); $logs = $this->client->call(Client::METHOD_GET, '/messaging/providers/' . $provider['body']['$id'] . '/logs', \array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Migrations/MigrationsBase.php b/tests/e2e/Services/Migrations/MigrationsBase.php new file mode 100644 index 00000000000..c241b38e3d5 --- /dev/null +++ b/tests/e2e/Services/Migrations/MigrationsBase.php @@ -0,0 +1,1192 @@ +<?php + +namespace Tests\E2E\Services\Migrations; + +use CURLFile; +use Tests\E2E\Client; +use Tests\E2E\General\UsageTest; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Services\Functions\FunctionsBase; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Query; +use Utopia\Migration\Resource; +use Utopia\Migration\Sources\Appwrite; +use Utopia\Migration\Sources\CSV; + +trait MigrationsBase +{ + use ProjectCustom; + use FunctionsBase; + + /** + * @var array + */ + protected static array $destinationProject = []; + + /** + * @param bool $fresh + * @return array + */ + public function getDestinationProject(bool $fresh = false): array + { + if (!empty(self::$destinationProject) && !$fresh) { + return self::$destinationProject; + } + + $projectBackup = self::$project; + + self::$destinationProject = $this->getProject(true); + self::$project = $projectBackup; + + return self::$destinationProject; + } + + public function performMigrationSync(array $body): array + { + $migration = $this->client->call(Client::METHOD_POST, '/migrations/appwrite', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ], $body); + + $this->assertEquals(202, $migration['headers']['status-code']); + $this->assertNotEmpty($migration['body']); + $this->assertNotEmpty($migration['body']['$id']); + + $migrationResult = []; + + $this->assertEventually(function () use ($migration, &$migrationResult) { + $response = $this->client->call(Client::METHOD_GET, '/migrations/' . $migration['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + if ($response['body']['status'] === 'failed') { + $this->fail('Migration failed' . json_encode($response['body'], JSON_PRETTY_PRINT)); + } + + $this->assertNotEquals('failed', $response['body']['status']); + $this->assertEquals('completed', $response['body']['status']); + + $migrationResult = $response['body']; + + return true; + }); + + return $migrationResult; + } + + /** + * Appwrite E2E Migration Tests + */ + public function testCreateAppwriteMigration(): void + { + $response = $this->performMigrationSync([ + 'resources' => Appwrite::getSupportedResources(), + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(Appwrite::getSupportedResources(), $response['resources']); + $this->assertEquals('Appwrite', $response['source']); + $this->assertEquals('Appwrite', $response['destination']); + $this->assertEmpty($response['statusCounters']); + } + + /** + * Auth + */ + public function testAppwriteMigrationAuthUserPassword(): void + { + $response = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test@test.com', + 'password' => 'password', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('test@test.com', $response['body']['email']); + + $user = $response['body']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_USER, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_USER], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_USER, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_USER]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($user['email'], $response['body']['email']); + $this->assertEquals($user['password'], $response['body']['password']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + } + + public function testAppwriteMigrationAuthUserPhone(): void + { + $response = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'userId' => ID::unique(), + 'phone' => '+12065550100', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('+12065550100', $response['body']['phone']); + + $user = $response['body']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_USER, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_USER], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_USER, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_USER]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($user['phone'], $response['body']['phone']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + public function testAppwriteMigrationAuthTeam(): void + { + $user = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test@test.com', + 'password' => 'password', + ]); + + $this->assertEquals(201, $user['headers']['status-code']); + $this->assertNotEmpty($user['body']); + $this->assertNotEmpty($user['body']['$id']); + $this->assertEquals('test@test.com', $user['body']['email']); + + $team = $this->client->call(Client::METHOD_POST, '/teams', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'teamId' => ID::unique(), + 'name' => 'Test Team', + ]); + + $this->assertEquals(201, $team['headers']['status-code']); + $this->assertNotEmpty($team['body']); + $this->assertNotEmpty($team['body']['$id']); + + $membership = $this->client->call(Client::METHOD_POST, '/teams/' . $team['body']['$id'] . '/memberships', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'teamId' => $team['body']['$id'], + 'userId' => $user['body']['$id'], + 'roles' => ['owner'], + ]); + + $this->assertEquals(201, $membership['headers']['status-code']); + $this->assertNotEmpty($membership['body']); + $this->assertNotEmpty($membership['body']['$id']); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_USER, + Resource::TYPE_TEAM, + Resource::TYPE_MEMBERSHIP, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_USER, Resource::TYPE_TEAM, Resource::TYPE_MEMBERSHIP], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_USER, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_USER]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_TEAM, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_TEAM]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_MEMBERSHIP, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($team['body']['name'], $response['body']['name']); + + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $team['body']['$id'] . '/memberships', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $membership = $response['body']['memberships'][0]; + + $this->assertEquals($user['body']['$id'], $membership['userId']); + $this->assertEquals($team['body']['$id'], $membership['teamId']); + $this->assertEquals(['owner'], $membership['roles']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Databases + */ + public function testAppwriteMigrationDatabase(): array + { + $response = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Test Database' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $databaseId = $response['body']['$id']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_DATABASE, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_DATABASE], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_DATABASE, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_DATABASE]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($databaseId, $response['body']['$id']); + $this->assertEquals('Test Database', $response['body']['name']); + + // Cleanup on destination + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + return [ + 'databaseId' => $databaseId, + ]; + } + + /** + * @depends testAppwriteMigrationDatabase + */ + public function testAppwriteMigrationDatabasesCollection(array $data): array + { + $databaseId = $data['databaseId']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'collectionId' => ID::unique(), + 'name' => 'Test Collection', + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $collectionId = $collection['body']['$id']; + + // Create Attribute + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'key' => 'name', + 'size' => 100, + 'encrypt' => false, + 'required' => true + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + // Wait for attribute to be ready + $this->assertEventually(function () use ($databaseId, $collectionId) { + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/name', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('available', $response['body']['status']); + }, 5000, 500); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_DATABASE, + Resource::TYPE_COLLECTION, + Resource::TYPE_ATTRIBUTE, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE], $result['resources']); + + foreach ([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE] as $resource) { + $this->assertArrayHasKey($resource, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][$resource]['error']); + $this->assertEquals(0, $result['statusCounters'][$resource]['pending']); + $this->assertEquals(1, $result['statusCounters'][$resource]['success']); + $this->assertEquals(0, $result['statusCounters'][$resource]['processing']); + $this->assertEquals(0, $result['statusCounters'][$resource]['warning']); + } + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $this->assertEquals($collectionId, $response['body']['$id']); + $this->assertEquals('Test Collection', $response['body']['name']); + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/name', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $this->assertEquals('name', $response['body']['key']); + $this->assertEquals(100, $response['body']['size']); + $this->assertEquals(true, $response['body']['required']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + return [ + 'databaseId' => $databaseId, + 'collectionId' => $collectionId, + ]; + } + + /** + * @depends testAppwriteMigrationDatabasesCollection + */ + public function testAppwriteMigrationDatabasesDocument(array $data): void + { + $databaseId = $data['databaseId']; + $collectionId = $data['collectionId']; + + $document = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Test Document', + ] + ]); + + $this->assertEquals(201, $document['headers']['status-code']); + $this->assertNotEmpty($document['body']); + $this->assertNotEmpty($document['body']['$id']); + + $documentId = $document['body']['$id']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_DATABASE, + Resource::TYPE_COLLECTION, + Resource::TYPE_ATTRIBUTE, + Resource::TYPE_DOCUMENT, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $finalStats = $this->client->call(Client::METHOD_GET, '/project/usage', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'startDate' => UsageTest::getYesterday(), + 'endDate' => UsageTest::getTomorrow(), + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE, Resource::TYPE_DOCUMENT], $result['resources']); + + //TODO: Add TYPE_DOCUMENT to the migration status counters once pending issue is resolved + foreach ([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE] as $resource) { + $this->assertArrayHasKey($resource, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][$resource]['error']); + $this->assertEquals(0, $result['statusCounters'][$resource]['pending']); + $this->assertEquals(1, $result['statusCounters'][$resource]['success']); + $this->assertEquals(0, $result['statusCounters'][$resource]['processing']); + $this->assertEquals(0, $result['statusCounters'][$resource]['warning']); + } + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $this->assertEquals($documentId, $response['body']['$id']); + $this->assertEquals('Test Document', $response['body']['name']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Storage + */ + public function testAppwriteMigrationStorageBucket(): void + { + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'permissions' => [ + Permission::read(Role::any()), + Permission::create(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'maximumFileSize' => 1000000, + 'allowedFileExtensions' => ['pdf'], + 'compression' => 'gzip', + 'encryption' => false, + 'antivirus' => false + ]); + + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']); + $this->assertNotEmpty($bucket['body']['$id']); + $this->assertEquals('Test Bucket', $bucket['body']['name']); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_BUCKET + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_BUCKET], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_BUCKET, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_BUCKET]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucket['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($bucket['body']['$id'], $response['body']['$id']); + $this->assertEquals($bucket['body']['name'], $response['body']['name']); + $this->assertEquals($bucket['body']['$permissions'], $response['body']['$permissions']); + $this->assertEquals($bucket['body']['maximumFileSize'], $response['body']['maximumFileSize']); + $this->assertEquals($bucket['body']['allowedFileExtensions'], $response['body']['allowedFileExtensions']); + $this->assertEquals($bucket['body']['compression'], $response['body']['compression']); + $this->assertEquals($bucket['body']['encryption'], $response['body']['encryption']); + $this->assertEquals($bucket['body']['antivirus'], $response['body']['antivirus']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + } + + public function testAppwriteMigrationStorageFiles(): void + { + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'fileSecurity' => true, + 'maximumFileSize' => 2000000, //2MB + 'allowedFileExtensions' => ['jpg', 'png', 'jfif'], + 'permissions' => [ + Permission::read(Role::any()), + Permission::create(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $file = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', [ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/logo.png'), 'image/png', 'logo.png'), + 'permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + + $this->assertEquals(201, $file['headers']['status-code']); + $this->assertNotEmpty($file['body']['$id']); + + $fileId = $file['body']['$id']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_BUCKET, + Resource::TYPE_FILE + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_BUCKET, Resource::TYPE_FILE], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_BUCKET, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_BUCKET]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_FILE, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_FILE]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $fileId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($fileId, $response['body']['$id']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucketId . '/files/' . $fileId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucketId . '/files/' . $fileId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Functions + */ + public function testAppwriteMigrationFunction(): void + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php' + ]); + + $deploymentId = $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_FUNCTION, + Resource::TYPE_DEPLOYMENT + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_FUNCTION, Resource::TYPE_DEPLOYMENT], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_FUNCTION, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_FUNCTION]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_DEPLOYMENT, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($functionId, $response['body']['$id']); + $this->assertEquals('Test', $response['body']['name']); + $this->assertEquals('php-8.0', $response['body']['runtime']); + $this->assertEquals('index.php', $response['body']['entrypoint']); + + + $this->assertEventually(function () use ($functionId) { + $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ])); + + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertNotEmpty($deployments['body']); + $this->assertEquals(1, $deployments['body']['total']); + + $this->assertEquals('ready', $deployments['body']['deployments'][0]['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployments['body']['deployments'][0], JSON_PRETTY_PRINT)); + }, 50000, 500); + + // Attempt execution + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ], [ + 'body' => 'test' + ]); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertStringContainsString('body-is-test', $execution['body']['logs']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Import documents from a CSV file. + */ + public function testCreateCsvMigration(): array + { + // make a database + $response = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Test Database' + ]); + + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals('Test Database', $response['body']['name']); + + $databaseId = $response['body']['$id']; + + // make a collection + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'name' => 'Test collection', + 'collectionId' => ID::unique(), + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals($response['body']['name'], 'Test collection'); + + $collectionId = $response['body']['$id']; + + // make attributes + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + $this->assertEquals($response['body']['key'], 'name'); + $this->assertEquals($response['body']['type'], 'string'); + $this->assertEquals($response['body']['size'], 256); + $this->assertEquals($response['body']['required'], true); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'age', + 'min' => 18, + 'max' => 65, + 'required' => true, + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + $this->assertEquals($response['body']['key'], 'age'); + $this->assertEquals($response['body']['type'], 'integer'); + $this->assertEquals($response['body']['min'], 18); + $this->assertEquals($response['body']['max'], 65); + $this->assertEquals($response['body']['required'], true); + + // make a bucket, upload a file to it! + $bucketOne = $this->client->call(Client::METHOD_POST, '/storage/buckets', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'maximumFileSize' => 2000000, //2MB + 'allowedFileExtensions' => ['csv'], + 'compression' => 'gzip', + 'encryption' => true + ]); + $this->assertEquals(201, $bucketOne['headers']['status-code']); + $this->assertNotEmpty($bucketOne['body']['$id']); + + $bucketOneId = $bucketOne['body']['$id']; + + $bucketIds = [ + 'default' => $bucketOneId, + 'missing-row' => $bucketOneId, + 'missing-column' => $bucketOneId, + 'irrelevant-column' => $bucketOneId, + ]; + + $fileIds = []; + + foreach ($bucketIds as $label => $bucketId) { + $csvFileName = match ($label) { + 'missing-row', + 'missing-column', + 'irrelevant-column' => "{$label}.csv", + default => 'documents.csv', + }; + + $mimeType = match ($csvFileName) { + default => 'text/csv', + 'missing-row.csv' => 'text/plain', // invalid csv structure, falls back to plain text! + }; + + $response = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/csv/'.$csvFileName), $mimeType, $csvFileName), + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($csvFileName, $response['body']['name']); + $this->assertEquals($mimeType, $response['body']['mimeType']); + + $fileIds[$label] = $response['body']['$id']; + } + + // missing attribute, fail in worker. + $missingColumn = $this->performCsvMigration( + [ + 'fileId' => $fileIds['missing-column'], + 'bucketId' => $bucketIds['missing-column'], + 'resourceId' => $databaseId . ':' . $collectionId, + ] + ); + + $this->assertEventually(function () use ($missingColumn, $databaseId, $collectionId) { + $migrationId = $missingColumn['body']['$id']; + $migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $migration['headers']['status-code']); + $this->assertEquals('finished', $migration['body']['stage']); + $this->assertEquals('failed', $migration['body']['status']); + $this->assertEquals('CSV', $migration['body']['source']); + $this->assertEquals('Appwrite', $migration['body']['destination']); + $this->assertContains(Resource::TYPE_DOCUMENT, $migration['body']['resources']); + $this->assertEmpty($migration['body']['statusCounters']); + $this->assertThat( + implode("\n", $migration['body']['errors']), + $this->stringContains("CSV header mismatch. Missing attribute: 'age'") + ); + }, 60000, 500); + + // missing row data, fail in worker. + $missingColumn = $this->performCsvMigration( + [ + 'fileId' => $fileIds['missing-row'], + 'bucketId' => $bucketIds['missing-row'], + 'resourceId' => $databaseId . ':' . $collectionId, + ] + ); + + $this->assertEventually(function () use ($missingColumn, $databaseId, $collectionId) { + $migrationId = $missingColumn['body']['$id']; + $migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $migration['headers']['status-code']); + $this->assertEquals('finished', $migration['body']['stage']); + $this->assertEquals('failed', $migration['body']['status']); + $this->assertEquals('CSV', $migration['body']['source']); + $this->assertEquals('Appwrite', $migration['body']['destination']); + $this->assertContains(Resource::TYPE_DOCUMENT, $migration['body']['resources']); + $this->assertEmpty($migration['body']['statusCounters']); + $this->assertThat( + implode("\n", $migration['body']['errors']), + $this->stringContains('CSV row does not match the number of header columns') + ); + }, 60000, 500); + + // irrelevant column - email, fail in worker. + $irrelevantColumn = $this->performCsvMigration( + [ + 'fileId' => $fileIds['irrelevant-column'], + 'bucketId' => $bucketIds['irrelevant-column'], + 'resourceId' => $databaseId . ':' . $collectionId, + ] + ); + + $this->assertEventually(function () use ($irrelevantColumn, $databaseId, $collectionId) { + $migrationId = $irrelevantColumn['body']['$id']; + $migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $migration['headers']['status-code']); + $this->assertEquals('finished', $migration['body']['stage']); + $this->assertEquals('failed', $migration['body']['status']); + $this->assertEquals('CSV', $migration['body']['source']); + $this->assertEquals('Appwrite', $migration['body']['destination']); + $this->assertContains(Resource::TYPE_DOCUMENT, $migration['body']['resources']); + $this->assertEmpty($migration['body']['statusCounters']); + $this->assertThat( + implode("\n", $migration['body']['errors']), + $this->stringContains("CSV header mismatch. Unexpected attribute: 'email'") + ); + }, 60000, 500); + + // all data exists, pass/ + $migration = $this->performCsvMigration( + [ + 'endpoint' => 'http://localhost/v1', + 'fileId' => $fileIds['default'], + 'bucketId' => $bucketIds['default'], + 'resourceId' => $databaseId . ':' . $collectionId, + ] + ); + + $this->assertEmpty($migration['body']['statusCounters']); + $this->assertEquals('CSV', $migration['body']['source']); + $this->assertEquals('pending', $migration['body']['status']); + $this->assertEquals('Appwrite', $migration['body']['destination']); + $this->assertContains(Resource::TYPE_DOCUMENT, $migration['body']['resources']); + + return [ + 'databaseId' => $databaseId, + 'collectionId' => $collectionId, + 'migrationId' => $migration['body']['$id'], + ]; + } + + /** + * @depends testCreateCsvMigration + */ + public function testImportSuccessful(array $response): void + { + $databaseId = $response['databaseId']; + $collectionId = $response['collectionId']; + $migrationId = $response['migrationId']; + + $documentsCountInCSV = 100; + + // get migration stats + $this->assertEventually(function () use ($migrationId, $databaseId, $collectionId, $documentsCountInCSV) { + $migration = $this->client->call(Client::METHOD_GET, '/migrations/'.$migrationId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $migration['headers']['status-code']); + $this->assertEquals('finished', $migration['body']['stage']); + $this->assertEquals('completed', $migration['body']['status']); + $this->assertEquals('CSV', $migration['body']['source']); + $this->assertEquals('Appwrite', $migration['body']['destination']); + $this->assertContains(Resource::TYPE_DOCUMENT, $migration['body']['resources']); + $this->assertArrayHasKey(Resource::TYPE_DOCUMENT, $migration['body']['statusCounters']); + $this->assertEquals($documentsCountInCSV, $migration['body']['statusCounters'][Resource::TYPE_DOCUMENT]['success']); + }, 60000, 500); + + // get documents count + $documents = $this->client->call(Client::METHOD_GET, '/databases/'.$databaseId.'/collections/'.$collectionId.'/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + // there should be only 100! + Query::limit(150)->toString() + ] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertIsArray($documents['body']['documents']); + $this->assertIsNumeric($documents['body']['total']); + $this->assertEquals($documentsCountInCSV, $documents['body']['total']); + } + + private function performCsvMigration(array $body): array + { + return $this->client->call(Client::METHOD_POST, '/migrations/csv', [ + 'content-type' => 'application/json', + 'x-appwrite-key' => $this->getProject()['apiKey'], + 'x-appwrite-project' => $this->getProject()['$id'], + ], $body); + } +} diff --git a/tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php b/tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php new file mode 100644 index 00000000000..2167ef93388 --- /dev/null +++ b/tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php @@ -0,0 +1,12 @@ +<?php + +namespace Tests\E2E\Services\Migrations; + +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideConsole; + +class MigrationsConsoleClientTest extends Scope +{ + use MigrationsBase; + use SideConsole; +} diff --git a/tests/e2e/Services/Projects/ProjectsBase.php b/tests/e2e/Services/Projects/ProjectsBase.php index 53d96262525..0d1d6a5a44c 100644 --- a/tests/e2e/Services/Projects/ProjectsBase.php +++ b/tests/e2e/Services/Projects/ProjectsBase.php @@ -2,6 +2,48 @@ namespace Tests\E2E\Services\Projects; +use Tests\E2E\Client; +use Utopia\Database\Helpers\ID; + trait ProjectsBase { + protected function setupProject(mixed $params): string + { + $team = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'teamId' => ID::unique(), + 'name' => 'Project Test', + ]); + + $this->assertEquals(201, $team['headers']['status-code'], 'Setup team failed with status code: ' . $team['headers']['status-code'] . ' and response: ' . json_encode($team['body'], JSON_PRETTY_PRINT)); + + $project = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + ...$params, + 'teamId' => $team['body']['$id'], + ]); + + $this->assertEquals(201, $project['headers']['status-code'], 'Setup project failed with status code: ' . $project['headers']['status-code'] . ' and response: ' . json_encode($project['body'], JSON_PRETTY_PRINT)); + + return $project['body']['$id']; + } + + protected function setupDevKey(mixed $params): array + { + $devKey = $this->client->call(Client::METHOD_POST, '/projects/' . $params['projectId'] . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + $this->assertEquals(201, $devKey['headers']['status-code'], 'Setup devKey failed with status code: ' . $devKey['headers']['status-code'] . ' and response: ' . json_encode($devKey['body'], JSON_PRETTY_PRINT)); + + return [ + '$id' => $devKey['body']['$id'], + 'secret' => $devKey['body']['secret'], + ]; + } } diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index c41d861f1db..aea1971be70 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -4,6 +4,7 @@ use Appwrite\Auth\Auth; use Appwrite\Extend\Exception; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\General\UsageTest; use Tests\E2E\Scopes\ProjectConsole; @@ -13,14 +14,17 @@ use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Query; +use Utopia\System\System; class ProjectsConsoleClientTest extends Scope { use ProjectsBase; use ProjectConsole; use SideClient; + use Async; /** + * @group devKeys * @group smtpAndTemplates * @group projectsCRUD */ public function testCreateProject(): array @@ -47,7 +51,7 @@ public function testCreateProject(): array 'projectId' => ID::unique(), 'name' => 'Project Test', 'teamId' => $team['body']['$id'], - 'region' => 'default', + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $response['headers']['status-code']); @@ -87,7 +91,7 @@ public function testCreateProject(): array 'projectId' => ID::unique(), 'name' => '', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(400, $response['headers']['status-code']); @@ -98,10 +102,10 @@ public function testCreateProject(): array ], $this->getHeaders()), [ 'projectId' => ID::unique(), 'name' => 'Project Test', - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); return [ 'projectId' => $projectId, @@ -127,7 +131,7 @@ public function testCreateDuplicateProject($data) 'projectId' => $projectId, 'name' => 'Project Duplicate', 'teamId' => $teamId, - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(409, $response['headers']['status-code']); @@ -176,7 +180,7 @@ public function testTransferProjectTeam() 'projectId' => ID::unique(), 'name' => 'Team 1 Project', 'teamId' => $team1, - 'region' => 'default', + 'region' => System::getEnv('_APP_REGION', 'default'), ]); $this->assertEquals(201, $response['headers']['status-code']); @@ -275,7 +279,7 @@ public function testListProject($data): array 'projectId' => ID::unique(), 'name' => 'Project Test 2', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $response['headers']['status-code']); @@ -485,6 +489,8 @@ public function testGetProjectUsage($data): array $this->assertIsNumeric($response['body']['usersTotal']); $this->assertIsNumeric($response['body']['filesStorageTotal']); $this->assertIsNumeric($response['body']['deploymentStorageTotal']); + $this->assertIsNumeric($response['body']['authPhoneTotal']); + $this->assertIsNumeric($response['body']['authPhoneEstimate']); /** @@ -546,7 +552,7 @@ public function testUpdateProject($data): array 'name' => '', ]); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); return ['projectId' => $projectId]; } @@ -1409,18 +1415,20 @@ public function testUpdateProjectAuthSessionsLimit($data): array /** * List sessions */ - $response = $this->client->call(Client::METHOD_GET, '/account/sessions', [ - 'origin' => 'http://localhost', - 'content-type' => 'application/json', - 'x-appwrite-project' => $id, - 'Cookie' => $sessionCookie, - ]); + $this->assertEventually(function () use ($id, $sessionCookie, $sessionId2) { + $response = $this->client->call(Client::METHOD_GET, '/account/sessions', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $id, + 'Cookie' => $sessionCookie, + ]); - $this->assertEquals(200, $response['headers']['status-code']); - $sessions = $response['body']['sessions']; + $this->assertEquals(200, $response['headers']['status-code']); + $sessions = $response['body']['sessions']; - $this->assertEquals(1, count($sessions)); - $this->assertEquals($sessionId2, $sessions[0]['$id']); + $this->assertEquals(1, count($sessions)); + $this->assertEquals($sessionId2, $sessions[0]['$id']); + }); /** * Reset Limit @@ -2036,7 +2044,7 @@ public function testUpdateProjectServicesAll(): void 'projectId' => ID::unique(), 'name' => 'Project Test', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $project['headers']['status-code']); @@ -2129,7 +2137,7 @@ public function testUpdateProjectServiceStatusAdmin(): array 'projectId' => ID::unique(), 'name' => 'Project Test', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $project['headers']['status-code']); @@ -2779,32 +2787,35 @@ public function testGetProjectKey($data): array */ public function testValidateProjectKey($data): void { - $id = $data['projectId'] ?? ''; + $projectId = $data['projectId'] ?? ''; + $teamId = $data['teamId'] ?? ''; /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([ + + // Expiring key + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'name' => 'Key Test', - 'scopes' => ['health.read'], + 'scopes' => ['users.write'], 'expire' => DateTime::addSeconds(new \DateTime(), 3600), ]); - $response = $this->client->call(Client::METHOD_GET, '/health', [ + $response = $this->client->call(Client::METHOD_POST, '/users', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $id, + 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $response['body']['secret'] - ], []); + ], [ + 'userId' => ID::unique(), + ]); - $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(201, $response['headers']['status-code']); - /** - * Test for SUCCESS - */ - $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([ + // No expiry + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2815,7 +2826,7 @@ public function testValidateProjectKey($data): void $response = $this->client->call(Client::METHOD_GET, '/health', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $id, + 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $response['body']['secret'] ], []); @@ -2824,7 +2835,9 @@ public function testValidateProjectKey($data): void /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([ + + // Expired key + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2835,9 +2848,82 @@ public function testValidateProjectKey($data): void $response = $this->client->call(Client::METHOD_GET, '/health', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $id, + 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $response['body']['secret'] - ], []); + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Invalid key + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + ]); + + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $response = $this->client->call(Client::METHOD_GET, "/storage/buckets/{$bucketId}/files", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-key' => 'invalid-key' + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Invalid scopes + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['teams.read'], + 'expire' => DateTime::addSeconds(new \DateTime(), 3600), + ]); + + $response = $this->client->call(Client::METHOD_GET, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-key' => $response['body']['secret'] + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Invalid key from different project + $response = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'projectId' => ID::unique(), + 'name' => 'Project Test 2', + 'teamId' => $teamId, + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + $project2Id = $response['body']['$id']; + + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $project2Id . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['health.read'], + 'expire' => DateTime::addSeconds(new \DateTime(), 3600), + ]); + + $response = $this->client->call(Client::METHOD_GET, '/health', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-key' => $response['body']['secret'] + ]); $this->assertEquals(401, $response['headers']['status-code']); } @@ -3727,11 +3813,11 @@ public function testDeleteProject(): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'teamId' => ID::unique(), - 'name' => 'Amating Team', + 'name' => 'Amazing Team', ]); $this->assertEquals(201, $team['headers']['status-code']); - $this->assertEquals('Amating Team', $team['body']['name']); + $this->assertEquals('Amazing Team', $team['body']['name']); $this->assertNotEmpty($team['body']['$id']); $teamId = $team['body']['$id']; @@ -3743,7 +3829,7 @@ public function testDeleteProject(): array 'projectId' => ID::unique(), 'name' => 'Amazing Project', 'teamId' => $teamId, - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $project['headers']['status-code']); @@ -3793,4 +3879,1065 @@ public function testDeleteProject(): array return $data; } + + public function testDeleteSharedProject(): void + { + $team = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'teamId' => ID::unique(), + 'name' => 'Amazing Team', + ]); + + $teamId = $team['body']['$id']; + + // Ensure deleting one project does not affect another project + $project1 = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'projectId' => ID::unique(), + 'name' => 'Amazing Project 1', + 'teamId' => $teamId, + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $project2 = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'projectId' => ID::unique(), + 'name' => 'Amazing Project 2', + 'teamId' => $teamId, + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $project1Id = $project1['body']['$id']; + $project2Id = $project2['body']['$id']; + + // Create user in each project + $key1 = $this->client->call(Client::METHOD_POST, '/projects/' . $project1Id . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['users.read', 'users.write'], + ]); + + $user1 = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project1Id, + 'x-appwrite-key' => $key1['body']['secret'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test1@appwrite.io', + 'password' => 'password', + ]); + + $this->assertEquals(201, $user1['headers']['status-code']); + + $key2 = $this->client->call(Client::METHOD_POST, '/projects/' . $project2Id . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['users.read', 'users.write'], + ]); + + $user2 = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project2Id, + 'x-appwrite-key' => $key2['body']['secret'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test2@appwrite.io', + 'password' => 'password', + ]); + + $this->assertEquals(201, $user2['headers']['status-code']); + + // Delete project 1 + $project1 = $this->client->call(Client::METHOD_DELETE, '/projects/' . $project1Id, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $project1['headers']['status-code']); + + \sleep(3); + + // Ensure project 2 user is still there + $user2 = $this->client->call(Client::METHOD_GET, '/users/' . $user2['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project2Id, + 'x-appwrite-key' => $key2['body']['secret'], + ]); + + $this->assertEquals(200, $user2['headers']['status-code']); + + // Create another user in project 2 in case read hits stale cache + $user3 = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project2Id, + 'x-appwrite-key' => $key2['body']['secret'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test3@appwrite.io' + ]); + + $this->assertEquals(201, $user3['headers']['status-code']); + } + + /** + * @depends testCreateProject + */ + public function testCreateProjectVariable(array $data) + { + /** + * Test for SUCCESS + */ + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST', + 'value' => 'TESTINGVALUE', + 'secret' => false + ]); + + $this->assertEquals(201, $variable['headers']['status-code']); + $this->assertEquals('APP_TEST', $variable['body']['key']); + $this->assertEquals('TESTINGVALUE', $variable['body']['value']); + $this->assertFalse($variable['body']['secret']); + $variableId = $variable['body']['$id']; + + // test for secret variable + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_1', + 'value' => 'TESTINGVALUE_1', + 'secret' => true + ]); + + $this->assertEquals(201, $variable['headers']['status-code']); + $this->assertEquals('APP_TEST_1', $variable['body']['key']); + $this->assertEmpty($variable['body']['value']); + + $secretVariableId = $variable['body']['$id']; + + /** + * Test for FAILURE + */ + // Test for duplicate key + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST', + 'value' => 'ANOTHERTESTINGVALUE' + ]); + + $this->assertEquals(409, $variable['headers']['status-code']); + + // Test for invalid key + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => str_repeat("A", 256), + 'value' => 'TESTINGVALUE' + ]); + + $this->assertEquals(400, $variable['headers']['status-code']); + + // Test for invalid value + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'LONGKEY', + 'value' => str_repeat("#", 8193), + ]); + + $this->assertEquals(400, $variable['headers']['status-code']); + + return array_merge( + $data, + [ + 'variableId' => $variableId, + 'secretVariableId' => $secretVariableId + ] + ); + } + + /** + * @depends testCreateProjectVariable + */ + public function testListVariables(array $data) + { + /** + * Test for SUCCESS + */ + + $response = $this->client->call(Client::METHOD_GET, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['variables']); + $this->assertEquals(2, $response['body']['total']); + $this->assertEquals("APP_TEST", $response['body']['variables'][0]['key']); + $this->assertEquals("TESTINGVALUE", $response['body']['variables'][0]['value']); + $this->assertEquals("APP_TEST_1", $response['body']['variables'][1]['key']); + $this->assertEmpty($response['body']['variables'][1]['value']); + + return $data; + } + + /** + * @depends testListVariables + */ + public function testGetVariable(array $data) + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST", $response['body']['key']); + $this->assertEquals("TESTINGVALUE", $response['body']['value']); + + $response = $this->client->call(Client::METHOD_GET, '/project/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_1", $response['body']['key']); + $this->assertEmpty($response['body']['value']); + $this->assertTrue($response['body']['secret']); + + /** + * Test for FAILURE + */ + + $response = $this->client->call(Client::METHOD_GET, '/project/variables/NON_EXISTING_VARIABLE', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + + return $data; + } + + /** + * @depends testGetVariable + */ + public function testUpdateVariable(array $data) + { + /** + * Test for SUCCESS + */ + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'value' => 'TESTINGVALUEUPDATED' + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE", $response['body']['key']); + $this->assertEquals("TESTINGVALUEUPDATED", $response['body']['value']); + + $variable = $this->client->call(Client::METHOD_GET, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE", $variable['body']['key']); + $this->assertEquals("TESTINGVALUEUPDATED", $variable['body']['value']); + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE_1', + 'value' => 'TESTINGVALUEUPDATED_1' + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE_1", $response['body']['key']); + $this->assertEmpty($response['body']['value']); + + $variable = $this->client->call(Client::METHOD_GET, '/project/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE_1", $variable['body']['key']); + $this->assertEmpty($variable['body']['value']); + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE_1', + 'secret' => false, + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_GET, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['variables']); + $this->assertEquals("APP_TEST_UPDATE", $response['body']['variables'][0]['key']); + $this->assertEquals("APP_TEST_UPDATE_1", $response['body']['variables'][1]['key']); + + /** + * Test for FAILURE + */ + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'value' => 'TESTINGVALUEUPDATED_2' + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $longKey = str_repeat("A", 256); + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => $longKey, + 'value' => 'TESTINGVALUEUPDATED' + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $longValue = str_repeat("#", 8193); + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'value' => $longValue + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/NON_EXISTING_VARIABLE', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'value' => 'TESTINGVALUEUPDATED' + ]); + + $this->assertEquals(404, $response['headers']['status-code']); + + return $data; + } + + /** + * @depends testUpdateVariable + */ + public function testDeleteVariable(array $data) + { + /** + * Test for SUCCESS + */ + + $response = $this->client->call(Client::METHOD_DELETE, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(204, $response['headers']['status-code']); + + $this->assertEquals(204, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_DELETE, '/project/variables/' . $data['secretVariableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $response = $this->client->call(Client::METHOD_GET, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(0, $response['body']['variables']); + $this->assertEquals(0, $response['body']['total']); + + /** + * Test for FAILURE + */ + + $response = $this->client->call(Client::METHOD_DELETE, '/project/variables/NON_EXISTING_VARIABLE', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + + return $data; + } + + /** + * Devkeys Tests starts here ------------------------------------------------ + */ + + /** + * @group devKeys + */ + public function testCreateProjectDevKey(): void + { + /** + * Test for SUCCESS + */ + $id = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testCreateProjectDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('Key Test', $response['body']['name']); + $this->assertNotEmpty($response['body']['secret']); + $this->assertArrayHasKey('accessedAt', $response['body']); + $this->assertEmpty($response['body']['accessedAt']); + + /** Create a second dev key */ + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('Dev Key Test', $response['body']['name']); + $this->assertNotEmpty($response['body']['secret']); + $this->assertArrayHasKey('accessedAt', $response['body']); + $this->assertEmpty($response['body']['accessedAt']); + + /** + * Test for FAILURE + */ + + /** TEST expiry date is required */ + $res = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test' + ]); + + $this->assertEquals(400, $res['headers']['status-code']); + } + + + /** + * @group devKeys + */ + public function testListProjectDevKey(): void + { + /** + * Test for SUCCESS + */ + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testListProjectDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + /** Create devKey 1 */ + $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + /** Create devKey 2 */ + $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + /** List all dev keys */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(2, $response['body']['total']); + + /** List dev keys with limit */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::limit(1)->toString() + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + + /** List dev keys with search */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(2, $response['body']['total']); + $this->assertEquals('Key Test', $response['body']['devKeys'][0]['name']); + $this->assertEquals('Dev Key Test', $response['body']['devKeys'][1]['name']); + + /** List dev keys with querying `expire` */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::lessThan('expire', (new \DateTime())->format('Y-m-d H:i:s'))->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(0, $response['body']['total']); // No dev keys expired + + /** + * Test for FAILURE + */ + + /** Test for search with invalid query */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::search('name', 'Invalid')->toString() + ] + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals('Invalid `queries` param: Invalid query: Attribute not found in schema: name', $response['body']['message']); + } + + + /** + * @group devKeys + */ + public function testGetProjectDevKey(): void + { + /** + * Test for SUCCESS + */ + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testGetProjectDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys/' . $devKey['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($devKey['$id'], $response['body']['$id']); + $this->assertEquals('Dev Key Test', $response['body']['name']); + $this->assertNotEmpty($response['body']['secret']); + $this->assertArrayHasKey('accessedAt', $response['body']); + $this->assertEmpty($response['body']['accessedAt']); + + /** + * Test for FAILURE + */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys/error', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(404, $response['headers']['status-code']); + } + + /** + * @group devKeys + */ + public function testGetDevKeyWithSdks(): void + { + /** + * Test for SUCCESS + */ + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testGetDevKeyWithSdks', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + /** Use dev key with python sdk */ + $res = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'], + 'x-sdk-name' => 'python' + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(401, $res['headers']['status-code']); + + /** Use dev key with php sdk */ + $res = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'], + 'x-sdk-name' => 'php' + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(401, $res['headers']['status-code']); + + /** Get the dev key */ + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys/' . $devKey['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayHasKey('sdks', $response['body']); + $this->assertCount(2, $response['body']['sdks']); + $this->assertContains('python', $response['body']['sdks']); + $this->assertContains('php', $response['body']['sdks']); + } + + /** + * @group devKeys + */ + public function testNoHostValidationWithDevKey(): void + { + /** + * Test for SUCCESS + */ + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testNoHostValidationWithDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $provider = 'mock'; + $appId = '1'; + $secret = '123456'; + + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/oauth2', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'provider' => $provider, + 'appId' => $appId, + 'secret' => $secret, + 'enabled' => true, + ]); + $this->assertEquals(200, $response['headers']['status-code']); + + /** Test oauth2 and get invalid `success` URL */ + $response = $this->client->call(Client::METHOD_GET, '/account/sessions/oauth2/' . $provider, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], [ + 'success' => 'https://example.com', + 'failure' => 'https://example.com' + ]); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertStringContainsString('Invalid `success` param: URL host must be one of: localhost, appwrite.io, *.appwrite.io', $response['body']); + + /** Test oauth2 with devKey and now get oauth2 is disabled */ + $response = $this->client->call(Client::METHOD_GET, '/account/sessions/oauth2/' . $provider, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'success' => 'https://example.com', + 'failure' => 'https://example.com' + ]); + $this->assertEquals(200, $response['headers']['status-code']); + + /** Test hostname in Magic URL */ + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/magic-url', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], [ + 'userId' => ID::unique(), + 'email' => 'user@appwrite.io', + 'url' => 'https://example.com', + ]); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals('Invalid `url` param: URL host must be one of: localhost, appwrite.io, *.appwrite.io', $response['body']['message']); + + /** Test hostname in Magic URL with devKey */ + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/magic-url', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'userId' => ID::unique(), + 'email' => 'user@appwrite.io', + 'url' => 'https://example.com', + ]); + $this->assertEquals(201, $response['headers']['status-code']); + } + + /** + * @group devKeys + */ + public function testCorsWithDevKey(): void + { + /** + * Test for SUCCESS + */ + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testCorsWithDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $origin = 'http://example.com'; + + /** + * Test CORS without Dev Key (should fail due to origin) + */ + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'origin' => $origin, + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + + $this->assertEquals(403, $response['headers']['status-code']); + $this->assertNotEquals($origin, $response['headers']['access-control-allow-origin'] ?? null); + $this->assertEquals('http://localhost', $response['headers']['access-control-allow-origin'] ?? null); + + + /** + * Test CORS with Dev Key (should bypass origin check) + */ + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'origin' => $origin, + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + $this->assertEquals('*', $response['headers']['access-control-allow-origin'] ?? null); + } + + /** + * @group devKeys + */ + public function testNoRateLimitWithDevKey(): void + { + /** + * Test for SUCCESS + */ + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testNoRateLimitWithDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + /** + * Test for SUCCESS + */ + for ($i = 0; $i < 10; $i++) { + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(401, $response['headers']['status-code']); + } + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(429, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(401, $response['headers']['status-code']); + + /** + * Test for FAILURE + */ + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/dev-keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), -3600), + ]); + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $response['body']['secret'] + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(429, $response['headers']['status-code']); + + /** + * Test for FAILURE after expire + */ + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test Expire 5 seconds', + 'expire' => DateTime::addSeconds(new \DateTime(), 5) + ]); + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(401, $response['headers']['status-code']); + + sleep(5); + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(429, $response['headers']['status-code']); + } + + /** + * @group devKeys + */ + public function testUpdateProjectDevKey(): void + { + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testUpdateProjectDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $response = $this->client->call(Client::METHOD_PUT, '/projects/' . $projectId . '/dev-keys/' . $devKey['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test Update', + 'expire' => DateTime::addSeconds(new \DateTime(), 360), + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($devKey['$id'], $response['body']['$id']); + $this->assertEquals('Key Test Update', $response['body']['name']); + $this->assertArrayHasKey('accessedAt', $response['body']); + $this->assertEmpty($response['body']['accessedAt']); + + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys/' . $devKey['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($devKey['$id'], $response['body']['$id']); + $this->assertEquals('Key Test Update', $response['body']['name']); + $this->assertArrayHasKey('accessedAt', $response['body']); + $this->assertEmpty($response['body']['accessedAt']); + } + + /** + * @group devKeys + */ + public function testDeleteProjectDevKey(): void + { + $projectId = $this->setupProject([ + 'projectId' => ID::unique(), + 'name' => 'testDeleteProjectDevKey', + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $devKey = $this->setupDevKey([ + 'projectId' => $projectId, + 'name' => 'Dev Key Test', + 'expire' => DateTime::addSeconds(new \DateTime(), 36000) + ]); + + $response = $this->client->call(Client::METHOD_DELETE, '/projects/' . $projectId . '/dev-keys/' . $devKey['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEmpty($response['body']); + + /** + * Get rate limit trying to use the deleted key + */ + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-dev-key' => $devKey['secret'] + ], [ + 'email' => 'user@appwrite.io', + 'password' => 'password' + ]); + $this->assertEquals(429, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId . '/dev-keys/' . $devKey['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(404, $response['headers']['status-code']); + + /** + * Test for FAILURE + */ + $response = $this->client->call(Client::METHOD_DELETE, '/projects/' . $projectId . '/dev-keys/error', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(404, $response['headers']['status-code']); + } + + /** + * Devkeys Tests ends here ------------------------------------------------ + */ } diff --git a/tests/e2e/Services/Projects/ProjectsCustomServerTest.php b/tests/e2e/Services/Projects/ProjectsCustomServerTest.php index cc976b78f6c..a01073f3a39 100644 --- a/tests/e2e/Services/Projects/ProjectsCustomServerTest.php +++ b/tests/e2e/Services/Projects/ProjectsCustomServerTest.php @@ -17,6 +17,8 @@ class ProjectsCustomServerTest extends Scope public function testCreateProjectRule() { + $testId = \uniqid(); + $headers = array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -24,25 +26,81 @@ public function testCreateProjectRule() 'cookie' => 'a_session_console=' . $this->getRoot()['session'], ]); - $response = $this->client->call(Client::METHOD_POST, '/proxy/rules', $headers, [ + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ + 'domain' => $testId . '-api.appwrite.test', + ]); + + \var_dump($response); + + $this->assertEquals(201, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ 'resourceType' => 'api', - 'domain' => 'api.appwrite.test', + 'domain' => $testId . '-abc.test.io', ]); $this->assertEquals(201, $response['headers']['status-code']); + // duplicate rule + $response2 = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ + 'domain' => $testId . '-abc.test.io', + ]); + + $this->assertEquals(409, $response2['headers']['status-code']); + $response = $this->client->call(Client::METHOD_DELETE, '/proxy/rules/' . $response['body']['$id'], $headers); $this->assertEquals(204, $response['headers']['status-code']); - // prevent functions domain $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); - $response = $this->client->call(Client::METHOD_POST, '/proxy/rules', $headers, [ - 'resourceType' => 'api', + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ + 'domain' => $functionsDomain, + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ + 'domain' => $sitesDomain, + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // prevent functions domain + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/function', $headers, [ 'domain' => $functionsDomain, ]); $this->assertEquals(400, $response['headers']['status-code']); + + // prevent sites domain + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/site', $headers, [ + 'domain' => $sitesDomain, + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $mainDomain = System::getEnv('_APP_DOMAIN', ''); + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + $deniedDomains = [ + $mainDomain, + $sitesDomain, + $functionsDomain, + 'localhost', + APP_HOSTNAME_INTERNAL, + ]; + + foreach ($deniedDomains as $deniedDomain) { + $response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [ + 'domain' => $deniedDomain, + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } } } diff --git a/tests/e2e/Services/Proxy/ProxyBase.php b/tests/e2e/Services/Proxy/ProxyBase.php new file mode 100644 index 00000000000..44e015b7519 --- /dev/null +++ b/tests/e2e/Services/Proxy/ProxyBase.php @@ -0,0 +1,297 @@ +<?php + +namespace Tests\E2E\Services\Proxy; + +use Appwrite\ID; +use Appwrite\Tests\Async; +use CURLFile; +use Tests\E2E\Client; +use Utopia\CLI\Console; + +trait ProxyBase +{ + use Async; + + protected function listRules(array $params = []): mixed + { + $rule = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $rule; + } + + protected function createAPIRule(string $domain): mixed + { + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $domain, + ]); + + return $rule; + } + + protected function updateRuleVerification(string $ruleId): mixed + { + $rule = $this->client->call(Client::METHOD_PATCH, '/proxy/rules/' . $ruleId . '/verification', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + return $rule; + } + + protected function createSiteRule(string $domain, string $siteId, string $branch = ''): mixed + { + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/site', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $domain, + 'siteId' => $siteId, + 'branch' => $branch, + ]); + + return $rule; + } + + protected function getRule(string $ruleId): mixed + { + $rule = $this->client->call(Client::METHOD_GET, '/proxy/rules/' . $ruleId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + return $rule; + } + + protected function createRedirectRule(string $domain, string $url, int $statusCode): mixed + { + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/redirect', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $domain, + 'url' => $url, + 'statusCode' => $statusCode, + ]); + + return $rule; + } + + protected function createFunctionRule(string $domain, string $functionId, string $branch = ''): mixed + { + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/function', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $domain, + 'functionId' => $functionId, + 'branch' => $branch, + ]); + + return $rule; + } + + protected function deleteRule(string $ruleId): mixed + { + $rule = $this->client->call(Client::METHOD_DELETE, '/proxy/rules/' . $ruleId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + return $rule; + } + + protected function setupAPIRule(string $domain): string + { + $rule = $this->createAPIRule($domain); + + $this->assertEquals(201, $rule['headers']['status-code'], 'Failed to setup rule: ' . \json_encode($rule)); + + return $rule['body']['$id']; + } + + protected function setupRedirectRule(string $domain, string $url, int $statusCode): string + { + $rule = $this->createRedirectRule($domain, $url, $statusCode); + + $this->assertEquals(201, $rule['headers']['status-code'], 'Failed to setup rule: ' . \json_encode($rule)); + + return $rule['body']['$id']; + } + + protected function setupFunctionRule(string $domain, string $functionId, string $branch = ''): string + { + $rule = $this->createFunctionRule($domain, $functionId, $branch); + + $this->assertEquals(201, $rule['headers']['status-code'], 'Failed to setup rule: ' . \json_encode($rule)); + + return $rule['body']['$id']; + } + + protected function setupSiteRule(string $domain, string $siteId, string $branch = ''): string + { + $rule = $this->createSiteRule($domain, $siteId, $branch); + + $this->assertEquals(201, $rule['headers']['status-code'], 'Failed to setup rule: ' . \json_encode($rule)); + + return $rule['body']['$id']; + } + + protected function cleanupRule(string $ruleId): void + { + $rule = $this->deleteRule($ruleId); + $this->assertEquals(204, $rule['headers']['status-code'], 'Failed to cleanup rule: ' . \json_encode($rule)); + } + + protected function cleanupSite(string $siteId): void + { + $site = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(204, $site['headers']['status-code'], 'Failed to cleanup site: ' . \json_encode($site)); + } + + protected function cleanupFunction(string $functionId): void + { + $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(204, $function['headers']['status-code'], 'Failed to cleanup function: ' . \json_encode($function)); + } + + protected function setupSite(): mixed + { + // Site + $site = $this->client->call(Client::METHOD_POST, '/sites', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), [ + 'siteId' => ID::unique(), + 'name' => 'Proxy site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $this->assertEquals($site['headers']['status-code'], 201, 'Setup site failed with status code: ' . $site['headers']['status-code'] . ' and response: ' . json_encode($site['body'], JSON_PRETTY_PRINT)); + + $siteId = $site['body']['$id']; + + // Deployment + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), [ + 'code' => $this->packageSite('static'), + 'activate' => 'true' + ]); + + $this->assertEquals($deployment['headers']['status-code'], 202, 'Setup deployment failed with status code: ' . $deployment['headers']['status-code'] . ' and response: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $site = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + $this->assertEquals($deploymentId, $site['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($site['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + return ['siteId' => $siteId, 'deploymentId' => $deploymentId]; + } + + protected function setupFunction(): mixed + { + // Function + $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), [ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Proxy Function', + 'entrypoint' => 'index.js', + 'commands' => '', + 'execute' => ['any'] + ]); + + $this->assertEquals($function['headers']['status-code'], 201, 'Setup function failed with status code: ' . $function['headers']['status-code'] . ' and response: ' . json_encode($function['body'], JSON_PRETTY_PRINT)); + + $functionId = $function['body']['$id']; + + // Deployment + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), [ + 'code' => $this->packageFunction('node'), + 'activate' => 'true' + ]); + + $this->assertEquals($deployment['headers']['status-code'], 202, 'Setup deployment failed with status code: ' . $deployment['headers']['status-code'] . ' and response: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + $this->assertEquals($deploymentId, $function['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($function['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + return ['functionId' => $functionId, 'deploymentId' => $deploymentId]; + } + + private function packageSite(string $site): CURLFile + { + $stdout = ''; + $stderr = ''; + + $folderPath = realpath(__DIR__ . '/../../../resources/sites') . "/$site"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $stdout, $stderr); + + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); + } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); + } + + private function packageFunction(string $function): CURLFile + { + $stdout = ''; + $stderr = ''; + + $folderPath = realpath(__DIR__ . '/../../../resources/functions') . "/$function"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $stdout, $stderr); + + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); + } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); + } +} diff --git a/tests/e2e/Services/Proxy/ProxyCustomServerTest.php b/tests/e2e/Services/Proxy/ProxyCustomServerTest.php new file mode 100644 index 00000000000..3f7099e7035 --- /dev/null +++ b/tests/e2e/Services/Proxy/ProxyCustomServerTest.php @@ -0,0 +1,516 @@ +<?php + +namespace Tests\E2E\Services\Proxy; + +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; +use Utopia\App; +use Utopia\Database\Query; + +class ProxyCustomServerTest extends Scope +{ + use ProxyBase; + use ProjectCustom; + use SideServer; + + public function testCreateRule(): void + { + $domain = \uniqid() . '-api.myapp.com'; + $rule = $this->createAPIRule($domain); + + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertEquals($domain, $rule['body']['domain']); + $this->assertEquals('manual', $rule['body']['trigger']); + $this->assertArrayHasKey('$id', $rule['body']); + $this->assertArrayHasKey('domain', $rule['body']); + $this->assertArrayHasKey('type', $rule['body']); + $this->assertArrayHasKey('redirectUrl', $rule['body']); + $this->assertArrayHasKey('redirectStatusCode', $rule['body']); + $this->assertArrayHasKey('deploymentResourceType', $rule['body']); + $this->assertArrayHasKey('deploymentId', $rule['body']); + $this->assertArrayHasKey('deploymentResourceId', $rule['body']); + $this->assertArrayHasKey('deploymentVcsProviderBranch', $rule['body']); + $this->assertArrayHasKey('logs', $rule['body']); + $this->assertArrayHasKey('renewAt', $rule['body']); + + $ruleId = $rule['body']['$id']; + + $rule = $this->createAPIRule($domain); + $this->assertEquals(409, $rule['headers']['status-code']); + + $rule = $this->deleteRule($ruleId); + + $this->assertEquals(204, $rule['headers']['status-code']); + } + + public function testCreateRuleSetup(): void + { + $ruleId = $this->setupAPIRule(\uniqid() . '-api2.myapp.com'); + $this->cleanupRule($ruleId); + } + + public function testCreateRuleApex(): void + { + $domain = \uniqid() . '.com'; + $rule = $this->createAPIRule($domain); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertEquals('created', $rule['body']['status']); + } + + public function testCreateRuleVcs(): void + { + $domain = \uniqid() . '-vcs.myapp.com'; + + $setup = $this->setupSite(); + $siteId = $setup['siteId']; + $deploymentId = $setup['deploymentId']; + + $this->assertNotEmpty($siteId); + $this->assertNotEmpty($deploymentId); + + $rule = $this->createSiteRule('commit-' . $domain, $siteId); + $this->assertEquals(400, $rule['headers']['status-code']); + + $rule = $this->createSiteRule('branch-' . $domain, $siteId); + $this->assertEquals(400, $rule['headers']['status-code']); + + $rule = $this->createSiteRule('anything-' . $domain, $siteId); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->cleanupRule($rule['body']['$id']); + } + + public function testCreateAPIRule(): void + { + $domain = \uniqid() . '-api.custom.localhost'; + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + // We should ideally assert 400, but server allows unknown domains, and serves API by default + $response = $proxyClient->call(Client::METHOD_GET, '/versions'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(APP_VERSION_STABLE, $response['body']['server']); + + $ruleId = $this->setupAPIRule($domain); + + $this->assertNotEmpty($ruleId); + + $response = $proxyClient->call(Client::METHOD_GET, '/versions'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(APP_VERSION_STABLE, $response['body']['server']); + + $this->cleanupRule($ruleId); + + $rule = $this->createAPIRule('http://' . $domain); + $this->assertEquals(400, $rule['headers']['status-code']); + + $rule = $this->createAPIRule('https://' . $domain); + $this->assertEquals(400, $rule['headers']['status-code']); + + // Unexpected I would say, but it is the current behaviour + $rule = $this->createAPIRule('wss://' . $domain); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->cleanupRule($rule['body']['$id']); + + // Unexpected I would say, but it is the current behaviour + $rule = $this->createAPIRule($domain . '/some-path'); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->cleanupRule($rule['body']['$id']); + } + + public function testCreateRedirectRule(): void + { + $domain = \uniqid() . '-redirect.custom.localhost'; + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://appwrite'); + $proxyClient->addHeader('x-appwrite-hostname', $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/todos/1'); + $this->assertEquals(404, $response['headers']['status-code']); + + $ruleId = $this->setupRedirectRule($domain, 'https://jsonplaceholder.typicode.com/todos/1', 301); + $this->assertNotEmpty($ruleId); + + $response = $proxyClient->call(Client::METHOD_GET, '/todos/1'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['id']); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['id']); + + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertEquals('https://jsonplaceholder.typicode.com/todos/1', $response['headers']['location']); + + $domain = \uniqid() . '-redirect-307.custom.localhost'; + $ruleId = $this->setupRedirectRule($domain, 'https://jsonplaceholder.typicode.com/todos/1', 307); + $this->assertNotEmpty($ruleId); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://appwrite'); + $proxyClient->addHeader('x-appwrite-hostname', $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false); + $this->assertEquals(307, $response['headers']['status-code']); + $this->assertEquals('https://jsonplaceholder.typicode.com/todos/1', $response['headers']['location']); + + $this->cleanupRule($ruleId); + } + + public function testCreateFunctionRule(): void + { + $domain = \uniqid() . '-function.custom.localhost'; + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://appwrite'); + $proxyClient->addHeader('x-appwrite-hostname', $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/ping'); + $this->assertEquals(404, $response['headers']['status-code']); + + $setup = $this->setupFunction(); + $functionId = $setup['functionId']; + $deploymentId = $setup['deploymentId']; + + $this->assertNotEmpty($functionId); + $this->assertNotEmpty($deploymentId); + + $ruleId = $this->setupFunctionRule($domain, $functionId); + $this->assertNotEmpty($ruleId); + + $response = $proxyClient->call(Client::METHOD_GET, '/ping'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals($functionId, $response['body']['APPWRITE_FUNCTION_ID']); + + $this->cleanupRule($ruleId); + + $this->cleanupFunction($functionId); + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $rules = $this->listRules([ + 'queries' => [ + Query::limit(1)->toString(), + Query::equal('type', ['deployment'])->toString(), + Query::equal('deploymentResourceType', ['function'])->toString(), + Query::equal('deploymentResourceId', [$functionId])->toString(), + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + $this->assertCount(0, $rules['body']['rules']); + + $rules = $this->listRules([ + 'queries' => [ + Query::limit(1)->toString(), + Query::equal('type', ['deployment'])->toString(), + Query::equal('deploymentId', [$deploymentId])->toString() + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + $this->assertCount(0, $rules['body']['rules']); + }); + } + + public function testCreateSiteRule(): void + { + $domain = \uniqid() . '-site.custom.localhost'; + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://appwrite'); + $proxyClient->addHeader('x-appwrite-hostname', $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact'); + $this->assertEquals(404, $response['headers']['status-code']); + + $setup = $this->setupSite(); + $siteId = $setup['siteId']; + $deploymentId = $setup['deploymentId']; + + $this->assertNotEmpty($siteId); + $this->assertNotEmpty($deploymentId); + + $ruleId = $this->setupSiteRule($domain, $siteId); + $this->assertNotEmpty($ruleId); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Contact page', $response['body']); + + $rules = $this->listRules([ + 'queries' => [ + Query::limit(1)->toString(), + Query::equal('trigger', ['deployment'])->toString(), + Query::equal('type', ['deployment'])->toString(), + Query::equal('deploymentResourceType', ['site'])->toString(), + Query::equal('deploymentResourceId', [$siteId])->toString(), + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertGreaterThan(0, $rules['body']['total']); + + $this->cleanupRule($ruleId); + + $this->cleanupSite($siteId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $rules = $this->listRules([ + 'queries' => [ + Query::limit(1)->toString(), + Query::equal('type', ['deployment'])->toString(), + Query::equal('deploymentResourceType', ['site'])->toString(), + Query::equal('deploymentResourceId', [$siteId])->toString(), + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + $this->assertCount(0, $rules['body']['rules']); + + $rules = $this->listRules([ + 'queries' => [ + Query::limit(1)->toString(), + Query::equal('type', ['deployment'])->toString(), + Query::equal('deploymentId', [$deploymentId])->toString() + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + $this->assertCount(0, $rules['body']['rules']); + }); + } + + public function testCreateSiteBranchRule(): void + { + $domain = \uniqid() . '-site-branch.custom.localhost'; + + $setup = $this->setupSite(); + $siteId = $setup['siteId']; + $deploymentId = $setup['deploymentId']; + + $this->assertNotEmpty($siteId); + $this->assertNotEmpty($deploymentId); + + $ruleId = $this->setupSiteRule($domain, $siteId, 'dev'); + $this->assertNotEmpty($ruleId); + + $rule = $this->getRule($ruleId); + $this->assertEquals(200, $rule['headers']['status-code']); + + $this->cleanupRule($ruleId); + } + + public function testCreateFunctionBranchRule(): void + { + $domain = \uniqid() . '-function-branch.custom.localhost'; + + $setup = $this->setupFunction(); + $functionId = $setup['functionId']; + $deploymentId = $setup['deploymentId']; + + $this->assertNotEmpty($functionId); + $this->assertNotEmpty($deploymentId); + + $ruleId = $this->setupFunctionRule($domain, $functionId, 'dev'); + $this->assertNotEmpty($ruleId); + + $rule = $this->getRule($ruleId); + $this->assertEquals(200, $rule['headers']['status-code']); + + $this->cleanupRule($ruleId); + + $this->cleanupFunction($functionId); + } + + public function testUpdateRule(): void + { + // Create function appwrite-network domain + $domain = \uniqid() . '-cname-api.' . App::getEnv('_APP_DOMAIN_FUNCTIONS'); + + $rule = $this->createAPIRule($domain); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertEquals('verified', $rule['body']['status']); + + $this->cleanupRule($rule['body']['$id']); + + // Create site appwrite-network domain + $domain = \uniqid() . '-cname-api.' . App::getEnv('_APP_DOMAIN_SITES'); + + $rule = $this->createAPIRule($domain); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertEquals('verified', $rule['body']['status']); + + $this->cleanupRule($rule['body']['$id']); + + // Create + update + $domain = \uniqid() . '-cname-api.custom.com'; + + $rule = $this->createAPIRule($domain); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertEquals('created', $rule['body']['status']); + + $ruleId = $rule['body']['$id']; + + $rule = $this->updateRuleVerification($ruleId); + $this->assertEquals(400, $rule['headers']['status-code']); + + $this->cleanupRule($ruleId); + } + + public function testGetRule() + { + $domain = \uniqid() . '-get.custom.localhost'; + $ruleId = $this->setupAPIRule($domain); + + $this->assertNotEmpty($ruleId); + + $rule = $this->getRule($ruleId); + $this->assertEquals(200, $rule['headers']['status-code']); + $this->assertEquals($domain, $rule['body']['domain']); + $this->assertEquals('manual', $rule['body']['trigger']); + $this->assertArrayHasKey('$id', $rule['body']); + $this->assertArrayHasKey('domain', $rule['body']); + $this->assertArrayHasKey('type', $rule['body']); + $this->assertArrayHasKey('redirectUrl', $rule['body']); + $this->assertArrayHasKey('redirectStatusCode', $rule['body']); + $this->assertArrayHasKey('deploymentResourceType', $rule['body']); + $this->assertArrayHasKey('deploymentId', $rule['body']); + $this->assertArrayHasKey('deploymentResourceId', $rule['body']); + $this->assertArrayHasKey('deploymentVcsProviderBranch', $rule['body']); + $this->assertArrayHasKey('logs', $rule['body']); + $this->assertArrayHasKey('renewAt', $rule['body']); + + $this->cleanupRule($ruleId); + } + + public function testListRules() + { + $rules = $this->listRules(); + $this->assertEquals(200, $rules['headers']['status-code']); + foreach ($rules['body']['rules'] as $rule) { + $rule = $this->deleteRule($rule['$id']); + $this->assertEquals(204, $rule['headers']['status-code']); + } + + $rules = $this->listRules(); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + $this->assertCount(0, $rules['body']['rules']); + + $rule1Domain = \uniqid() . '-list1.custom.localhost'; + $rule1Id = $this->setupAPIRule($rule1Domain); + $this->assertNotEmpty($rule1Id); + + $rules = $this->listRules(); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(1, $rules['body']['total']); + $this->assertCount(1, $rules['body']['rules']); + $this->assertEquals($rule1Domain, $rules['body']['rules'][0]['domain']); + + $this->assertEquals('manual', $rules['body']['rules'][0]['trigger']); + $this->assertArrayHasKey('$id', $rules['body']['rules'][0]); + $this->assertArrayHasKey('domain', $rules['body']['rules'][0]); + $this->assertArrayHasKey('type', $rules['body']['rules'][0]); + $this->assertArrayHasKey('redirectUrl', $rules['body']['rules'][0]); + $this->assertArrayHasKey('redirectStatusCode', $rules['body']['rules'][0]); + $this->assertArrayHasKey('deploymentResourceType', $rules['body']['rules'][0]); + $this->assertArrayHasKey('deploymentId', $rules['body']['rules'][0]); + $this->assertArrayHasKey('deploymentResourceId', $rules['body']['rules'][0]); + $this->assertArrayHasKey('deploymentVcsProviderBranch', $rules['body']['rules'][0]); + $this->assertArrayHasKey('logs', $rules['body']['rules'][0]); + $this->assertArrayHasKey('renewAt', $rules['body']['rules'][0]); + + $rule2Domain = \uniqid() . '-list1.custom.localhost'; + $rule2Id = $this->setupAPIRule($rule2Domain); + $this->assertNotEmpty($rule2Id); + + $rules = $this->listRules(); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(2, $rules['body']['total']); + $this->assertCount(2, $rules['body']['rules']); + + $rules = $this->listRules([ + 'queries' => [ + Query::limit(1)->toString() + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(2, $rules['body']['total']); + $this->assertCount(1, $rules['body']['rules']); + + $rules = $this->listRules([ + 'queries' => [ + Query::equal('$id', [$rule1Id])->toString() + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertCount(1, $rules['body']['rules']); + $this->assertEquals($rule1Domain, $rules['body']['rules'][0]['domain']); + + $rules = $this->listRules([ + 'queries' => [ + Query::orderDesc('$id')->toString() + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertCount(2, $rules['body']['rules']); + $this->assertEquals($rule2Id, $rules['body']['rules'][0]['$id']); + + $rules = $this->listRules([ + 'queries' => [ + Query::equal('domain', [$rule2Domain])->toString() + ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertCount(1, $rules['body']['rules']); + $this->assertEquals($rule2Id, $rules['body']['rules'][0]['$id']); + + $rules = $this->listRules([ + 'search' => $rule1Domain, + 'queries' => [ Query::orderDesc('$createdAt') ] + ]); + + $this->assertEquals(200, $rules['headers']['status-code']); + $ruleIds = \array_column($rules['body']['rules'], '$id'); + $this->assertContains($rule1Id, $ruleIds); + + $rules = $this->listRules([ + 'search' => $rule2Domain, + 'queries' => [ Query::orderDesc('$createdAt') ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $ruleIds = \array_column($rules['body']['rules'], '$id'); + $this->assertContains($rule2Id, $ruleIds); + + $rules = $this->listRules([ + 'search' => $rule1Id, + 'queries' => [ Query::orderDesc('$createdAt') ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $ruleDomains = \array_column($rules['body']['rules'], 'domain'); + $this->assertContains($rule1Domain, $ruleDomains); + + $rules = $this->listRules([ + 'search' => $rule2Id, + 'queries' => [ Query::orderDesc('$createdAt') ] + ]); + $this->assertEquals(200, $rules['headers']['status-code']); + $ruleDomains = \array_column($rules['body']['rules'], 'domain'); + $this->assertContains($rule2Domain, $ruleDomains); + + $rules = $this->listRules(); + $this->assertEquals(200, $rules['headers']['status-code']); + foreach ($rules['body']['rules'] as $rule) { + $rule = $this->deleteRule($rule['$id']); + $this->assertEquals(204, $rule['headers']['status-code']); + } + + $rules = $this->listRules(); + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + $this->assertCount(0, $rules['body']['rules']); + } +} diff --git a/tests/e2e/Services/Realtime/RealtimeBase.php b/tests/e2e/Services/Realtime/RealtimeBase.php index 30c411ba932..99f31134c04 100644 --- a/tests/e2e/Services/Realtime/RealtimeBase.php +++ b/tests/e2e/Services/Realtime/RealtimeBase.php @@ -7,25 +7,34 @@ trait RealtimeBase { - private function getWebsocket($channels = [], $headers = [], $projectId = null): WebSocketClient - { + private function getWebsocket( + array $channels = [], + array $headers = [], + string $projectId = null + ): WebSocketClient { if (is_null($projectId)) { $projectId = $this->getProject()['$id']; } - $headers = array_merge([ - 'Origin' => 'appwrite.test' - ], $headers); + $headers = array_merge( + [ + "Origin" => "appwrite.test", + ], + $headers + ); $query = [ - 'project' => $projectId, - 'channels' => $channels + "project" => $projectId, + "channels" => $channels, ]; - return new WebSocketClient('ws://appwrite-traefik/v1/realtime?' . http_build_query($query), [ - 'headers' => $headers, - 'timeout' => 30, - ]); + return new WebSocketClient( + "ws://appwrite-traefik/v1/realtime?" . http_build_query($query), + [ + "headers" => $headers, + "timeout" => 30, + ] + ); } public function testConnection(): void @@ -33,7 +42,7 @@ public function testConnection(): void /** * Test for SUCCESS */ - $client = $this->getWebsocket(['documents']); + $client = $this->getWebsocket(["documents"]); $this->assertNotEmpty($client->receive()); $client->close(); } @@ -43,11 +52,11 @@ public function testConnectionFailureMissingChannels(): void $client = $this->getWebsocket(); $payload = json_decode($client->receive(), true); - $this->assertArrayHasKey('type', $payload); - $this->assertArrayHasKey('data', $payload); - $this->assertEquals('error', $payload['type']); - $this->assertEquals(1008, $payload['data']['code']); - $this->assertEquals('Missing channels', $payload['data']['message']); + $this->assertArrayHasKey("type", $payload); + $this->assertArrayHasKey("data", $payload); + $this->assertEquals("error", $payload["type"]); + $this->assertEquals(1008, $payload["data"]["code"]); + $this->assertEquals("Missing channels", $payload["data"]["message"]); \usleep(250000); // 250ms $this->expectException(ConnectionException::class); // Check if server disconnnected client $client->close(); @@ -55,18 +64,24 @@ public function testConnectionFailureMissingChannels(): void public function testConnectionFailureUnknownProject(): void { - $client = new WebSocketClient('ws://appwrite-traefik/v1/realtime?project=123', [ - 'headers' => [ - 'Origin' => 'appwrite.test' + $client = new WebSocketClient( + "ws://appwrite-traefik/v1/realtime?project=123", + [ + "headers" => [ + "Origin" => "appwrite.test", + ], ] - ]); + ); $payload = json_decode($client->receive(), true); - $this->assertArrayHasKey('type', $payload); - $this->assertArrayHasKey('data', $payload); - $this->assertEquals('error', $payload['type']); - $this->assertEquals(1008, $payload['data']['code']); - $this->assertEquals('Missing or unknown project ID', $payload['data']['message']); + $this->assertArrayHasKey("type", $payload); + $this->assertArrayHasKey("data", $payload); + $this->assertEquals("error", $payload["type"]); + $this->assertEquals(1008, $payload["data"]["code"]); + $this->assertEquals( + "Missing or unknown project ID", + $payload["data"]["message"] + ); \usleep(250000); // 250ms $this->expectException(ConnectionException::class); // Check if server disconnnected client $client->close(); diff --git a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php index 6ab2874f8e8..01de2782a5f 100644 --- a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php @@ -2,7 +2,6 @@ namespace Tests\E2E\Services\Realtime; -use CURLFile; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -19,7 +18,7 @@ class RealtimeConsoleClientTest extends Scope use ProjectCustom; use SideConsole; - public function testManualAuthentication() + public function testManualAuthentication(): void { $user = $this->getUser(); $userId = $user['$id'] ?? ''; @@ -124,7 +123,7 @@ public function testManualAuthentication() $client->close(); } - public function testAttributes() + public function testAttributes(): array { $user = $this->getUser(); $projectId = 'console'; @@ -184,6 +183,7 @@ public function testAttributes() 'required' => true, ]); + $projectId = $this->getProject()['$id']; $attributeKey = $name['body']['key']; $this->assertEquals($name['headers']['status-code'], 202); @@ -198,8 +198,9 @@ public function testAttributes() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.create", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -218,8 +219,9 @@ public function testAttributes() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -276,6 +278,8 @@ public function testIndexes(array $data) ]); $this->assertEquals($index['headers']['status-code'], 202); + + $projectId = $this->getProject()['$id']; $indexKey = $index['body']['key']; $response = json_decode($client->receive(), true); @@ -285,8 +289,9 @@ public function testIndexes(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.create", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -303,8 +308,9 @@ public function testIndexes(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -343,6 +349,8 @@ public function testDeleteIndex(array $data) $this->assertContains('console', $response['data']['channels']); $this->assertNotEmpty($response['data']['user']); + $projectId = $this->getProject()['$id']; + /** * Test Delete Index */ @@ -353,6 +361,7 @@ public function testDeleteIndex(array $data) ], $this->getHeaders())); $this->assertEquals($attribute['headers']['status-code'], 204); + $response = json_decode($client->receive(), true); $this->assertArrayHasKey('type', $response); @@ -360,8 +369,9 @@ public function testDeleteIndex(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -377,8 +387,9 @@ public function testDeleteIndex(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.delete", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -416,10 +427,12 @@ public function testDeleteAttribute(array $data) $this->assertContains('console', $response['data']['channels']); $this->assertNotEmpty($response['data']['user']); + $attributeKey = 'name'; + $projectId = $this->getProject()['$id']; + /** * Test Delete Attribute */ - $attributeKey = 'name'; $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['actorsId'] . '/attributes/' . $attributeKey, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -433,8 +446,9 @@ public function testDeleteAttribute(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -450,8 +464,9 @@ public function testDeleteAttribute(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.delete", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -463,6 +478,44 @@ public function testDeleteAttribute(array $data) $client->close(); } + public function testPing() + { + $client = $this->getWebsocket(['console'], [ + 'origin' => 'http://localhost', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ], 'console'); + + $response = json_decode($client->receive(), true); + + $this->assertArrayHasKey('type', $response); + $this->assertEquals('connected', $response['type']); + + $pong = $this->client->call(Client::METHOD_GET, '/ping', [ + 'origin' => 'http://localhost', + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + + $this->assertEquals(200, $pong['headers']['status-code']); + $this->assertEquals('Pong!', $pong['body']); + + $response = json_decode($client->receive(), true); + + $this->assertArrayHasKey('type', $response); + $this->assertEquals('event', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertArrayHasKey('timestamp', $response['data']); + $this->assertCount(2, $response['data']['channels']); + $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}", $response['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}.ping", $response['data']['events']); + $this->assertNotEmpty($response['data']['payload']); + $this->assertArrayHasKey('pingCount', $response['data']['payload']); + $this->assertArrayHasKey('pingedAt', $response['data']['payload']); + $this->assertEquals(1, $response['data']['payload']['pingCount']); + + $client->close(); + } + public function testCreateDeployment() { $response1 = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ @@ -481,10 +534,11 @@ public function testCreateDeployment() 'timeout' => 10 ]); - $functionId = $response1['body']['$id'] ?? ''; - $this->assertEquals(201, $response1['headers']['status-code']); + $functionId = $response1['body']['$id']; + $this->assertNotEmpty($functionId); + $projectId = 'console'; $client = $this->getWebsocket(['console'], [ @@ -505,24 +559,21 @@ public function testCreateDeployment() /** * Test Create Deployment */ - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - + $projectId = $this->getProject()['$id']; $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-project' => $projectId, ], $this->getHeaders()), [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + $response = json_decode($client->receive(), true); $this->assertArrayHasKey('type', $response); @@ -530,10 +581,58 @@ public function testCreateDeployment() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); - // $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.create", $response['data']['events']); TODO @christyjacob4 : enable test once we allow functions.* events - $this->assertNotEmpty($response['data']['payload']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); + $this->assertEquals("waiting", $response['data']['payload']['status']); + $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.create", $response['data']['events']); + + $response = json_decode($client->receive(), true); + $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.update", $response['data']['events']); + $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); + $this->assertEquals("processing", $response['data']['payload']['status']); + + $response = json_decode($client->receive(), true); + $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.update", $response['data']['events']); + $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); + $this->assertEquals("building", $response['data']['payload']['status']); + + $previousBuildLogs = null; + while (true) { + $response = json_decode($client->receive(), true); + $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.update", $response['data']['events']); + $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); + $this->assertArrayHasKey('buildLogs', $response['data']['payload']); + + // Ignore comparasion for first payload + if ($previousBuildLogs !== null) { + $this->assertNotEquals($previousBuildLogs, $response['data']['payload']['buildLogs']); + } + + $previousBuildLogs = $response['data']['payload']['buildLogs']; + + $this->assertEquals('building', $response['data']['payload']['status']); + + if (!empty($response['data']['payload']['buildEndedAt'])) { + $this->assertNotEmpty($response['data']['payload']['buildEndedAt']); + $this->assertNotEmpty($response['data']['payload']['buildStartedAt']); + $this->assertNotEmpty($response['data']['payload']['buildDuration']); + $this->assertNotEmpty($response['data']['payload']['buildPath']); + $this->assertNotEmpty($response['data']['payload']['buildSize']); + $this->assertNotEmpty($response['data']['payload']['totalSize']); + $this->assertNotEmpty($response['data']['payload']['buildLogs']); + break; + } + } + + $response = json_decode($client->receive(), true); + $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.update", $response['data']['events']); + $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); + $this->assertEquals("ready", $response['data']['payload']['status']); $client->close(); } diff --git a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php index c3372b98c58..9e3f1a66b78 100644 --- a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php @@ -7,7 +7,7 @@ use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; -use Utopia\CLI\Console; +use Tests\E2E\Services\Functions\FunctionsBase; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; @@ -15,6 +15,7 @@ class RealtimeCustomClientTest extends Scope { + use FunctionsBase; use RealtimeBase; use ProjectCustom; use SideClient; @@ -110,6 +111,30 @@ public function testChannelParsing() $client->close(); } + public function testPingPong() + { + $client = $this->getWebsocket(['files'], [ + 'origin' => 'http://localhost' + ]); + $response = json_decode($client->receive(), true); + + $this->assertArrayHasKey('type', $response); + $this->assertArrayHasKey('data', $response); + $this->assertEquals('connected', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertCount(1, $response['data']['channels']); + $this->assertContains('files', $response['data']['channels']); + + $client->send(\json_encode([ + 'type' => 'ping' + ])); + + $response = json_decode($client->receive(), true); + $this->assertEquals('pong', $response['type']); + + $client->close(); + } + public function testManualAuthentication() { $user = $this->getUser(); @@ -738,7 +763,6 @@ public function testChannelDatabase() $response = json_decode($client->receive(), true); $documentId = $document['body']['$id']; - $this->assertArrayHasKey('type', $response); $this->assertArrayHasKey('data', $response); $this->assertEquals('event', $response['type']); @@ -1271,20 +1295,13 @@ public function testChannelExecutions() $this->assertEquals($function['headers']['status-code'], 201); $this->assertNotEmpty($function['body']['$id']); - $folder = 'timeout'; - $stderr = ''; - $stdout = ''; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/{$folder}/code.tar.gz"; - - Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/{$folder} && tar --exclude code.tar.gz -czf code.tar.gz .", '', $stdout, $stderr); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ 'content-type' => 'multipart/form-data', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('timeout'), 'activate' => true ]); @@ -1294,22 +1311,15 @@ public function testChannelExecutions() $this->assertNotEmpty($deployment['body']['$id']); // Poll until deployment is built - while (true) { + $this->assertEventually(function () use ($function, $deploymentId) { $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $function['body']['$id'] . '/deployments/' . $deploymentId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ]); - if ( - $deployment['headers']['status-code'] >= 400 - || \in_array($deployment['body']['status'], ['ready', 'failed']) - ) { - break; - } - - \sleep(1); - } + $this->assertEquals('ready', $deployment['body']['status'], \json_encode($deployment['body'])); + }); $response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ 'content-type' => 'application/json', @@ -1340,8 +1350,9 @@ public function testChannelExecutions() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(4, $response['data']['channels']); + $this->assertCount(5, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}", $response['data']['channels']); $this->assertContains('executions', $response['data']['channels']); $this->assertContains("executions.{$executionId}", $response['data']['channels']); $this->assertContains("functions.{$functionId}", $response['data']['channels']); @@ -1362,8 +1373,9 @@ public function testChannelExecutions() $this->assertEquals('event', $responseUpdate['type']); $this->assertNotEmpty($responseUpdate['data']); $this->assertArrayHasKey('timestamp', $responseUpdate['data']); - $this->assertCount(4, $responseUpdate['data']['channels']); + $this->assertCount(5, $responseUpdate['data']['channels']); $this->assertContains('console', $responseUpdate['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}", $response['data']['channels']); $this->assertContains('executions', $responseUpdate['data']['channels']); $this->assertContains("executions.{$executionId}", $responseUpdate['data']['channels']); $this->assertContains("functions.{$functionId}", $responseUpdate['data']['channels']); diff --git a/tests/e2e/Services/Sites/SitesBase.php b/tests/e2e/Services/Sites/SitesBase.php new file mode 100644 index 00000000000..00edcc1b72e --- /dev/null +++ b/tests/e2e/Services/Sites/SitesBase.php @@ -0,0 +1,437 @@ +<?php + +namespace Tests\E2E\Services\Sites; + +use Appwrite\Tests\Async; +use CURLFile; +use Tests\E2E\Client; +use Utopia\CLI\Console; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Query; +use Utopia\System\System; + +trait SitesBase +{ + use Async; + + protected string $stdout = ''; + protected string $stderr = ''; + + protected function setupSite(mixed $params): string + { + $site = $this->client->call(Client::METHOD_POST, '/sites', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), $params); + + $this->assertEquals($site['headers']['status-code'], 201, 'Setup site failed with status code: ' . $site['headers']['status-code'] . ' and response: ' . json_encode($site['body'], JSON_PRETTY_PRINT)); + + $siteId = $site['body']['$id']; + + return $siteId; + } + + protected function setupDeployment(string $siteId, mixed $params): string + { + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), $params); + $this->assertEquals($deployment['headers']['status-code'], 202, 'Setup deployment failed with status code: ' . $deployment['headers']['status-code'] . ' and response: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + $this->assertEquals('ready', $deployment['body']['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 150000, 500); + + // Not === so multipart/form-data works fine too + if (($params['activate'] ?? false) == true) { + $this->assertEventually(function () use ($siteId, $deploymentId) { + $site = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + $this->assertEquals($deploymentId, $site['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($site['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + } + + return $deploymentId; + } + + protected function cleanupSite(string $siteId): void + { + $site = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + + $this->assertEquals($site['headers']['status-code'], 204); + } + + protected function cleanupDeployment(string $siteId, string $deploymentId): void + { + $deployment = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + + $this->assertEquals($deployment['headers']['status-code'], 204); + } + + protected function createSite(mixed $params): mixed + { + $site = $this->client->call(Client::METHOD_POST, '/sites', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $site; + } + + protected function updateSite(mixed $params): mixed + { + $site = $this->client->call(Client::METHOD_PUT, '/sites/' . $params['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $site; + } + + protected function createVariable(string $siteId, mixed $params): mixed + { + $variable = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variable; + } + + protected function getVariable(string $siteId, string $variableId): mixed + { + $variable = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/variables/' . $variableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $variable; + } + + protected function listVariables(string $siteId, mixed $params = []): mixed + { + $variables = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variables; + } + + protected function updateVariable(string $siteId, string $variableId, mixed $params): mixed + { + $variable = $this->client->call(Client::METHOD_PUT, '/sites/' . $siteId . '/variables/' . $variableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variable; + } + + protected function deleteVariable(string $siteId, string $variableId): mixed + { + $variable = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId . '/variables/' . $variableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $variable; + } + + protected function getSite(string $siteId): mixed + { + $site = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $site; + } + + protected function getDeployment(string $siteId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $deployment; + } + + protected function getLog(string $siteId, $logId): mixed + { + $log = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/logs/' . $logId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $log; + } + + protected function listSites(mixed $params = []): mixed + { + $sites = $this->client->call(Client::METHOD_GET, '/sites', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $sites; + } + + protected function listDeployments(string $siteId, $params = []): mixed + { + $deployments = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/deployments', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployments; + } + + protected function listLogs(string $siteId, array $queries = []): mixed + { + $logs = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/logs', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => $queries + ]); + + return $logs; + } + + protected function packageSite(string $site): CURLFile + { + $folderPath = realpath(__DIR__ . '/../../../resources/sites') . "/$site"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); + } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); + } + + protected function createDeployment(string $siteId, mixed $params = []): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployment; + } + + protected function deleteDeployment(string $siteId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + return $deployment; + } + + protected function setupDuplicateDeployment(string $siteId, string $deploymentId): string + { + $deployment = $this->createDuplicateDeployment($siteId, $deploymentId); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals('ready', $deployment['body']['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $site = $this->getSite($siteId); + $this->assertEquals($deploymentId, $site['body']['deploymentId'], 'Deployment is not activated, deployment: ' . json_encode($site['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + return $deploymentId; + } + + protected function createDuplicateDeployment(string $siteId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments/duplicate', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'deploymentId' => $deploymentId, + ]); + + return $deployment; + } + + protected function createTemplateDeployment(string $siteId, mixed $params = []): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments/template', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployment; + } + + protected function getUsage(string $siteId, mixed $params): mixed + { + $usage = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/usage', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $usage; + } + + protected function getTemplate(string $templateId) + { + $template = $this->client->call(Client::METHOD_GET, '/sites/templates/' . $templateId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + return $template; + } + + protected function deleteSite(string $siteId): mixed + { + $site = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $site; + } + + protected function setupSiteDomain(string $siteId, string $subdomain = ''): string + { + $subdomain = $subdomain ? $subdomain : ID::unique(); + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/site', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_SITES', ''), + 'siteId' => $siteId, + ]); + + $this->assertEquals(201, $rule['headers']['status-code']); + $this->assertNotEmpty($rule['body']['$id']); + $this->assertNotEmpty($rule['body']['domain']); + + $domain = $rule['body']['domain']; + + return $domain; + } + + protected function getSiteDomain(string $siteId): string + { + $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::equal('deploymentResourceId', [$siteId])->toString(), + Query::equal('trigger', ['manual'])->toString(), + Query::equal('type', ['deployment'])->toString(), + ], + ]); + + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertGreaterThanOrEqual(1, $rules['body']['total']); + $this->assertGreaterThanOrEqual(1, \count($rules['body']['rules'])); + $this->assertNotEmpty($rules['body']['rules'][0]['domain']); + + $domain = $rules['body']['rules'][0]['domain']; + + return $domain; + } + + protected function getDeploymentDomain(string $deploymentId): string + { + $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::equal('deploymentId', [$deploymentId])->toString(), + Query::equal('type', ['deployment'])->toString(), + Query::equal('trigger', ['deployment'])->toString(), + ], + ]); + + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertGreaterThanOrEqual(1, $rules['body']['total']); + $this->assertGreaterThanOrEqual(1, \count($rules['body']['rules'])); + $this->assertNotEmpty($rules['body']['rules'][0]['domain']); + + $domain = $rules['body']['rules'][0]['domain']; + + return $domain; + } + + protected function getDeploymentDownload(string $siteId, string $deploymentId, string $type): mixed + { + $response = $this->client->call(Client::METHOD_GET, '/sites/' . $siteId . '/deployments/' . $deploymentId . '/download', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'type' => $type, + ]); + + return $response; + } + + protected function updateSiteDeployment(string $siteId, string $deploymentId): mixed + { + $site = $this->client->call(Client::METHOD_PATCH, '/sites/' . $siteId . '/deployment', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'deploymentId' => $deploymentId + ]); + + return $site; + } + + protected function cancelDeployment(string $siteId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_PATCH, '/sites/' . $siteId . '/deployments/' . $deploymentId . '/status', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $deployment; + } + + protected function listSpecifications(): mixed + { + $specifications = $this->client->call(Client::METHOD_GET, '/sites/specifications', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $specifications; + } +} diff --git a/tests/e2e/Services/Sites/SitesConsoleClientTest.php b/tests/e2e/Services/Sites/SitesConsoleClientTest.php new file mode 100644 index 00000000000..1a84f46ed7a --- /dev/null +++ b/tests/e2e/Services/Sites/SitesConsoleClientTest.php @@ -0,0 +1,100 @@ +<?php + +namespace Tests\E2E\Services\Sites; + +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideConsole; +use Utopia\Database\Helpers\ID; + +class SitesConsoleClientTest extends Scope +{ + use ProjectCustom; + use SideConsole; + use SitesBase; + + public function testSiteScreenshot(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Themed site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static-themed'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $domain = $this->getSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Themed website", $response['body']); + $this->assertStringContainsString("@media (prefers-color-scheme: dark)", $response['body']); + + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['screenshotLight']); + $this->assertNotEmpty($deployment['body']['screenshotDark']); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deployment['body']['screenshotLight'], $site['body']['deploymentScreenshotLight']); + $this->assertEquals($deployment['body']['screenshotDark'], $site['body']['deploymentScreenshotDark']); + + $screenshotId = $deployment['body']['screenshotLight']; + $file = $this->client->call(Client::METHOD_GET, "/storage/buckets/screenshots/files/$screenshotId/view?project=console", array_merge($this->getHeaders(), [ + 'x-appwrite-mode' => 'default' // NOT ADMIN! + ])); + + $this->assertEquals(200, $file['headers']['status-code']); + $this->assertNotEmpty(200, $file['body']); + $this->assertGreaterThan(1, $file['headers']['content-length']); + $this->assertEquals('image/png', $file['headers']['content-type']); + + $screenshotHash = \md5($file['body']); + $this->assertNotEmpty($screenshotHash); + + $screenshotId = $deployment['body']['screenshotDark']; + $file = $this->client->call(Client::METHOD_GET, "/storage/buckets/screenshots/files/$screenshotId/view?project=console", array_merge($this->getHeaders(), [ + 'x-appwrite-mode' => 'default' // NOT ADMIN! + ])); + + $this->assertEquals(200, $file['headers']['status-code']); + $this->assertNotEmpty(200, $file['body']); + $this->assertGreaterThan(1, $file['headers']['content-length']); + $this->assertEquals('image/png', $file['headers']['content-type']); + + $screenshotDarkHash = \md5($file['body']); + $this->assertNotEmpty($screenshotDarkHash); + + $this->assertNotEquals($screenshotDarkHash, $screenshotHash); + + $file = $this->client->call(Client::METHOD_GET, "/storage/buckets/screenshots/files/$screenshotId/view?project=console"); + $this->assertEquals(404, $file['headers']['status-code']); + + $file = $this->client->call(Client::METHOD_GET, "/storage/buckets/screenshots/files/$screenshotId/view?project=console"); + $this->assertEquals(404, $file['headers']['status-code']); + + $this->cleanupSite($siteId); + } +} diff --git a/tests/e2e/Services/Sites/SitesCustomClientTest.php b/tests/e2e/Services/Sites/SitesCustomClientTest.php new file mode 100644 index 00000000000..9bf389ea62d --- /dev/null +++ b/tests/e2e/Services/Sites/SitesCustomClientTest.php @@ -0,0 +1,141 @@ +<?php + +namespace Tests\E2E\Services\Sites; + +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideClient; + +class SitesCustomClientTest extends Scope +{ + use SitesBase; + use ProjectCustom; + use SideClient; + + public function testListTemplates() + { + /** + * Test for SUCCESS + */ + // List all templates + $templates = $this->client->call(Client::METHOD_GET, '/sites/templates', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $templates['headers']['status-code']); + $this->assertGreaterThan(0, $templates['body']['total']); + $this->assertIsArray($templates['body']['templates']); + + foreach ($templates['body']['templates'] as $template) { + $this->assertArrayHasKey('name', $template); + $this->assertArrayHasKey('key', $template); + $this->assertArrayHasKey('useCases', $template); + $this->assertArrayHasKey('vcsProvider', $template); + $this->assertArrayHasKey('frameworks', $template); + $this->assertArrayHasKey('variables', $template); + $this->assertArrayHasKey('screenshotDark', $template); + $this->assertArrayHasKey('screenshotLight', $template); + $this->assertArrayHasKey('tagline', $template); + } + + // List templates with pagination + $templatesOffset = $this->client->call(Client::METHOD_GET, '/sites/templates', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'limit' => 1, + 'offset' => 2 + ]); + $this->assertEquals(200, $templatesOffset['headers']['status-code']); + $this->assertCount(1, $templatesOffset['body']['templates']); + $this->assertEquals($templates['body']['templates'][2]['key'], $templatesOffset['body']['templates'][0]['key']); + + // List templates with filters + $templates = $this->client->call(Client::METHOD_GET, '/sites/templates', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'useCases' => ['starter'], + 'frameworks' => ['nuxt'] + ]); + $this->assertEquals(200, $templates['headers']['status-code']); + $this->assertGreaterThan(0, $templates['body']['total']); + $this->assertIsArray($templates['body']['templates']); + foreach ($templates['body']['templates'] as $template) { + $this->assertContains($template['useCases'][0], ['starter']); + } + $this->assertArrayHasKey('frameworks', $templates['body']['templates'][0]); + $this->assertContains('Nuxt', array_column($templates['body']['templates'][0]['frameworks'], 'name')); + + // List templates with pagination and filters + $templates = $this->client->call(Client::METHOD_GET, '/sites/templates', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'limit' => 5, + 'offset' => 0, + 'useCases' => ['starter'], + 'frameworks' => ['nextjs'] + ]); + + $this->assertEquals(200, $templates['headers']['status-code']); + $this->assertGreaterThan(0, $templates['body']['total']); + $this->assertIsArray($templates['body']['templates']); + $this->assertArrayHasKey('frameworks', $templates['body']['templates'][0]); + + foreach ($templates['body']['templates'] as $template) { + $this->assertContains($template['useCases'][0], ['starter']); + } + + $this->assertContains('Next.js', array_column($templates['body']['templates'][0]['frameworks'], 'name')); + + /** + * Test for FAILURE + */ + // List templates with invalid limit + $templates = $this->client->call(Client::METHOD_GET, '/sites/templates', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'limit' => 5001, + 'offset' => 10, + ]); + $this->assertEquals(400, $templates['headers']['status-code']); + + // List templates with invalid offset + $templates = $this->client->call(Client::METHOD_GET, '/sites/templates', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'limit' => 5, + 'offset' => 5001, + ]); + $this->assertEquals(400, $templates['headers']['status-code']); + } + + public function testGetTemplate() + { + /** + * Test for SUCCESS + */ + $template = $this->getTemplate('starter-for-react'); + $this->assertEquals(200, $template['headers']['status-code']); + $this->assertIsArray($template['body']); + $this->assertEquals('starter-for-react', $template['body']['key']); + $this->assertEquals('React starter', $template['body']['name']); + $this->assertEquals(['starter'], $template['body']['useCases']); + $this->assertEquals('github', $template['body']['vcsProvider']); + $this->assertEquals('Simple React application integrated with Appwrite SDK.', $template['body']['tagline']); + $this->assertIsArray($template['body']['frameworks']); + $this->assertEquals('http://localhost/images/sites/templates/starter-for-react-dark.png', $template['body']['screenshotDark']); + $this->assertEquals('http://localhost/images/sites/templates/starter-for-react-light.png', $template['body']['screenshotLight']); + + /** + * Test for FAILURE + */ + $template = $this->getTemplate('invalid-template-id'); + $this->assertEquals(404, $template['headers']['status-code']); + } +} diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php new file mode 100644 index 00000000000..f9d5b4acdff --- /dev/null +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -0,0 +1,2654 @@ +<?php + +namespace Tests\E2E\Services\Sites; + +use Ahc\Jwt\JWT; +use Appwrite\Platform\Modules\Compute\Specification; +use Appwrite\Tests\Retry; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; +use Utopia\CLI\Console; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Query; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\System\System; + +class SitesCustomServerTest extends Scope +{ + use SitesBase; + use ProjectCustom; + use SideServer; + + public function testListSpecs(): void + { + $specifications = $this->listSpecifications(); + $this->assertEquals(200, $specifications['headers']['status-code']); + $this->assertGreaterThan(0, $specifications['body']['total']); + $this->assertArrayHasKey(0, $specifications['body']['specifications']); + $this->assertArrayHasKey('memory', $specifications['body']['specifications'][0]); + $this->assertArrayHasKey('cpus', $specifications['body']['specifications'][0]); + $this->assertArrayHasKey('enabled', $specifications['body']['specifications'][0]); + $this->assertArrayHasKey('slug', $specifications['body']['specifications'][0]); + + $site = $this->createSite([ + 'buildRuntime' => 'node-22', + 'framework' => 'other', + 'name' => 'Specs site', + 'siteId' => ID::unique(), + 'specification' => $specifications['body']['specifications'][0]['slug'] + ]); + $this->assertEquals(201, $site['headers']['status-code']); + $this->assertEquals($specifications['body']['specifications'][0]['slug'], $site['body']['specification']); + + $site = $this->getSite($site['body']['$id']); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($specifications['body']['specifications'][0]['slug'], $site['body']['specification']); + + $this->cleanupSite($site['body']['$id']); + + $site = $this->createSite([ + 'buildRuntime' => 'node-22', + 'framework' => 'other', + 'name' => 'Specs site', + 'siteId' => ID::unique(), + 'specification' => 'cheap-please' + ]); + $this->assertEquals(400, $site['headers']['status-code']); + } + + public function testCreateSite(): void + { + /** + * Test for SUCCESS + */ + $site = $this->createSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'siteId' => ID::unique() + ]); + + $siteId = $site['body']['$id'] ?? ''; + + $dateValidator = new DateTimeValidator(); + $this->assertEquals(201, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + $this->assertEquals('Test Site', $site['body']['name']); + $this->assertEquals('other', $site['body']['framework']); + $this->assertEquals(true, $dateValidator->isValid($site['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($site['body']['$updatedAt'])); + $this->assertEquals('node-22', $site['body']['buildRuntime']); + $this->assertEquals(null, $site['body']['fallbackFile']); + $this->assertEquals('./', $site['body']['outputDirectory']); + + $variable = $this->createVariable($siteId, [ + 'key' => 'siteKey1', + 'value' => 'siteValue1', + ]); + $variable2 = $this->createVariable($siteId, [ + 'key' => 'siteKey2', + 'value' => 'siteValue2', + ]); + $variable3 = $this->createVariable($siteId, [ + 'key' => 'siteKey3', + 'value' => 'siteValue3', + ]); + + $this->assertEquals(201, $variable['headers']['status-code']); + $this->assertEquals(201, $variable2['headers']['status-code']); + $this->assertEquals(201, $variable3['headers']['status-code']); + + $this->cleanupSite($siteId); + } + + public function testConsoleAvailabilityEndpoint(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Test Site', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + + $response = $this->client->call(Client::METHOD_GET, '/console/resources', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + 'x-appwrite-project' => 'console', + ], [ + 'type' => 'rules', + 'value' => $domain, + ]); + + $this->assertEquals(409, $response['headers']['status-code']); // domain unavailable + + $nonExistingDomain = "non-existent-subdomain.sites.localhost"; + + $response = $this->client->call(Client::METHOD_GET, '/console/resources', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + 'x-appwrite-project' => 'console', + ], [ + 'type' => 'rules', + 'value' => $nonExistingDomain, + ]); + + $this->assertEquals(204, $response['headers']['status-code']); // domain available + + $this->cleanupSite($siteId); + + $this->assertEventually(function () use ($siteId) { + $rule = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::equal('deploymentResourceId', [$siteId]) + ] + ]); + + $this->assertEquals(200, $rule['headers']['status-code']); + $this->assertEquals(0, $rule['body']['total']); + }, 5000, 500); + + $response = $this->client->call(Client::METHOD_GET, '/console/resources', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + 'x-appwrite-project' => 'console', + ], [ + 'type' => 'rules', + 'value' => $domain, + ]); + + $this->assertEquals(204, $response['headers']['status-code']); // domain available as site is deleted + } + + public function testVariables(): void + { + $site = $this->createSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'siteId' => ID::unique() + ]); + + $siteId = $site['body']['$id'] ?? ''; + + $this->assertEquals(201, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + $this->assertEquals('Test Site', $site['body']['name']); + + $variable = $this->createVariable($siteId, [ + 'key' => 'siteKey1', + 'value' => 'siteValue1', + 'secret' => false, + ]); + + $this->assertEquals(201, $variable['headers']['status-code']); + $this->assertNotEmpty($variable['body']['$id']); + $this->assertEquals('siteKey1', $variable['body']['key']); + $this->assertEquals('siteValue1', $variable['body']['value']); + $this->assertEquals(false, $variable['body']['secret']); + + $variable2 = $this->createVariable($siteId, [ + 'key' => 'siteKey2', + 'value' => 'siteValue2', + 'secret' => false, + ]); + + $this->assertEquals(201, $variable2['headers']['status-code']); + $this->assertNotEmpty($variable2['body']['$id']); + $this->assertEquals('siteKey2', $variable2['body']['key']); + $this->assertEquals('siteValue2', $variable2['body']['value']); + $this->assertEquals(false, $variable2['body']['secret']); + + $secretVariable = $this->createVariable($siteId, [ + 'key' => 'siteKey3', + 'value' => 'siteValue3', + 'secret' => true, + ]); + + $this->assertEquals(201, $secretVariable['headers']['status-code']); + $this->assertNotEmpty($secretVariable['body']['$id']); + $this->assertEquals('siteKey3', $secretVariable['body']['key']); + $this->assertEquals('', $secretVariable['body']['value']); + $this->assertEquals(true, $secretVariable['body']['secret']); + + $variable = $this->getVariable($siteId, $variable['body']['$id']); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertNotEmpty($variable['body']['$id']); + $this->assertEquals('siteKey1', $variable['body']['key']); + $this->assertEquals('siteValue1', $variable['body']['value']); + $this->assertEquals(false, $variable['body']['secret']); + + $secretVariable = $this->getVariable($siteId, $secretVariable['body']['$id']); + + $this->assertEquals(200, $secretVariable['headers']['status-code']); + $this->assertNotEmpty($secretVariable['body']['$id']); + $this->assertEquals('siteKey3', $secretVariable['body']['key']); + $this->assertEquals('', $secretVariable['body']['value']); + $this->assertEquals(true, $secretVariable['body']['secret']); + + $variable = $this->updateVariable($siteId, $variable['body']['$id'], [ + 'key' => 'siteKey1Updated', + 'value' => 'siteValue1Updated', + ]); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertNotEmpty($variable['body']['$id']); + $this->assertEquals('siteKey1Updated', $variable['body']['key']); + $this->assertEquals('siteValue1Updated', $variable['body']['value']); + $this->assertEquals(false, $variable['body']['secret']); + + $variable = $this->updateVariable($siteId, $variable['body']['$id'], [ + 'key' => 'siteKey1Updated', + 'secret' => true, + ]); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertNotEmpty($variable['body']['$id']); + $this->assertEquals('siteKey1Updated', $variable['body']['key']); + $this->assertEquals('', $variable['body']['value']); + $this->assertEquals(true, $variable['body']['secret']); + + $secretVariable = $this->updateVariable($siteId, $secretVariable['body']['$id'], [ + 'key' => 'siteKey3', + 'value' => 'siteValue3Updated', + ]); + + $this->assertEquals(200, $secretVariable['headers']['status-code']); + $this->assertNotEmpty($secretVariable['body']['$id']); + $this->assertEquals('siteKey3', $secretVariable['body']['key']); + $this->assertEquals('', $secretVariable['body']['value']); + $this->assertEquals(true, $secretVariable['body']['secret']); + + $response = $this->updateVariable($siteId, $secretVariable['body']['$id'], [ + 'key' => 'siteKey3', + 'secret' => false, + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $secretVariable = $this->getVariable($siteId, $secretVariable['body']['$id']); + + $this->assertEquals(200, $secretVariable['headers']['status-code']); + $this->assertNotEmpty($secretVariable['body']['$id']); + $this->assertEquals('siteKey3', $secretVariable['body']['key']); + $this->assertEquals('', $secretVariable['body']['value']); + $this->assertEquals(true, $secretVariable['body']['secret']); + + $variables = $this->listVariables($siteId); + + $this->assertEquals(200, $variables['headers']['status-code']); + $this->assertCount(3, $variables['body']['variables']); + + $response = $this->deleteVariable($siteId, $variable['body']['$id']); + $this->assertEquals(204, $response['headers']['status-code']); + $response = $this->deleteVariable($siteId, $variable2['body']['$id']); + $this->assertEquals(204, $response['headers']['status-code']); + $response = $this->deleteVariable($siteId, $secretVariable['body']['$id']); + $this->assertEquals(204, $response['headers']['status-code']); + + $variables = $this->listVariables($siteId); + + $this->assertEquals(200, $variables['headers']['status-code']); + $this->assertCount(0, $variables['body']['variables']); + + $this->cleanupSite($siteId); + } + + // This is first Sites test with Proxy + // If this fails, it may not be related to variables; but Router flow failing + public function testVariablesE2E(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Astro site', + 'framework' => 'astro', + 'adapter' => 'ssr', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + + $secretVariable = $this->createVariable($siteId, [ + 'key' => 'name', + 'value' => 'Appwrite', + ]); + + $this->assertEquals(201, $secretVariable['headers']['status-code']); + $this->assertNotEmpty($secretVariable['body']['$id']); + $this->assertEquals('name', $secretVariable['body']['key']); + $this->assertEquals('', $secretVariable['body']['value']); + $this->assertEquals(true, $secretVariable['body']['secret']); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('astro'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $domain = $this->getSiteDomain($siteId); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Env variable is Appwrite", $response['body']); + $this->assertStringNotContainsString("Variable not found", $response['body']); + + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertGreaterThan(0, $deployment['body']['buildSize']); + $totalSize = $deployment['body']['sourceSize'] + $deployment['body']['buildSize']; + $this->assertEquals($totalSize, $deployment['body']['totalSize']); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['deploymentId']); + $this->assertNotEmpty($site['body']['deploymentCreatedAt']); + $this->assertEquals($deployment['body']['$id'], $site['body']['deploymentId']); + $this->assertEquals($deployment['body']['$createdAt'], $site['body']['deploymentCreatedAt']); + + $this->cleanupSite($siteId); + } + + public function testAdapterDetectionAstroSSR(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Astro SSR site', + 'framework' => 'astro', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + ]); + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertArrayHasKey('adapter', $site['body']); + $this->assertEmpty($site['body']['adapter']); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('astro'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId); + + $site = $this->getSite($siteId); + $this->assertEquals('ssr', $site['body']['adapter']); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + + $this->cleanupSite($siteId); + } + + public function testAdapterDetectionAstroStatic(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Astro static site', + 'framework' => 'astro', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + ]); + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertArrayHasKey('adapter', $site['body']); + $this->assertEmpty($site['body']['adapter']); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('astro-static'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEquals('static', $site['body']['adapter']); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + + $this->cleanupSite($siteId); + } + + public function testAdapterDetectionStatic(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Static site', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => '', + 'buildCommand' => '', + 'installCommand' => '', + ]); + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertArrayHasKey('adapter', $site['body']); + $this->assertEmpty($site['body']['adapter']); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEquals('static', $site['body']['adapter']); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + + $this->cleanupSite($siteId); + } + + public function testAdapterDetectionStaticSPA(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Static site', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => '', + 'buildCommand' => '', + 'installCommand' => '', + ]); + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertArrayHasKey('adapter', $site['body']); + $this->assertArrayHasKey('fallbackFile', $site['body']); + $this->assertEmpty($site['body']['adapter']); + $this->assertEmpty($site['body']['fallbackFile']); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static-single-file'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEquals('static', $site['body']['adapter']); + $this->assertEquals('main.html', $site['body']['fallbackFile']); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Main page', $response['body']); + $response = $proxyClient->call(Client::METHOD_GET, '/something'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Main page', $response['body']); + + $this->cleanupSite($siteId); + } + + public function testSettingsForRollback(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Static site', + 'framework' => 'astro', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + ]); + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEmpty($site['body']['adapter']); + $this->assertEmpty($site['body']['fallbackFile']); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $deploymentId1 = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('astro-static'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId1); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEquals('static', $site['body']['adapter']); + $this->assertEquals('index.html', $site['body']['fallbackFile']); + + $site = $this->updateSite([ + 'name' => 'SSR site', + 'framework' => 'astro', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'adapter' => 'ssr', + 'fallbackFile' => '', + '$id' => $siteId, + ]); + + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEquals('ssr', $site['body']['adapter']); + $this->assertEmpty($site['body']['fallbackFile']); + + $deploymentId2 = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('astro'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId2); + + $site = $this->getSite($siteId); + $this->assertEquals('200', $site['headers']['status-code']); + $this->assertEquals('ssr', $site['body']['adapter']); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Astro SSR", $response['body']); + $response = $proxyClient->call(Client::METHOD_GET, '/not-found'); + $this->assertEquals(404, $response['headers']['status-code']); + + $response = $this->updateSiteDeployment($siteId, $deploymentId1); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Astro static", $response['body']); + $response = $proxyClient->call(Client::METHOD_GET, '/not-found'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Astro static", $response['body']); + + $this->cleanupSite($siteId); + } + + public function testListSites(): void + { + /** + * Test for SUCCESS + */ + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $sites = $this->listSites(); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(1, $sites['body']['sites']); + $this->assertEquals($sites['body']['sites'][0]['name'], 'Test Site'); + + // Test pagination limit + $sites = $this->listSites([ + 'queries' => [ + Query::limit(1)->toString(), + ], + ]); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(1, $sites['body']['sites']); + + // Test pagination offset + $sites = $this->listSites([ + 'queries' => [ + Query::offset(1)->toString(), + ], + ]); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(0, $sites['body']['sites']); + + // Test filter enabled + $sites = $this->listSites([ + 'queries' => [ + Query::equal('enabled', [true])->toString(), + ], + ]); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(1, $sites['body']['sites']); + + // Test filter disabled + $sites = $this->listSites([ + 'queries' => [ + Query::equal('enabled', [false])->toString(), + ], + ]); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(0, $sites['body']['sites']); + + // Test search name + $sites = $this->listSites([ + 'search' => 'Test' + ]); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(1, $sites['body']['sites']); + $this->assertEquals($sites['body']['sites'][0]['$id'], $siteId); + + // Test search framework + $sites = $this->listSites([ + 'search' => 'other' + ]); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertCount(1, $sites['body']['sites']); + $this->assertEquals($sites['body']['sites'][0]['$id'], $siteId); + + /** + * Test pagination + */ + $siteId2 = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site 2', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $sites = $this->listSites(); + + $this->assertEquals($sites['headers']['status-code'], 200); + $this->assertEquals($sites['body']['total'], 2); + $this->assertIsArray($sites['body']['sites']); + $this->assertCount(2, $sites['body']['sites']); + $this->assertEquals($sites['body']['sites'][0]['name'], 'Test Site'); + $this->assertEquals($sites['body']['sites'][1]['name'], 'Test Site 2'); + + $sites1 = $this->listSites([ + 'queries' => [ + Query::cursorAfter(new Document(['$id' => $sites['body']['sites'][0]['$id']]))->toString(), + ], + ]); + + $this->assertEquals($sites1['headers']['status-code'], 200); + $this->assertCount(1, $sites1['body']['sites']); + $this->assertEquals($sites1['body']['sites'][0]['name'], 'Test Site 2'); + + $sites2 = $this->listSites([ + 'queries' => [ + Query::cursorBefore(new Document(['$id' => $sites['body']['sites'][1]['$id']]))->toString(), + ], + ]); + + $this->assertEquals($sites2['headers']['status-code'], 200); + $this->assertCount(1, $sites2['body']['sites']); + $this->assertEquals($sites2['body']['sites'][0]['name'], 'Test Site'); + + /** + * Test for FAILURE + */ + $sites = $this->listSites([ + 'queries' => [ + Query::cursorAfter(new Document(['$id' => 'unknown']))->toString(), + ], + ]); + $this->assertEquals($sites['headers']['status-code'], 400); + + $this->cleanupSite($siteId); + $this->cleanupSite($siteId2); + } + + public function testGetSite(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + /** + * Test for SUCCESS + */ + $site = $this->getSite($siteId); + + $this->assertEquals($site['headers']['status-code'], 200); + $this->assertEquals($site['body']['name'], 'Test Site'); + + /** + * Test for FAILURE + */ + $site = $this->getSite('x'); + + $this->assertEquals($site['headers']['status-code'], 404); + + $this->cleanupSite($siteId); + } + + public function testUpdateSite(): void + { + $site = $this->createSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $siteId = $site['body']['$id'] ?? ''; + + $this->assertEquals(201, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + $this->assertEquals('Test Site', $site['body']['name']); + + $site = $this->updateSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site Updated', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + '$id' => $siteId, + 'installCommand' => 'npm install' + ]); + + $dateValidator = new DatetimeValidator(); + + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + $this->assertEquals('Test Site Updated', $site['body']['name']); + $this->assertEquals(true, $dateValidator->isValid($site['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($site['body']['$updatedAt'])); + $this->assertEquals('npm install', $site['body']['installCommand']); + + $this->cleanupSite($siteId); + } + + // public function testCreateDeploymentFromCLI() { + // // TODO: Implement testCreateDeploymentFromCLI() later + // } + + public function testCreateDeployment() + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'siteId' => $siteId, + 'code' => $this->packageSite('static'), + 'activate' => true, + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + $this->assertEquals('waiting', $deployment['body']['status']); + $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); + + $deploymentIdActive = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentIdActive) { + $deployment = $this->getDeployment($siteId, $deploymentIdActive); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + + $deploymentIdInactive = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentIdInactive) { + $deployment = $this->getDeployment($siteId, $deploymentIdInactive); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $site = $this->getSite($siteId); + + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentIdActive, $site['body']['deploymentId']); + $this->assertNotEquals($deploymentIdInactive, $site['body']['deploymentId']); + + $this->cleanupDeployment($siteId, $deploymentIdActive); + $this->cleanupDeployment($siteId, $deploymentIdInactive); + $this->cleanupSite($siteId); + } + + #[Retry(count: 3)] + public function testCancelDeploymentBuild(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $deploymentId = $deployment['body']['$id'] ?? ''; + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('building', $deployment['body']['status']); + }, 100000, 250); + + $deployment = $this->cancelDeployment($siteId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('canceled', $deployment['body']['status']); + + /** + * Build worker still runs the build. + * 30s sleep gives worker enough time to finish build. + * After build finished, it should still be canceled, not ready. + */ + \sleep(30); + + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('canceled', $deployment['body']['status']); + + $this->cleanupDeployment($siteId, $deploymentId); + $this->cleanupSite($siteId); + } + + public function testUpdateDeployment(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $deploymentId = $deployment['body']['$id'] ?? ''; + $this->assertEquals(202, $deployment['headers']['status-code']); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + /** + * Test for SUCCESS + */ + $dateValidator = new DatetimeValidator(); + + $response = $this->updateSiteDeployment($siteId, $deploymentId); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals(true, $dateValidator->isValid($response['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($response['body']['$updatedAt'])); + $this->assertEquals($deploymentId, $response['body']['deploymentId']); + + $this->cleanupDeployment($siteId, $deploymentId); + $this->cleanupSite($siteId); + } + + public function testListDeployments(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $deploymentIdActive = $deployment['body']['$id'] ?? ''; + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + + $deploymentIdInactive = $deployment['body']['$id'] ?? ''; + + $deployments = $this->listDeployments($siteId); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals($deployments['body']['total'], 2); + $this->assertIsArray($deployments['body']['deployments']); + $this->assertCount(2, $deployments['body']['deployments']); + $this->assertArrayHasKey('sourceSize', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('buildSize', $deployments['body']['deployments'][0]); + + $deployments = $this->listDeployments($siteId, [ + 'queries' => [ + Query::limit(1)->toString(), + ], + ]); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(1, $deployments['body']['deployments']); + + $deployments = $this->listDeployments($siteId, [ + 'queries' => [ + Query::offset(1)->toString(), + ], + ]); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(1, $deployments['body']['deployments']); + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::equal('type', ['manual'])->toString(), + ], + ] + ); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(2, $deployments['body']['total']); + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::equal('type', ['vcs'])->toString(), + ], + ] + ); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::equal('type', ['invalid-string'])->toString(), + ], + ] + ); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::greaterThan('sourceSize', 10000)->toString(), + ], + ] + ); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::greaterThan('sourceSize', 0)->toString(), + ], + ] + ); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(2, $deployments['body']['total']); + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::greaterThan('sourceSize', -100)->toString(), + ], + ] + ); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(2, $deployments['body']['total']); + + /** + * Ensure size output and size filters work exactly. + * Prevents buildSize being counted towards deployment size + */ + $deployments = $this->listDeployments( + $siteId, + [ + Query::limit(1)->toString(), + ] + ); + + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertGreaterThanOrEqual(1, $deployments['body']['total']); + $this->assertNotEmpty($deployments['body']['deployments'][0]['$id']); + $this->assertNotEmpty($deployments['body']['deployments'][0]['sourceSize']); + + $deploymentId = $deployments['body']['deployments'][0]['$id']; + $deploymentSize = $deployments['body']['deployments'][0]['sourceSize']; + + $deployments = $this->listDeployments( + $siteId, + [ + 'queries' => [ + Query::equal('sourceSize', [$deploymentSize])->toString(), + ], + ] + ); + + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertGreaterThan(0, $deployments['body']['total']); + + $matchingDeployment = array_filter( + $deployments['body']['deployments'], + fn ($deployment) => $deployment['$id'] === $deploymentId + ); + + $this->assertNotEmpty($matchingDeployment, "Deployment with ID {$deploymentId} not found"); + + if (!empty($matchingDeployment)) { + $deployment = reset($matchingDeployment); + $this->assertEquals($deploymentSize, $deployment['sourceSize']); + } + + $this->cleanupDeployment($siteId, $deploymentIdActive); + $this->cleanupDeployment($siteId, $deploymentIdInactive); + $this->cleanupSite($siteId); + } + + public function testGetDeployment(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + /** + * Test for SUCCESS + */ + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['buildDuration']); + $this->assertNotEmpty($deployment['body']['status']); + $this->assertNotEmpty($deployment['body']['buildLogs']); + $this->assertArrayHasKey('sourceSize', $deployment['body']); + $this->assertArrayHasKey('buildSize', $deployment['body']); + + /** + * Test for FAILURE + */ + $deployment = $this->getDeployment($siteId, 'x'); + + $this->assertEquals($deployment['headers']['status-code'], 404); + + $this->cleanupDeployment($siteId, $deploymentId); + $this->cleanupSite($siteId); + } + + public function testUpdateSpecs(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + /** + * Test for SUCCESS + */ + // Change the function specs + $site = $this->updateSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + '$id' => $siteId, + 'specification' => Specification::S_1VCPU_1GB, + ]); + + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + $this->assertEquals(Specification::S_1VCPU_1GB, $site['body']['specification']); + + // Change the specs to 1vcpu 512mb + $site = $this->updateSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + '$id' => $siteId, + 'specification' => Specification::S_1VCPU_512MB, + ]); + + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + $this->assertEquals(Specification::S_1VCPU_512MB, $site['body']['specification']); + + /** + * Test for FAILURE + */ + + $site = $this->updateSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + '$id' => $siteId, + 'specification' => 's-2vcpu-512mb', // Invalid specification + ]); + + $this->assertEquals(400, $site['headers']['status-code']); + $this->assertStringStartsWith('Invalid `specification` param: Specification must be one of:', $site['body']['message']); + + $this->cleanupSite($siteId); + } + + public function testDeleteDeployment(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'false' + ]); + + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + /** + * Test for SUCCESS + */ + $deployment = $this->client->call(Client::METHOD_DELETE, '/sites/' . $siteId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $deployment['headers']['status-code']); + $this->assertEmpty($deployment['body']); + + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals(404, $deployment['headers']['status-code']); + } + + public function testDeleteSite(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $this->assertNotNull($siteId); + + $site = $this->deleteSite($siteId); + + $this->assertEquals(204, $site['headers']['status-code']); + $this->assertEmpty($site['body']); + + $function = $this->getSite($siteId); + + $this->assertEquals(404, $function['headers']['status-code']); + } + + public function testGetFrameworks(): void + { + $frameworks = $this->client->call(Client::METHOD_GET, '/sites/frameworks', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $frameworks['headers']['status-code']); + $this->assertGreaterThan(0, $frameworks['body']['total']); + + $framework = $frameworks['body']['frameworks'][0]; + + $this->assertArrayHasKey('name', $framework); + $this->assertArrayHasKey('key', $framework); + $this->assertArrayHasKey('buildRuntime', $framework); + $this->assertArrayHasKey('runtimes', $framework); + $this->assertArrayHasKey('adapters', $framework); + $this->assertIsArray($framework['adapters']); + $this->assertArrayHasKey('key', $framework['adapters'][0]); + $this->assertArrayHasKey('installCommand', $framework['adapters'][0]); + $this->assertArrayHasKey('buildCommand', $framework['adapters'][0]); + $this->assertArrayHasKey('outputDirectory', $framework['adapters'][0]); + } + + public function testSiteStatic(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Non-SPA site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static-spa'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $domain = $this->setupSiteDomain($siteId); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Index page", $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Contact page", $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/non-existing', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString("Page not found", $response['body']); // Title + $this->assertStringContainsString("Go to homepage", $response['body']); // Button + $this->assertStringContainsString("Powered by", $response['body']); // Brand + + $this->cleanupSite($siteId); + } + + public function testSiteStaticSPA(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'SPA site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '404.html', + ]); + + $this->assertNotEmpty($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static-spa'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $domain = $this->setupSiteDomain($siteId); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Index page", $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Contact page", $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/non-existing', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Customized 404 page", $response['body']); + $this->assertStringNotContainsString("Powered by", $response['body']); // Brand + + $this->cleanupSite($siteId); + } + + public function testSiteTemplate(): void + { + $template = $this->getTemplate('playground-for-astro'); + $this->assertEquals(200, $template['headers']['status-code']); + + $template = $template['body']; + + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Template site', + 'framework' => $template['frameworks'][0]['key'], + 'adapter' => $template['frameworks'][0]['adapter'], + 'buildRuntime' => $template['frameworks'][0]['buildRuntime'], + 'outputDirectory' => $template['frameworks'][0]['outputDirectory'], + 'buildCommand' => $template['frameworks'][0]['buildCommand'], + 'installCommand' => $template['frameworks'][0]['installCommand'], + 'fallbackFile' => $template['frameworks'][0]['fallbackFile'], + ]); + + $this->assertNotEmpty($siteId); + + $deployment = $this->createTemplateDeployment($siteId, [ + 'repository' => $template['providerRepositoryId'], + 'owner' => $template['providerOwner'], + 'rootDirectory' => $template['frameworks'][0]['providerRootDirectory'], + 'version' => $template['providerVersion'], + 'activate' => true + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + + $deployment = $this->getDeployment($siteId, $deployment['body']['$id']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals(0, $deployment['body']['sourceSize']); + $this->assertEquals(0, $deployment['body']['buildSize']); + $this->assertEquals(0, $deployment['body']['totalSize']); + + $this->assertEventually(function () use ($siteId) { + $site = $this->getSite($siteId); + $this->assertNotEmpty($site['body']['deploymentId']); + }, 50000, 500); + + $domain = $this->setupSiteDomain($siteId); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Astro Blog", $response['body']); + $this->assertStringContainsString("Hello, Astronaut!", $response['body']); + + $response = $proxyClient->call(Client::METHOD_GET, '/about'); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Astro Blog", $response['body']); + $this->assertStringContainsString("About Me", $response['body']); + + $deployment = $this->getDeployment($siteId, $deployment['body']['$id']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertGreaterThan(0, $deployment['body']['buildSize']); + $totalSize = $deployment['body']['sourceSize'] + $deployment['body']['buildSize']; + $this->assertEquals($totalSize, $deployment['body']['totalSize']); + + $this->cleanupSite($siteId); + } + + public function testSiteDomainReclaiming(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Startup site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $subdomain = 'startup' . \uniqid(); + $domain = $this->setupSiteDomain($siteId, $subdomain); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $domain = $this->getSiteDomain($siteId); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringNotContainsString("This domain is not connected to any Appwrite resource yet", $response['body']); + + $site2 = $this->createSite([ + 'siteId' => ID::unique(), + 'name' => 'Startup 2 site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $siteId2 = $site2['body']['$id']; + + $rule = $this->client->call(Client::METHOD_POST, '/proxy/rules/site', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'domain' => $subdomain . '.' . System::getEnv('_APP_DOMAIN_SITES', ''), + 'siteId' => $siteId2, + ]); + + $this->assertEquals(409, $rule['headers']['status-code']); + + $this->cleanupSite($siteId); + + $this->assertEventually(function () use ($domain) { + $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::equal('domain', [$domain])->toString(), + ], + ]); + + $this->assertEquals(200, $rules['headers']['status-code']); + $this->assertEquals(0, $rules['body']['total']); + }, 50000, 500); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString("This page is empty, but you can make it yours.", $response['body']); + + $site = $this->createSite([ + 'siteId' => ID::unique(), + 'name' => 'Startup 2 site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $this->assertEquals(201, $site['headers']['status-code']); + $this->assertNotEmpty($site['body']['$id']); + + $siteId = $site['body']['$id']; + + $domain = $this->setupSiteDomain($siteId, $subdomain); + + $this->assertNotEmpty($domain); + + $this->cleanupSite($site['body']['$id']); + } + + public function testSitePreviewBranding(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'A site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId); + + $siteDomain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($siteDomain); + + $deploymentDomain = $this->getDeploymentDomain($deploymentId); + $this->assertNotEmpty($deploymentDomain); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $siteDomain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Hello Appwrite", $response['body']); + $this->assertStringNotContainsString("Preview by", $response['body']); + $contentLength = $response['headers']['content-length']; + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $deploymentDomain); + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertStringContainsString('/console/auth/preview', $response['headers']['location']); + + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 900, 0); + $apiKey = $jwtObj->encode([ + 'projectCheckDisabled' => true, + 'previewAuthDisabled' => true, + ]); + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false, headers: [ + 'x-appwrite-key' => API_KEY_DYNAMIC . '_' . $apiKey, + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Hello Appwrite", $response['body']); + $this->assertStringContainsString("Preview by", $response['body']); + $this->assertGreaterThan($contentLength, $response['headers']['content-length']); + + $response = $proxyClient->call(Client::METHOD_GET, '/non-existing-path', followRedirects: false, headers: [ + 'x-appwrite-key' => API_KEY_DYNAMIC . '_' . $apiKey, + ]); + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString("Page not found", $response['body']); + $this->assertStringNotContainsString("Preview by", $response['body']); + $this->assertGreaterThan($contentLength, $response['headers']['content-length']); + + $this->cleanupSite($siteId); + } + + public function testSiteCors(): void + { + // Create rule together with site + $subdomain = 'startup' . \uniqid(); + + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Startup site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => '', + 'installCommand' => '', + 'fallbackFile' => '', + 'subdomain' => $subdomain + ]); + + $this->assertNotEmpty($siteId); + + $this->setupSiteDomain($siteId, $subdomain); + $domain = $this->getSiteDomain($siteId); + + $this->assertNotEmpty($domain); + + $url = 'http://' . $domain; + + $response = $this->client->call(Client::METHOD_GET, '/account', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'referer' => $url, + 'origin' => $url + ])); + + $this->assertEquals($url, $response['headers']['access-control-allow-origin']); + + $response = $this->client->call(Client::METHOD_GET, '/account', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'unknown', + 'referer' => $url, + 'origin' => $url + ])); + + $this->assertNotEquals($url, $response['headers']['access-control-allow-origin']); + $this->assertEquals('http://localhost', $response['headers']['access-control-allow-origin']); + + $response = $this->client->call(Client::METHOD_GET, '/account', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'referer' => 'http://unknown.com', + 'origin' => 'http://unknown.com' + ])); + + $this->assertNotEquals($url, $response['headers']['access-control-allow-origin']); + $this->assertEquals('http://localhost', $response['headers']['access-control-allow-origin']); + } + + public function testSiteDownload(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'fallbackFile' => '', + 'framework' => 'other', + 'name' => 'Test Site', + 'adapter' => 'static', + 'outputDirectory' => './', + 'providerBranch' => 'main', + 'providerRootDirectory' => './', + 'siteId' => ID::unique() + ]); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => true + ]); + + $this->assertNotEmpty($deploymentId); + + $response = $this->getDeploymentDownload($siteId, $deploymentId, 'source'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('application/gzip', $response['headers']['content-type']); + $this->assertGreaterThan(0, $response['headers']['content-length']); + $this->assertGreaterThan(0, \strlen($response['body'])); + + $deploymentMd5 = \md5($response['body']); + + $response = $this->getDeploymentDownload($siteId, $deploymentId, 'output'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('application/gzip', $response['headers']['content-type']); + $this->assertGreaterThan(0, $response['headers']['content-length']); + $this->assertGreaterThan(0, \strlen($response['body'])); + + $buildMd5 = \md5($response['body']); + + $this->assertNotEquals($deploymentMd5, $buildMd5); + + $this->cleanupSite($siteId); + } + + public function testSSRLogs(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'SSR site', + 'framework' => 'astro', + 'adapter' => 'ssr', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('astro'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $domain = $this->getSiteDomain($siteId); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/logs-inline'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Inline logs printed.", $response['body']); + + $logs = $this->listLogs($siteId, [ + Query::orderDesc('$createdAt')->toString(), + Query::limit(1)->toString(), + ]); + $this->assertEquals(200, $logs['headers']['status-code']); + $this->assertStringContainsString("GET", $logs['body']['executions'][0]['requestMethod']); + $this->assertStringContainsString("/logs-inline", $logs['body']['executions'][0]['requestPath']); + $this->assertStringContainsString("Log1", $logs['body']['executions'][0]['logs']); + $this->assertStringContainsString("Log2", $logs['body']['executions'][0]['logs']); + $this->assertStringContainsString("Error1", $logs['body']['executions'][0]['errors']); + $this->assertStringContainsString("Error2", $logs['body']['executions'][0]['errors']); + $log1Id = $logs['body']['executions'][0]['$id']; + $this->assertNotEmpty($log1Id); + + $response = $proxyClient->call(Client::METHOD_GET, '/logs-action'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Action logs printed.", $response['body']); + + $logs = $this->listLogs($siteId, [ + Query::orderDesc('$createdAt')->toString(), + Query::limit(1)->toString(), + ]); + $this->assertEquals(200, $logs['headers']['status-code']); + $this->assertStringContainsString("GET", $logs['body']['executions'][0]['requestMethod']); + $this->assertStringContainsString("/logs-action", $logs['body']['executions'][0]['requestPath']); + $this->assertStringContainsString("Log1", $logs['body']['executions'][0]['logs']); + $this->assertStringContainsString("Log2", $logs['body']['executions'][0]['logs']); + $this->assertStringContainsString("Error1", $logs['body']['executions'][0]['errors']); + $this->assertStringContainsString("Error2", $logs['body']['executions'][0]['errors']); + $log2Id = $logs['body']['executions'][0]['$id']; + $this->assertNotEmpty($log2Id); + + $this->assertNotEquals($log1Id, $log2Id); + + $site = $this->updateSite( + [ + '$id' => $siteId, + 'name' => 'SSR site', + 'framework' => 'astro', + 'adapter' => 'ssr', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + 'fallbackFile' => '', + 'logging' => false // set logging to false + ] + ); + $this->assertEquals(200, $site['headers']['status-code']); + $response = $proxyClient->call(Client::METHOD_GET, '/logs-inline'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Inline logs printed.", $response['body']); + + $logs = $this->listLogs($siteId, [ + Query::orderDesc('$createdAt')->toString(), + Query::limit(1)->toString(), + ]); + $this->assertEquals(200, $logs['headers']['status-code']); + $this->assertEquals("GET", $logs['body']['executions'][0]['requestMethod']); + $this->assertEquals("/logs-inline", $logs['body']['executions'][0]['requestPath']); + $this->assertEmpty($logs['body']['executions'][0]['logs']); + $this->assertEmpty($logs['body']['executions'][0]['logs']); + $this->assertEmpty($logs['body']['executions'][0]['errors']); + $this->assertEmpty($logs['body']['executions'][0]['errors']); + $log1Id = $logs['body']['executions'][0]['$id']; + $this->assertNotEmpty($log1Id); + + $response = $proxyClient->call(Client::METHOD_GET, '/logs-action'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Action logs printed.", $response['body']); + + $logs = $this->listLogs($siteId, [ + Query::orderDesc('$createdAt')->toString(), + Query::limit(1)->toString(), + ]); + $this->assertEquals(200, $logs['headers']['status-code']); + $this->assertEquals("GET", $logs['body']['executions'][0]['requestMethod']); + $this->assertEquals("/logs-action", $logs['body']['executions'][0]['requestPath']); + $this->assertEmpty($logs['body']['executions'][0]['logs']); + $this->assertEmpty($logs['body']['executions'][0]['logs']); + $this->assertEmpty($logs['body']['executions'][0]['errors']); + $this->assertEmpty($logs['body']['executions'][0]['errors']); + $log2Id = $logs['body']['executions'][0]['$id']; + $this->assertNotEmpty($log2Id); + + $this->cleanupSite($siteId); + } + + public function testDuplicateDeployment(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'framework' => 'other', + 'name' => 'Duplicate deployment Site', + 'adapter' => 'static', + 'fallbackFile' => '404.html', + 'siteId' => ID::unique() + ]); + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $deploymentId1 = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static-spa'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId1); + + $response = $proxyClient->call(Client::METHOD_GET, '/not-found'); + $this->assertStringContainsString("Customized 404 page", $response['body']); + + $site = $this->updateSite([ + '$id' => $siteId, + 'buildRuntime' => 'node-22', + 'framework' => 'other', + 'name' => 'Duplicate deployment Site', + 'adapter' => 'static', + 'fallbackFile' => 'index.html', + ]); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals('index.html', $site['body']['fallbackFile']); + + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments/duplicate', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-sdk-language' => 'cli' + ], $this->getHeaders()), [ + 'deploymentId' => $deploymentId1, + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId2 = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId2); + + $deployment = $this->getDeployment($siteId, $deploymentId2); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertEquals(0, $deployment['body']['buildSize']); + $this->assertEquals($deployment['body']['sourceSize'], $deployment['body']['totalSize']); + $this->assertEquals('cli', $deployment['body']['type']); + + // create another duplicate deployment with manual trigger + $deployment = $this->client->call(Client::METHOD_POST, '/sites/' . $siteId . '/deployments/duplicate', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'deploymentId' => $deploymentId1, + ]); + + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId2 = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId2); + + $deployment = $this->getDeployment($siteId, $deploymentId2); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertEquals(0, $deployment['body']['buildSize']); + $this->assertEquals($deployment['body']['sourceSize'], $deployment['body']['totalSize']); + $this->assertEquals('manual', $deployment['body']['type']); + + $this->assertEventually(function () use ($siteId, $deploymentId2) { + $site = $this->getSite($siteId); + $this->assertEquals($deploymentId2, $site['body']['deploymentId']); + }, 50000, 500); + + $response = $proxyClient->call(Client::METHOD_GET, '/not-found'); + $this->assertStringContainsString("Index page", $response['body']); + + $deployment = $this->getDeployment($siteId, $deploymentId2); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['sourceSize']); + $this->assertGreaterThan(0, $deployment['body']['buildSize']); + $totalSize = $deployment['body']['sourceSize'] + $deployment['body']['buildSize']; + $this->assertEquals($totalSize, $deployment['body']['totalSize']); + + $this->cleanupSite($siteId); + } + + public function testUpdateDeploymentStatus(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'framework' => 'other', + 'name' => 'Activate test Site', + 'siteId' => ID::unique(), + 'adapter' => 'static', + ]); + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertArrayHasKey('latestDeploymentId', $site['body']); + $this->assertArrayHasKey('latestDeploymentCreatedAt', $site['body']); + $this->assertArrayHasKey('latestDeploymentStatus', $site['body']); + $this->assertEmpty($site['body']['latestDeploymentId']); + $this->assertEmpty($site['body']['latestDeploymentCreatedAt']); + $this->assertEmpty($site['body']['latestDeploymentStatus']); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $deploymentId1 = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId1); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentId1, $site['body']['latestDeploymentId']); + $this->assertEquals('ready', $site['body']['latestDeploymentStatus']); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Hello Appwrite', $response['body']); + + $deploymentId2 = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static-spa'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId2); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentId2, $site['body']['latestDeploymentId']); + $this->assertEquals('ready', $site['body']['latestDeploymentStatus']); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Index page', $response['body']); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentId2, $site['body']['deploymentId']); + $this->assertEquals($deploymentId2, $site['body']['latestDeploymentId']); + $this->assertEquals('ready', $site['body']['latestDeploymentStatus']); + + $site = $this->updateSiteDeployment($siteId, $deploymentId1); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentId1, $site['body']['deploymentId']); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentId1, $site['body']['deploymentId']); + $this->assertEquals($deploymentId2, $site['body']['latestDeploymentId']); + $this->assertEquals('ready', $site['body']['latestDeploymentStatus']); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Hello Appwrite', $response['body']); + + $deployment = $this->deleteDeployment($siteId, $deploymentId2); + $this->assertEquals(204, $deployment['headers']['status-code']); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertEquals($deploymentId1, $site['body']['latestDeploymentId']); + $this->assertEquals('ready', $site['body']['latestDeploymentStatus']); + + $this->cleanupSite($siteId); + } + + public function testPreviewDomain(): void + { + $siteId = $this->setupSite([ + 'buildRuntime' => 'node-22', + 'framework' => 'other', + 'name' => 'Authorized preview site', + 'siteId' => ID::unique(), + 'adapter' => 'static', + ]); + $this->assertNotEmpty($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => true + ]); + $this->assertNotEmpty($deploymentId); + + $domain = $this->getDeploymentDomain($deploymentId); + $this->assertNotEmpty($domain); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertStringContainsString('/console/auth/preview', $response['headers']['location']); + $this->assertStringContainsString('projectId=' . $this->getProject()['$id'], $response['headers']['location']); + $this->assertStringContainsString('origin=', $response['headers']['location']); + $this->assertStringContainsString('path=%2Fcontact', $response['headers']['location']); + + $session = $this->client->call(Client::METHOD_POST, '/account/sessions/email', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + ]), [ + 'email' => $this->getRoot()['email'], + 'password' => 'password' + ]); + $this->assertEquals(201, $session['headers']['status-code']); + $this->assertNotEmpty($session['cookies']['a_session_console']); + $this->assertNotEmpty($session['body']['$id']); + $cookie = 'a_session_console=' . $session['cookies']['a_session_console']; + + $jwt = $this->client->call(Client::METHOD_POST, '/account/jwts', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => $cookie, + 'x-appwrite-project' => 'console', + ]), []); + $this->assertEquals(201, $jwt['headers']['status-code']); + $this->assertNotEmpty($jwt['body']['jwt']); + + $response = $proxyClient->call(Client::METHOD_GET, '/_appwrite/authorize', params: [ + 'jwt' => $jwt['body']['jwt'], + 'path' => '/contact' + ], followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertArrayHasKey('set-cookie', $response['headers']); + $this->assertStringContainsString('a_jwt_console=', $response['headers']['set-cookie']); + $this->assertStringContainsString('httponly', $response['headers']['set-cookie']); + $this->assertStringContainsString('domain=' . $domain, $response['headers']['set-cookie']); + $this->assertStringContainsString('path=/', $response['headers']['set-cookie']); + $this->assertNotEmpty($response['cookies']['a_jwt_console']); + $this->assertEquals($jwt['body']['jwt'], $response['cookies']['a_jwt_console']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', headers: [ + 'cookie' => 'a_jwt_console=' . $jwt['body']['jwt'] + ], followRedirects: false); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Contact page", $response['body']); + $this->assertStringContainsString("Preview by", $response['body']); + + // Failure: Session missing (old bad, new ok) + $session = $this->client->call(Client::METHOD_DELETE, '/account/sessions/current', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => $cookie, + 'x-appwrite-project' => 'console', + ]), []); + $this->assertEquals(204, $session['headers']['status-code']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', headers: [ + 'cookie' => 'a_jwt_console=' . $jwt['body']['jwt'] + ], followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertStringContainsString('/console/auth/preview', $response['headers']['location']); + + // Failure: User missing + $cookie = 'a_session_console=' .$this->getRoot()['session']; + $jwt = $this->client->call(Client::METHOD_POST, '/account/jwts', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => $cookie, + 'x-appwrite-project' => 'console', + ]), []); + $this->assertEquals(201, $jwt['headers']['status-code']); + $this->assertNotEmpty($jwt['body']['jwt']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', headers: [ + 'cookie' => 'a_jwt_console=' . $jwt['body']['jwt'] + ], followRedirects: false); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString("Contact page", $response['body']); + $this->assertStringContainsString("Preview by", $response['body']); + + $user = $this->client->call(Client::METHOD_PATCH, '/account/status', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => $cookie, + 'x-appwrite-project' => 'console', + ]), []); + $this->assertEquals(200, $user['headers']['status-code']); + $this->assertFalse($user['body']['status']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', headers: [ + 'cookie' => 'a_jwt_console=' . $jwt['body']['jwt'] + ], followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertStringContainsString('/console/auth/preview', $response['headers']['location']); + + // Failure: Membership missing + $email = \uniqid() . 'newuser@appwrite.io'; + $user = $this->client->call(Client::METHOD_POST, '/account', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + ], [ + 'userId' => ID::unique(), + 'email' => $email, + 'password' => 'password' + ]); + $this->assertEquals(201, $user['headers']['status-code']); + + $session = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + ], [ + 'email' => $email, + 'password' => 'password', + ]); + $this->assertEquals(201, $session['headers']['status-code']); + $this->assertNotEmpty($session['cookies']['a_session_console']); + $cookie = 'a_session_console=' . $session['cookies']['a_session_console']; + + $jwt = $this->client->call(Client::METHOD_POST, '/account/jwts', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'cookie' => $cookie, + 'x-appwrite-project' => 'console', + ]), []); + $this->assertEquals(201, $jwt['headers']['status-code']); + $this->assertNotEmpty($jwt['body']['jwt']); + + $response = $proxyClient->call(Client::METHOD_GET, '/contact', headers: [ + 'cookie' => 'a_jwt_console=' . $jwt['body']['jwt'] + ], followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + $this->assertStringContainsString('/console/auth/preview', $response['headers']['location']); + + $this->cleanupSite($siteId); + } + + public function testInvalidSSRSource(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Astro SSR Site', + 'framework' => 'astro', + 'adapter' => 'ssr', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './dist', + 'buildCommand' => 'npm run build', + 'installCommand' => 'npm install', + ]); + + $this->assertNotEmpty($siteId); + + $site = $this->getSite($siteId); + $this->assertEquals(200, $site['headers']['status-code']); + $this->assertArrayHasKey('adapter', $site['body']); + $this->assertEquals('ssr', $site['body']['adapter']); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('astro-static'), + 'activate' => true + ]); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals('failed', $deployment['body']['status'], 'Deployment status is failed, deployment: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $this->cleanupSite($siteId); + } + + public function testDomainForFailedDeloyment(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Test Site', + 'framework' => 'astro', + 'buildRuntime' => 'node-22', + 'buildCommand' => 'cd random' + ]); + + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('astro'), + 'activate' => true + ]); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals('failed', $deployment['body']['status'], json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertStringContainsString('This page is empty, activate a deployment to make it live.', $response['body']); + + $this->cleanupSite($siteId); + } + + public function testPermanentRedirect(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Sub project site', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './' + ]); + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + $this->assertNotEmpty($domain); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('sub-directories'), + 'activate' => 'true' + ]); + $this->assertNotEmpty($deploymentId); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertStringContainsString('Sub-directory index', $response['body']); + $response1 = $proxyClient->call(Client::METHOD_GET, '/project1'); + $this->assertEquals(200, $response1['headers']['status-code']); + $this->assertStringContainsString('Sub-directory project1', $response1['body']); + $response2 = $proxyClient->call(Client::METHOD_GET, '/project1/'); + $this->assertEquals(200, $response2['headers']['status-code']); + $this->assertStringContainsString('Sub-directory project1', $response2['body']); + $this->cleanupSite($siteId); + } + + public function testDeploymentCommandEscaping(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'A site', + 'framework' => 'other', + 'adapter' => 'static', + 'buildRuntime' => 'static-1', + 'outputDirectory' => './', + 'buildCommand' => "echo 'Hello two'", + 'installCommand' => 'echo "Hello one"', + 'fallbackFile' => '', + ]); + + $this->assertNotEmpty($siteId); + + $deploymentId = $this->setupDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'true' + ]); + + $this->assertNotEmpty($deploymentId); + + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertStringContainsString('Hello one', $deployment['body']['buildLogs']); + $this->assertStringContainsString('Hello two', $deployment['body']['buildLogs']); + + $this->cleanupSite($siteId); + } + + #[Retry(count: 3)] + public function testErrorPages(): void + { + // non-existent domain page + $domain = 'non-existent-page.sites.localhost'; + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $domain); + + $response = $proxyClient->call(Client::METHOD_GET, '/'); + + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString('Nothing is here yet', $response['body']); + $this->assertStringContainsString('Start with this domain', $response['body']); + + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Static site', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './', + 'buildCommand' => 'sleep 5 && cd non-existing-directory', + ]); + $this->assertNotEmpty($siteId); + + $domain = $this->setupSiteDomain($siteId); + + // test canceled deployment error page + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => 'true' + ]); + $deploymentId = $deployment['body']['$id'] ?? ''; + $this->assertEquals(202, $deployment['headers']['status-code']); + $this->assertNotEmpty($deployment['body']['$id']); + + $deployment = $this->cancelDeployment($siteId, $deploymentId); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('canceled', $deployment['body']['status']); + + $deploymentDomain = $this->getDeploymentDomain($deploymentId); + $this->assertNotEmpty($deploymentDomain); + + $proxyClient = new Client(); + $proxyClient->setEndpoint('http://' . $deploymentDomain); + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + + $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 900, 0); + $apiKey = $jwtObj->encode([ + 'projectCheckDisabled' => true, + 'previewAuthDisabled' => true, + ]); + + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false, headers: [ + 'x-appwrite-key' => API_KEY_DYNAMIC . '_' . $apiKey, + ]); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertStringContainsString("Deployment build canceled", $response['body']); + $this->assertStringContainsString("View deployments", $response['body']); + + // check site domain for no active deployments + $proxyClient->setEndpoint('http://' . $domain); + $response = $proxyClient->call(Client::METHOD_GET, '/'); + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertStringContainsString('No active deployments', $response['body']); + $this->assertStringContainsString('View deployments', $response['body']); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('astro'), + 'activate' => 'true' + ]); + + $deploymentId = $deployment['body']['$id'] ?? ''; + $this->assertNotEmpty($deploymentId); + + $deploymentDomain = $this->getDeploymentDomain($deploymentId); + $this->assertNotEmpty($deploymentDomain); + + $proxyClient->setEndpoint('http://' . $deploymentDomain); + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false); + $this->assertEquals(301, $response['headers']['status-code']); + + // deployment is still building error page + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false, headers: [ + 'x-appwrite-key' => API_KEY_DYNAMIC . '_' . $apiKey, + ]); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertStringContainsString("Deployment is still building", $response['body']); + $this->assertStringContainsString("View logs", $response['body']); + $this->assertStringContainsString("Reload", $response['body']); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + + $this->assertEquals('failed', $deployment['body']['status']); + }, 50000, 500); + + // deployment failed error page + $response = $proxyClient->call(Client::METHOD_GET, '/', followRedirects: false, headers: [ + 'x-appwrite-key' => API_KEY_DYNAMIC . '_' . $apiKey, + ]); + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertStringContainsString("Deployment build failed", $response['body']); + $this->assertStringContainsString("View logs", $response['body']); + + $this->cleanupSite($siteId); + } + + public function testEmptySiteSource(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Empty source site', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './', + ]); + $this->assertNotEmpty($siteId); + + // Prepare empty site folder + // We cant use .gitkeep, because that would make deployment non-empty + $stdout = ''; + $stderr = ''; + $folderPath = realpath(__DIR__ . '/../../../resources/sites') . '/empty'; + Console::execute("mkdir -p $folderPath", '', $stdout, $stderr); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('empty'), + 'activate' => true + ]); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals('failed', $deployment['body']['status'], 'Deployment status does not match: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $this->assertStringContainsString('Error:', $deployment['body']['buildLogs'], 'Deployment logs do not match: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $this->cleanupSite($siteId); + } + + public function testOutputDirectoryEmpty(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Empty output directory', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './empty-directory', + 'buildCommand' => 'mkdir -p ./empty-directory' + ]); + $this->assertNotEmpty($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => true + ]); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals('failed', $deployment['body']['status'], 'Deployment status does not match: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $this->assertStringContainsString('Error:', $deployment['body']['buildLogs'], 'Deployment logs do not match: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $this->cleanupSite($siteId); + } + + public function testOutputDirectoryMissing(): void + { + $siteId = $this->setupSite([ + 'siteId' => ID::unique(), + 'name' => 'Missing output directory', + 'framework' => 'other', + 'buildRuntime' => 'node-22', + 'outputDirectory' => './non-existing-directory', + ]); + $this->assertNotEmpty($siteId); + + $deployment = $this->createDeployment($siteId, [ + 'code' => $this->packageSite('static'), + 'activate' => true + ]); + $this->assertEquals(202, $deployment['headers']['status-code']); + + $deploymentId = $deployment['body']['$id']; + $this->assertNotEmpty($deploymentId); + + $this->assertEventually(function () use ($siteId, $deploymentId) { + $deployment = $this->getDeployment($siteId, $deploymentId); + $this->assertEquals('failed', $deployment['body']['status'], 'Deployment status does not match: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $this->assertStringContainsString('Error:', $deployment['body']['buildLogs'], 'Deployment logs do not match: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 100000, 500); + + $this->cleanupSite($siteId); + } +} diff --git a/tests/e2e/Services/Storage/StorageBase.php b/tests/e2e/Services/Storage/StorageBase.php index d2d75409b8b..2b2c8842834 100644 --- a/tests/e2e/Services/Storage/StorageBase.php +++ b/tests/e2e/Services/Storage/StorageBase.php @@ -13,6 +13,9 @@ trait StorageBase { + /** + * @group fileTokens + */ public function testCreateBucketFile(): array { /** diff --git a/tests/e2e/Services/Storage/StorageConsoleClientTest.php b/tests/e2e/Services/Storage/StorageConsoleClientTest.php index 5b6731b35ed..bbb14fb1369 100644 --- a/tests/e2e/Services/Storage/StorageConsoleClientTest.php +++ b/tests/e2e/Services/Storage/StorageConsoleClientTest.php @@ -98,11 +98,13 @@ public function testGetStorageBucketUsage() ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(5, count($response['body'])); + $this->assertEquals(7, count($response['body'])); $this->assertEquals('24h', $response['body']['range']); $this->assertIsNumeric($response['body']['filesTotal']); $this->assertIsNumeric($response['body']['filesStorageTotal']); $this->assertIsArray($response['body']['files']); $this->assertIsArray($response['body']['storage']); + $this->assertIsArray($response['body']['imageTransformations']); + $this->assertIsNumeric($response['body']['imageTransformationsTotal']); } } diff --git a/tests/e2e/Services/Teams/TeamsBase.php b/tests/e2e/Services/Teams/TeamsBase.php index 2328e4cdbf2..80ac1621ee9 100644 --- a/tests/e2e/Services/Teams/TeamsBase.php +++ b/tests/e2e/Services/Teams/TeamsBase.php @@ -37,6 +37,37 @@ public function testCreateTeam(): array $teamUid = $response1['body']['$id']; $teamName = $response1['body']['name']; + /** + * Test: Attempt to downgrade the only OWNER in an organization (should fail) + */ + if ($this->getProject()['$id'] === 'console') { + // Step 1: Fetch all team memberships — only one exists at this point + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::limit(1)->toString(), + ], + ]); + + // Step 2: Extract the membership ID of the only member (also the only OWNER) + $membershipID = $response['body']['memberships'][0]['$id']; + + // Step 3: Attempt to downgrade the member's role to 'developer' + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipID, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => ['developer'] + ]); + + // Step 4: Assert failure — cannot remove the only OWNER from a team + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals('general_argument_invalid', $response['body']['type']); + $this->assertEquals('There must be at least one owner in the organization.', $response['body']['message']); + } + $teamId = ID::unique(); $response2 = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Teams/TeamsBaseClient.php b/tests/e2e/Services/Teams/TeamsBaseClient.php index 03dffac6aaf..1858fd50ad6 100644 --- a/tests/e2e/Services/Teams/TeamsBaseClient.php +++ b/tests/e2e/Services/Teams/TeamsBaseClient.php @@ -30,8 +30,8 @@ public function testGetTeamMemberships($data): array $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]['$id']); $this->assertFalse($response['body']['memberships'][0]['mfa']); - $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); - $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('userName', $response['body']['memberships'][0]); + $this->assertArrayHasKey('userEmail', $response['body']['memberships'][0]); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); $this->assertContains('owner', $response['body']['memberships'][0]['roles']); $this->assertContains('player', $response['body']['memberships'][0]['roles']); @@ -96,8 +96,8 @@ public function testGetTeamMemberships($data): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]); - $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); - $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('userName', $response['body']['memberships'][0]); + $this->assertArrayHasKey('userEmail', $response['body']['memberships'][0]); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); $this->assertContains('owner', $response['body']['memberships'][0]['roles']); $this->assertContains('player', $response['body']['memberships'][0]['roles']); @@ -112,8 +112,8 @@ public function testGetTeamMemberships($data): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]); - $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); - $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('userName', $response['body']['memberships'][0]); + $this->assertArrayHasKey('userEmail', $response['body']['memberships'][0]); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); $this->assertContains('owner', $response['body']['memberships'][0]['roles']); $this->assertContains('player', $response['body']['memberships'][0]['roles']); @@ -157,11 +157,11 @@ public function testGetTeamMembership($data): void $this->assertNotEmpty($response['body']['$id']); $this->assertFalse($response['body']['mfa']); $this->assertNotEmpty($response['body']['userId']); - $this->assertNotEmpty($response['body']['userName']); - $this->assertNotEmpty($response['body']['userEmail']); + $this->assertArrayHasKey('userName', $response['body']); + $this->assertArrayHasKey('userEmail', $response['body']); $this->assertNotEmpty($response['body']['teamId']); $this->assertNotEmpty($response['body']['teamName']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(false, (new DatetimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(false, $response['body']['confirm']); @@ -203,7 +203,7 @@ public function testCreateTeamMembership($data): array ], $this->getHeaders()), [ 'email' => $email, 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -214,7 +214,7 @@ public function testCreateTeamMembership($data): array $this->assertEquals($email, $response['body']['userEmail']); $this->assertNotEmpty($response['body']['teamId']); $this->assertNotEmpty($response['body']['teamName']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(false, (new DatetimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(false, $response['body']['confirm']); @@ -223,10 +223,8 @@ public function testCreateTeamMembership($data): array $this->assertEquals($email, $lastEmail['to'][0]['address']); $this->assertEquals($name, $lastEmail['to'][0]['name']); $this->assertEquals('Invitation to ' . $teamName . ' Team at ' . $this->getProject()['name'], $lastEmail['subject']); - - $secret = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); - $membershipUid = substr($lastEmail['text'], strpos($lastEmail['text'], '?membershipId=', 0) + 14, 20); - $userUid = substr($lastEmail['text'], strpos($lastEmail['text'], '&userId=', 0) + 8, 20); + $this->assertEquals($response['body']['teamId'], substr($lastEmail['text'], strpos($lastEmail['text'], '&teamId=', 0) + 8, 20)); + $this->assertEquals($teamName, substr($lastEmail['text'], strpos($lastEmail['text'], '&teamName=', 0) + 10, 7)); /** * Test with UserId @@ -255,7 +253,7 @@ public function testCreateTeamMembership($data): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'userId' => 'abcdefdg', - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -270,7 +268,7 @@ public function testCreateTeamMembership($data): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'userId' => $userId, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -281,7 +279,7 @@ public function testCreateTeamMembership($data): array $this->assertEquals($secondEmail, $response['body']['userEmail']); $this->assertNotEmpty($response['body']['teamId']); $this->assertNotEmpty($response['body']['teamName']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(false, (new DateTimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(false, $response['body']['confirm']); @@ -290,22 +288,30 @@ public function testCreateTeamMembership($data): array $this->assertEquals($secondEmail, $lastEmail['to'][0]['address']); $this->assertEquals($secondName, $lastEmail['to'][0]['name']); $this->assertEquals('Invitation to ' . $teamName . ' Team at ' . $this->getProject()['name'], $lastEmail['subject']); + $this->assertEquals($response['body']['teamId'], substr($lastEmail['text'], strpos($lastEmail['text'], '&teamId=', 0) + 8, 20)); + $this->assertEquals($teamName, substr($lastEmail['text'], strpos($lastEmail['text'], '&teamName=', 0) + 10, 7)); - /** - * Test for FAILURE - */ - + // test for resending invitation $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'email' => $email, 'name' => 'Friend User', - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); - $this->assertEquals(409, $response['headers']['status-code']); + $this->assertEquals(201, $response['headers']['status-code']); + + $lastEmail = $this->getLastEmail(); + $membershipUid = substr($lastEmail['text'], strpos($lastEmail['text'], '?membershipId=', 0) + 14, 20); + $userUid = substr($lastEmail['text'], strpos($lastEmail['text'], '&userId=', 0) + 8, 20); + $secret = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); + + /** + * Test for FAILURE + */ $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ 'content-type' => 'application/json', @@ -313,7 +319,7 @@ public function testCreateTeamMembership($data): array ], $this->getHeaders()), [ 'email' => 'dasdkaskdjaskdjasjkd', 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -331,18 +337,6 @@ public function testCreateTeamMembership($data): array $this->assertEquals(400, $response['headers']['status-code']); - $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'email' => $email, - 'name' => $name, - 'roles' => ['admin', 'editor'], - 'url' => 'http://example.com/join-us#title' // bad url - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - return [ 'teamUid' => $teamUid, 'teamName' => $teamName, @@ -413,7 +407,7 @@ public function testUpdateTeamMembership($data): array $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['userId']); $this->assertNotEmpty($response['body']['teamId']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['joined'])); $this->assertEquals(true, $response['body']['confirm']); $session = $response['cookies']['a_session_' . $this->getProject()['$id']]; @@ -559,6 +553,76 @@ public function testUpdateTeamMembership($data): array return $data; } + + /** + * @depends testCreateTeam + */ + public function testUpdateMembershipWithSession(array $data): void + { + $teamUid = $data['teamUid'] ?? ''; + + // create user + $response = $this->client->call(Client::METHOD_POST, '/account', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], [ + 'userId' => 'unique()', + 'email' => uniqid() . 'foe@localhost.test', + 'password' => 'password', + 'name' => 'test' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $user = $response['body']; + + // create session + $response = $this->client->call(Client::METHOD_POST, '/account/sessions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], [ + 'email' => $user['email'], + 'password' => 'password' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + $session = $response['cookies']['a_session_' . $this->getProject()['$id']]; + + $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'email' => $user['email'], + 'roles' => ['developer'], + 'url' => 'http://localhost:5000/join-us#title' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + $lastEmail = $this->getLastEmail(); + + $secret = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); + $membershipUid = substr($lastEmail['text'], strpos($lastEmail['text'], '?membershipId=', 0) + 14, 20); + $userUid = substr($lastEmail['text'], strpos($lastEmail['text'], '&userId=', 0) + 8, 20); + + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid . '/status', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session, + ], [ + 'secret' => $secret, + 'userId' => $userUid, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertNotEmpty($response['body']['userId']); + $this->assertNotEmpty($response['body']['teamId']); + $this->assertCount(1, $response['body']['roles']); + $this->assertEmpty($response['cookies']); + } + /** * @depends testUpdateTeamMembership */ @@ -571,7 +635,7 @@ public function testUpdateTeamMembershipRoles($data): array /** * Test for SUCCESS */ - $roles = ['admin', 'editor', 'uncle']; + $roles = ['editor', 'uncle']; $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid, array_merge([ 'origin' => 'http://localhost', 'content-type' => 'application/json', @@ -587,7 +651,6 @@ public function testUpdateTeamMembershipRoles($data): array $this->assertCount(count($roles), $response['body']['roles']); $this->assertEquals($roles[0], $response['body']['roles'][0]); $this->assertEquals($roles[1], $response['body']['roles'][1]); - $this->assertEquals($roles[2], $response['body']['roles'][2]); /** * Test for unknown team @@ -649,7 +712,7 @@ public function testDeleteTeamMembership($data): array ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(3, $response['body']['total']); + $this->assertEquals(4, $response['body']['total']); $ownerMembershipUid = $response['body']['memberships'][0]['$id']; @@ -704,7 +767,7 @@ public function testDeleteTeamMembership($data): array ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(2, $response['body']['total']); + $this->assertEquals(3, $response['body']['total']); /** * Test for when the owner tries to delete their membership diff --git a/tests/e2e/Services/Teams/TeamsBaseServer.php b/tests/e2e/Services/Teams/TeamsBaseServer.php index 4e9d0839ab1..0c6d85e276f 100644 --- a/tests/e2e/Services/Teams/TeamsBaseServer.php +++ b/tests/e2e/Services/Teams/TeamsBaseServer.php @@ -29,7 +29,7 @@ public function testGetTeamMemberships($data): array * Test for FAILURE */ - return []; + return $data; } /** @@ -60,6 +60,67 @@ public function testGetTeamMembership($data): void $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(true, $response['body']['confirm']); + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => false, + 'userEmail' => false, + 'mfa' => false, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are not hidden, as we are on console + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertNotEmpty($response['body']['memberships'][0]['userName']); + $this->assertNotEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + + /** + * Update project settings to show sensitive fields + */ + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => true, + 'userEmail' => true, + 'mfa' => true, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are shown + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertNotEmpty($response['body']['memberships'][0]['userName']); + $this->assertNotEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + /** * Test for FAILURE */ @@ -114,16 +175,6 @@ public function testCreateTeamMembership($data): array $userUid = $response['body']['userId']; $membershipUid = $response['body']['$id']; - // $response = $this->client->call(Client::METHOD_GET, '/users/'.$userUid, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), []); - - // $this->assertEquals($userUid, $response['body']['$id']); - // $this->assertContains('team:'.$teamUid, $response['body']['roles']); - // $this->assertContains('team:'.$teamUid.'/admin', $response['body']['roles']); - // $this->assertContains('team:'.$teamUid.'/editor', $response['body']['roles']); - /** * Test for FAILURE */ @@ -138,7 +189,7 @@ public function testCreateTeamMembership($data): array 'url' => 'http://localhost:5000/join-us#title' ]); - $this->assertEquals(409, $response['headers']['status-code']); + $this->assertEquals(409, $response['headers']['status-code']); // membership already created $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Teams/TeamsConsoleClientTest.php b/tests/e2e/Services/Teams/TeamsConsoleClientTest.php index 61d0f6a027c..f096831a761 100644 --- a/tests/e2e/Services/Teams/TeamsConsoleClientTest.php +++ b/tests/e2e/Services/Teams/TeamsConsoleClientTest.php @@ -14,6 +14,30 @@ class TeamsConsoleClientTest extends Scope use ProjectConsole; use SideClient; + /** + * @depends testCreateTeam + */ + public function testTeamCreateMembershipConsole($data): array + { + $teamUid = $data['teamUid'] ?? ''; + $email = uniqid() . 'friend@localhost.test'; + $name = 'Friend User'; + + $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'email' => $email, + 'name' => $name, + 'roles' => ['developer'], + 'url' => 'http://example.com/join-us#title' // bad url + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + return $data; + } + /** * @depends testCreateTeam */ @@ -28,12 +52,13 @@ public function testTeamMembershipPerms($data): array // Create a user account before we create a invite so we can check if the user has permissions when it shouldn't $user = $this->client->call(Client::METHOD_POST, '/account', [ 'content-type' => 'application/json', - 'x-appwrite-project' => 'console'], [ - 'userId' => 'unique()', - 'email' => $email, - 'password' => $password, - 'name' => $name, - ], false); + 'x-appwrite-project' => 'console' + ], [ + 'userId' => 'unique()', + 'email' => $email, + 'password' => $password, + 'name' => $name, + ], false); $this->assertEquals(201, $user['headers']['status-code']); @@ -46,7 +71,7 @@ public function testTeamMembershipPerms($data): array ], $this->getHeaders()), [ 'email' => $email, 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -76,4 +101,71 @@ public function testTeamMembershipPerms($data): array return $data; } + + /** @depends testUpdateTeamMembership */ + public function testUpdateTeamMembershipRoles($data): array + { + $teamUid = $data['teamUid'] ?? ''; + $membershipUid = $data['membershipUid'] ?? ''; + $session = $data['session'] ?? ''; + + /** + * Test for FAILURE + */ + $roles = ['developer']; + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid, array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => $roles + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals('There must be at least one owner in the organization.', $response['body']['message']); + + /** + * Test for unknown team + */ + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . 'abc' . '/memberships/' . $membershipUid, array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => $roles + ]); + + $this->assertEquals(404, $response['headers']['status-code']); + + /** + * Test for unknown membership ID + */ + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . 'abc', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => $roles + ]); + + $this->assertEquals(404, $response['headers']['status-code']); + + + /** + * Test for when a user other than the owner tries to update membership + */ + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid, [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session, + ], [ + 'roles' => $roles + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + $this->assertEquals('User is not allowed to modify roles', $response['body']['message']); + + return $data; + } } diff --git a/tests/e2e/Services/Teams/TeamsCustomClientTest.php b/tests/e2e/Services/Teams/TeamsCustomClientTest.php index 1de22f743fd..7286bb0827a 100644 --- a/tests/e2e/Services/Teams/TeamsCustomClientTest.php +++ b/tests/e2e/Services/Teams/TeamsCustomClientTest.php @@ -14,6 +14,109 @@ class TeamsCustomClientTest extends Scope use ProjectCustom; use SideClient; + /** + * @depends testGetTeamMemberships + */ + public function testGetMembershipPrivacy($data) + { + $teamUid = $data['teamUid'] ?? ''; + + $projectId = $this->getProject()['$id']; + + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => false, + 'userEmail' => false, + 'mfa' => false, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are hidden + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are not present + $this->assertEmpty($response['body']['memberships'][0]['userName']); + $this->assertEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertFalse($response['body']['memberships'][0]['mfa']); + + /** + * Update project settings to show sensitive fields + */ + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => true, + 'userEmail' => true, + 'mfa' => true, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are shown + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertNotEmpty($response['body']['memberships'][0]['userName']); + $this->assertNotEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + + /** + * Update project settings to show only MFA + */ + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => false, + 'userEmail' => false, + 'mfa' => true, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are not shown + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertEmpty($response['body']['memberships'][0]['userName']); + $this->assertEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + } + /** * @depends testUpdateTeamMembership */ diff --git a/tests/e2e/Services/Tokens/TokensBase.php b/tests/e2e/Services/Tokens/TokensBase.php new file mode 100644 index 00000000000..af93f5fc737 --- /dev/null +++ b/tests/e2e/Services/Tokens/TokensBase.php @@ -0,0 +1,278 @@ +<?php + +namespace Tests\E2E\Services\Tokens; + +use CURLFile; +use Tests\E2E\Client; +use Utopia\Database\Helpers\ID; + +trait TokensBase +{ + public function testCreateBucketAndFile(): array + { + $bucket = $this->client->call( + Client::METHOD_POST, + '/storage/buckets', + [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], + [ + 'name' => 'Test Bucket', + 'bucketId' => ID::unique(), + 'allowedFileExtensions' => ['jpg', 'png', 'jfif'], + ] + ); + + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $file = $this->client->call( + Client::METHOD_POST, + '/storage/buckets/' . $bucketId . '/files', + [ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], + [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/logo.png'), 'image/png', 'logo.png'), + ] + ); + + $this->assertEquals(201, $file['headers']['status-code']); + $this->assertNotEmpty($file['body']['$id']); + + $fileId = $file['body']['$id']; + + $token = $this->client->call( + Client::METHOD_POST, + '/tokens/buckets/' . $bucketId . '/files/' . $fileId, + [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ] + ); + + $this->assertEquals(201, $token['headers']['status-code']); + $this->assertEquals($bucketId . ':' . $fileId, $token['body']['resourceId']); + $this->assertEquals(TOKENS_RESOURCE_TYPE_FILES, $token['body']['resourceType']); + + return [ + 'fileId' => $fileId, + 'bucketId' => $bucketId, + 'token' => $token['body'], + 'guestHeaders' => [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], + ]; + } + + /** + * @depends testCreateBucketAndFile + */ + public function testFailuresWithoutToken(array $data): array + { + $fileId = $data['fileId']; + $bucketId = $data['bucketId']; + $guestHeaders = $data['guestHeaders']; + + // File preview. Should fail as an anonymous user with no form of any access to the file. + $failedPreview = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/preview', + $guestHeaders + ); + $this->assertEquals(401, $failedPreview['body']['code']); + $this->assertEquals(401, $failedPreview['headers']['status-code']); + $this->assertEquals('user_unauthorized', $failedPreview['body']['type']); + $this->assertEquals('The current user is not authorized to perform the requested action.', $failedPreview['body']['message']); + + // Extended file preview. Should fail as an anonymous user with no form of any access to the file. + $failedCustomPreview = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/preview', + $guestHeaders, + [ + 'width' => 300, + 'height' => 100, + 'borderRadius' => '50', + 'opacity' => '0.5', + 'output' => 'png', + 'rotation' => '45' + ] + ); + $this->assertEquals(401, $failedCustomPreview['body']['code']); + $this->assertEquals(401, $failedCustomPreview['headers']['status-code']); + $this->assertEquals('user_unauthorized', $failedCustomPreview['body']['type']); + $this->assertEquals('The current user is not authorized to perform the requested action.', $failedCustomPreview['body']['message']); + + // File view. Should fail as an anonymous user with no form of any access to the file. + $failedView = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/view', + $guestHeaders + ); + $this->assertEquals(401, $failedView['body']['code']); + $this->assertEquals(401, $failedView['headers']['status-code']); + $this->assertEquals('user_unauthorized', $failedView['body']['type']); + $this->assertEquals('The current user is not authorized to perform the requested action.', $failedView['body']['message']); + + // File download. Should fail as an anonymous user with no form of any access to the file. + $failedDownload = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/download', + $guestHeaders + ); + $this->assertEquals(401, $failedDownload['body']['code']); + $this->assertEquals(401, $failedDownload['headers']['status-code']); + $this->assertEquals('user_unauthorized', $failedDownload['body']['type']); + $this->assertEquals('The current user is not authorized to perform the requested action.', $failedDownload['body']['message']); + + return $data; + } + + /** + * @depends testCreateBucketAndFile + */ + public function testPreviewFileWithToken(array $data): array + { + $token = $data['token']; + $fileId = $data['fileId']; + $bucketId = $data['bucketId']; + $guestHeaders = $data['guestHeaders']; + + $tokenJWT = $token['secret']; + + // Generate a preview + $filePreview = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/preview', + $guestHeaders, + [ + 'token' => $tokenJWT + ] + ); + $this->assertEquals(200, $filePreview['headers']['status-code']); + $this->assertEquals('image/png', $filePreview['headers']['content-type']); + $this->assertNotEmpty($filePreview['body']); + + $image = new \Imagick(); + $image->readImageBlob($filePreview['body']); + $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); + + $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); + $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); + $this->assertEquals('PNG', $image->getImageFormat()); + + $data['jwtToken'] = $tokenJWT; + return $data; + } + + /** + * @depends testPreviewFileWithToken + */ + public function testCustomPreviewFileWithToken(array $data): array + { + $fileId = $data['fileId']; + $bucketId = $data['bucketId']; + $jwtToken = $data['jwtToken']; + $guestHeaders = $data['guestHeaders']; + + // Generate an extended preview + $customFilePreview = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/preview/', + $guestHeaders, + [ + 'width' => 300, + 'height' => 100, + 'borderRadius' => '50', + 'opacity' => '0.5', + 'output' => 'png', + 'rotation' => '45', + 'token' => $jwtToken + ] + ); + + $this->assertEquals(200, $customFilePreview['headers']['status-code']); + $this->assertEquals('image/png', $customFilePreview['headers']['content-type']); + $this->assertNotEmpty($customFilePreview['body']); + + $image = new \Imagick(); + $image->readImageBlob($customFilePreview['body']); + $original = new \Imagick(__DIR__ . '/../../../resources/logo-after.png'); + + $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); + $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); + $this->assertEquals('PNG', $image->getImageFormat()); + + return $data; + } + + /** + * @depends testPreviewFileWithToken + */ + public function testViewFileWithToken(array $data): void + { + $fileId = $data['fileId']; + $bucketId = $data['bucketId']; + $jwtToken = $data['jwtToken']; + $guestHeaders = $data['guestHeaders']; + + $fileView = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/view', + $guestHeaders, + [ + 'token' => $jwtToken + ] + ); + + $this->assertEquals(200, $fileView['headers']['status-code']); + + $image = new \Imagick(); + $image->readImageBlob($fileView['body']); + $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); + + $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); + $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); + $this->assertEquals('PNG', $image->getImageFormat()); + } + + /** + * @depends testPreviewFileWithToken + */ + public function testDownloadFileWithToken(array $data): void + { + $fileId = $data['fileId']; + $bucketId = $data['bucketId']; + $jwtToken = $data['jwtToken']; + $guestHeaders = $data['guestHeaders']; + + $fileFailedDownload = $this->client->call( + Client::METHOD_GET, + '/storage/buckets/' . $bucketId . '/files/' . $fileId . '/download', + $guestHeaders, + [ + 'token' => $jwtToken + ] + ); + + $this->assertEquals(200, $fileFailedDownload['headers']['status-code']); + + $image = new \Imagick(); + $image->readImageBlob($fileFailedDownload['body']); + $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); + + $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); + $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); + $this->assertEquals('PNG', $image->getImageFormat()); + } +} diff --git a/tests/e2e/Services/Tokens/TokensConsoleClientTest.php b/tests/e2e/Services/Tokens/TokensConsoleClientTest.php new file mode 100644 index 00000000000..4a7aab474a3 --- /dev/null +++ b/tests/e2e/Services/Tokens/TokensConsoleClientTest.php @@ -0,0 +1,144 @@ +<?php + +namespace Tests\E2E\Services\Tokens; + +use CURLFile; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; +use Utopia\Database\DateTime; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Datetime as DatetimeValidator; + +class TokensConsoleClientTest extends Scope +{ + use TokensBase; + use ProjectCustom; + use SideServer; + + public function testCreateToken(): array + { + + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'fileSecurity' => true, + 'maximumFileSize' => 2000000, //2MB + 'allowedFileExtensions' => ['jpg', 'png', 'jfif'], + 'permissions' => [ + Permission::read(Role::any()), + Permission::create(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $file = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/logo.png'), 'image/png', 'logo.png'), + 'permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $file['headers']['status-code']); + $this->assertNotEmpty($file['body']['$id']); + + $fileId = $file['body']['$id']; + + $token = $this->client->call(Client::METHOD_POST, '/tokens/buckets/' . $bucketId . '/files/' . $fileId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders())); + + $this->assertEquals(201, $token['headers']['status-code']); + $this->assertEquals('files', $token['body']['resourceType']); + + return [ + 'fileId' => $fileId, + 'bucketId' => $bucketId, + 'tokenId' => $token['body']['$id'], + ]; + } + + /** + * @depends testCreateToken + */ + public function testUpdateToken(array $data): array + { + $tokenId = $data['tokenId']; + + // Finite expiry + $expiry = DateTime::addSeconds(new \DateTime(), 3600); + $token = $this->client->call(Client::METHOD_PATCH, '/tokens/' . $tokenId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'expire' => $expiry, + ]); + + $dateValidator = new DatetimeValidator(); + $this->assertTrue($dateValidator->isValid($token['body']['expire'])); + + // Infinite expiry + $token = $this->client->call(Client::METHOD_PATCH, '/tokens/' . $tokenId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'expire' => null, + ]); + + $this->assertEmpty($token['body']['expire']); + + return $data; + } + + /** + * @depends testCreateToken + */ + public function testListTokens(array $data): array + { + $res = $this->client->call( + Client::METHOD_GET, + '/tokens/buckets/' . $data['bucketId'] . '/files/' . $data['fileId'], + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()) + ); + + $this->assertIsArray($res['body']); + $this->assertEquals(200, $res['headers']['status-code']); + return $data; + } + + /** + * @depends testUpdateToken + */ + public function testDeleteToken(array $data): array + { + $tokenId = $data['tokenId']; + + $res = $this->client->call(Client::METHOD_DELETE, '/tokens/' . $tokenId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders())); + + $this->assertEquals(204, $res['headers']['status-code']); + return $data; + } +} diff --git a/tests/e2e/Services/Tokens/TokensCustomClientTest.php b/tests/e2e/Services/Tokens/TokensCustomClientTest.php new file mode 100644 index 00000000000..a7a1fa48a53 --- /dev/null +++ b/tests/e2e/Services/Tokens/TokensCustomClientTest.php @@ -0,0 +1,15 @@ +<?php + +namespace Tests\E2E\Services\Tokens; + +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideClient; + +class TokensCustomClientTest extends Scope +{ + use TokensBase; + use ProjectCustom; + use SideClient; + +} diff --git a/tests/e2e/Services/Tokens/TokensCustomServerTest.php b/tests/e2e/Services/Tokens/TokensCustomServerTest.php new file mode 100644 index 00000000000..fe8fa2bad97 --- /dev/null +++ b/tests/e2e/Services/Tokens/TokensCustomServerTest.php @@ -0,0 +1,148 @@ +<?php + +namespace Tests\E2E\Services\Tokens; + +use CURLFile; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; +use Utopia\Database\DateTime; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Datetime as DatetimeValidator; + +class TokensCustomServerTest extends Scope +{ + use TokensBase; + use ProjectCustom; + use SideServer; + + public function testCreateToken(): array + { + + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'fileSecurity' => true, + 'maximumFileSize' => 2000000, //2MB + 'allowedFileExtensions' => ['jpg', 'png', 'jfif'], + 'permissions' => [ + Permission::read(Role::any()), + Permission::create(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $file = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/logo.png'), 'image/png', 'logo.png'), + 'permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $file['headers']['status-code']); + $this->assertNotEmpty($file['body']['$id']); + + $fileId = $file['body']['$id']; + + $token = $this->client->call(Client::METHOD_POST, '/tokens/buckets/' . $bucketId . '/files/' . $fileId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders())); + + $this->assertEquals(201, $token['headers']['status-code']); + $this->assertEquals('files', $token['body']['resourceType']); + + return [ + 'fileId' => $fileId, + 'bucketId' => $bucketId, + 'tokenId' => $token['body']['$id'], + ]; + } + + /** + * @depends testCreateToken + */ + public function testUpdateToken(array $data): array + { + $tokenId = $data['tokenId']; + + // Finite expiry + $expiry = DateTime::addSeconds(new \DateTime(), 3600); + $token = $this->client->call(Client::METHOD_PATCH, '/tokens/' . $tokenId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'expire' => $expiry, + ]); + + $dateValidator = new DatetimeValidator(); + $this->assertTrue($dateValidator->isValid($token['body']['expire'])); + + // Infinite expiry + $token = $this->client->call(Client::METHOD_PATCH, '/tokens/' . $tokenId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'expire' => null, + ]); + + $this->assertEmpty($token['body']['expire']); + + return $data; + } + + /** + * @depends testCreateToken + */ + public function testListTokens(array $data): array + { + $res = $this->client->call( + Client::METHOD_GET, + '/tokens/buckets/' . $data['bucketId'] . '/files/' . $data['fileId'], + [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ] + ); + + $this->assertIsArray($res['body']); + $this->assertEquals(200, $res['headers']['status-code']); + return $data; + } + + /** + * @depends testUpdateToken + */ + public function testDeleteToken(array $data): array + { + $tokenId = $data['tokenId']; + + $res = $this->client->call(Client::METHOD_DELETE, '/tokens/' . $tokenId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(204, $res['headers']['status-code']); + return $data; + } +} diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index d9105e0790b..00e999672f6 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -310,6 +310,22 @@ public function testCreateSession(array $data): void $this->assertNotEmpty($session['secret']); $this->assertNotEmpty($session['expire']); $this->assertEquals('server', $session['provider']); + + $response = $this->client->call(Client::METHOD_GET, '/account', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-session' => $session['secret'] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_DELETE, '/account/sessions/current', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-session' => $session['secret'] + ]); + + $this->assertEquals(204, $response['headers']['status-code']); } @@ -785,6 +801,97 @@ public function testGetUser(array $data): array return $data; } + /** + * @depends testGetUser + */ + public function testListUserMemberships(array $data): array + { + /** + * Test for SUCCESS + */ + + // create a new team + $team = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'teamId' => 'unique()', + 'name' => 'Test Team', + ]); + + // create a new membership + $membership = $this->client->call(Client::METHOD_POST, '/teams/' . $team['body']['$id'] . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'userId' => $data['userId'], + 'roles' => ['new-role'], + ]); + + // list the memberships + $response = $this->client->call(Client::METHOD_GET, '/users/' . $data['userId'] . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals($response['headers']['status-code'], 200); + $this->assertEquals($response['body']['memberships'][0]['$id'], $membership['body']['$id']); + $this->assertEquals($response['body']['memberships'][0]['roles'], ['new-role']); + $this->assertEquals($response['body']['total'], 1); + + // create another membership with a new role + $team = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'teamId' => 'unique()', + 'name' => 'Test Team 2', + ]); + + $membership = $this->client->call(Client::METHOD_POST, '/teams/' . $team['body']['$id'] . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'userId' => $data['userId'], + 'roles' => ['new-role-2'], + ]); + + // list out memberships and query by role + $response = $this->client->call(Client::METHOD_GET, '/users/' . $data['userId'] . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::contains('roles', ['new-role-2'])->toString() + ] + ]); + + $this->assertEquals($response['headers']['status-code'], 200); + $this->assertEquals($response['body']['memberships'][0]['$id'], $membership['body']['$id']); + $this->assertEquals($response['body']['memberships'][0]['roles'], ['new-role-2']); + $this->assertEquals($response['body']['total'], 1); + + /** + * Test for FAILURE + */ + + // query using equal on array field + $response = $this->client->call(Client::METHOD_GET, '/users/' . $data['userId'] . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::equal('roles', ['new-role-2'])->toString() + ] + ]); + + $this->assertEquals($response['body']['code'], 400); + $this->assertEquals($response['body']['message'], 'Invalid `queries` param: Invalid query: Cannot query equal on attribute "roles" because it is an array.'); + $this->assertEquals($response['body']['type'], 'general_argument_invalid'); + + return $data; + } + /** * @depends testGetUser */ @@ -1498,6 +1605,7 @@ public function testUpdateUserTarget(array $data): array ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('random-email1@mail.org', $response['body']['identifier']); + $this->assertEquals(false, $response['body']['expired']); return $response['body']; } @@ -1510,6 +1618,7 @@ public function testListUserTarget(array $data) 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); + $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, \count($response['body']['targets'])); } diff --git a/tests/e2e/Services/VCS/VCSConsoleClientTest.php b/tests/e2e/Services/VCS/VCSConsoleClientTest.php index f04667a0f5c..13c3ddb2515 100644 --- a/tests/e2e/Services/VCS/VCSConsoleClientTest.php +++ b/tests/e2e/Services/VCS/VCSConsoleClientTest.php @@ -22,6 +22,8 @@ class VCSConsoleClientTest extends Scope public string $providerInstallationId = '42954928'; // appwrite-test public string $providerRepositoryId = '705764267'; // ruby-starter (public) public string $providerRepositoryId2 = '708688544'; // function1.4 (private) + public string $providerRepositoryId3 = '943139433'; // svelte-starter (public) + public string $providerRepositoryId4 = '943245292'; // templates-for-sites (public) public function testGitHubAuthorize(): string { @@ -67,24 +69,102 @@ public function testDetectRuntime(string $installationId): void * Test for SUCCESS */ - $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/providerRepositories/' . $this->providerRepositoryId . '/detection', array_merge([ + $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/detections', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'providerRepositoryId' => $this->providerRepositoryId, + 'type' => 'runtime', + ]); $this->assertEquals(200, $runtime['headers']['status-code']); - $this->assertEquals($runtime['body']['runtime'], 'ruby-3.1'); + $this->assertEquals($runtime['body']['runtime'], 'ruby-3.3'); + $this->assertEquals($runtime['body']['commands'], 'bundle install && bundle exec rake build'); + $this->assertEquals($runtime['body']['entrypoint'], 'main.rb'); /** * Test for FAILURE */ - $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/providerRepositories/randomRepositoryId/detection', array_merge([ + $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/detections', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'providerRepositoryId' => 'randomRepositoryId', // Invalid repository ID + 'type' => 'runtime', + ]); $this->assertEquals(404, $runtime['headers']['status-code']); } + /** + * @depends testGitHubAuthorize + */ + public function testDetectFramework(string $installationId) + { + /** + * Test for SUCCESS + */ + + $framework = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/detections', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'providerRepositoryId' => $this->providerRepositoryId3, + 'type' => 'framework', + ]); + + $this->assertEquals(200, $framework['headers']['status-code']); + $this->assertEquals($framework['body']['framework'], 'sveltekit'); + $this->assertEquals($framework['body']['installCommand'], 'npm install'); + $this->assertEquals($framework['body']['buildCommand'], 'npm run build'); + $this->assertEquals($framework['body']['outputDirectory'], './build'); + + $framework = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/detections', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'providerRepositoryId' => $this->providerRepositoryId4, + 'type' => 'framework', + 'providerRootDirectory' => 'astro/starter' + ]); + + $this->assertEquals(200, $framework['headers']['status-code']); + $this->assertEquals($framework['body']['framework'], 'astro'); + $this->assertEquals($framework['body']['installCommand'], 'npm install'); + $this->assertEquals($framework['body']['buildCommand'], 'npm run build'); + $this->assertEquals($framework['body']['outputDirectory'], './dist'); + + $framework = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/detections', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'providerRepositoryId' => $this->providerRepositoryId4, + 'type' => 'framework', + 'providerRootDirectory' => 'remix/starter' + ]); + + $this->assertEquals(200, $framework['headers']['status-code']); + $this->assertEquals($framework['body']['framework'], 'remix'); + $this->assertEquals($framework['body']['installCommand'], 'npm install'); + $this->assertEquals($framework['body']['buildCommand'], 'npm run build'); + $this->assertEquals($framework['body']['outputDirectory'], './build'); + + /** + * Test for FAILURE + */ + + $framework = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/detections', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'providerRepositoryId' => 'randomRepositoryId', // Invalid repository ID + 'type' => 'framework', + ]); + + $this->assertEquals(404, $framework['headers']['status-code']); + } + /** * @depends testGitHubAuthorize */ @@ -94,7 +174,7 @@ public function testContents(string $installationId): void * Test for SUCCESS */ - $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/providerRepositories/' . $this->providerRepositoryId . '/contents', array_merge([ + $runtime = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories/' . $this->providerRepositoryId . '/contents', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -126,7 +206,7 @@ public function testContents(string $installationId): void $this->assertTrue($libContent['isDirectory']); $this->assertEquals(0, $gemfileContent['size']); - $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/providerRepositories/' . $this->providerRepositoryId . '/contents?providerRootDirectory=lib', array_merge([ + $runtime = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories/' . $this->providerRepositoryId . '/contents?providerRootDirectory=lib', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -150,7 +230,7 @@ public function testContents(string $installationId): void * Test for FAILURE */ - $runtime = $this->client->call(Client::METHOD_POST, '/vcs/github/installations/' . $installationId . '/providerRepositories/randomRepositoryId/contents', array_merge([ + $runtime = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories/randomRepositoryId/contents', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); @@ -168,26 +248,75 @@ public function testListRepositories(string $installationId): void $repositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + ], $this->getHeaders()), [ + 'type' => 'runtime' + ]); $this->assertEquals(200, $repositories['headers']['status-code']); - $this->assertEquals($repositories['body']['total'], 3); - $this->assertEquals($repositories['body']['providerRepositories'][0]['name'], 'function1.4'); - $this->assertEquals($repositories['body']['providerRepositories'][0]['organization'], 'appwrite-test'); - $this->assertEquals($repositories['body']['providerRepositories'][0]['provider'], 'github'); - $this->assertEquals($repositories['body']['providerRepositories'][1]['name'], 'appwrite'); - $this->assertEquals($repositories['body']['providerRepositories'][2]['name'], 'ruby-starter'); + $this->assertEquals($repositories['body']['total'], 4); + $this->assertEquals($repositories['body']['runtimeProviderRepositories'][0]['name'], 'starter-for-svelte'); + $this->assertEquals($repositories['body']['runtimeProviderRepositories'][0]['organization'], 'appwrite-test'); + $this->assertEquals($repositories['body']['runtimeProviderRepositories'][0]['provider'], 'github'); + $this->assertEquals($repositories['body']['runtimeProviderRepositories'][0]['runtime'], 'node-22'); + $searchedRepositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'search' => 'function1.4', + 'type' => 'runtime' + ]); + $this->assertEquals(200, $searchedRepositories['headers']['status-code']); + $this->assertEquals($searchedRepositories['body']['total'], 1); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['name'], 'function1.4'); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['runtime'], 'node-2'); $searchedRepositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'search' => 'func' + 'search' => 'appwrite', + 'type' => 'runtime' + ]); + $this->assertEquals(200, $searchedRepositories['headers']['status-code']); + $this->assertEquals($searchedRepositories['body']['total'], 1); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['name'], 'appwrite'); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['runtime'], 'php-8.3'); + + $searchedRepositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'search' => 'ruby-starter', + 'type' => 'runtime' + ]); + $this->assertEquals(200, $searchedRepositories['headers']['status-code']); + $this->assertEquals($searchedRepositories['body']['total'], 1); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['name'], 'ruby-starter'); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['runtime'], 'ruby-3.3'); + + $repositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'type' => 'framework' ]); + $this->assertEquals(200, $repositories['headers']['status-code']); + $this->assertEquals($repositories['body']['total'], 4); + $this->assertEquals($repositories['body']['frameworkProviderRepositories'][0]['name'], 'starter-for-svelte'); + $this->assertEquals($repositories['body']['frameworkProviderRepositories'][0]['organization'], 'appwrite-test'); + $this->assertEquals($repositories['body']['frameworkProviderRepositories'][0]['provider'], 'github'); + $this->assertEquals($repositories['body']['frameworkProviderRepositories'][0]['framework'], 'sveltekit'); + + $searchedRepositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'search' => 'appwrite', + 'type' => 'runtime' + ]); $this->assertEquals(200, $searchedRepositories['headers']['status-code']); $this->assertEquals($searchedRepositories['body']['total'], 1); - $this->assertEquals($searchedRepositories['body']['providerRepositories'][0]['name'], 'function1.4'); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['name'], 'appwrite'); + $this->assertEquals($searchedRepositories['body']['runtimeProviderRepositories'][0]['runtime'], 'other'); + + // TODO: If you are about to add another check, rewrite this to @provideScenarios /** * Test for FAILURE @@ -195,9 +324,29 @@ public function testListRepositories(string $installationId): void $repositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/randomInstallationId/providerRepositories', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + ], $this->getHeaders()), [ + 'type' => 'runtime' + ]); $this->assertEquals(404, $repositories['headers']['status-code']); + + $repositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'type' => 'randomType' + ]); + + $this->assertEquals(400, $repositories['headers']['status-code']); + + $repositories = $this->client->call(Client::METHOD_GET, '/vcs/github/installations/' . $installationId . '/providerRepositories', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'search' => 'randomSearch', + 'type' => 'framework' + ]); + + $this->assertEquals(200, $repositories['headers']['status-code']); + $this->assertEquals($repositories['body']['total'], 0); } /** diff --git a/tests/e2e/Services/Webhooks/WebhooksBase.php b/tests/e2e/Services/Webhooks/WebhooksBase.php index 6f6b36c520b..c743810febd 100644 --- a/tests/e2e/Services/Webhooks/WebhooksBase.php +++ b/tests/e2e/Services/Webhooks/WebhooksBase.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\Webhooks; +use Appwrite\Tests\Async; use Appwrite\Tests\Retry; use CURLFile; use Tests\E2E\Client; @@ -12,29 +13,20 @@ trait WebhooksBase { - protected function awaitDeploymentIsBuilt($functionId, $deploymentId, $checkForSuccess = true): void + use Async; + + protected function awaitDeploymentIsBuilt($functionId, $deploymentId): void { - while (true) { + $this->assertEventually(function () use ($functionId, $deploymentId) { $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ]); - if ( - $deployment['headers']['status-code'] >= 400 - || \in_array($deployment['body']['status'], ['ready', 'failed']) - ) { - break; - } - - \sleep(1); - } - - if($checkForSuccess) { $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertEquals('ready', $deployment['body']['status'], \json_encode($deployment['body'])); - } + }); } public static function getWebhookSignature(array $webhook, string $signatureKey): string @@ -901,6 +893,17 @@ public function testCreateTeamMembership($data): array $teamId = $data['teamId'] ?? ''; $email = uniqid() . 'friend@localhost.test'; + // Create user to ensure team event is triggered after user event + $user = $this->client->call(Client::METHOD_POST, '/account', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'userId' => ID::unique(), + 'email' => $email, + 'password' => 'password', + 'name' => 'Friend User', + ]); + /** * Test for SUCCESS */ @@ -909,7 +912,6 @@ public function testCreateTeamMembership($data): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'email' => $email, - 'name' => 'Friend User', 'roles' => ['admin', 'editor'], 'url' => 'http://localhost:5000/join-us#title' ]); diff --git a/tests/extensions/Async.php b/tests/extensions/Async.php new file mode 100644 index 00000000000..48af24bc027 --- /dev/null +++ b/tests/extensions/Async.php @@ -0,0 +1,17 @@ +<?php + +namespace Appwrite\Tests; + +use Appwrite\Tests\Async\Eventually; +use PHPUnit\Framework\Assert; + +const DEFAULT_TIMEOUT_MS = 10000; +const DEFAULT_WAIT_MS = 500; + +trait Async +{ + public static function assertEventually(callable $probe, int $timeoutMs = DEFAULT_TIMEOUT_MS, int $waitMs = DEFAULT_WAIT_MS): void + { + Assert::assertThat($probe, new Eventually($timeoutMs, $waitMs)); + } +} diff --git a/tests/extensions/Async/Eventually.php b/tests/extensions/Async/Eventually.php new file mode 100644 index 00000000000..9840b1a1144 --- /dev/null +++ b/tests/extensions/Async/Eventually.php @@ -0,0 +1,49 @@ +<?php + +namespace Appwrite\Tests\Async; + +use PHPUnit\Framework\Constraint\Constraint; + +final class Eventually extends Constraint +{ + public function __construct(private int $timeoutMs, private int $waitMs) + { + } + + public function evaluate(mixed $probe, string $description = '', bool $returnResult = false): ?bool + { + if (!is_callable($probe)) { + throw new \Exception('Probe must be a callable'); + } + + $start = microtime(true); + $lastException = null; + + do { + try { + $probe(); + return true; + } catch (\Exception $exception) { + $lastException = $exception; + } + + usleep($this->waitMs * 1000); + } while (microtime(true) - $start < $this->timeoutMs / 1000); + + if ($returnResult) { + return false; + } + + throw $lastException; + } + + protected function failureDescription(mixed $other): string + { + return 'the given probe was satisfied within ' . $this->timeoutMs . 'ms.'; + } + + public function toString(): string + { + return 'Eventually'; + } +} diff --git a/tests/resources/csv/documents.csv b/tests/resources/csv/documents.csv new file mode 100644 index 00000000000..ea1e33b5bd3 --- /dev/null +++ b/tests/resources/csv/documents.csv @@ -0,0 +1,101 @@ +$id,name,age +hxfcwpcas5xokpwe,Diamond Mendez,56 +gw8nxwf6esn3tfwf,Michael Huff,20 +xb6bxg56lral1qy9,Alyssa Rodriguez,37 +imerjq5j36y3agh2,Barbara Smith,26 +07yq9qdlhmbzmr35,Evelyn Edwards,54 +ksqo631sbhwj5ltg,Tina Richardson,41 +j7zlndgu0gbshp15,Joel Hernandez,49 +mfntvnljrcmf7h6v,Zachary Cooper,59 +5f9b01nziqu2h8ed,Brittany Spears,20 +4vxzbnzraqznk5u8,Holly White,47 +d4ywy3mtphaatbpf,Kimberly Barnes,27 +88odnk6nthyyvbal,Stephen Miller,53 +08oekee3fn7mzaa5,Yvonne Newman,41 +quw55kn9895i5e4v,Carol Kane,38 +nge6bm8ykripei6f,Doris Foster,44 +4k16i33s0xl2ypx9,Joseph Stokes,28 +q0j5rxbgid66snyf,Steve Williams,31 +n1oxun7mqq3p103y,James Carey,29 +0dbvs840jkf8i0ye,Kathryn Henry,38 +5sfaidgs1h87v15v,Christopher Landry,23 +vg3punvfu5khmf41,Jennifer Mcgee,62 +f933qydr9u5b2r11,Cathy Church,35 +wjv87y1inf8yk32s,Jose Lopez,41 +uljysdvdlcyrbrwk,William Rose,30 +ot8xtzh77j55wq0s,Sarah Ford,26 +9t76vnsv2u36s43t,Alisha Jones,61 +66y4tnty62hw8c02,Kristin Kelly,61 +2punfblazi5v16ar,Brendan Stout,40 +sxhr4nf5w2gx4wbg,Kelly Cruz,18 +68dvrqfwqnkq5el9,Samantha Martin,50 +20192l6dbeinhkh0,David Santos,46 +si0l4dgay09ebfmf,Elizabeth Carroll,22 +lhse40vbldqb6ap1,Corey Owens,46 +h5t3pslykyx3kxfm,Shelby Mueller,65 +ldc0luydrw6jub0f,Dr. Sylvia Myers,29 +voc9628xg4dsgw2y,Scott Freeman,48 +o4y0gk3gqv1ax2fz,Christopher Atkinson,21 +u1n3x4e4u7e0vzj6,Sean Diaz,31 +s36eskwtm0w7lwr7,Bobby Dyer,57 +4hjnag1p5iwvtixd,Daniel Hall,62 +m91d80oxsa216zbh,Jennifer Ramirez,65 +5hj6858zo2g85n6v,Angela Jackson,57 +8m8oihv9a1e7nn92,Kelly Lewis,36 +7azy39la0no0mxi7,Jessica Munoz,55 +47pmjkhnnqhyit8c,Kelly George,65 +6j6cpy4kgneg1mmh,Anthony Johnson,65 +tnlmtvap1zz89km9,Regina Fields,61 +6cyuvnwwqdmrpfzh,Sharon Schaefer,30 +p1v4pyu2pqodc0ey,Jacob French,62 +6npynnhjt2jd05xo,Jessica Costa,23 +wcxedf13n2e9qi4l,George Hardy,53 +yf2xlcmszk2tqeig,Andrea Allison,20 +3bf2zzv7poststwa,Kevin Ferguson,32 +c2iataz0hhv39q63,Joseph Johnson,58 +3e8npxhov4a39pvq,Ashley Martinez,18 +t7dp41tysipytywq,Charles Nixon,23 +z8cztq7c47phyfhk,Carol Dudley,40 +2636f9d8r4ipm3h6,David Weber,51 +eh3f6wxtvkjq6ykq,Scott Robinson,32 +raskbwpsje69a59h,Anthony Hardy,38 +90hn1p0b4cs9e2og,Mackenzie Owens,52 +am3swwfbo076x0v1,Brian Foster,27 +5uw7utb9lq5cfncw,Hannah Forbes,56 +cs6mbfzkzifefx6r,Lauren Reed,26 +ftw3uvztziiz9x00,Morgan Smith,28 +uhrqseeo43mozpaq,Samantha Alexander,65 +pvvmzyfc1lxor11e,Tiffany Roberts,20 +jia7bdag4abz123s,Emily Hayes,34 +h6oozcngbz8o5x4y,Rebecca Villegas,52 +9v6z1pn2f9twcy12,Donald Shah,61 +wzz3jduioso77o7f,Denise Cain,59 +u51plhgvjodkswnr,Kristine Ramirez,53 +t1uhkmiytfyc13vc,Stacey Adkins,61 +iqaqnf0ybg2ct507,Daniel Hunt,20 +idwrwv2uu4hcpv2i,Roberta Johnson,48 +2yd2hd6auetjacyo,Jason Williamson,39 +egrmdbibnjhi914x,Sandra Robinson,50 +15m1pz2bb0ercgyk,Steve Rice,25 +0i21bhkxdagjurb7,Kimberly Fritz,53 +726ofi7h5snreq67,Brianna Reynolds,33 +csqxse3wym56eim6,Alexander Williams,50 +qeaoylnrsf8p3byg,Andrew Thomas,25 +edsswobumzyzbvhf,Austin Williams,57 +hdzhzpt0ahy5hkib,Nicholas Williams,24 +w1qmvmg4roa8xnwu,Mrs. Michelle Cisneros,48 +3z3o73x7adyuo6w0,Stacey Smith,39 +sse2u5zlgoqrgmcf,Laura Beck,20 +rvovijmvch58r4yx,Molly Clark,51 +doe06nrx8sg5mcuv,Carmen Morris,41 +jbjdwuvj5s4kw04y,Amanda Munoz,20 +6k2ewkla7js0yw23,Rachel Collins,44 +fcxuyr4kkhrnigu1,John Alexander,18 +d25fuwlos5mk07o0,Stacy Hunter,22 +1vdai2rxmwd57oet,Eric Massey,40 +pq4jnt9izu1wlrzd,Scott Garcia,20 +lz9kfc0lty5xcz14,Cassandra Nelson,35 +pu7w6tyab5jd4we9,Aaron Johnson,50 +8dupswd2kqwdyn8v,Shannon Sherman,45 +ye466l71jthiz2p6,April Garcia,60 +xogsmfwb73l16qdt,Evan Lynn,20 diff --git a/tests/resources/csv/irrelevant-column.csv b/tests/resources/csv/irrelevant-column.csv new file mode 100644 index 00000000000..92105ceaa24 --- /dev/null +++ b/tests/resources/csv/irrelevant-column.csv @@ -0,0 +1,101 @@ +$id,name,age,email +hxfcwpcas5xokpwe,Diamond Mendez,56,diamond.mendez@example.com +gw8nxwf6esn3tfwf,Michael Huff,20,michael.huff@example.com +xb6bxg56lral1qy9,Alyssa Rodriguez,37,alyssa.rodriguez@example.com +imerjq5j36y3agh2,Barbara Smith,26,barbara.smith@example.com +07yq9qdlhmbzmr35,Evelyn Edwards,54,evelyn.edwards@example.com +ksqo631sbhwj5ltg,Tina Richardson,41,tina.richardson@example.com +j7zlndgu0gbshp15,Joel Hernandez,49,joel.hernandez@example.com +mfntvnljrcmf7h6v,Zachary Cooper,59,zachary.cooper@example.com +5f9b01nziqu2h8ed,Brittany Spears,20,brittany.spears@example.com +4vxzbnzraqznk5u8,Holly White,47,holly.white@example.com +d4ywy3mtphaatbpf,Kimberly Barnes,27,kimberly.barnes@example.com +88odnk6nthyyvbal,Stephen Miller,53,stephen.miller@example.com +08oekee3fn7mzaa5,Yvonne Newman,41,yvonne.newman@example.com +quw55kn9895i5e4v,Carol Kane,38,carol.kane@example.com +nge6bm8ykripei6f,Doris Foster,44,doris.foster@example.com +4k16i33s0xl2ypx9,Joseph Stokes,28,joseph.stokes@example.com +q0j5rxbgid66snyf,Steve Williams,31,steve.williams@example.com +n1oxun7mqq3p103y,James Carey,29,james.carey@example.com +0dbvs840jkf8i0ye,Kathryn Henry,38,kathryn.henry@example.com +5sfaidgs1h87v15v,Christopher Landry,23,christopher.landry@example.com +vg3punvfu5khmf41,Jennifer Mcgee,62,jennifer.mcgee@example.com +f933qydr9u5b2r11,Cathy Church,35,cathy.church@example.com +wjv87y1inf8yk32s,Jose Lopez,41,jose.lopez@example.com +uljysdvdlcyrbrwk,William Rose,30,william.rose@example.com +ot8xtzh77j55wq0s,Sarah Ford,26,sarah.ford@example.com +9t76vnsv2u36s43t,Alisha Jones,61,alisha.jones@example.com +66y4tnty62hw8c02,Kristin Kelly,61,kristin.kelly@example.com +2punfblazi5v16ar,Brendan Stout,40,brendan.stout@example.com +sxhr4nf5w2gx4wbg,Kelly Cruz,18,kelly.cruz@example.com +68dvrqfwqnkq5el9,Samantha Martin,50,samantha.martin@example.com +20192l6dbeinhkh0,David Santos,46,david.santos@example.com +si0l4dgay09ebfmf,Elizabeth Carroll,22,elizabeth.carroll@example.com +lhse40vbldqb6ap1,Corey Owens,46,corey.owens@example.com +h5t3pslykyx3kxfm,Shelby Mueller,65,shelby.mueller@example.com +ldc0luydrw6jub0f,Dr. Sylvia Myers,29,sylvia.myers@example.com +voc9628xg4dsgw2y,Scott Freeman,48,scott.freeman@example.com +o4y0gk3gqv1ax2fz,Christopher Atkinson,21,christopher.atkinson@example.com +u1n3x4e4u7e0vzj6,Sean Diaz,31,sean.diaz@example.com +s36eskwtm0w7lwr7,Bobby Dyer,57,bobby.dyer@example.com +4hjnag1p5iwvtixd,Daniel Hall,62,daniel.hall@example.com +m91d80oxsa216zbh,Jennifer Ramirez,65,jennifer.ramirez@example.com +5hj6858zo2g85n6v,Angela Jackson,57,angela.jackson@example.com +8m8oihv9a1e7nn92,Kelly Lewis,36,kelly.lewis@example.com +7azy39la0no0mxi7,Jessica Munoz,55,jessica.munoz@example.com +47pmjkhnnqhyit8c,Kelly George,65,kelly.george@example.com +6j6cpy4kgneg1mmh,Anthony Johnson,65,anthony.johnson@example.com +tnlmtvap1zz89km9,Regina Fields,61,regina.fields@example.com +6cyuvnwwqdmrpfzh,Sharon Schaefer,30,sharon.schaefer@example.com +p1v4pyu2pqodc0ey,Jacob French,62,jacob.french@example.com +6npynnhjt2jd05xo,Jessica Costa,23,jessica.costa@example.com +wcxedf13n2e9qi4l,George Hardy,53,george.hardy@example.com +yf2xlcmszk2tqeig,Andrea Allison,20,andrea.allison@example.com +3bf2zzv7poststwa,Kevin Ferguson,32,kevin.ferguson@example.com +c2iataz0hhv39q63,Joseph Johnson,58,joseph.johnson@example.com +3e8npxhov4a39pvq,Ashley Martinez,18,ashley.martinez@example.com +t7dp41tysipytywq,Charles Nixon,23,charles.nixon@example.com +z8cztq7c47phyfhk,Carol Dudley,40,carol.dudley@example.com +2636f9d8r4ipm3h6,David Weber,51,david.weber@example.com +eh3f6wxtvkjq6ykq,Scott Robinson,32,scott.robinson@example.com +raskbwpsje69a59h,Anthony Hardy,38,anthony.hardy@example.com +90hn1p0b4cs9e2og,Mackenzie Owens,52,mackenzie.owens@example.com +am3swwfbo076x0v1,Brian Foster,27,brian.foster@example.com +5uw7utb9lq5cfncw,Hannah Forbes,56,hannah.forbes@example.com +cs6mbfzkzifefx6r,Lauren Reed,26,lauren.reed@example.com +ftw3uvztziiz9x00,Morgan Smith,28,morgan.smith@example.com +uhrqseeo43mozpaq,Samantha Alexander,65,samantha.alexander@example.com +pvvmzyfc1lxor11e,Tiffany Roberts,20,tiffany.roberts@example.com +jia7bdag4abz123s,Emily Hayes,34,emily.hayes@example.com +h6oozcngbz8o5x4y,Rebecca Villegas,52,rebecca.villegas@example.com +9v6z1pn2f9twcy12,Donald Shah,61,donald.shah@example.com +wzz3jduioso77o7f,Denise Cain,59,denise.cain@example.com +u51plhgvjodkswnr,Kristine Ramirez,53,kristine.ramirez@example.com +t1uhkmiytfyc13vc,Stacey Adkins,61,stacey.adkins@example.com +iqaqnf0ybg2ct507,Daniel Hunt,20,daniel.hunt@example.com +idwrwv2uu4hcpv2i,Roberta Johnson,48,roberta.johnson@example.com +2yd2hd6auetjacyo,Jason Williamson,39,jason.williamson@example.com +egrmdbibnjhi914x,Sandra Robinson,50,sandra.robinson@example.com +15m1pz2bb0ercgyk,Steve Rice,25,steve.rice@example.com +0i21bhkxdagjurb7,Kimberly Fritz,53,kimberly.fritz@example.com +726ofi7h5snreq67,Brianna Reynolds,33,brianna.reynolds@example.com +csqxse3wym56eim6,Alexander Williams,50,alexander.williams@example.com +qeaoylnrsf8p3byg,Andrew Thomas,25,andrew.thomas@example.com +edsswobumzyzbvhf,Austin Williams,57,austin.williams@example.com +hdzhzpt0ahy5hkib,Nicholas Williams,24,nicholas.williams@example.com +w1qmvmg4roa8xnwu,Mrs. Michelle Cisneros,48,michelle.cisneros@example.com +3z3o73x7adyuo6w0,Stacey Smith,39,stacey.smith@example.com +sse2u5zlgoqrgmcf,Laura Beck,20,laura.beck@example.com +rvovijmvch58r4yx,Molly Clark,51,molly.clark@example.com +doe06nrx8sg5mcuv,Carmen Morris,41,carmen.morris@example.com +jbjdwuvj5s4kw04y,Amanda Munoz,20,amanda.munoz@example.com +6k2ewkla7js0yw23,Rachel Collins,44,rachel.collins@example.com +fcxuyr4kkhrnigu1,John Alexander,18,john.alexander@example.com +d25fuwlos5mk07o0,Stacy Hunter,22,stacy.hunter@example.com +1vdai2rxmwd57oet,Eric Massey,40,eric.massey@example.com +pq4jnt9izu1wlrzd,Scott Garcia,20,scott.garcia@example.com +lz9kfc0lty5xcz14,Cassandra Nelson,35,cassandra.nelson@example.com +pu7w6tyab5jd4we9,Aaron Johnson,50,aaron.johnson@example.com +8dupswd2kqwdyn8v,Shannon Sherman,45,shannon.sherman@example.com +ye466l71jthiz2p6,April Garcia,60,april.garcia@example.com +xogsmfwb73l16qdt,Evan Lynn,20,evan.lynn@example.com diff --git a/tests/resources/csv/missing-column.csv b/tests/resources/csv/missing-column.csv new file mode 100644 index 00000000000..e57b5ccb2e6 --- /dev/null +++ b/tests/resources/csv/missing-column.csv @@ -0,0 +1,101 @@ +$id,name +hxfcwpcas5xokpwe,Diamond Mendez +gw8nxwf6esn3tfwf,Michael Huff +xb6bxg56lral1qy9,Alyssa Rodriguez +imerjq5j36y3agh2,Barbara Smith +07yq9qdlhmbzmr35,Evelyn Edwards +ksqo631sbhwj5ltg,Tina Richardson +j7zlndgu0gbshp15,Joel Hernandez +mfntvnljrcmf7h6v,Zachary Cooper +5f9b01nziqu2h8ed,Brittany Spears +4vxzbnzraqznk5u8,Holly White +d4ywy3mtphaatbpf,Kimberly Barnes +88odnk6nthyyvbal,Stephen Miller +08oekee3fn7mzaa5,Yvonne Newman +quw55kn9895i5e4v,Carol Kane +nge6bm8ykripei6f,Doris Foster +4k16i33s0xl2ypx9,Joseph Stokes +q0j5rxbgid66snyf,Steve Williams +n1oxun7mqq3p103y,James Carey +0dbvs840jkf8i0ye,Kathryn Henry +5sfaidgs1h87v15v,Christopher Landry +vg3punvfu5khmf41,Jennifer Mcgee +f933qydr9u5b2r11,Cathy Church +wjv87y1inf8yk32s,Jose Lopez +uljysdvdlcyrbrwk,William Rose +ot8xtzh77j55wq0s,Sarah Ford +9t76vnsv2u36s43t,Alisha Jones +66y4tnty62hw8c02,Kristin Kelly +2punfblazi5v16ar,Brendan Stout +sxhr4nf5w2gx4wbg,Kelly Cruz +68dvrqfwqnkq5el9,Samantha Martin +20192l6dbeinhkh0,David Santos +si0l4dgay09ebfmf,Elizabeth Carroll +lhse40vbldqb6ap1,Corey Owens +h5t3pslykyx3kxfm,Shelby Mueller +ldc0luydrw6jub0f,Dr. Sylvia Myers +voc9628xg4dsgw2y,Scott Freeman +o4y0gk3gqv1ax2fz,Christopher Atkinson +u1n3x4e4u7e0vzj6,Sean Diaz +s36eskwtm0w7lwr7,Bobby Dyer +4hjnag1p5iwvtixd,Daniel Hall +m91d80oxsa216zbh,Jennifer Ramirez +5hj6858zo2g85n6v,Angela Jackson +8m8oihv9a1e7nn92,Kelly Lewis +7azy39la0no0mxi7,Jessica Munoz +47pmjkhnnqhyit8c,Kelly George +6j6cpy4kgneg1mmh,Anthony Johnson +tnlmtvap1zz89km9,Regina Fields +6cyuvnwwqdmrpfzh,Sharon Schaefer +p1v4pyu2pqodc0ey,Jacob French +6npynnhjt2jd05xo,Jessica Costa +wcxedf13n2e9qi4l,George Hardy +yf2xlcmszk2tqeig,Andrea Allison +3bf2zzv7poststwa,Kevin Ferguson +c2iataz0hhv39q63,Joseph Johnson +3e8npxhov4a39pvq,Ashley Martinez +t7dp41tysipytywq,Charles Nixon +z8cztq7c47phyfhk,Carol Dudley +2636f9d8r4ipm3h6,David Weber +eh3f6wxtvkjq6ykq,Scott Robinson +raskbwpsje69a59h,Anthony Hardy +90hn1p0b4cs9e2og,Mackenzie Owens +am3swwfbo076x0v1,Brian Foster +5uw7utb9lq5cfncw,Hannah Forbes +cs6mbfzkzifefx6r,Lauren Reed +ftw3uvztziiz9x00,Morgan Smith +uhrqseeo43mozpaq,Samantha Alexander +pvvmzyfc1lxor11e,Tiffany Roberts +jia7bdag4abz123s,Emily Hayes +h6oozcngbz8o5x4y,Rebecca Villegas +9v6z1pn2f9twcy12,Donald Shah +wzz3jduioso77o7f,Denise Cain +u51plhgvjodkswnr,Kristine Ramirez +t1uhkmiytfyc13vc,Stacey Adkins +iqaqnf0ybg2ct507,Daniel Hunt +idwrwv2uu4hcpv2i,Roberta Johnson +2yd2hd6auetjacyo,Jason Williamson +egrmdbibnjhi914x,Sandra Robinson +15m1pz2bb0ercgyk,Steve Rice +0i21bhkxdagjurb7,Kimberly Fritz +726ofi7h5snreq67,Brianna Reynolds +csqxse3wym56eim6,Alexander Williams +qeaoylnrsf8p3byg,Andrew Thomas +edsswobumzyzbvhf,Austin Williams +hdzhzpt0ahy5hkib,Nicholas Williams +w1qmvmg4roa8xnwu,Mrs. Michelle Cisneros +3z3o73x7adyuo6w0,Stacey Smith +sse2u5zlgoqrgmcf,Laura Beck +rvovijmvch58r4yx,Molly Clark +doe06nrx8sg5mcuv,Carmen Morris +jbjdwuvj5s4kw04y,Amanda Munoz +6k2ewkla7js0yw23,Rachel Collins +fcxuyr4kkhrnigu1,John Alexander +d25fuwlos5mk07o0,Stacy Hunter +1vdai2rxmwd57oet,Eric Massey +pq4jnt9izu1wlrzd,Scott Garcia +lz9kfc0lty5xcz14,Cassandra Nelson +pu7w6tyab5jd4we9,Aaron Johnson +8dupswd2kqwdyn8v,Shannon Sherman +ye466l71jthiz2p6,April Garcia +xogsmfwb73l16qdt,Evan Lynn diff --git a/tests/resources/csv/missing-row.csv b/tests/resources/csv/missing-row.csv new file mode 100644 index 00000000000..7399fa9f514 --- /dev/null +++ b/tests/resources/csv/missing-row.csv @@ -0,0 +1,101 @@ +$id,name,age +hxfcwpcas5xokpwe,Diamond Mendez +gw8nxwf6esn3tfwf,Michael Huff +xb6bxg56lral1qy9,Alyssa Rodriguez +imerjq5j36y3agh2,Barbara Smith +07yq9qdlhmbzmr35,Evelyn Edwards +ksqo631sbhwj5ltg,Tina Richardson +j7zlndgu0gbshp15,Joel Hernandez +mfntvnljrcmf7h6v,Zachary Cooper +5f9b01nziqu2h8ed,Brittany Spears +4vxzbnzraqznk5u8,Holly White +d4ywy3mtphaatbpf,Kimberly Barnes +88odnk6nthyyvbal,Stephen Miller +08oekee3fn7mzaa5,Yvonne Newman +quw55kn9895i5e4v,Carol Kane +nge6bm8ykripei6f,Doris Foster +4k16i33s0xl2ypx9,Joseph Stokes +q0j5rxbgid66snyf,Steve Williams +n1oxun7mqq3p103y,James Carey +0dbvs840jkf8i0ye,Kathryn Henry +5sfaidgs1h87v15v,Christopher Landry +vg3punvfu5khmf41,Jennifer Mcgee +f933qydr9u5b2r11,Cathy Church +wjv87y1inf8yk32s,Jose Lopez +uljysdvdlcyrbrwk,William Rose +ot8xtzh77j55wq0s,Sarah Ford +9t76vnsv2u36s43t,Alisha Jones +66y4tnty62hw8c02,Kristin Kelly +2punfblazi5v16ar,Brendan Stout +sxhr4nf5w2gx4wbg,Kelly Cruz +68dvrqfwqnkq5el9,Samantha Martin +20192l6dbeinhkh0,David Santos +si0l4dgay09ebfmf,Elizabeth Carroll +lhse40vbldqb6ap1,Corey Owens +h5t3pslykyx3kxfm,Shelby Mueller +ldc0luydrw6jub0f,Dr. Sylvia Myers +voc9628xg4dsgw2y,Scott Freeman +o4y0gk3gqv1ax2fz,Christopher Atkinson +u1n3x4e4u7e0vzj6,Sean Diaz +s36eskwtm0w7lwr7,Bobby Dyer +4hjnag1p5iwvtixd,Daniel Hall +m91d80oxsa216zbh,Jennifer Ramirez +5hj6858zo2g85n6v,Angela Jackson +8m8oihv9a1e7nn92,Kelly Lewis +7azy39la0no0mxi7,Jessica Munoz +47pmjkhnnqhyit8c,Kelly George +6j6cpy4kgneg1mmh,Anthony Johnson +tnlmtvap1zz89km9,Regina Fields +6cyuvnwwqdmrpfzh,Sharon Schaefer +p1v4pyu2pqodc0ey,Jacob French +6npynnhjt2jd05xo,Jessica Costa +wcxedf13n2e9qi4l,George Hardy +yf2xlcmszk2tqeig,Andrea Allison +3bf2zzv7poststwa,Kevin Ferguson +c2iataz0hhv39q63,Joseph Johnson +3e8npxhov4a39pvq,Ashley Martinez +t7dp41tysipytywq,Charles Nixon +z8cztq7c47phyfhk,Carol Dudley +2636f9d8r4ipm3h6,David Weber +eh3f6wxtvkjq6ykq,Scott Robinson +raskbwpsje69a59h,Anthony Hardy +90hn1p0b4cs9e2og,Mackenzie Owens +am3swwfbo076x0v1,Brian Foster +5uw7utb9lq5cfncw,Hannah Forbes +cs6mbfzkzifefx6r,Lauren Reed +ftw3uvztziiz9x00,Morgan Smith +uhrqseeo43mozpaq,Samantha Alexander +pvvmzyfc1lxor11e,Tiffany Roberts +jia7bdag4abz123s,Emily Hayes +h6oozcngbz8o5x4y,Rebecca Villegas +9v6z1pn2f9twcy12,Donald Shah +wzz3jduioso77o7f,Denise Cain +u51plhgvjodkswnr,Kristine Ramirez +t1uhkmiytfyc13vc,Stacey Adkins +iqaqnf0ybg2ct507,Daniel Hunt +idwrwv2uu4hcpv2i,Roberta Johnson +2yd2hd6auetjacyo,Jason Williamson +egrmdbibnjhi914x,Sandra Robinson +15m1pz2bb0ercgyk,Steve Rice +0i21bhkxdagjurb7,Kimberly Fritz +726ofi7h5snreq67,Brianna Reynolds +csqxse3wym56eim6,Alexander Williams +qeaoylnrsf8p3byg,Andrew Thomas +edsswobumzyzbvhf,Austin Williams +hdzhzpt0ahy5hkib,Nicholas Williams +w1qmvmg4roa8xnwu,Mrs. Michelle Cisneros +3z3o73x7adyuo6w0,Stacey Smith +sse2u5zlgoqrgmcf,Laura Beck +rvovijmvch58r4yx,Molly Clark +doe06nrx8sg5mcuv,Carmen Morris +jbjdwuvj5s4kw04y,Amanda Munoz +6k2ewkla7js0yw23,Rachel Collins +fcxuyr4kkhrnigu1,John Alexander +d25fuwlos5mk07o0,Stacy Hunter +1vdai2rxmwd57oet,Eric Massey +pq4jnt9izu1wlrzd,Scott Garcia +lz9kfc0lty5xcz14,Cassandra Nelson +pu7w6tyab5jd4we9,Aaron Johnson +8dupswd2kqwdyn8v,Shannon Sherman +ye466l71jthiz2p6,April Garcia +xogsmfwb73l16qdt,Evan Lynn diff --git a/tests/resources/docker/docker-compose.yml b/tests/resources/docker/docker-compose.yml index a34b4fcf881..4bbca3e9c06 100644 --- a/tests/resources/docker/docker-compose.yml +++ b/tests/resources/docker/docker-compose.yml @@ -62,11 +62,12 @@ services: - redis # - clamav environment: + - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_ENV - _APP_OPTIONS_ABUSE - _APP_OPTIONS_ROUTER_PROTECTION - _APP_OPTIONS_FORCE_HTTPS - - _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS + - _APP_OPTIONS_ROUTER_FORCE_HTTPS - _APP_OPENSSL_KEY_V1 - _APP_DOMAIN - _APP_DOMAIN_FUNCTIONS @@ -82,15 +83,14 @@ services: - _APP_STORAGE_ANTIVIRUS=disabled - _APP_STORAGE_LIMIT - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_CONTAINERS - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY - - _APP_FUNCTIONS_MEMORY_SWAP + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY - _APP_EXECUTOR_HOST - appwrite-worker-usage: - entrypoint: worker-usage - container_name: appwrite-worker-usage + appwrite-worker-stats-usage: + entrypoint: worker-stats-usage + container_name: appwrite-worker-stats-usage build: context: . restart: unless-stopped @@ -240,10 +240,9 @@ services: - _APP_DB_USER - _APP_DB_PASS - _APP_FUNCTIONS_TIMEOUT - - _APP_FUNCTIONS_CONTAINERS - - _APP_FUNCTIONS_CPUS - - _APP_FUNCTIONS_MEMORY - - _APP_FUNCTIONS_MEMORY_SWAP + - _APP_SITES_TIMEOUT + - _APP_COMPUTE_CPUS + - _APP_COMPUTE_MEMORY - _APP_EXECUTOR_HOST appwrite-worker-mails: diff --git a/tests/resources/functions/node/index.js b/tests/resources/functions/node/index.js index 041e4a8c12c..e8eb938a15b 100644 --- a/tests/resources/functions/node/index.js +++ b/tests/resources/functions/node/index.js @@ -14,6 +14,8 @@ module.exports = async(context) => { 'APPWRITE_FUNCTION_USER_ID' : context.req.headers['x-appwrite-user-id'] ?? '', 'APPWRITE_FUNCTION_JWT' : context.req.headers['x-appwrite-user-jwt'] ?? '', 'APPWRITE_FUNCTION_PROJECT_ID' : process.env.APPWRITE_FUNCTION_PROJECT_ID, + 'APPWRITE_FUNCTION_MEMORY' : process.env.APPWRITE_FUNCTION_MEMORY, + 'APPWRITE_FUNCTION_CPUS' : process.env.APPWRITE_FUNCTION_CPUS, 'CUSTOM_VARIABLE' : process.env.CUSTOM_VARIABLE }); } \ No newline at end of file diff --git a/tests/resources/functions/node/maintenance.js b/tests/resources/functions/node/maintenance.js new file mode 100644 index 00000000000..0885f110417 --- /dev/null +++ b/tests/resources/functions/node/maintenance.js @@ -0,0 +1,3 @@ +module.exports = async(context) => { + return context.res.send('Maintenance'); +} \ No newline at end of file diff --git a/tests/resources/functions/php/index.php b/tests/resources/functions/php/index.php index 76c58e87b58..6c67f27ee13 100644 --- a/tests/resources/functions/php/index.php +++ b/tests/resources/functions/php/index.php @@ -1,6 +1,26 @@ <?php return function ($context) { + if ($context->req->path === '/custom-response') { + $code = (int) ($context->req->query['code'] ?? '200'); + $body = $context->req->query['body'] ?? ''; + return $context->res->send($body, $code); + } + + $context->log('body-is-' . ($context->req->body ?? '')); + $context->log('custom-header-is-' . ($context->req->headers['x-custom-header'] ?? '')); + $context->log('method-is-' . \strtolower($context->req->method ?? '')); + $context->log('path-is-' . ($context->req->path ?? '')); + $context->log('user-is-' . $context->req->headers['x-appwrite-user-id'] ?? ''); + + if (empty($context->req->headers['x-appwrite-user-jwt'] ?? '')) { + $context->log('jwt-is-invalid'); + } else { + $context->log('jwt-is-valid'); + } + + $context->error('error-log-works'); + $statusCode = $context->req->query['code'] ?? '200'; return $context->res->json([ diff --git a/tests/resources/qr/qr-default.png b/tests/resources/qr/qr-default.png index 58af53bb932..467be60e077 100644 Binary files a/tests/resources/qr/qr-default.png and b/tests/resources/qr/qr-default.png differ diff --git a/tests/resources/qr/qr-size-200-margin-10.png b/tests/resources/qr/qr-size-200-margin-10.png index b40529396e7..ed986983905 100644 Binary files a/tests/resources/qr/qr-size-200-margin-10.png and b/tests/resources/qr/qr-size-200-margin-10.png differ diff --git a/tests/resources/qr/qr-size-200.png b/tests/resources/qr/qr-size-200.png index a44e4861e33..f7418d548f8 100644 Binary files a/tests/resources/qr/qr-size-200.png and b/tests/resources/qr/qr-size-200.png differ diff --git a/tests/resources/sites/astro-static/astro.config.mjs b/tests/resources/sites/astro-static/astro.config.mjs new file mode 100644 index 00000000000..20b0b8e2ba7 --- /dev/null +++ b/tests/resources/sites/astro-static/astro.config.mjs @@ -0,0 +1,4 @@ +import { defineConfig } from 'astro/config'; + +export default defineConfig({ +}); diff --git a/tests/resources/sites/astro-static/package.json b/tests/resources/sites/astro-static/package.json new file mode 100644 index 00000000000..147dcf1f071 --- /dev/null +++ b/tests/resources/sites/astro-static/package.json @@ -0,0 +1,14 @@ +{ + "name": "my-astro-app", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "astro": "^5.2.5" + } +} diff --git a/tests/resources/sites/astro-static/src/pages/index.astro b/tests/resources/sites/astro-static/src/pages/index.astro new file mode 100644 index 00000000000..0b4f43c3d60 --- /dev/null +++ b/tests/resources/sites/astro-static/src/pages/index.astro @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Astro static + + + + diff --git a/tests/resources/sites/astro/astro.config.mjs b/tests/resources/sites/astro/astro.config.mjs new file mode 100644 index 00000000000..a87942461e4 --- /dev/null +++ b/tests/resources/sites/astro/astro.config.mjs @@ -0,0 +1,9 @@ +import { defineConfig } from 'astro/config'; +import node from '@astrojs/node'; + +export default defineConfig({ + output: 'server', + adapter: node({ + mode: 'standalone' + }), +}); diff --git a/tests/resources/sites/astro/package.json b/tests/resources/sites/astro/package.json new file mode 100644 index 00000000000..8cbcb910f57 --- /dev/null +++ b/tests/resources/sites/astro/package.json @@ -0,0 +1,15 @@ +{ + "name": "my-astro-app", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "@astrojs/node": "^9.0.2", + "astro": "^5.2.5" + } +} diff --git a/tests/resources/sites/astro/src/pages/index.astro b/tests/resources/sites/astro/src/pages/index.astro new file mode 100644 index 00000000000..cc8fd9411fa --- /dev/null +++ b/tests/resources/sites/astro/src/pages/index.astro @@ -0,0 +1,15 @@ +--- +const value = import.meta.env.name || 'Variable not found'; +--- + + + + + + + Astro SSR + + +

Env variable is {value}

+ + diff --git a/tests/resources/sites/astro/src/pages/logs-action.js b/tests/resources/sites/astro/src/pages/logs-action.js new file mode 100644 index 00000000000..348297a6160 --- /dev/null +++ b/tests/resources/sites/astro/src/pages/logs-action.js @@ -0,0 +1,7 @@ +export async function GET(context) { + console.log("Log1"); + console.error("Error1"); + console.log("Log2"); + console.error("Error2"); + return new Response('Action logs printed.'); +} diff --git a/tests/resources/sites/astro/src/pages/logs-inline.astro b/tests/resources/sites/astro/src/pages/logs-inline.astro new file mode 100644 index 00000000000..c539142d83c --- /dev/null +++ b/tests/resources/sites/astro/src/pages/logs-inline.astro @@ -0,0 +1,18 @@ +--- +console.log("Log1"); +console.error("Error1"); +console.log("Log2"); +console.error("Error2"); +--- + + + + + + + Astro Logs + + +

Inline logs printed.

+ + diff --git a/tests/resources/sites/static-single-file/main.html b/tests/resources/sites/static-single-file/main.html new file mode 100644 index 00000000000..2615f0c8205 --- /dev/null +++ b/tests/resources/sites/static-single-file/main.html @@ -0,0 +1,10 @@ + + + + + + Main page + + + + \ No newline at end of file diff --git a/tests/resources/sites/static-spa/404.html b/tests/resources/sites/static-spa/404.html new file mode 100644 index 00000000000..2a51f36d227 --- /dev/null +++ b/tests/resources/sites/static-spa/404.html @@ -0,0 +1,10 @@ + + + + + + + +

Customized 404 page

+ + diff --git a/tests/resources/sites/static-spa/contact.html b/tests/resources/sites/static-spa/contact.html new file mode 100644 index 00000000000..1ef7dc9497f --- /dev/null +++ b/tests/resources/sites/static-spa/contact.html @@ -0,0 +1,10 @@ + + + + + + + +

Contact page

+ + diff --git a/tests/resources/sites/static-spa/index.html b/tests/resources/sites/static-spa/index.html new file mode 100644 index 00000000000..3fd22628039 --- /dev/null +++ b/tests/resources/sites/static-spa/index.html @@ -0,0 +1,10 @@ + + + + + + + +

Index page

+ + diff --git a/tests/resources/sites/static-themed/index.html b/tests/resources/sites/static-themed/index.html new file mode 100644 index 00000000000..955696b4736 --- /dev/null +++ b/tests/resources/sites/static-themed/index.html @@ -0,0 +1,23 @@ + + + + + + Themed website + + + + diff --git a/tests/resources/sites/static/contact.html b/tests/resources/sites/static/contact.html new file mode 100644 index 00000000000..b2c16fc4717 --- /dev/null +++ b/tests/resources/sites/static/contact.html @@ -0,0 +1,11 @@ + + + + + + Contact page + + +

Contact page

+ + \ No newline at end of file diff --git a/tests/resources/sites/static/index.html b/tests/resources/sites/static/index.html new file mode 100644 index 00000000000..ca1b1cc78d1 --- /dev/null +++ b/tests/resources/sites/static/index.html @@ -0,0 +1,11 @@ + + + + + + Hello Appwrite + + +

Hello Appwrite

+ + \ No newline at end of file diff --git a/tests/resources/sites/sub-directories/index.html b/tests/resources/sites/sub-directories/index.html new file mode 100644 index 00000000000..d21a10191cf --- /dev/null +++ b/tests/resources/sites/sub-directories/index.html @@ -0,0 +1,5 @@ + + +

Sub-directory index

+ + diff --git a/tests/resources/sites/sub-directories/project1/index.html b/tests/resources/sites/sub-directories/project1/index.html new file mode 100644 index 00000000000..8fc477991ca --- /dev/null +++ b/tests/resources/sites/sub-directories/project1/index.html @@ -0,0 +1,5 @@ + + +

Sub-directory project1

+ + \ No newline at end of file diff --git a/tests/unit/Auth/KeyTest.php b/tests/unit/Auth/KeyTest.php new file mode 100644 index 00000000000..8ae21146974 --- /dev/null +++ b/tests/unit/Auth/KeyTest.php @@ -0,0 +1,56 @@ + $projectId,]); + $decoded = Key::decode($project, $key); + + $this->assertEquals($projectId, $decoded->getProjectId()); + $this->assertEquals(API_KEY_DYNAMIC, $decoded->getType()); + $this->assertEquals(Auth::USER_ROLE_APPS, $decoded->getRole()); + $this->assertEquals(\array_merge($scopes, $roleScopes), $decoded->getScopes()); + } + + private static function generateKey( + string $projectId, + bool $usage, + array $scopes, + ): string { + $jwt = new JWT( + key: System::getEnv('_APP_OPENSSL_KEY_V1'), + algo: 'HS256', + maxAge: 86400, + leeway: 0, + ); + + $apiKey = $jwt->encode([ + 'projectId' => $projectId, + 'usage' => $usage, + 'scopes' => $scopes, + ]); + + return API_KEY_DYNAMIC . '_' . $apiKey; + } +} diff --git a/tests/unit/Auth/Validator/PhoneTest.php b/tests/unit/Auth/Validator/PhoneTest.php index d5a4e7f8263..b7730641c3d 100644 --- a/tests/unit/Auth/Validator/PhoneTest.php +++ b/tests/unit/Auth/Validator/PhoneTest.php @@ -31,6 +31,7 @@ public function testValues(): void $this->assertEquals($this->object->isValid('+0415553452342'), false); $this->assertEquals($this->object->isValid('+14 155 5524564'), false); $this->assertEquals($this->object->isValid('+1415555245634543'), false); + $this->assertEquals($this->object->isValid('+8020000000'), false); // when country code is not present $this->assertEquals($this->object->isValid(+14155552456), false); $this->assertEquals($this->object->isValid('+1415555'), true); diff --git a/tests/unit/Event/EventTest.php b/tests/unit/Event/EventTest.php index dd9833378fe..c852cf27579 100644 --- a/tests/unit/Event/EventTest.php +++ b/tests/unit/Event/EventTest.php @@ -3,13 +3,9 @@ namespace Tests\Unit\Event; use Appwrite\Event\Event; -use Appwrite\URL\URL; use InvalidArgumentException; use PHPUnit\Framework\TestCase; -use Utopia\DSN\DSN; -use Utopia\Queue; -use Utopia\Queue\Client; -use Utopia\System\System; +use Utopia\Queue\Publisher; require_once __DIR__ . '/../../../app/init.php'; @@ -17,24 +13,14 @@ class EventTest extends TestCase { protected ?Event $object = null; protected string $queue = ''; + protected Publisher $publisher; public function setUp(): void { - $fallbackForRedis = 'redis_main=' . URL::unparse([ - 'scheme' => 'redis', - 'host' => System::getEnv('_APP_REDIS_HOST', 'redis'), - 'port' => System::getEnv('_APP_REDIS_PORT', '6379'), - 'user' => System::getEnv('_APP_REDIS_USER', ''), - 'pass' => System::getEnv('_APP_REDIS_PASS', ''), - ]); + $this->publisher = new MockPublisher(); - $dsn = System::getEnv('_APP_CONNECTIONS_QUEUE', $fallbackForRedis); - $dsn = explode('=', $dsn); - $dsn = $dsn[1] ?? ''; - $dsn = new DSN($dsn); - $connection = new Queue\Connection\Redis($dsn->getHost(), $dsn->getPort()); $this->queue = 'v1-tests' . uniqid(); - $this->object = new Event($connection); + $this->object = new Event($this->publisher); $this->object->setClass('TestsV1'); $this->object->setQueue($this->queue); } @@ -66,10 +52,7 @@ public function testParams(): void $this->assertEquals('eventValue1', $this->object->getParam('eventKey1')); $this->assertEquals('eventValue2', $this->object->getParam('eventKey2')); $this->assertEquals(null, $this->object->getParam('eventKey3')); - global $register; - $pools = $register->get('pools'); - $client = new Client($this->object->getQueue(), $pools->get('queue')->pop()->getResource()); - $this->assertEquals($client->getQueueSize(), 1); + $this->assertCount(1, $this->publisher->getEvents($this->object->getQueue())); } public function testReset(): void diff --git a/tests/unit/Event/MockPublisher.php b/tests/unit/Event/MockPublisher.php new file mode 100644 index 00000000000..54fcc893581 --- /dev/null +++ b/tests/unit/Event/MockPublisher.php @@ -0,0 +1,35 @@ +events[$queue->name])) { + $this->events[$queue->name] = []; + } + $this->events[$queue->name][] = $payload; + return true; + } + + public function getEvents(string $queue) + { + return $this->events[$queue] ?? null; + } + + public function retry(Queue $queue, int $limit = null): void + { + // TODO: Implement retry() method. + } + + public function getQueueSize(Queue $queue, bool $failedJobs = false): int + { + return count($this->events[$queue->name]); + } +} diff --git a/tests/unit/Functions/Validator/HeadersBench.php b/tests/unit/Functions/Validator/HeadersBench.php index e1f9fcc5ff5..f95fa65f9b2 100644 --- a/tests/unit/Functions/Validator/HeadersBench.php +++ b/tests/unit/Functions/Validator/HeadersBench.php @@ -27,19 +27,19 @@ public function providers(): iterable yield 'empty' => [ 'value' => [] ]; $value = []; - for($i = 0; $i < 10; $i++) { + for ($i = 0; $i < 10; $i++) { $value[bin2hex(random_bytes(8))] = bin2hex(random_bytes(8)); } yield 'items_10-size_320' => [ 'value' => $value ]; $value = []; - for($i = 0; $i < 100; $i++) { + for ($i = 0; $i < 100; $i++) { $value[bin2hex(random_bytes(8))] = bin2hex(random_bytes(8)); } yield 'items_100-size_3200' => [ 'value' => $value ]; $value = []; - for($i = 0; $i < 100; $i++) { + for ($i = 0; $i < 100; $i++) { $value[bin2hex(random_bytes(32))] = bin2hex(random_bytes(32)); } yield 'items_100-size_12800' => [ 'value' => $value ]; @@ -53,7 +53,7 @@ public function providers(): iterable public function benchHeadersValidator(array $data): void { $assertion = $this->validator->isValid($data['value']); - if(!$assertion) { + if (!$assertion) { exit(1); } } diff --git a/tests/unit/Functions/Validator/HeadersTest.php b/tests/unit/Functions/Validator/HeadersTest.php index c9373c59919..4a45f574276 100644 --- a/tests/unit/Functions/Validator/HeadersTest.php +++ b/tests/unit/Functions/Validator/HeadersTest.php @@ -109,7 +109,7 @@ public function testValues(): void $this->assertTrue($this->object->isValid($headers)); $headers = []; - for($i = 0; $i < 100; $i++) { + for ($i = 0; $i < 100; $i++) { $headers['key-' . $i] = 'value_' . $i; } $this->assertTrue($this->object->isValid($headers)); diff --git a/tests/unit/Network/Validators/CNAMETest.php b/tests/unit/Network/Validators/CNAMETest.php deleted file mode 100644 index cbb07f19b5a..00000000000 --- a/tests/unit/Network/Validators/CNAMETest.php +++ /dev/null @@ -1,29 +0,0 @@ -object = new CNAME('appwrite.io'); - } - - public function tearDown(): void - { - } - - public function testValues(): void - { - $this->assertEquals($this->object->isValid(''), false); - $this->assertEquals($this->object->isValid(null), false); - $this->assertEquals($this->object->isValid(false), false); - $this->assertEquals($this->object->isValid('cname-unit-test.appwrite.org'), true); - $this->assertEquals($this->object->isValid('test1.appwrite.org'), false); - } -} diff --git a/tests/unit/Network/Validators/DNSTest.php b/tests/unit/Network/Validators/DNSTest.php new file mode 100644 index 00000000000..5e8652381a0 --- /dev/null +++ b/tests/unit/Network/Validators/DNSTest.php @@ -0,0 +1,50 @@ +assertEquals($validator->isValid(''), false); + $this->assertEquals($validator->isValid(null), false); + $this->assertEquals($validator->isValid(false), false); + $this->assertEquals($validator->isValid('cname-unit-test.appwrite.org'), true); + $this->assertEquals($validator->isValid('test1.appwrite.org'), false); + } + + public function testA(): void + { + // IPv4 for documentation purposes + $validator = new DNS('203.0.113.1', DNS::RECORD_A); + $this->assertEquals($validator->isValid(''), false); + $this->assertEquals($validator->isValid(null), false); + $this->assertEquals($validator->isValid(false), false); + $this->assertEquals($validator->isValid('a-unit-test.appwrite.org'), true); + $this->assertEquals($validator->isValid('test1.appwrite.org'), false); + } + + public function testAAAA(): void + { + // IPv6 for documentation purposes + $validator = new DNS('2001:db8::1', DNS::RECORD_AAAA); + $this->assertEquals($validator->isValid(''), false); + $this->assertEquals($validator->isValid(null), false); + $this->assertEquals($validator->isValid(false), false); + $this->assertEquals($validator->isValid('aaaa-unit-test.appwrite.org'), true); + $this->assertEquals($validator->isValid('test1.appwrite.org'), false); + } +} diff --git a/tests/unit/Transformation/TransformationTest.php b/tests/unit/Transformation/TransformationTest.php new file mode 100644 index 00000000000..a3169026a3d --- /dev/null +++ b/tests/unit/Transformation/TransformationTest.php @@ -0,0 +1,43 @@ +addAdapter(new Mock()); + + $transformer->setInput($input); + $transformer->setTraits([]); + + $this->assertFalse($transformer->transform()); + + $transformer->setTraits(['mock' => true]); + $this->assertFalse($transformer->transform()); + + $transformer->setTraits(['mock' => true, 'content-type' => 'text/plain']); + $this->assertFalse($transformer->transform()); + + $transformer->setTraits(['mock' => true, 'content-type' => 'tExT/HtML']); + $this->assertFalse($transformer->transform()); + + $transformer->setTraits(['mock' => false, 'content-type' => 'text/plain, text/html; charset=utf-8']); + $this->assertFalse($transformer->transform()); + + $transformer->setTraits(['mock' => true, 'content-type' => 'text/plain, text/html; charset=utf-8']); + $this->assertTrue($transformer->transform()); + + $this->assertStringContainsString("Hello world", $transformer->getOutput()); + $this->assertStringContainsString("Preview by", $transformer->getOutput()); + $this->assertStringContainsString("Mock:", $transformer->getOutput()); + } +} diff --git a/tests/unit/Usage/StatsTest.php b/tests/unit/Usage/StatsTest.php deleted file mode 100644 index 67e39d89742..00000000000 --- a/tests/unit/Usage/StatsTest.php +++ /dev/null @@ -1,54 +0,0 @@ - 'redis', - 'host' => System::getEnv('_APP_REDIS_HOST', 'redis'), - 'port' => System::getEnv('_APP_REDIS_PORT', '6379'), - 'user' => System::getEnv('_APP_REDIS_USER', ''), - 'pass' => System::getEnv('_APP_REDIS_PASS', ''), - ])); - - $dsn = explode('=', $env); - $dsn = count($dsn) > 1 ? $dsn[1] : $dsn[0]; - $dsn = new DSN($dsn); - $this->connection = new Queue\Connection\Redis($dsn->getHost(), $dsn->getPort()); - $this->client = new Client(self::QUEUE_NAME, $this->connection); - } - - public function tearDown(): void - { - } - - public function testSamePayload(): void - { - $inToQueue = [ - 'key_1' => 'value_1', - 'key_2' => 'value_2', - ]; - - $result = $this->client->enqueue($inToQueue); - $this->assertTrue($result); - $outFromQueue = $this->connection->leftPopArray('utopia-queue.queue.' . self::QUEUE_NAME, 0)['payload']; - $this->assertNotEmpty($outFromQueue); - $this->assertSame($inToQueue, $outFromQueue); - } -} diff --git a/tests/unit/Utopia/Request/Filters/V19Test.php b/tests/unit/Utopia/Request/Filters/V19Test.php new file mode 100644 index 00000000000..418951705ed --- /dev/null +++ b/tests/unit/Utopia/Request/Filters/V19Test.php @@ -0,0 +1,85 @@ +filter = new V19(); + } + + public function tearDown(): void + { + } + + public function functionsCreateProvider() + { + return [ + 'remove template fields' => [ + [ + 'name' => 'test-function', + 'runtime' => 'node-18.0', + 'templateRepository' => 'github.com/appwrite/templates', + 'templateOwner' => 'appwrite', + 'templateRootDirectory' => 'functions/node', + 'templateVersion' => '1.0.0' + ], + [ + 'name' => 'test-function', + 'runtime' => 'node-18.0' + ] + ] + ]; + } + + public function functionsListExecutionsProvider() + { + return [ + 'remove search field' => [ + [ + 'functionId' => 'test-function', + 'search' => 'test query', + 'limit' => 10 + ], + [ + 'functionId' => 'test-function', + 'limit' => 10 + ] + ] + ]; + } + + /** + * @dataProvider functionsCreateProvider + */ + public function testFunctionsCreate(array $content, array $expected): void + { + $model = 'functions.create'; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + /** + * @dataProvider functionsListExecutionsProvider + */ + public function testFunctionsListExecutions(array $content, array $expected): void + { + $model = 'functions.listExecutions'; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } +} diff --git a/tests/unit/Utopia/RequestTest.php b/tests/unit/Utopia/RequestTest.php index 73daaa88bc3..63655de21d8 100644 --- a/tests/unit/Utopia/RequestTest.php +++ b/tests/unit/Utopia/RequestTest.php @@ -2,6 +2,8 @@ namespace Tests\Unit\Utopia; +use Appwrite\SDK\Method; +use Appwrite\SDK\Parameter; use Appwrite\Utopia\Request; use PHPUnit\Framework\TestCase; use Swoole\Http\Request as SwooleRequest; @@ -31,8 +33,14 @@ public function testFilters(): void $this->assertCount(2, $this->request->getFilters()); $route = new Route(Request::METHOD_GET, '/test'); - $route->label('sdk.method', 'method'); - $route->label('sdk.namespace', 'namespace'); + $route->label('sdk', new Method( + namespace: 'namespace', + group: 'group', + name: 'method', + description: 'description', + auth: [], + responses: [], + )); // set test header to prevent header populaten inside the request class $this->request->addHeader('EXAMPLE', 'VALUE'); $this->request->setRoute($route); @@ -50,4 +58,130 @@ public function testFilters(): void $this->assertTrue($output['second']); $this->assertArrayNotHasKey('deleted', $output); } + + public function testGetParamsWithMultipleMethods(): void + { + $this->setupMultiMethodRoute(); + + // Pass only "foo", should match Method A + $this->request->setQueryString([ + 'foo' => 'valueFoo', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('foo', $params); + $this->assertSame('valueFoo', $params['foo']); + $this->assertArrayNotHasKey('baz', $params); + } + + public function testGetParamsWithAllRequired(): void + { + $this->setupMultiMethodRoute(); + + // Pass "foo" and "bar", should match Method A + $this->request->setQueryString([ + 'foo' => 'valueFoo', + 'bar' => 'valueBar', + ]); + + $params = $this->request->getParams(); + $this->assertArrayHasKey('foo', $params); + $this->assertSame('valueFoo', $params['foo']); + $this->assertArrayHasKey('bar', $params); + $this->assertSame('valueBar', $params['bar']); + $this->assertArrayNotHasKey('baz', $params); + } + + public function testGetParamsWithAllOptional(): void + { + $this->setupMultiMethodRoute(); + + // Pass only "bar", should match Method A + $this->request->setQueryString([ + 'bar' => 'valueBar', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('bar', $params); + $this->assertSame('valueBar', $params['bar']); + $this->assertArrayNotHasKey('foo', $params); + $this->assertArrayNotHasKey('baz', $params); + } + + public function testGetParamsMatchesMethodB(): void + { + $this->setupMultiMethodRoute(); + + // Pass only "baz", should match Method B + $this->request->setQueryString([ + 'baz' => 'valueBaz', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('baz', $params); + $this->assertSame('valueBaz', $params['baz']); + $this->assertArrayNotHasKey('foo', $params); + } + + public function testGetParamsFallbackForMixedAndUnknown(): void + { + $this->setupMultiMethodRoute(); + + // Mixed and unknown should fallback to raw params + $this->request->setQueryString([ + 'foo' => 'valueFoo', + 'baz' => 'valueBaz', + 'extra' => 'unexpected', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('foo', $params); + $this->assertSame('valueFoo', $params['foo']); + $this->assertArrayHasKey('baz', $params); + $this->assertSame('valueBaz', $params['baz']); + $this->assertArrayHasKey('extra', $params); + $this->assertSame('unexpected', $params['extra']); + } + + /** + * Helper to attach a route with multiple SDK methods to the request. + */ + private function setupMultiMethodRoute(): void + { + $route = new Route(Request::METHOD_GET, '/multi'); + + $methodA = new Method( + namespace: 'namespace', + group: 'group', + name: 'methodA', + description: 'desc', + auth: [], + responses: [], + parameters: [ + new Parameter('foo'), + new Parameter('bar', optional: true), + ], + ); + + $methodB = new Method( + namespace: 'namespace', + group: 'group', + name: 'methodB', + description: 'desc', + auth: [], + responses: [], + parameters: [ + new Parameter('baz'), + ], + ); + + $route->label('sdk', [$methodA, $methodB]); + $this->request->addFilter(new First()); + $this->request->addFilter(new Second()); + $this->request->setRoute($route); + } } diff --git a/tests/unit/Utopia/Response/Filters/V19Test.php b/tests/unit/Utopia/Response/Filters/V19Test.php new file mode 100644 index 00000000000..7d413bdd37a --- /dev/null +++ b/tests/unit/Utopia/Response/Filters/V19Test.php @@ -0,0 +1,447 @@ +filter = new V19(); + } + + public function tearDown(): void + { + } + + public function functionProvider(): array + { + return [ + 'change deploymentId to deployment' => [ + [ + 'deploymentId' => 'deployment123', + ], + [ + 'deployment' => 'deployment123', + ] + ], + 'handle empty deploymentId' => [ + [ + 'name' => 'test-function', + ], + [ + 'deployment' => '', + 'name' => 'test-function', + ] + ], + ]; + } + + /** + * @dataProvider functionProvider + */ + public function testFunction(array $content, array $expected): void + { + $model = Response::MODEL_FUNCTION; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function functionListProvider(): array + { + return [ + 'convert list of functions' => [ + [ + 'total' => 2, + 'functions' => [ + [ + 'deploymentId' => 'deployment123', + 'name' => 'function-1', + ], + [ + 'deploymentId' => 'deployment456', + 'name' => 'function-2', + ], + ], + ], + [ + 'total' => 2, + 'functions' => [ + [ + 'deployment' => 'deployment123', + 'name' => 'function-1', + ], + [ + 'deployment' => 'deployment456', + 'name' => 'function-2', + ], + ], + ] + ], + 'handle empty function list' => [ + [ + 'total' => 0, + 'functions' => [], + ], + [ + 'total' => 0, + 'functions' => [], + ] + ], + ]; + } + + /** + * @dataProvider functionListProvider + */ + public function testFunctionList(array $content, array $expected): void + { + $model = Response::MODEL_FUNCTION_LIST; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function deploymentProvider(): array + { + return [ + 'rename sourceSize to size and buildDuration to buildTime' => [ + [ + 'sourceSize' => 1024, + 'buildDuration' => 60, + 'id' => 'deployment123', + ], + [ + 'size' => 1024, + 'buildTime' => 60, + 'id' => 'deployment123', + ] + ], + 'handle missing sourceSize and buildDuration' => [ + [ + 'id' => 'deployment123', + ], + [ + 'size' => '', + 'buildTime' => '', + 'id' => 'deployment123', + ] + ], + ]; + } + + /** + * @dataProvider deploymentProvider + */ + public function testDeployment(array $content, array $expected): void + { + $model = Response::MODEL_DEPLOYMENT; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function proxyRuleProvider(): array + { + return [ + 'rename deployment resource fields' => [ + [ + 'deploymentResourceType' => 'function', + 'deploymentResourceId' => 'func123', + 'domain' => 'example.com', + ], + [ + 'resourceType' => 'function', + 'resourceId' => 'func123', + 'domain' => 'example.com', + ] + ], + 'handle missing deployment resource fields' => [ + [ + 'domain' => 'example.com', + ], + [ + 'resourceType' => '', + 'resourceId' => '', + 'domain' => 'example.com', + ] + ], + ]; + } + + /** + * @dataProvider proxyRuleProvider + */ + public function testProxyRule(array $content, array $expected): void + { + $model = Response::MODEL_PROXY_RULE; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function migrationProvider(): array + { + return [ + 'remove resourceId field' => [ + [ + 'resourceId' => 'resource123', + 'status' => 'completed', + ], + [ + 'status' => 'completed', + ] + ], + 'handle content without resourceId' => [ + [ + 'status' => 'completed', + ], + [ + 'status' => 'completed', + ] + ], + ]; + } + + /** + * @dataProvider migrationProvider + */ + public function testMigration(array $content, array $expected): void + { + $model = Response::MODEL_MIGRATION; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function projectProvider(): array + { + return [ + 'remove devKeys field' => [ + [ + 'devKeys' => ['key1', 'key2'], + 'name' => 'test-project', + ], + [ + 'name' => 'test-project', + ] + ], + 'handle content without devKeys' => [ + [ + 'name' => 'test-project', + ], + [ + 'name' => 'test-project', + ] + ], + ]; + } + + /** + * @dataProvider projectProvider + */ + public function testProject(array $content, array $expected): void + { + $model = Response::MODEL_PROJECT; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function providerRepositoryProvider(): array + { + return [ + 'remove runtime field' => [ + [ + 'runtime' => 'nodejs', + 'name' => 'test-repo', + ], + [ + 'name' => 'test-repo', + ] + ], + 'handle content without runtime' => [ + [ + 'name' => 'test-repo', + ], + [ + 'name' => 'test-repo', + ] + ], + ]; + } + + /** + * @dataProvider providerRepositoryProvider + */ + public function testProviderRepository(array $content, array $expected): void + { + $model = Response::MODEL_PROVIDER_REPOSITORY; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function templateVariableProvider(): array + { + return [ + 'remove secret field' => [ + [ + 'secret' => 'secret-value', + 'name' => 'test-variable', + ], + [ + 'name' => 'test-variable', + ] + ], + 'handle content without secret' => [ + [ + 'name' => 'test-variable', + ], + [ + 'name' => 'test-variable', + ] + ], + ]; + } + + /** + * @dataProvider templateVariableProvider + */ + public function testTemplateVariable(array $content, array $expected): void + { + $model = Response::MODEL_TEMPLATE_VARIABLE; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function usageFunctionProvider(): array + { + return [ + 'remove build-related fields' => [ + [ + 'buildsSuccessTotal' => 10, + 'buildsFailedTotal' => 2, + 'buildsTimeAverage' => 30, + 'buildsSuccess' => 5, + 'buildsFailed' => 1, + 'executions' => 100, + ], + [ + 'executions' => 100, + ] + ], + 'handle content without build fields' => [ + [ + 'executions' => 100, + ], + [ + 'executions' => 100, + ] + ], + ]; + } + + /** + * @dataProvider usageFunctionProvider + */ + public function testUsageFunction(array $content, array $expected): void + { + $model = Response::MODEL_USAGE_FUNCTION; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function usageFunctionsProvider(): array + { + return [ + 'remove build-related fields' => [ + [ + 'buildsSuccessTotal' => 20, + 'buildsFailedTotal' => 4, + 'buildsSuccess' => 10, + 'buildsFailed' => 2, + 'executions' => 200, + ], + [ + 'executions' => 200, + ] + ], + 'handle content without build fields' => [ + [ + 'executions' => 200, + ], + [ + 'executions' => 200, + ] + ], + ]; + } + + /** + * @dataProvider usageFunctionsProvider + */ + public function testUsageFunctions(array $content, array $expected): void + { + $model = Response::MODEL_USAGE_FUNCTIONS; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } + + public function variableProvider(): array + { + return [ + 'remove secret field' => [ + [ + 'secret' => 'secret-value', + 'name' => 'test-variable', + ], + [ + 'name' => 'test-variable', + ] + ], + 'handle content without secret' => [ + [ + 'name' => 'test-variable', + ], + [ + 'name' => 'test-variable', + ] + ], + ]; + } + + /** + * @dataProvider variableProvider + */ + public function testVariable(array $content, array $expected): void + { + $model = Response::MODEL_VARIABLE; + + $result = $this->filter->parse($content, $model); + + $this->assertEquals($expected, $result); + } +} diff --git a/tests/unit/Utopia/ResponseTest.php b/tests/unit/Utopia/ResponseTest.php index cd111ec22c4..452119fafbc 100644 --- a/tests/unit/Utopia/ResponseTest.php +++ b/tests/unit/Utopia/ResponseTest.php @@ -55,12 +55,32 @@ public function testResponseModel(): void 'integer' => 123, 'boolean' => true, 'hidden' => 'secret', + 'array' => [ + 'string 1', + 'string 2' + ], ]), 'single'); $this->assertArrayHasKey('string', $output); $this->assertArrayHasKey('integer', $output); $this->assertArrayHasKey('boolean', $output); $this->assertArrayNotHasKey('hidden', $output); + $this->assertIsArray($output['array']); + + // test optional array + $output = $this->response->output(new Document([ + 'string' => 'lorem ipsum', + 'integer' => 123, + 'boolean' => true, + 'hidden' => 'secret', + ]), 'single'); + $this->assertArrayHasKey('string', $output); + $this->assertArrayHasKey('integer', $output); + $this->assertArrayHasKey('boolean', $output); + $this->assertArrayNotHasKey('hidden', $output); + $this->assertArrayHasKey('array', $output); + $this->assertNull($output['array']); + } public function testResponseModelRequired(): void diff --git a/tests/unit/Utopia/Single.php b/tests/unit/Utopia/Single.php index 3bd09ef6daa..b7f36d10a80 100644 --- a/tests/unit/Utopia/Single.php +++ b/tests/unit/Utopia/Single.php @@ -28,6 +28,11 @@ public function __construct() 'type' => self::TYPE_STRING, 'default' => 'default', 'required' => true + ]) + ->addRule('array', [ + 'type' => self::TYPE_STRING, + 'required' => false, + 'array' => true, ]); }